diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 6ad62ccc..00000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: cd - -on: - push: - tags: - - "v*.*.*" - -jobs: - publish: - name: Publish - runs-on: ubuntu-latest - steps: - - uses: dart-lang/setup-dart@v1 - with: - sdk: 2.17.0 - - - uses: actions/checkout@v2 - - - name: Inject pub.dev credentials - env: - PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} - run: | - mkdir -p ~/.config/dart/ - echo $PUB_CREDENTIALS > ~/.config/dart/pub-credentials.json - - - name: Publish to pub.dev - run: dart pub publish -f diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff1e02cc..3fd6aa23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: dart-lang/setup-dart@v1 - with: - sdk: 2.17.0 - uses: actions/checkout@v2 @@ -21,7 +19,7 @@ jobs: run: dart pub get - name: Check formatting - run: dart format --set-exit-if-changed --output none . + run: dart format -l 200 --set-exit-if-changed --output none . - name: Run lints run: dart analyze --fatal-warnings --fatal-infos diff --git a/.gitignore b/.gitignore index 91486238..3cceda55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,7 @@ -# Flutter/Dart/Pub related -**/doc/api/ +# https://dart.dev/guides/libraries/private-files +# Created by `dart pub` .dart_tool/ -.packages -.pub-cache/ -.pub/ -/build/ -pubspec.lock -# dev -Taskfile.yml -.idea +# Avoid committing pubspec.lock for library packages; see +# https://dart.dev/guides/libraries/private-files#pubspeclock. +pubspec.lock diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..a3e2e3c2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,16 @@ +{ + "dart.lineLength": 200, + "[dart]": { + "editor.formatOnSave": true, + "editor.formatOnType": true, + "editor.rulers": [ + 200 + ], + "editor.codeActionsOnSave": { + "source.fixAll": "always", + } + }, + "files.exclude": { + "**/.git": false, + } +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 24a2d26c..effe43c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,375 +1,3 @@ -## Unreleased -- Add TOTP Login support +## 1.0.0 -## v0.21.0 - 2022-05-12 - -### Changed - -- Upgrade to dart 2.17 - -## v0.20.0 - 2022-04-30 - -### Added - -- Default theme fields -- Add `LeaveAdmin` endpoint (thanks @ilpianista) - -### Removed - -- Remove `TransferSite` endpoint (thanks @ilpianista) -- Remove site creator (thanks @LouisMarotta) - -## v0.19.0 - 2022-01-14 - -### Added/Changed - -- Endpoints related to lemmy `v0.15.0` - -## v0.18.0 - 2021-11-26 - -### Changed - -- Bump `freezed` dependency to `1.0.0` - -### Added - -- Add `GetUnreadCount` endpoint -- Add `honeypot` fields - -## v0.17.0 - 2021-10-24 - -### Added - -- Add reporting API - -### Changed - -- Marked model constructors as `const` - -## v0.16.0 - 2021-09-04 - -### Added - -- Add show post notifs option -- Add `ResolveObject` endpoint -- Add `GetSiteMetadata` endpoint -- Add `ModTransferCommunity` -- Add blocking actions - -### Changed - -- Models with `instanceHost` now take it explicitly in the constructor - -## v0.15.0 - 2021-04-27 - -### Added - -- new stuff from lemmy v0.11.0 - -## v0.14.0 - 2021-04-06 - -### Changed - -- `Jwt` has a different constructor and now provides a `copyWith` method - -## v0.13.0 - 2021-04-03 - -### Added - -- API v3 - -### Breaking change - -- Null safety - -## v0.12.0 - 2021-02-20 - -### Breaking change - -- Removed API v1. It didn't even work properly and lemmy completely removed thus no point in keeping - -### Added - -- Websocket joins! `communityJoin`, `userJoin`, `postJoin`, and `modJoin` can be used to listen to particular events -- `SortType` has now a `newComments` sort -- `PostAggregates` has now a `newestCommentTimeNecro` property and has correctly `DateTime` types instead of `String` - -## 0.11.0 - 2021-02-13 - -### Changed - -- All `DateTime` objects are now explicitly UTC time -- All queries have now constant constructors - -### Fixed - -- `GetReplies.sort` is now of `SortType` type -- `showNsfw` from `Register` query is now correctly a boolean instead of a string - -## 0.10.2 - 2021-02-02 - -### Changed - -- `FullSiteView.federatedInstances` now has a different structure - -### Added - -- Added `MostComments` to `SortType` - -## 0.10.1 - 2021-01-31 - -### Added - -- Added new Lemmy `v0.9.1` fields - -## 0.10.0 - 2021-01-26 - -### Added - -- V2 Lemmy api is now available. The use has changed to make `lemmy_api_client` much easier and less tedious to maintain - -### Breaking change - -- Clients are now split between v1 (`package:lemmy_api_client/v1.dart`) and v2 (`package:lemmy_api_client/v2.dart`) -- `Pictrs` is now in `package:lemmy_api_client/pictrs.dart` - -## 0.9.1 - 2021-01-07 - -### Changed - -- All models are now generated with `freezed` + `json_serializable`. This unlocks a handy `.copyWith()` method on all models and make all models data classes (which means they can be compared with `==` value wise). Models are now more null-safe making `lemmy_api_client` more ready for null-safety - -## 0.9.0 - 2021-01-06 - -### Added - -- `User` model now uses enums for its fields - -## 0.8.5 - 2021-01-02 - -### Fixed - -- Fixed v0.8.4 (third time's the charm?) - -## 0.8.4 - 2021-01-01 - -### Fixed - -- Fixed v0.8.3 - -## 0.8.3 - 2021-01-01 - -### Fixed - -- Fixed v0.8.2 - -## 0.8.2 - 2020-12-31 - -### Added - -- All models are now augmented with a `instanceHost` property that shows where did the response come from. Very useful when dealing with multiple instances at once and not knowing what object belongs to what instance. - -## 0.8.1 - 2020-12-19 - -### Added - -- Added `local` variant to `PostListingType` - -## 0.8.0 - 2020-12-04 - -### Fixed - -- Pict-rs upload requires auth - -## 0.7.3 - 2020-10-24 - -### Fixed - -- Pict-rs v0.2 - -## 0.7.2 - 2020-10-08 - -### Fixed - -- Exporting pictrs models - -### Changed - -- Error handling in pictrs delete method - -## 0.7.1 - 2020-10-07 - -### Added - -- Added `upload` and `delete` pictrs endpoints - -## 0.7.0 - 2020-09-29 - -### Breaking - -- Removed statically typed errors, now every error is forwarded by `LemmyApiException` with a i18n message - -## 0.6.0 - 2020-09-29 - -### Added - -- `GET /comment/list` - -### Fix - -- Added missing auth field in `getPost` -- Correctly decoding utf8 bodies - -### Breaking - -- type on `Search` model is now an enum - -## 0.5.0 - 2020-09-18 - -### Breaking - -- `myVote` is now an enum - -## 0.4.2 - 2020-09-17 - -### Changed - -- `savePost` now uses `PUT` instead of `POST` - -## 0.4.1 - 2020-09-06 - -### Added - -- Added `RateLimitException` - -### Changed - -- Changed `UnknownResponseException` to `UnknownResponseError` and exposed it as a public member - -## 0.4.0 - 2020-09-05 - -### Added - -- Added rest of the user endpoints: - - `POST /user/ban` -- Added rest of the site endpoints: - - `PUT /site/config` - - `POST /site` - - `PUT /site` - - `POST /site/transfer` -- Added rest of the post endpoints: - - `POST /post/sticky` - - `POST /post/locked` -- Added rest of the community endpoints: - - `POST /community` - - `PUT /community` - - `POST /community/ban_user` - - `POST /community/mod` - - `POST /community/delete` - - `POST /community/remove` - - `POST /community/transfer` -- Added rest of the misc endpoints: - - `POST /admin/add` - - `GET /modlog` - -### Breaking - -- Renamed FullPost to FullPostView - -## 0.3.0 - 2020-09-02 - -### Breaking - -- Moved toJson from UserView to User - -## 0.2.2 - 2020-09-02 - -### Added - -- Jwt and User is serializable to json - -## 0.2.1 - 2020-08-29 - -### Fixed - -- Changed examples to reflect changes - -## 0.2.0 - 2020-08-29 - -### Changed - -- Renamed `LemmyAPI` to `LemmyApi` -- Endpoints that return a jwt now return a parsed jwt instead of just a raw one - -## 0.1.4 - 2020-08-28 - -### Changed - -- Exporting all models - -## 0.1.3 - 2020-08-24 - -### Added - -- lowered meta semver range - -## 0.1.2 - 2020-08-23 - -### Added - -- examples for pub.dev - -### Changed - -- Works on the web - -## 0.1.1 - 2020-08-23 - -### Changed - -- Logo now is displayed on pub.dev - -## 0.1.0 - 2020-08-23 - -### Added - -- `POST /comment` -- `PUT /comment` -- `POST /comment/delete` -- `POST /comment/remove` -- `POST /comment/mark_as_read` -- `~~POST~~ PUT /comment/save` -- `POST /comment/like` -- `GET /community` -- `GET /community/list` -- `POST /community/follow` -- `GET /user/followed_communities` -- `GET /categories` -- `POST /post` -- `GET /post` -- `GET /post/list` -- `POST /post/like` -- `PUT /post` -- `POST /post/delete` -- `POST /post/remove` -- `POST /post/save` -- `GET /site` -- `GET /site/config` -- `~~POST~~ GET /search` -- `PUT ~~/save_user_settings~~ /user/save_user_settings` -- `POST /user/login` -- `GET /user` -- `GET /user/replies` -- `GET ~~/user/mentions~~ /user/mention` -- `POST /user/mention/mark_as_read` -- `GET /private_message/list` -- `POST /private_message` -- `PUT /private_message` -- `POST /private_message/delete` -- `POST /private_message/mark_as_read` -- `POST /user/mark_all_as_read` -- `POST /user/delete_account` - -### Changed - -- First release of `lemmy_api_client`. Contains an http interface for the lemmy API for the "core" endpoints (mod/admin endpoints are coming soon) +- Initial version. diff --git a/LICENSE b/LICENSE index 398bc256..cda694fc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Filip Krawczyk (@krawieck), Marcin Wojnarowski (@shilangyu) +Copyright (c) 2024 Thunder (@thunder-app), 2020 Filip Krawczyk (@krawieck), Marcin Wojnarowski (@shilangyu) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/analysis_options.yaml b/analysis_options.yaml index c822c903..1ce25da3 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,137 +1,30 @@ +# This file configures the static analysis results for your project (errors, +# warnings, and lints). +# +# This enables the 'recommended' set of lints from `package:lints`. +# This set helps identify many issues that may lead to problems when running +# or consuming Dart code, and enforces writing Dart using a single, idiomatic +# style and format. +# +# If you want a smaller set of lints you can change this to specify +# 'package:lints/core.yaml'. These are just the most critical lints +# (the recommended set includes the core lints). +# The core lints are also what is used by pub.dev for scoring packages. + +include: package:lints/recommended.yaml + +# Uncomment the following section to specify additional rules. + linter: rules: - - always_declare_return_types - - avoid_bool_literals_in_conditional_expressions - - avoid_catches_without_on_clauses - - avoid_catching_errors - - avoid_classes_with_only_static_members - - avoid_equals_and_hash_code_on_mutable_classes - - avoid_escaping_inner_quotes - - avoid_final_parameters - - avoid_function_literals_in_foreach_calls - - avoid_init_to_null - - avoid_null_checks_in_equality_operators - - avoid_positional_boolean_parameters - - avoid_private_typedef_functions - - avoid_redundant_argument_values - - avoid_relative_lib_imports - - avoid_return_types_on_setters - - avoid_returning_null - - avoid_returning_null_for_void - - avoid_returning_this - - avoid_setters_without_getters - - avoid_single_cascade_in_expression_statements - - avoid_type_to_string - - avoid_types_on_closure_parameters - - avoid_unnecessary_containers - - avoid_unused_constructor_parameters - - avoid_void_async - - await_only_futures - - camel_case_extensions - - camel_case_types - - cascade_invocations - - cast_nullable_to_non_nullable - - constant_identifier_names - - conditional_uri_does_not_exist - - curly_braces_in_flow_control_structures - - depend_on_referenced_packages - - directives_ordering - - empty_catches - - empty_constructor_bodies - - eol_at_end_of_file - - exhaustive_cases - - file_names - - hash_and_equals - - implementation_imports - - invariant_booleans - - library_names - - library_prefixes - - literal_only_boolean_expressions - - non_constant_identifier_names - - noop_primitive_operations - - no_leading_underscores_for_library_prefixes - - no_leading_underscores_for_local_identifiers - - null_check_on_nullable_type_parameter - - omit_local_variable_types - - one_member_abstracts - - package_api_docs - - parameter_assignments - - prefer_adjacent_string_concatenation - - prefer_asserts_in_initializer_lists - - prefer_collection_literals - - prefer_conditional_assignment - - prefer_const_constructors - - prefer_const_constructors_in_immutables - - prefer_const_declarations - - prefer_const_literals_to_create_immutables - - prefer_constructors_over_static_methods - - prefer_contains - - prefer_equal_for_default_values - - prefer_final_fields - - prefer_final_in_for_each - - prefer_final_locals - - prefer_for_elements_to_map_fromIterable - - prefer_function_declarations_over_variables - - prefer_generic_function_type_aliases - - prefer_if_elements_to_conditional_expressions - - prefer_if_null_operators - - prefer_initializing_formals - - prefer_int_literals - - prefer_interpolation_to_compose_strings - - prefer_is_empty - - prefer_is_not_empty - - prefer_is_not_operator - - prefer_iterable_whereType - - prefer_mixin - - prefer_null_aware_operators - - prefer_relative_imports - - prefer_single_quotes - - prefer_spread_collections - - prefer_typing_uninitialized_variables - - recursive_getters - - require_trailing_commas - - secure_pubspec_urls - - sized_box_for_whitespace - - sized_box_shrink_expand - - slash_for_doc_comments - - sort_child_properties_last - - sort_unnamed_constructors_first - - tighten_type_of_initializing_formals - - type_annotate_public_apis - - type_init_formals - - unawaited_futures - - unnecessary_brace_in_string_interps - - unnecessary_const - - unnecessary_constructor_name - - unnecessary_getters_setters - - unnecessary_lambdas - - unnecessary_late - - unnecessary_new - - unnecessary_null_aware_assignments - - unnecessary_null_checks - - unnecessary_null_in_if_null_operators - - unnecessary_parenthesis - - unnecessary_raw_strings - - unnecessary_string_escapes - - unnecessary_string_interpolations - - unnecessary_this - - unrelated_type_equality_checks - - use_enums - - use_full_hex_values_for_flutter_colors - - use_is_even_rather_than_modulo - - use_named_constants - - use_raw_strings - - use_rethrow_when_possible - - use_setters_to_change_properties - - use_super_parameters - - use_test_throws_matchers - - use_to_and_as_if_applicable - - void_checks + - always_use_package_imports + +# analyzer: +# exclude: +# - path/to/excluded/files/** + +# For more information about the core and recommended set of lints, see +# https://dart.dev/go/core-lints -analyzer: - exclude: - - "**/*.g.dart" - strong-mode: - implicit-dynamic: false - errors: - invalid_annotation_target: ignore +# For additional information about configuring this file, see +# https://dart.dev/guides/language/analysis-options diff --git a/build.yaml b/build.yaml index 7cb5117d..ab5baeb4 100644 --- a/build.yaml +++ b/build.yaml @@ -3,4 +3,5 @@ targets: builders: json_serializable: options: - explicit_to_json: true + field_rename: snake + include_if_null: false diff --git a/doc/.DS_Store b/doc/.DS_Store new file mode 100644 index 00000000..4e9e754e Binary files /dev/null and b/doc/.DS_Store differ diff --git a/doc/api/__404error.html b/doc/api/__404error.html new file mode 100644 index 00000000..e2aa0dcd --- /dev/null +++ b/doc/api/__404error.html @@ -0,0 +1,93 @@ + + + + + + + + lemmy_api_client - Dart API docs + + + + + + + + + + + + + + +
+
+ menu + +
lemmy_api_client
+ +
+ +
+
+
+
+

404: Something's gone wrong :-(

+
+

You've tried to visit a page that doesn't exist. Luckily this site + has other pages.

+

If you were looking for something specific, try searching: +

+

+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/categories.json b/doc/api/categories.json new file mode 100644 index 00000000..fe51488c --- /dev/null +++ b/doc/api/categories.json @@ -0,0 +1 @@ +[] diff --git a/doc/api/index.html b/doc/api/index.html new file mode 100644 index 00000000..d51010fa --- /dev/null +++ b/doc/api/index.html @@ -0,0 +1,169 @@ + + + + + + + + lemmy_api_client - Dart API docs + + + + + + + + + + + + + + +
+
+ menu + +
lemmy_api_client
+ +
+ +
+
+
+
+ +
+

Lemmy Dart API Client

+
+ +

A Lemmy API Client built with Dart. Continuation of the original Lemmy Dart API and Liftoff Dart API.

+Unsupported +Limited support +Supported version +
+

Information

+

Updates are done at a best-effort basis to ensure compatibility with the current major version of Lemmy. Due to the unstable nature of Lemmy API, there will be limited support for the last major version.

+

Notice: While efforts are made to keep as much parity as possible with the Lemmy API, it is not guaranteed. If a particular endpoint or feature is missing, feel free to create a feature request or a pull request implementing that endpoint.

+

Usage

+
import 'package:lemmy_api_client/v3.dart';
+
+Future<void> main() async {
+  // Initialize the Lemmy API Client with the given instance URI
+  const lemmy = LemmyApiV3('lemmy.ml');
+
+  // Fetch posts
+  final response = await lemmy.run(const GetPosts());
+
+  print(response);
+}
+
+

Conventions

+

When implementing a new endpoint, try to follow the existing conventions. A basic summary of these conventions are mentioned below.

+

API Methods and Naming

+

Any high-level API methods should be placed under /api directory matching the endpoint. For example, GET /community should be placed under api/community/community.dart file.

+
    +
  • Always attempt to match the naming of the API or model with the official API client. This helps with parity checking and general organization.
  • +
+

Deprecating Fields

+

When a field or attribute is being deprecated in the upcoming version of Lemmy, mark it as such by annotating the field with @deprecated and making the field optional.

+

This example shows deprecation for the community field. Whenever possible, add an additional comment on which API version deprecates the field

+
const factory CommunityView({
+  required Community community,
+  required SubscribedType subscribed,
+  required bool blocked,
+  required CommunityAggregates counts,
+}) = _CommunityView;
+
+
const factory CommunityView({
+  @deprecated Community? community, // v0.18.0 (required) [deprecated in v0.43.0]
+  required SubscribedType subscribed,
+  required bool blocked,
+  required CommunityAggregates counts,
+}) = _CommunityView;
+
+

Adding Fields

+

When a field or attribute is introduced in an upcoming version of Lemmy, keep that attribute optional regardless of what the Lemmy API version denotes, and denote whether the field is optional/required. This is to ensure compatibility with the current and upcoming version of Lemmy. Furthermore, add a comment to denote which version introduces that field.

+

This example shows addition for the follow field:

+
const factory CommunityView({
+  required Community community,
+  required SubscribedType subscribed,
+  required bool blocked,
+  required CommunityAggregates counts,
+}) = _CommunityView;
+
+
const factory CommunityView({
+  required Community community,
+  required SubscribedType subscribed,
+  required bool blocked,
+  required CommunityAggregates counts,
+  bool? follow, // v0.64.0 (required)
+}) = _CommunityView;
+
+

Acknowledgements

+ +

Original Lemmy logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license. Remixed by Marcin Wojnarowski (@shilangyu) and re-released under the CC-BY-SA 4.0 license.

+
+ + +
+

Libraries

+
+
+ lemmy_api_client + +
+
+
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/index.json b/doc/api/index.json new file mode 100644 index 00000000..139cf9c2 --- /dev/null +++ b/doc/api/index.json @@ -0,0 +1 @@ +[{"name":"lemmy_api_client","qualifiedName":"lemmy_api_client","href":"lemmy_api_client/lemmy_api_client-library.html","kind":9,"packageRank":0,"desc":""},{"name":"Account","qualifiedName":"lemmy_api_client.Account","href":"lemmy_api_client/Account-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Account","qualifiedName":"lemmy_api_client.Account.Account","href":"lemmy_api_client/Account/Account.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"Account.fromJson","qualifiedName":"lemmy_api_client.Account.Account.fromJson","href":"lemmy_api_client/Account/Account.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"acceptedApplication","qualifiedName":"lemmy_api_client.Account.acceptedApplication","href":"lemmy_api_client/Account/acceptedApplication.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"admin","qualifiedName":"lemmy_api_client.Account.admin","href":"lemmy_api_client/Account/admin.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"autoMarkFetchedPostsAsRead","qualifiedName":"lemmy_api_client.Account.autoMarkFetchedPostsAsRead","href":"lemmy_api_client/Account/autoMarkFetchedPostsAsRead.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"blurNsfw","qualifiedName":"lemmy_api_client.Account.blurNsfw","href":"lemmy_api_client/Account/blurNsfw.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"collapseBotComments","qualifiedName":"lemmy_api_client.Account.collapseBotComments","href":"lemmy_api_client/Account/collapseBotComments.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"defaultCommentSortType","qualifiedName":"lemmy_api_client.Account.defaultCommentSortType","href":"lemmy_api_client/Account/defaultCommentSortType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"defaultListingType","qualifiedName":"lemmy_api_client.Account.defaultListingType","href":"lemmy_api_client/Account/defaultListingType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"defaultPostSortType","qualifiedName":"lemmy_api_client.Account.defaultPostSortType","href":"lemmy_api_client/Account/defaultPostSortType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"email","qualifiedName":"lemmy_api_client.Account.email","href":"lemmy_api_client/Account/email.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"emailVerified","qualifiedName":"lemmy_api_client.Account.emailVerified","href":"lemmy_api_client/Account/emailVerified.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"enableAnimatedImages","qualifiedName":"lemmy_api_client.Account.enableAnimatedImages","href":"lemmy_api_client/Account/enableAnimatedImages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"enableKeyboardNavigation","qualifiedName":"lemmy_api_client.Account.enableKeyboardNavigation","href":"lemmy_api_client/Account/enableKeyboardNavigation.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"enablePrivateMessages","qualifiedName":"lemmy_api_client.Account.enablePrivateMessages","href":"lemmy_api_client/Account/enablePrivateMessages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Account.id","href":"lemmy_api_client/Account/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"infiniteScrollEnabled","qualifiedName":"lemmy_api_client.Account.infiniteScrollEnabled","href":"lemmy_api_client/Account/infiniteScrollEnabled.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"interfaceLanguage","qualifiedName":"lemmy_api_client.Account.interfaceLanguage","href":"lemmy_api_client/Account/interfaceLanguage.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"openLinksInNewTab","qualifiedName":"lemmy_api_client.Account.openLinksInNewTab","href":"lemmy_api_client/Account/openLinksInNewTab.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"personId","qualifiedName":"lemmy_api_client.Account.personId","href":"lemmy_api_client/Account/personId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"postListingMode","qualifiedName":"lemmy_api_client.Account.postListingMode","href":"lemmy_api_client/Account/postListingMode.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"sendNotificationsToEmail","qualifiedName":"lemmy_api_client.Account.sendNotificationsToEmail","href":"lemmy_api_client/Account/sendNotificationsToEmail.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"showAvatars","qualifiedName":"lemmy_api_client.Account.showAvatars","href":"lemmy_api_client/Account/showAvatars.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"showBotAccounts","qualifiedName":"lemmy_api_client.Account.showBotAccounts","href":"lemmy_api_client/Account/showBotAccounts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"showNsfw","qualifiedName":"lemmy_api_client.Account.showNsfw","href":"lemmy_api_client/Account/showNsfw.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"showReadPosts","qualifiedName":"lemmy_api_client.Account.showReadPosts","href":"lemmy_api_client/Account/showReadPosts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"theme","qualifiedName":"lemmy_api_client.Account.theme","href":"lemmy_api_client/Account/theme.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Account.toJson","href":"lemmy_api_client/Account/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"totp2faEnabled","qualifiedName":"lemmy_api_client.Account.totp2faEnabled","href":"lemmy_api_client/Account/totp2faEnabled.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Account","kind":3,"href":"lemmy_api_client/Account-class.html"}},{"name":"AccountView","qualifiedName":"lemmy_api_client.AccountView","href":"lemmy_api_client/AccountView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"AccountView","qualifiedName":"lemmy_api_client.AccountView.AccountView","href":"lemmy_api_client/AccountView/AccountView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"AccountView.fromJson","qualifiedName":"lemmy_api_client.AccountView.AccountView.fromJson","href":"lemmy_api_client/AccountView/AccountView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"counts","qualifiedName":"lemmy_api_client.AccountView.counts","href":"lemmy_api_client/AccountView/counts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"localUser","qualifiedName":"lemmy_api_client.AccountView.localUser","href":"lemmy_api_client/AccountView/localUser.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"localUserVoteDisplayMode","qualifiedName":"lemmy_api_client.AccountView.localUserVoteDisplayMode","href":"lemmy_api_client/AccountView/localUserVoteDisplayMode.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"person","qualifiedName":"lemmy_api_client.AccountView.person","href":"lemmy_api_client/AccountView/person.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.AccountView.toJson","href":"lemmy_api_client/AccountView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountView","kind":3,"href":"lemmy_api_client/AccountView-class.html"}},{"name":"AccountVoteDisplayMode","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode","href":"lemmy_api_client/AccountVoteDisplayMode-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"AccountVoteDisplayMode","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.AccountVoteDisplayMode","href":"lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"AccountVoteDisplayMode.fromJson","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.AccountVoteDisplayMode.fromJson","href":"lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"downvotes","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.downvotes","href":"lemmy_api_client/AccountVoteDisplayMode/downvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"score","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.score","href":"lemmy_api_client/AccountVoteDisplayMode/score.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.toJson","href":"lemmy_api_client/AccountVoteDisplayMode/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"upvotePercentage","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.upvotePercentage","href":"lemmy_api_client/AccountVoteDisplayMode/upvotePercentage.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"upvotes","qualifiedName":"lemmy_api_client.AccountVoteDisplayMode.upvotes","href":"lemmy_api_client/AccountVoteDisplayMode/upvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"AccountVoteDisplayMode","kind":3,"href":"lemmy_api_client/AccountVoteDisplayMode-class.html"}},{"name":"BlockPersonResponse","qualifiedName":"lemmy_api_client.BlockPersonResponse","href":"lemmy_api_client/BlockPersonResponse-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"BlockPersonResponse","qualifiedName":"lemmy_api_client.BlockPersonResponse.BlockPersonResponse","href":"lemmy_api_client/BlockPersonResponse/BlockPersonResponse.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"BlockPersonResponse","kind":3,"href":"lemmy_api_client/BlockPersonResponse-class.html"}},{"name":"BlockPersonResponse.fromJson","qualifiedName":"lemmy_api_client.BlockPersonResponse.BlockPersonResponse.fromJson","href":"lemmy_api_client/BlockPersonResponse/BlockPersonResponse.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"BlockPersonResponse","kind":3,"href":"lemmy_api_client/BlockPersonResponse-class.html"}},{"name":"blocked","qualifiedName":"lemmy_api_client.BlockPersonResponse.blocked","href":"lemmy_api_client/BlockPersonResponse/blocked.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"BlockPersonResponse","kind":3,"href":"lemmy_api_client/BlockPersonResponse-class.html"}},{"name":"personView","qualifiedName":"lemmy_api_client.BlockPersonResponse.personView","href":"lemmy_api_client/BlockPersonResponse/personView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"BlockPersonResponse","kind":3,"href":"lemmy_api_client/BlockPersonResponse-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.BlockPersonResponse.toJson","href":"lemmy_api_client/BlockPersonResponse/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"BlockPersonResponse","kind":3,"href":"lemmy_api_client/BlockPersonResponse-class.html"}},{"name":"Comment","qualifiedName":"lemmy_api_client.Comment","href":"lemmy_api_client/Comment-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Comment","qualifiedName":"lemmy_api_client.Comment.Comment","href":"lemmy_api_client/Comment/Comment.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"Comment.fromJson","qualifiedName":"lemmy_api_client.Comment.Comment.fromJson","href":"lemmy_api_client/Comment/Comment.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"apId","qualifiedName":"lemmy_api_client.Comment.apId","href":"lemmy_api_client/Comment/apId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"content","qualifiedName":"lemmy_api_client.Comment.content","href":"lemmy_api_client/Comment/content.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"creatorId","qualifiedName":"lemmy_api_client.Comment.creatorId","href":"lemmy_api_client/Comment/creatorId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"deleted","qualifiedName":"lemmy_api_client.Comment.deleted","href":"lemmy_api_client/Comment/deleted.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"distinguished","qualifiedName":"lemmy_api_client.Comment.distinguished","href":"lemmy_api_client/Comment/distinguished.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Comment.id","href":"lemmy_api_client/Comment/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"languageId","qualifiedName":"lemmy_api_client.Comment.languageId","href":"lemmy_api_client/Comment/languageId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"local","qualifiedName":"lemmy_api_client.Comment.local","href":"lemmy_api_client/Comment/local.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"path","qualifiedName":"lemmy_api_client.Comment.path","href":"lemmy_api_client/Comment/path.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"postId","qualifiedName":"lemmy_api_client.Comment.postId","href":"lemmy_api_client/Comment/postId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Comment.published","href":"lemmy_api_client/Comment/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"removed","qualifiedName":"lemmy_api_client.Comment.removed","href":"lemmy_api_client/Comment/removed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Comment.toJson","href":"lemmy_api_client/Comment/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Comment.updated","href":"lemmy_api_client/Comment/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Comment","kind":3,"href":"lemmy_api_client/Comment-class.html"}},{"name":"CommentAggregates","qualifiedName":"lemmy_api_client.CommentAggregates","href":"lemmy_api_client/CommentAggregates-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommentAggregates","qualifiedName":"lemmy_api_client.CommentAggregates.CommentAggregates","href":"lemmy_api_client/CommentAggregates/CommentAggregates.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"CommentAggregates.fromJson","qualifiedName":"lemmy_api_client.CommentAggregates.CommentAggregates.fromJson","href":"lemmy_api_client/CommentAggregates/CommentAggregates.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"childCount","qualifiedName":"lemmy_api_client.CommentAggregates.childCount","href":"lemmy_api_client/CommentAggregates/childCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"commentId","qualifiedName":"lemmy_api_client.CommentAggregates.commentId","href":"lemmy_api_client/CommentAggregates/commentId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"downvotes","qualifiedName":"lemmy_api_client.CommentAggregates.downvotes","href":"lemmy_api_client/CommentAggregates/downvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.CommentAggregates.published","href":"lemmy_api_client/CommentAggregates/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"reportCount","qualifiedName":"lemmy_api_client.CommentAggregates.reportCount","href":"lemmy_api_client/CommentAggregates/reportCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"score","qualifiedName":"lemmy_api_client.CommentAggregates.score","href":"lemmy_api_client/CommentAggregates/score.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommentAggregates.toJson","href":"lemmy_api_client/CommentAggregates/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"unresolvedReportCount","qualifiedName":"lemmy_api_client.CommentAggregates.unresolvedReportCount","href":"lemmy_api_client/CommentAggregates/unresolvedReportCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"upvotes","qualifiedName":"lemmy_api_client.CommentAggregates.upvotes","href":"lemmy_api_client/CommentAggregates/upvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentAggregates","kind":3,"href":"lemmy_api_client/CommentAggregates-class.html"}},{"name":"CommentSortType","qualifiedName":"lemmy_api_client.CommentSortType","href":"lemmy_api_client/CommentSortType.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.CommentSortType.values","href":"lemmy_api_client/CommentSortType/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"CommentSortType","kind":5,"href":"lemmy_api_client/CommentSortType.html"}},{"name":"CommentView","qualifiedName":"lemmy_api_client.CommentView","href":"lemmy_api_client/CommentView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommentView","qualifiedName":"lemmy_api_client.CommentView.CommentView","href":"lemmy_api_client/CommentView/CommentView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"CommentView.fromJson","qualifiedName":"lemmy_api_client.CommentView.CommentView.fromJson","href":"lemmy_api_client/CommentView/CommentView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"bannedFromCommunity","qualifiedName":"lemmy_api_client.CommentView.bannedFromCommunity","href":"lemmy_api_client/CommentView/bannedFromCommunity.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"comment","qualifiedName":"lemmy_api_client.CommentView.comment","href":"lemmy_api_client/CommentView/comment.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"community","qualifiedName":"lemmy_api_client.CommentView.community","href":"lemmy_api_client/CommentView/community.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"counts","qualifiedName":"lemmy_api_client.CommentView.counts","href":"lemmy_api_client/CommentView/counts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"creator","qualifiedName":"lemmy_api_client.CommentView.creator","href":"lemmy_api_client/CommentView/creator.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"creatorBannedFromCommunity","qualifiedName":"lemmy_api_client.CommentView.creatorBannedFromCommunity","href":"lemmy_api_client/CommentView/creatorBannedFromCommunity.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"creatorBlocked","qualifiedName":"lemmy_api_client.CommentView.creatorBlocked","href":"lemmy_api_client/CommentView/creatorBlocked.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"creatorIsAdmin","qualifiedName":"lemmy_api_client.CommentView.creatorIsAdmin","href":"lemmy_api_client/CommentView/creatorIsAdmin.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"creatorIsModerator","qualifiedName":"lemmy_api_client.CommentView.creatorIsModerator","href":"lemmy_api_client/CommentView/creatorIsModerator.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"myVote","qualifiedName":"lemmy_api_client.CommentView.myVote","href":"lemmy_api_client/CommentView/myVote.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"post","qualifiedName":"lemmy_api_client.CommentView.post","href":"lemmy_api_client/CommentView/post.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"saved","qualifiedName":"lemmy_api_client.CommentView.saved","href":"lemmy_api_client/CommentView/saved.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"subscribed","qualifiedName":"lemmy_api_client.CommentView.subscribed","href":"lemmy_api_client/CommentView/subscribed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommentView.toJson","href":"lemmy_api_client/CommentView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommentView","kind":3,"href":"lemmy_api_client/CommentView-class.html"}},{"name":"Community","qualifiedName":"lemmy_api_client.Community","href":"lemmy_api_client/Community-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Community","qualifiedName":"lemmy_api_client.Community.Community","href":"lemmy_api_client/Community/Community.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"Community.fromJson","qualifiedName":"lemmy_api_client.Community.Community.fromJson","href":"lemmy_api_client/Community/Community.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"actorId","qualifiedName":"lemmy_api_client.Community.actorId","href":"lemmy_api_client/Community/actorId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"banner","qualifiedName":"lemmy_api_client.Community.banner","href":"lemmy_api_client/Community/banner.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"deleted","qualifiedName":"lemmy_api_client.Community.deleted","href":"lemmy_api_client/Community/deleted.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"description","qualifiedName":"lemmy_api_client.Community.description","href":"lemmy_api_client/Community/description.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"hidden","qualifiedName":"lemmy_api_client.Community.hidden","href":"lemmy_api_client/Community/hidden.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"icon","qualifiedName":"lemmy_api_client.Community.icon","href":"lemmy_api_client/Community/icon.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Community.id","href":"lemmy_api_client/Community/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"instanceId","qualifiedName":"lemmy_api_client.Community.instanceId","href":"lemmy_api_client/Community/instanceId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"local","qualifiedName":"lemmy_api_client.Community.local","href":"lemmy_api_client/Community/local.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"name","qualifiedName":"lemmy_api_client.Community.name","href":"lemmy_api_client/Community/name.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"nsfw","qualifiedName":"lemmy_api_client.Community.nsfw","href":"lemmy_api_client/Community/nsfw.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"postingRestrictedToMods","qualifiedName":"lemmy_api_client.Community.postingRestrictedToMods","href":"lemmy_api_client/Community/postingRestrictedToMods.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Community.published","href":"lemmy_api_client/Community/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"removed","qualifiedName":"lemmy_api_client.Community.removed","href":"lemmy_api_client/Community/removed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"sidebar","qualifiedName":"lemmy_api_client.Community.sidebar","href":"lemmy_api_client/Community/sidebar.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"title","qualifiedName":"lemmy_api_client.Community.title","href":"lemmy_api_client/Community/title.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Community.toJson","href":"lemmy_api_client/Community/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Community.updated","href":"lemmy_api_client/Community/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"visibility","qualifiedName":"lemmy_api_client.Community.visibility","href":"lemmy_api_client/Community/visibility.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Community","kind":3,"href":"lemmy_api_client/Community-class.html"}},{"name":"CommunityAggregates","qualifiedName":"lemmy_api_client.CommunityAggregates","href":"lemmy_api_client/CommunityAggregates-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommunityAggregates","qualifiedName":"lemmy_api_client.CommunityAggregates.CommunityAggregates","href":"lemmy_api_client/CommunityAggregates/CommunityAggregates.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"CommunityAggregates.fromJson","qualifiedName":"lemmy_api_client.CommunityAggregates.CommunityAggregates.fromJson","href":"lemmy_api_client/CommunityAggregates/CommunityAggregates.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"comments","qualifiedName":"lemmy_api_client.CommunityAggregates.comments","href":"lemmy_api_client/CommunityAggregates/comments.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"communityId","qualifiedName":"lemmy_api_client.CommunityAggregates.communityId","href":"lemmy_api_client/CommunityAggregates/communityId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"posts","qualifiedName":"lemmy_api_client.CommunityAggregates.posts","href":"lemmy_api_client/CommunityAggregates/posts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.CommunityAggregates.published","href":"lemmy_api_client/CommunityAggregates/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"subscribers","qualifiedName":"lemmy_api_client.CommunityAggregates.subscribers","href":"lemmy_api_client/CommunityAggregates/subscribers.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"subscribersLocal","qualifiedName":"lemmy_api_client.CommunityAggregates.subscribersLocal","href":"lemmy_api_client/CommunityAggregates/subscribersLocal.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommunityAggregates.toJson","href":"lemmy_api_client/CommunityAggregates/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"usersActiveDay","qualifiedName":"lemmy_api_client.CommunityAggregates.usersActiveDay","href":"lemmy_api_client/CommunityAggregates/usersActiveDay.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"usersActiveHalfYear","qualifiedName":"lemmy_api_client.CommunityAggregates.usersActiveHalfYear","href":"lemmy_api_client/CommunityAggregates/usersActiveHalfYear.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"usersActiveMonth","qualifiedName":"lemmy_api_client.CommunityAggregates.usersActiveMonth","href":"lemmy_api_client/CommunityAggregates/usersActiveMonth.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"usersActiveWeek","qualifiedName":"lemmy_api_client.CommunityAggregates.usersActiveWeek","href":"lemmy_api_client/CommunityAggregates/usersActiveWeek.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityAggregates","kind":3,"href":"lemmy_api_client/CommunityAggregates-class.html"}},{"name":"CommunityFollowerView","qualifiedName":"lemmy_api_client.CommunityFollowerView","href":"lemmy_api_client/CommunityFollowerView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommunityFollowerView","qualifiedName":"lemmy_api_client.CommunityFollowerView.CommunityFollowerView","href":"lemmy_api_client/CommunityFollowerView/CommunityFollowerView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityFollowerView","kind":3,"href":"lemmy_api_client/CommunityFollowerView-class.html"}},{"name":"CommunityFollowerView.fromJson","qualifiedName":"lemmy_api_client.CommunityFollowerView.CommunityFollowerView.fromJson","href":"lemmy_api_client/CommunityFollowerView/CommunityFollowerView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityFollowerView","kind":3,"href":"lemmy_api_client/CommunityFollowerView-class.html"}},{"name":"community","qualifiedName":"lemmy_api_client.CommunityFollowerView.community","href":"lemmy_api_client/CommunityFollowerView/community.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityFollowerView","kind":3,"href":"lemmy_api_client/CommunityFollowerView-class.html"}},{"name":"follower","qualifiedName":"lemmy_api_client.CommunityFollowerView.follower","href":"lemmy_api_client/CommunityFollowerView/follower.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityFollowerView","kind":3,"href":"lemmy_api_client/CommunityFollowerView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommunityFollowerView.toJson","href":"lemmy_api_client/CommunityFollowerView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityFollowerView","kind":3,"href":"lemmy_api_client/CommunityFollowerView-class.html"}},{"name":"CommunityModeratorView","qualifiedName":"lemmy_api_client.CommunityModeratorView","href":"lemmy_api_client/CommunityModeratorView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommunityModeratorView","qualifiedName":"lemmy_api_client.CommunityModeratorView.CommunityModeratorView","href":"lemmy_api_client/CommunityModeratorView/CommunityModeratorView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityModeratorView","kind":3,"href":"lemmy_api_client/CommunityModeratorView-class.html"}},{"name":"CommunityModeratorView.fromJson","qualifiedName":"lemmy_api_client.CommunityModeratorView.CommunityModeratorView.fromJson","href":"lemmy_api_client/CommunityModeratorView/CommunityModeratorView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityModeratorView","kind":3,"href":"lemmy_api_client/CommunityModeratorView-class.html"}},{"name":"community","qualifiedName":"lemmy_api_client.CommunityModeratorView.community","href":"lemmy_api_client/CommunityModeratorView/community.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityModeratorView","kind":3,"href":"lemmy_api_client/CommunityModeratorView-class.html"}},{"name":"moderator","qualifiedName":"lemmy_api_client.CommunityModeratorView.moderator","href":"lemmy_api_client/CommunityModeratorView/moderator.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityModeratorView","kind":3,"href":"lemmy_api_client/CommunityModeratorView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommunityModeratorView.toJson","href":"lemmy_api_client/CommunityModeratorView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityModeratorView","kind":3,"href":"lemmy_api_client/CommunityModeratorView-class.html"}},{"name":"CommunityResponse","qualifiedName":"lemmy_api_client.CommunityResponse","href":"lemmy_api_client/CommunityResponse-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommunityResponse","qualifiedName":"lemmy_api_client.CommunityResponse.CommunityResponse","href":"lemmy_api_client/CommunityResponse/CommunityResponse.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityResponse","kind":3,"href":"lemmy_api_client/CommunityResponse-class.html"}},{"name":"CommunityResponse.fromJson","qualifiedName":"lemmy_api_client.CommunityResponse.CommunityResponse.fromJson","href":"lemmy_api_client/CommunityResponse/CommunityResponse.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityResponse","kind":3,"href":"lemmy_api_client/CommunityResponse-class.html"}},{"name":"communityView","qualifiedName":"lemmy_api_client.CommunityResponse.communityView","href":"lemmy_api_client/CommunityResponse/communityView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityResponse","kind":3,"href":"lemmy_api_client/CommunityResponse-class.html"}},{"name":"discussionLanguages","qualifiedName":"lemmy_api_client.CommunityResponse.discussionLanguages","href":"lemmy_api_client/CommunityResponse/discussionLanguages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityResponse","kind":3,"href":"lemmy_api_client/CommunityResponse-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommunityResponse.toJson","href":"lemmy_api_client/CommunityResponse/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityResponse","kind":3,"href":"lemmy_api_client/CommunityResponse-class.html"}},{"name":"CommunityView","qualifiedName":"lemmy_api_client.CommunityView","href":"lemmy_api_client/CommunityView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"CommunityView","qualifiedName":"lemmy_api_client.CommunityView.CommunityView","href":"lemmy_api_client/CommunityView/CommunityView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"CommunityView.fromJson","qualifiedName":"lemmy_api_client.CommunityView.CommunityView.fromJson","href":"lemmy_api_client/CommunityView/CommunityView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"bannedFromCommunity","qualifiedName":"lemmy_api_client.CommunityView.bannedFromCommunity","href":"lemmy_api_client/CommunityView/bannedFromCommunity.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"blocked","qualifiedName":"lemmy_api_client.CommunityView.blocked","href":"lemmy_api_client/CommunityView/blocked.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"community","qualifiedName":"lemmy_api_client.CommunityView.community","href":"lemmy_api_client/CommunityView/community.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"counts","qualifiedName":"lemmy_api_client.CommunityView.counts","href":"lemmy_api_client/CommunityView/counts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"subscribed","qualifiedName":"lemmy_api_client.CommunityView.subscribed","href":"lemmy_api_client/CommunityView/subscribed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.CommunityView.toJson","href":"lemmy_api_client/CommunityView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"CommunityView","kind":3,"href":"lemmy_api_client/CommunityView-class.html"}},{"name":"CommunityVisibility","qualifiedName":"lemmy_api_client.CommunityVisibility","href":"lemmy_api_client/CommunityVisibility.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.CommunityVisibility.values","href":"lemmy_api_client/CommunityVisibility/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"CommunityVisibility","kind":5,"href":"lemmy_api_client/CommunityVisibility.html"}},{"name":"FederationMode","qualifiedName":"lemmy_api_client.FederationMode","href":"lemmy_api_client/FederationMode.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.FederationMode.values","href":"lemmy_api_client/FederationMode/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"FederationMode","kind":5,"href":"lemmy_api_client/FederationMode.html"}},{"name":"FullAccountView","qualifiedName":"lemmy_api_client.FullAccountView","href":"lemmy_api_client/FullAccountView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"FullAccountView","qualifiedName":"lemmy_api_client.FullAccountView.FullAccountView","href":"lemmy_api_client/FullAccountView/FullAccountView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"FullAccountView.fromJson","qualifiedName":"lemmy_api_client.FullAccountView.FullAccountView.fromJson","href":"lemmy_api_client/FullAccountView/FullAccountView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"communityBlocks","qualifiedName":"lemmy_api_client.FullAccountView.communityBlocks","href":"lemmy_api_client/FullAccountView/communityBlocks.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"discussionLanguages","qualifiedName":"lemmy_api_client.FullAccountView.discussionLanguages","href":"lemmy_api_client/FullAccountView/discussionLanguages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"follows","qualifiedName":"lemmy_api_client.FullAccountView.follows","href":"lemmy_api_client/FullAccountView/follows.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"instanceBlocks","qualifiedName":"lemmy_api_client.FullAccountView.instanceBlocks","href":"lemmy_api_client/FullAccountView/instanceBlocks.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"localUserView","qualifiedName":"lemmy_api_client.FullAccountView.localUserView","href":"lemmy_api_client/FullAccountView/localUserView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"moderates","qualifiedName":"lemmy_api_client.FullAccountView.moderates","href":"lemmy_api_client/FullAccountView/moderates.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"personBlocks","qualifiedName":"lemmy_api_client.FullAccountView.personBlocks","href":"lemmy_api_client/FullAccountView/personBlocks.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.FullAccountView.toJson","href":"lemmy_api_client/FullAccountView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullAccountView","kind":3,"href":"lemmy_api_client/FullAccountView-class.html"}},{"name":"FullPersonView","qualifiedName":"lemmy_api_client.FullPersonView","href":"lemmy_api_client/FullPersonView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"FullPersonView","qualifiedName":"lemmy_api_client.FullPersonView.FullPersonView","href":"lemmy_api_client/FullPersonView/FullPersonView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"FullPersonView.fromJson","qualifiedName":"lemmy_api_client.FullPersonView.FullPersonView.fromJson","href":"lemmy_api_client/FullPersonView/FullPersonView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"comments","qualifiedName":"lemmy_api_client.FullPersonView.comments","href":"lemmy_api_client/FullPersonView/comments.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"moderates","qualifiedName":"lemmy_api_client.FullPersonView.moderates","href":"lemmy_api_client/FullPersonView/moderates.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"personView","qualifiedName":"lemmy_api_client.FullPersonView.personView","href":"lemmy_api_client/FullPersonView/personView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"posts","qualifiedName":"lemmy_api_client.FullPersonView.posts","href":"lemmy_api_client/FullPersonView/posts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"site","qualifiedName":"lemmy_api_client.FullPersonView.site","href":"lemmy_api_client/FullPersonView/site.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.FullPersonView.toJson","href":"lemmy_api_client/FullPersonView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPersonView","kind":3,"href":"lemmy_api_client/FullPersonView-class.html"}},{"name":"FullPostView","qualifiedName":"lemmy_api_client.FullPostView","href":"lemmy_api_client/FullPostView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"FullPostView","qualifiedName":"lemmy_api_client.FullPostView.FullPostView","href":"lemmy_api_client/FullPostView/FullPostView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"FullPostView.fromJson","qualifiedName":"lemmy_api_client.FullPostView.FullPostView.fromJson","href":"lemmy_api_client/FullPostView/FullPostView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"communityView","qualifiedName":"lemmy_api_client.FullPostView.communityView","href":"lemmy_api_client/FullPostView/communityView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"crossPosts","qualifiedName":"lemmy_api_client.FullPostView.crossPosts","href":"lemmy_api_client/FullPostView/crossPosts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"moderators","qualifiedName":"lemmy_api_client.FullPostView.moderators","href":"lemmy_api_client/FullPostView/moderators.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"postView","qualifiedName":"lemmy_api_client.FullPostView.postView","href":"lemmy_api_client/FullPostView/postView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.FullPostView.toJson","href":"lemmy_api_client/FullPostView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullPostView","kind":3,"href":"lemmy_api_client/FullPostView-class.html"}},{"name":"FullSiteView","qualifiedName":"lemmy_api_client.FullSiteView","href":"lemmy_api_client/FullSiteView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"FullSiteView","qualifiedName":"lemmy_api_client.FullSiteView.FullSiteView","href":"lemmy_api_client/FullSiteView/FullSiteView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"FullSiteView.fromJson","qualifiedName":"lemmy_api_client.FullSiteView.FullSiteView.fromJson","href":"lemmy_api_client/FullSiteView/FullSiteView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"adminOAuthProviders","qualifiedName":"lemmy_api_client.FullSiteView.adminOAuthProviders","href":"lemmy_api_client/FullSiteView/adminOAuthProviders.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"admins","qualifiedName":"lemmy_api_client.FullSiteView.admins","href":"lemmy_api_client/FullSiteView/admins.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"allLanguages","qualifiedName":"lemmy_api_client.FullSiteView.allLanguages","href":"lemmy_api_client/FullSiteView/allLanguages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"blockedUrls","qualifiedName":"lemmy_api_client.FullSiteView.blockedUrls","href":"lemmy_api_client/FullSiteView/blockedUrls.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"discussionLanguages","qualifiedName":"lemmy_api_client.FullSiteView.discussionLanguages","href":"lemmy_api_client/FullSiteView/discussionLanguages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"oauthProviders","qualifiedName":"lemmy_api_client.FullSiteView.oauthProviders","href":"lemmy_api_client/FullSiteView/oauthProviders.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"siteView","qualifiedName":"lemmy_api_client.FullSiteView.siteView","href":"lemmy_api_client/FullSiteView/siteView.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"tagline","qualifiedName":"lemmy_api_client.FullSiteView.tagline","href":"lemmy_api_client/FullSiteView/tagline.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.FullSiteView.toJson","href":"lemmy_api_client/FullSiteView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"version","qualifiedName":"lemmy_api_client.FullSiteView.version","href":"lemmy_api_client/FullSiteView/version.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"FullSiteView","kind":3,"href":"lemmy_api_client/FullSiteView-class.html"}},{"name":"ImageDetails","qualifiedName":"lemmy_api_client.ImageDetails","href":"lemmy_api_client/ImageDetails-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"ImageDetails","qualifiedName":"lemmy_api_client.ImageDetails.ImageDetails","href":"lemmy_api_client/ImageDetails/ImageDetails.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"ImageDetails.fromJson","qualifiedName":"lemmy_api_client.ImageDetails.ImageDetails.fromJson","href":"lemmy_api_client/ImageDetails/ImageDetails.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"contentType","qualifiedName":"lemmy_api_client.ImageDetails.contentType","href":"lemmy_api_client/ImageDetails/contentType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"height","qualifiedName":"lemmy_api_client.ImageDetails.height","href":"lemmy_api_client/ImageDetails/height.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"link","qualifiedName":"lemmy_api_client.ImageDetails.link","href":"lemmy_api_client/ImageDetails/link.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.ImageDetails.toJson","href":"lemmy_api_client/ImageDetails/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"width","qualifiedName":"lemmy_api_client.ImageDetails.width","href":"lemmy_api_client/ImageDetails/width.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"ImageDetails","kind":3,"href":"lemmy_api_client/ImageDetails-class.html"}},{"name":"Instance","qualifiedName":"lemmy_api_client.Instance","href":"lemmy_api_client/Instance-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Instance","qualifiedName":"lemmy_api_client.Instance.Instance","href":"lemmy_api_client/Instance/Instance.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"Instance.fromJson","qualifiedName":"lemmy_api_client.Instance.Instance.fromJson","href":"lemmy_api_client/Instance/Instance.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"domain","qualifiedName":"lemmy_api_client.Instance.domain","href":"lemmy_api_client/Instance/domain.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Instance.id","href":"lemmy_api_client/Instance/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Instance.published","href":"lemmy_api_client/Instance/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"software","qualifiedName":"lemmy_api_client.Instance.software","href":"lemmy_api_client/Instance/software.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Instance.toJson","href":"lemmy_api_client/Instance/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Instance.updated","href":"lemmy_api_client/Instance/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"version","qualifiedName":"lemmy_api_client.Instance.version","href":"lemmy_api_client/Instance/version.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Instance","kind":3,"href":"lemmy_api_client/Instance-class.html"}},{"name":"Language","qualifiedName":"lemmy_api_client.Language","href":"lemmy_api_client/Language-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Language","qualifiedName":"lemmy_api_client.Language.Language","href":"lemmy_api_client/Language/Language.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Language","kind":3,"href":"lemmy_api_client/Language-class.html"}},{"name":"Language.fromJson","qualifiedName":"lemmy_api_client.Language.Language.fromJson","href":"lemmy_api_client/Language/Language.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Language","kind":3,"href":"lemmy_api_client/Language-class.html"}},{"name":"code","qualifiedName":"lemmy_api_client.Language.code","href":"lemmy_api_client/Language/code.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Language","kind":3,"href":"lemmy_api_client/Language-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Language.id","href":"lemmy_api_client/Language/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Language","kind":3,"href":"lemmy_api_client/Language-class.html"}},{"name":"name","qualifiedName":"lemmy_api_client.Language.name","href":"lemmy_api_client/Language/name.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Language","kind":3,"href":"lemmy_api_client/Language-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Language.toJson","href":"lemmy_api_client/Language/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Language","kind":3,"href":"lemmy_api_client/Language-class.html"}},{"name":"LemmyClient","qualifiedName":"lemmy_api_client.LemmyClient","href":"lemmy_api_client/LemmyClient-class.html","kind":3,"packageRank":0,"desc":"A client that interacts with a Lemmy instance. The client must be initialized before it can be used.","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"account","qualifiedName":"lemmy_api_client.LemmyClient.account","href":"lemmy_api_client/LemmyClient/account.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"Interface to work with AccountHelper instances.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"accountInformation","qualifiedName":"lemmy_api_client.LemmyClient.accountInformation","href":"lemmy_api_client/LemmyClient/accountInformation.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The account information. This is fetched when the client is initialized if the auth parameter is passed in.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"auth","qualifiedName":"lemmy_api_client.LemmyClient.auth","href":"lemmy_api_client/LemmyClient/auth.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The authentication token for the current client instance.\nThis is used to authenticate requests to the Lemmy instance as a given user.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"community","qualifiedName":"lemmy_api_client.LemmyClient.community","href":"lemmy_api_client/LemmyClient/community.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"feed","qualifiedName":"lemmy_api_client.LemmyClient.feed","href":"lemmy_api_client/LemmyClient/feed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"Interface to work with FeedHelper instances.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"get","qualifiedName":"lemmy_api_client.LemmyClient.get","href":"lemmy_api_client/LemmyClient/get.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"Helper method to perform GET requests.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"httpClient","qualifiedName":"lemmy_api_client.LemmyClient.httpClient","href":"lemmy_api_client/LemmyClient/httpClient.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The HTTP client to use when interacting with the Lemmy instance.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"initialize","qualifiedName":"lemmy_api_client.LemmyClient.initialize","href":"lemmy_api_client/LemmyClient/initialize.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"Initializes the client with the given parameters.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"instance","qualifiedName":"lemmy_api_client.LemmyClient.instance","href":"lemmy_api_client/LemmyClient/instance.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The URL of the Lemmy instance, excluding the scheme.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"post","qualifiedName":"lemmy_api_client.LemmyClient.post","href":"lemmy_api_client/LemmyClient/post.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"Helper method to perform POST requests.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"scheme","qualifiedName":"lemmy_api_client.LemmyClient.scheme","href":"lemmy_api_client/LemmyClient/scheme.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The scheme to use when interacting with the Lemmy instance. Defaults to 'https'.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"site","qualifiedName":"lemmy_api_client.LemmyClient.site","href":"lemmy_api_client/LemmyClient/site.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"Interface to work with SiteHelper instances.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"siteInformation","qualifiedName":"lemmy_api_client.LemmyClient.siteInformation","href":"lemmy_api_client/LemmyClient/siteInformation.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The site information. This is fetched when the client is initialized.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"user","qualifiedName":"lemmy_api_client.LemmyClient.user","href":"lemmy_api_client/LemmyClient/user.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"Interface to work with UserHelper instances.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"version","qualifiedName":"lemmy_api_client.LemmyClient.version","href":"lemmy_api_client/LemmyClient/version.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"The version of the Lemmy API to use. Defaults to 'v4'.","enclosedBy":{"name":"LemmyClient","kind":3,"href":"lemmy_api_client/LemmyClient-class.html"}},{"name":"ListingType","qualifiedName":"lemmy_api_client.ListingType","href":"lemmy_api_client/ListingType.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.ListingType.values","href":"lemmy_api_client/ListingType/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"ListingType","kind":5,"href":"lemmy_api_client/ListingType.html"}},{"name":"LocalSite","qualifiedName":"lemmy_api_client.LocalSite","href":"lemmy_api_client/LocalSite-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"LocalSite","qualifiedName":"lemmy_api_client.LocalSite.LocalSite","href":"lemmy_api_client/LocalSite/LocalSite.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"LocalSite.fromJson","qualifiedName":"lemmy_api_client.LocalSite.LocalSite.fromJson","href":"lemmy_api_client/LocalSite/LocalSite.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"actorNameMaxLength","qualifiedName":"lemmy_api_client.LocalSite.actorNameMaxLength","href":"lemmy_api_client/LocalSite/actorNameMaxLength.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"applicationEmailAdmins","qualifiedName":"lemmy_api_client.LocalSite.applicationEmailAdmins","href":"lemmy_api_client/LocalSite/applicationEmailAdmins.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"applicationQuestion","qualifiedName":"lemmy_api_client.LocalSite.applicationQuestion","href":"lemmy_api_client/LocalSite/applicationQuestion.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"captchaDifficulty","qualifiedName":"lemmy_api_client.LocalSite.captchaDifficulty","href":"lemmy_api_client/LocalSite/captchaDifficulty.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"captchaEnabled","qualifiedName":"lemmy_api_client.LocalSite.captchaEnabled","href":"lemmy_api_client/LocalSite/captchaEnabled.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"commentDownvotes","qualifiedName":"lemmy_api_client.LocalSite.commentDownvotes","href":"lemmy_api_client/LocalSite/commentDownvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"commentUpvotes","qualifiedName":"lemmy_api_client.LocalSite.commentUpvotes","href":"lemmy_api_client/LocalSite/commentUpvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"communityCreationAdminOnly","qualifiedName":"lemmy_api_client.LocalSite.communityCreationAdminOnly","href":"lemmy_api_client/LocalSite/communityCreationAdminOnly.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"defaultCommentSortType","qualifiedName":"lemmy_api_client.LocalSite.defaultCommentSortType","href":"lemmy_api_client/LocalSite/defaultCommentSortType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"defaultPostListingMode","qualifiedName":"lemmy_api_client.LocalSite.defaultPostListingMode","href":"lemmy_api_client/LocalSite/defaultPostListingMode.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"defaultPostListingType","qualifiedName":"lemmy_api_client.LocalSite.defaultPostListingType","href":"lemmy_api_client/LocalSite/defaultPostListingType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"defaultPostSortType","qualifiedName":"lemmy_api_client.LocalSite.defaultPostSortType","href":"lemmy_api_client/LocalSite/defaultPostSortType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"defaultTheme","qualifiedName":"lemmy_api_client.LocalSite.defaultTheme","href":"lemmy_api_client/LocalSite/defaultTheme.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"federationEnabled","qualifiedName":"lemmy_api_client.LocalSite.federationEnabled","href":"lemmy_api_client/LocalSite/federationEnabled.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"federationSignedFetch","qualifiedName":"lemmy_api_client.LocalSite.federationSignedFetch","href":"lemmy_api_client/LocalSite/federationSignedFetch.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"hideModlogModNames","qualifiedName":"lemmy_api_client.LocalSite.hideModlogModNames","href":"lemmy_api_client/LocalSite/hideModlogModNames.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.LocalSite.id","href":"lemmy_api_client/LocalSite/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"legalInformation","qualifiedName":"lemmy_api_client.LocalSite.legalInformation","href":"lemmy_api_client/LocalSite/legalInformation.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"oauthRegistration","qualifiedName":"lemmy_api_client.LocalSite.oauthRegistration","href":"lemmy_api_client/LocalSite/oauthRegistration.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"postDownvotes","qualifiedName":"lemmy_api_client.LocalSite.postDownvotes","href":"lemmy_api_client/LocalSite/postDownvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"postUpvotes","qualifiedName":"lemmy_api_client.LocalSite.postUpvotes","href":"lemmy_api_client/LocalSite/postUpvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"privateInstance","qualifiedName":"lemmy_api_client.LocalSite.privateInstance","href":"lemmy_api_client/LocalSite/privateInstance.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.LocalSite.published","href":"lemmy_api_client/LocalSite/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"registrationMode","qualifiedName":"lemmy_api_client.LocalSite.registrationMode","href":"lemmy_api_client/LocalSite/registrationMode.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"reportsEmailAdmins","qualifiedName":"lemmy_api_client.LocalSite.reportsEmailAdmins","href":"lemmy_api_client/LocalSite/reportsEmailAdmins.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"requireEmailVerification","qualifiedName":"lemmy_api_client.LocalSite.requireEmailVerification","href":"lemmy_api_client/LocalSite/requireEmailVerification.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"siteId","qualifiedName":"lemmy_api_client.LocalSite.siteId","href":"lemmy_api_client/LocalSite/siteId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"siteSetup","qualifiedName":"lemmy_api_client.LocalSite.siteSetup","href":"lemmy_api_client/LocalSite/siteSetup.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"slurFilterRegex","qualifiedName":"lemmy_api_client.LocalSite.slurFilterRegex","href":"lemmy_api_client/LocalSite/slurFilterRegex.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.LocalSite.toJson","href":"lemmy_api_client/LocalSite/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.LocalSite.updated","href":"lemmy_api_client/LocalSite/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSite","kind":3,"href":"lemmy_api_client/LocalSite-class.html"}},{"name":"LocalSiteRateLimit","qualifiedName":"lemmy_api_client.LocalSiteRateLimit","href":"lemmy_api_client/LocalSiteRateLimit-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"LocalSiteRateLimit","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.LocalSiteRateLimit","href":"lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"LocalSiteRateLimit.fromJson","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.LocalSiteRateLimit.fromJson","href":"lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"comment","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.comment","href":"lemmy_api_client/LocalSiteRateLimit/comment.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"commentPerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.commentPerSecond","href":"lemmy_api_client/LocalSiteRateLimit/commentPerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"image","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.image","href":"lemmy_api_client/LocalSiteRateLimit/image.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"imagePerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.imagePerSecond","href":"lemmy_api_client/LocalSiteRateLimit/imagePerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"importUserSettings","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.importUserSettings","href":"lemmy_api_client/LocalSiteRateLimit/importUserSettings.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"importUserSettingsPerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.importUserSettingsPerSecond","href":"lemmy_api_client/LocalSiteRateLimit/importUserSettingsPerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"localSiteId","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.localSiteId","href":"lemmy_api_client/LocalSiteRateLimit/localSiteId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"message","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.message","href":"lemmy_api_client/LocalSiteRateLimit/message.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"messagePerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.messagePerSecond","href":"lemmy_api_client/LocalSiteRateLimit/messagePerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"post","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.post","href":"lemmy_api_client/LocalSiteRateLimit/post.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"postPerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.postPerSecond","href":"lemmy_api_client/LocalSiteRateLimit/postPerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.published","href":"lemmy_api_client/LocalSiteRateLimit/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"register","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.register","href":"lemmy_api_client/LocalSiteRateLimit/register.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"registerPerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.registerPerSecond","href":"lemmy_api_client/LocalSiteRateLimit/registerPerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"search","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.search","href":"lemmy_api_client/LocalSiteRateLimit/search.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"searchPerSecond","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.searchPerSecond","href":"lemmy_api_client/LocalSiteRateLimit/searchPerSecond.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.toJson","href":"lemmy_api_client/LocalSiteRateLimit/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.LocalSiteRateLimit.updated","href":"lemmy_api_client/LocalSiteRateLimit/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteRateLimit","kind":3,"href":"lemmy_api_client/LocalSiteRateLimit-class.html"}},{"name":"LocalSiteUrlBlocklist","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist","href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"LocalSiteUrlBlocklist","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.LocalSiteUrlBlocklist","href":"lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"LocalSiteUrlBlocklist.fromJson","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.LocalSiteUrlBlocklist.fromJson","href":"lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.id","href":"lemmy_api_client/LocalSiteUrlBlocklist/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.published","href":"lemmy_api_client/LocalSiteUrlBlocklist/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.toJson","href":"lemmy_api_client/LocalSiteUrlBlocklist/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.updated","href":"lemmy_api_client/LocalSiteUrlBlocklist/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"url","qualifiedName":"lemmy_api_client.LocalSiteUrlBlocklist.url","href":"lemmy_api_client/LocalSiteUrlBlocklist/url.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LocalSiteUrlBlocklist","kind":3,"href":"lemmy_api_client/LocalSiteUrlBlocklist-class.html"}},{"name":"LoginResponse","qualifiedName":"lemmy_api_client.LoginResponse","href":"lemmy_api_client/LoginResponse-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"LoginResponse","qualifiedName":"lemmy_api_client.LoginResponse.LoginResponse","href":"lemmy_api_client/LoginResponse/LoginResponse.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LoginResponse","kind":3,"href":"lemmy_api_client/LoginResponse-class.html"}},{"name":"LoginResponse.fromJson","qualifiedName":"lemmy_api_client.LoginResponse.LoginResponse.fromJson","href":"lemmy_api_client/LoginResponse/LoginResponse.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"LoginResponse","kind":3,"href":"lemmy_api_client/LoginResponse-class.html"}},{"name":"jwt","qualifiedName":"lemmy_api_client.LoginResponse.jwt","href":"lemmy_api_client/LoginResponse/jwt.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LoginResponse","kind":3,"href":"lemmy_api_client/LoginResponse-class.html"}},{"name":"registrationCreated","qualifiedName":"lemmy_api_client.LoginResponse.registrationCreated","href":"lemmy_api_client/LoginResponse/registrationCreated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LoginResponse","kind":3,"href":"lemmy_api_client/LoginResponse-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.LoginResponse.toJson","href":"lemmy_api_client/LoginResponse/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LoginResponse","kind":3,"href":"lemmy_api_client/LoginResponse-class.html"}},{"name":"verifyEmailSent","qualifiedName":"lemmy_api_client.LoginResponse.verifyEmailSent","href":"lemmy_api_client/LoginResponse/verifyEmailSent.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"LoginResponse","kind":3,"href":"lemmy_api_client/LoginResponse-class.html"}},{"name":"OAuthProvider","qualifiedName":"lemmy_api_client.OAuthProvider","href":"lemmy_api_client/OAuthProvider-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"OAuthProvider","qualifiedName":"lemmy_api_client.OAuthProvider.OAuthProvider","href":"lemmy_api_client/OAuthProvider/OAuthProvider.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"OAuthProvider.fromJson","qualifiedName":"lemmy_api_client.OAuthProvider.OAuthProvider.fromJson","href":"lemmy_api_client/OAuthProvider/OAuthProvider.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"accountLinkingEnabled","qualifiedName":"lemmy_api_client.OAuthProvider.accountLinkingEnabled","href":"lemmy_api_client/OAuthProvider/accountLinkingEnabled.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"authorizationEndpoint","qualifiedName":"lemmy_api_client.OAuthProvider.authorizationEndpoint","href":"lemmy_api_client/OAuthProvider/authorizationEndpoint.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"autoVerifyEmail","qualifiedName":"lemmy_api_client.OAuthProvider.autoVerifyEmail","href":"lemmy_api_client/OAuthProvider/autoVerifyEmail.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"clientId","qualifiedName":"lemmy_api_client.OAuthProvider.clientId","href":"lemmy_api_client/OAuthProvider/clientId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"displayName","qualifiedName":"lemmy_api_client.OAuthProvider.displayName","href":"lemmy_api_client/OAuthProvider/displayName.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"enabled","qualifiedName":"lemmy_api_client.OAuthProvider.enabled","href":"lemmy_api_client/OAuthProvider/enabled.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.OAuthProvider.id","href":"lemmy_api_client/OAuthProvider/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"idClaim","qualifiedName":"lemmy_api_client.OAuthProvider.idClaim","href":"lemmy_api_client/OAuthProvider/idClaim.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"issuer","qualifiedName":"lemmy_api_client.OAuthProvider.issuer","href":"lemmy_api_client/OAuthProvider/issuer.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.OAuthProvider.published","href":"lemmy_api_client/OAuthProvider/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"scopes","qualifiedName":"lemmy_api_client.OAuthProvider.scopes","href":"lemmy_api_client/OAuthProvider/scopes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.OAuthProvider.toJson","href":"lemmy_api_client/OAuthProvider/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"tokenEndpoint","qualifiedName":"lemmy_api_client.OAuthProvider.tokenEndpoint","href":"lemmy_api_client/OAuthProvider/tokenEndpoint.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.OAuthProvider.updated","href":"lemmy_api_client/OAuthProvider/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"usePkce","qualifiedName":"lemmy_api_client.OAuthProvider.usePkce","href":"lemmy_api_client/OAuthProvider/usePkce.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"userinfoEndpoint","qualifiedName":"lemmy_api_client.OAuthProvider.userinfoEndpoint","href":"lemmy_api_client/OAuthProvider/userinfoEndpoint.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"OAuthProvider","kind":3,"href":"lemmy_api_client/OAuthProvider-class.html"}},{"name":"Person","qualifiedName":"lemmy_api_client.Person","href":"lemmy_api_client/Person-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Person","qualifiedName":"lemmy_api_client.Person.Person","href":"lemmy_api_client/Person/Person.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"Person.fromJson","qualifiedName":"lemmy_api_client.Person.Person.fromJson","href":"lemmy_api_client/Person/Person.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"actorId","qualifiedName":"lemmy_api_client.Person.actorId","href":"lemmy_api_client/Person/actorId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"avatar","qualifiedName":"lemmy_api_client.Person.avatar","href":"lemmy_api_client/Person/avatar.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"banExpires","qualifiedName":"lemmy_api_client.Person.banExpires","href":"lemmy_api_client/Person/banExpires.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"banned","qualifiedName":"lemmy_api_client.Person.banned","href":"lemmy_api_client/Person/banned.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"banner","qualifiedName":"lemmy_api_client.Person.banner","href":"lemmy_api_client/Person/banner.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"bio","qualifiedName":"lemmy_api_client.Person.bio","href":"lemmy_api_client/Person/bio.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"botAccount","qualifiedName":"lemmy_api_client.Person.botAccount","href":"lemmy_api_client/Person/botAccount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"deleted","qualifiedName":"lemmy_api_client.Person.deleted","href":"lemmy_api_client/Person/deleted.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"displayName","qualifiedName":"lemmy_api_client.Person.displayName","href":"lemmy_api_client/Person/displayName.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Person.id","href":"lemmy_api_client/Person/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"instanceId","qualifiedName":"lemmy_api_client.Person.instanceId","href":"lemmy_api_client/Person/instanceId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"local","qualifiedName":"lemmy_api_client.Person.local","href":"lemmy_api_client/Person/local.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"matrixUserId","qualifiedName":"lemmy_api_client.Person.matrixUserId","href":"lemmy_api_client/Person/matrixUserId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"name","qualifiedName":"lemmy_api_client.Person.name","href":"lemmy_api_client/Person/name.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Person.published","href":"lemmy_api_client/Person/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Person.toJson","href":"lemmy_api_client/Person/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Person.updated","href":"lemmy_api_client/Person/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Person","kind":3,"href":"lemmy_api_client/Person-class.html"}},{"name":"PersonAggregates","qualifiedName":"lemmy_api_client.PersonAggregates","href":"lemmy_api_client/PersonAggregates-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"PersonAggregates","qualifiedName":"lemmy_api_client.PersonAggregates.PersonAggregates","href":"lemmy_api_client/PersonAggregates/PersonAggregates.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonAggregates","kind":3,"href":"lemmy_api_client/PersonAggregates-class.html"}},{"name":"PersonAggregates.fromJson","qualifiedName":"lemmy_api_client.PersonAggregates.PersonAggregates.fromJson","href":"lemmy_api_client/PersonAggregates/PersonAggregates.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonAggregates","kind":3,"href":"lemmy_api_client/PersonAggregates-class.html"}},{"name":"commentCount","qualifiedName":"lemmy_api_client.PersonAggregates.commentCount","href":"lemmy_api_client/PersonAggregates/commentCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonAggregates","kind":3,"href":"lemmy_api_client/PersonAggregates-class.html"}},{"name":"personId","qualifiedName":"lemmy_api_client.PersonAggregates.personId","href":"lemmy_api_client/PersonAggregates/personId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonAggregates","kind":3,"href":"lemmy_api_client/PersonAggregates-class.html"}},{"name":"postCount","qualifiedName":"lemmy_api_client.PersonAggregates.postCount","href":"lemmy_api_client/PersonAggregates/postCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonAggregates","kind":3,"href":"lemmy_api_client/PersonAggregates-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.PersonAggregates.toJson","href":"lemmy_api_client/PersonAggregates/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonAggregates","kind":3,"href":"lemmy_api_client/PersonAggregates-class.html"}},{"name":"PersonView","qualifiedName":"lemmy_api_client.PersonView","href":"lemmy_api_client/PersonView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"PersonView","qualifiedName":"lemmy_api_client.PersonView.PersonView","href":"lemmy_api_client/PersonView/PersonView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonView","kind":3,"href":"lemmy_api_client/PersonView-class.html"}},{"name":"PersonView.fromJson","qualifiedName":"lemmy_api_client.PersonView.PersonView.fromJson","href":"lemmy_api_client/PersonView/PersonView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonView","kind":3,"href":"lemmy_api_client/PersonView-class.html"}},{"name":"counts","qualifiedName":"lemmy_api_client.PersonView.counts","href":"lemmy_api_client/PersonView/counts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonView","kind":3,"href":"lemmy_api_client/PersonView-class.html"}},{"name":"isAdmin","qualifiedName":"lemmy_api_client.PersonView.isAdmin","href":"lemmy_api_client/PersonView/isAdmin.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonView","kind":3,"href":"lemmy_api_client/PersonView-class.html"}},{"name":"person","qualifiedName":"lemmy_api_client.PersonView.person","href":"lemmy_api_client/PersonView/person.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonView","kind":3,"href":"lemmy_api_client/PersonView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.PersonView.toJson","href":"lemmy_api_client/PersonView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PersonView","kind":3,"href":"lemmy_api_client/PersonView-class.html"}},{"name":"Post","qualifiedName":"lemmy_api_client.Post","href":"lemmy_api_client/Post-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Post","qualifiedName":"lemmy_api_client.Post.Post","href":"lemmy_api_client/Post/Post.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"Post.fromJson","qualifiedName":"lemmy_api_client.Post.Post.fromJson","href":"lemmy_api_client/Post/Post.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"altText","qualifiedName":"lemmy_api_client.Post.altText","href":"lemmy_api_client/Post/altText.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"apId","qualifiedName":"lemmy_api_client.Post.apId","href":"lemmy_api_client/Post/apId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"body","qualifiedName":"lemmy_api_client.Post.body","href":"lemmy_api_client/Post/body.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"communityId","qualifiedName":"lemmy_api_client.Post.communityId","href":"lemmy_api_client/Post/communityId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"creatorId","qualifiedName":"lemmy_api_client.Post.creatorId","href":"lemmy_api_client/Post/creatorId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"deleted","qualifiedName":"lemmy_api_client.Post.deleted","href":"lemmy_api_client/Post/deleted.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"embedDescription","qualifiedName":"lemmy_api_client.Post.embedDescription","href":"lemmy_api_client/Post/embedDescription.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"embedTitle","qualifiedName":"lemmy_api_client.Post.embedTitle","href":"lemmy_api_client/Post/embedTitle.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"embedVideoUrl","qualifiedName":"lemmy_api_client.Post.embedVideoUrl","href":"lemmy_api_client/Post/embedVideoUrl.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"featuredCommunity","qualifiedName":"lemmy_api_client.Post.featuredCommunity","href":"lemmy_api_client/Post/featuredCommunity.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"featuredLocal","qualifiedName":"lemmy_api_client.Post.featuredLocal","href":"lemmy_api_client/Post/featuredLocal.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Post.id","href":"lemmy_api_client/Post/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"languageId","qualifiedName":"lemmy_api_client.Post.languageId","href":"lemmy_api_client/Post/languageId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"local","qualifiedName":"lemmy_api_client.Post.local","href":"lemmy_api_client/Post/local.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"locked","qualifiedName":"lemmy_api_client.Post.locked","href":"lemmy_api_client/Post/locked.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"name","qualifiedName":"lemmy_api_client.Post.name","href":"lemmy_api_client/Post/name.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"nsfw","qualifiedName":"lemmy_api_client.Post.nsfw","href":"lemmy_api_client/Post/nsfw.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Post.published","href":"lemmy_api_client/Post/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"removed","qualifiedName":"lemmy_api_client.Post.removed","href":"lemmy_api_client/Post/removed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"scheduledPublishTime","qualifiedName":"lemmy_api_client.Post.scheduledPublishTime","href":"lemmy_api_client/Post/scheduledPublishTime.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"thumbnailUrl","qualifiedName":"lemmy_api_client.Post.thumbnailUrl","href":"lemmy_api_client/Post/thumbnailUrl.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Post.toJson","href":"lemmy_api_client/Post/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Post.updated","href":"lemmy_api_client/Post/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"url","qualifiedName":"lemmy_api_client.Post.url","href":"lemmy_api_client/Post/url.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"urlContentType","qualifiedName":"lemmy_api_client.Post.urlContentType","href":"lemmy_api_client/Post/urlContentType.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Post","kind":3,"href":"lemmy_api_client/Post-class.html"}},{"name":"PostAggregates","qualifiedName":"lemmy_api_client.PostAggregates","href":"lemmy_api_client/PostAggregates-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"PostAggregates","qualifiedName":"lemmy_api_client.PostAggregates.PostAggregates","href":"lemmy_api_client/PostAggregates/PostAggregates.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"PostAggregates.fromJson","qualifiedName":"lemmy_api_client.PostAggregates.PostAggregates.fromJson","href":"lemmy_api_client/PostAggregates/PostAggregates.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"comments","qualifiedName":"lemmy_api_client.PostAggregates.comments","href":"lemmy_api_client/PostAggregates/comments.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"downvotes","qualifiedName":"lemmy_api_client.PostAggregates.downvotes","href":"lemmy_api_client/PostAggregates/downvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"newestCommentTime","qualifiedName":"lemmy_api_client.PostAggregates.newestCommentTime","href":"lemmy_api_client/PostAggregates/newestCommentTime.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"postId","qualifiedName":"lemmy_api_client.PostAggregates.postId","href":"lemmy_api_client/PostAggregates/postId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.PostAggregates.published","href":"lemmy_api_client/PostAggregates/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"reportCount","qualifiedName":"lemmy_api_client.PostAggregates.reportCount","href":"lemmy_api_client/PostAggregates/reportCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"score","qualifiedName":"lemmy_api_client.PostAggregates.score","href":"lemmy_api_client/PostAggregates/score.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.PostAggregates.toJson","href":"lemmy_api_client/PostAggregates/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"unresolvedReportCount","qualifiedName":"lemmy_api_client.PostAggregates.unresolvedReportCount","href":"lemmy_api_client/PostAggregates/unresolvedReportCount.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"upvotes","qualifiedName":"lemmy_api_client.PostAggregates.upvotes","href":"lemmy_api_client/PostAggregates/upvotes.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostAggregates","kind":3,"href":"lemmy_api_client/PostAggregates-class.html"}},{"name":"PostListingMode","qualifiedName":"lemmy_api_client.PostListingMode","href":"lemmy_api_client/PostListingMode.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.PostListingMode.values","href":"lemmy_api_client/PostListingMode/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"PostListingMode","kind":5,"href":"lemmy_api_client/PostListingMode.html"}},{"name":"PostSortType","qualifiedName":"lemmy_api_client.PostSortType","href":"lemmy_api_client/PostSortType.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.PostSortType.values","href":"lemmy_api_client/PostSortType/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"PostSortType","kind":5,"href":"lemmy_api_client/PostSortType.html"}},{"name":"PostView","qualifiedName":"lemmy_api_client.PostView","href":"lemmy_api_client/PostView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"PostView","qualifiedName":"lemmy_api_client.PostView.PostView","href":"lemmy_api_client/PostView/PostView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"PostView.fromJson","qualifiedName":"lemmy_api_client.PostView.PostView.fromJson","href":"lemmy_api_client/PostView/PostView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"bannedFromCommunity","qualifiedName":"lemmy_api_client.PostView.bannedFromCommunity","href":"lemmy_api_client/PostView/bannedFromCommunity.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"community","qualifiedName":"lemmy_api_client.PostView.community","href":"lemmy_api_client/PostView/community.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"counts","qualifiedName":"lemmy_api_client.PostView.counts","href":"lemmy_api_client/PostView/counts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"creator","qualifiedName":"lemmy_api_client.PostView.creator","href":"lemmy_api_client/PostView/creator.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"creatorBannedFromCommunity","qualifiedName":"lemmy_api_client.PostView.creatorBannedFromCommunity","href":"lemmy_api_client/PostView/creatorBannedFromCommunity.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"creatorBlocked","qualifiedName":"lemmy_api_client.PostView.creatorBlocked","href":"lemmy_api_client/PostView/creatorBlocked.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"creatorIsAdmin","qualifiedName":"lemmy_api_client.PostView.creatorIsAdmin","href":"lemmy_api_client/PostView/creatorIsAdmin.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"creatorIsModerator","qualifiedName":"lemmy_api_client.PostView.creatorIsModerator","href":"lemmy_api_client/PostView/creatorIsModerator.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"hidden","qualifiedName":"lemmy_api_client.PostView.hidden","href":"lemmy_api_client/PostView/hidden.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"imageDetails","qualifiedName":"lemmy_api_client.PostView.imageDetails","href":"lemmy_api_client/PostView/imageDetails.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"myVote","qualifiedName":"lemmy_api_client.PostView.myVote","href":"lemmy_api_client/PostView/myVote.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"post","qualifiedName":"lemmy_api_client.PostView.post","href":"lemmy_api_client/PostView/post.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"read","qualifiedName":"lemmy_api_client.PostView.read","href":"lemmy_api_client/PostView/read.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"saved","qualifiedName":"lemmy_api_client.PostView.saved","href":"lemmy_api_client/PostView/saved.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"subscribed","qualifiedName":"lemmy_api_client.PostView.subscribed","href":"lemmy_api_client/PostView/subscribed.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.PostView.toJson","href":"lemmy_api_client/PostView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"unreadComments","qualifiedName":"lemmy_api_client.PostView.unreadComments","href":"lemmy_api_client/PostView/unreadComments.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostView","kind":3,"href":"lemmy_api_client/PostView-class.html"}},{"name":"PostsResponse","qualifiedName":"lemmy_api_client.PostsResponse","href":"lemmy_api_client/PostsResponse-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"PostsResponse","qualifiedName":"lemmy_api_client.PostsResponse.PostsResponse","href":"lemmy_api_client/PostsResponse/PostsResponse.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PostsResponse","kind":3,"href":"lemmy_api_client/PostsResponse-class.html"}},{"name":"PostsResponse.fromJson","qualifiedName":"lemmy_api_client.PostsResponse.PostsResponse.fromJson","href":"lemmy_api_client/PostsResponse/PostsResponse.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"PostsResponse","kind":3,"href":"lemmy_api_client/PostsResponse-class.html"}},{"name":"nextPage","qualifiedName":"lemmy_api_client.PostsResponse.nextPage","href":"lemmy_api_client/PostsResponse/nextPage.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostsResponse","kind":3,"href":"lemmy_api_client/PostsResponse-class.html"}},{"name":"posts","qualifiedName":"lemmy_api_client.PostsResponse.posts","href":"lemmy_api_client/PostsResponse/posts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostsResponse","kind":3,"href":"lemmy_api_client/PostsResponse-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.PostsResponse.toJson","href":"lemmy_api_client/PostsResponse/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"PostsResponse","kind":3,"href":"lemmy_api_client/PostsResponse-class.html"}},{"name":"RegistrationMode","qualifiedName":"lemmy_api_client.RegistrationMode","href":"lemmy_api_client/RegistrationMode.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.RegistrationMode.values","href":"lemmy_api_client/RegistrationMode/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"RegistrationMode","kind":5,"href":"lemmy_api_client/RegistrationMode.html"}},{"name":"Site","qualifiedName":"lemmy_api_client.Site","href":"lemmy_api_client/Site-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Site","qualifiedName":"lemmy_api_client.Site.Site","href":"lemmy_api_client/Site/Site.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"Site.fromJson","qualifiedName":"lemmy_api_client.Site.Site.fromJson","href":"lemmy_api_client/Site/Site.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"actorId","qualifiedName":"lemmy_api_client.Site.actorId","href":"lemmy_api_client/Site/actorId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"banner","qualifiedName":"lemmy_api_client.Site.banner","href":"lemmy_api_client/Site/banner.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"contentWarning","qualifiedName":"lemmy_api_client.Site.contentWarning","href":"lemmy_api_client/Site/contentWarning.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"description","qualifiedName":"lemmy_api_client.Site.description","href":"lemmy_api_client/Site/description.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"icon","qualifiedName":"lemmy_api_client.Site.icon","href":"lemmy_api_client/Site/icon.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Site.id","href":"lemmy_api_client/Site/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"inboxUrl","qualifiedName":"lemmy_api_client.Site.inboxUrl","href":"lemmy_api_client/Site/inboxUrl.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"instanceId","qualifiedName":"lemmy_api_client.Site.instanceId","href":"lemmy_api_client/Site/instanceId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"lastRefreshedAt","qualifiedName":"lemmy_api_client.Site.lastRefreshedAt","href":"lemmy_api_client/Site/lastRefreshedAt.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"name","qualifiedName":"lemmy_api_client.Site.name","href":"lemmy_api_client/Site/name.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"publicKey","qualifiedName":"lemmy_api_client.Site.publicKey","href":"lemmy_api_client/Site/publicKey.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Site.published","href":"lemmy_api_client/Site/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"sidebar","qualifiedName":"lemmy_api_client.Site.sidebar","href":"lemmy_api_client/Site/sidebar.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Site.toJson","href":"lemmy_api_client/Site/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Site.updated","href":"lemmy_api_client/Site/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Site","kind":3,"href":"lemmy_api_client/Site-class.html"}},{"name":"SiteAggregates","qualifiedName":"lemmy_api_client.SiteAggregates","href":"lemmy_api_client/SiteAggregates-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"SiteAggregates","qualifiedName":"lemmy_api_client.SiteAggregates.SiteAggregates","href":"lemmy_api_client/SiteAggregates/SiteAggregates.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"SiteAggregates.fromJson","qualifiedName":"lemmy_api_client.SiteAggregates.SiteAggregates.fromJson","href":"lemmy_api_client/SiteAggregates/SiteAggregates.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"comments","qualifiedName":"lemmy_api_client.SiteAggregates.comments","href":"lemmy_api_client/SiteAggregates/comments.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"communities","qualifiedName":"lemmy_api_client.SiteAggregates.communities","href":"lemmy_api_client/SiteAggregates/communities.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"posts","qualifiedName":"lemmy_api_client.SiteAggregates.posts","href":"lemmy_api_client/SiteAggregates/posts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"siteId","qualifiedName":"lemmy_api_client.SiteAggregates.siteId","href":"lemmy_api_client/SiteAggregates/siteId.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.SiteAggregates.toJson","href":"lemmy_api_client/SiteAggregates/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"users","qualifiedName":"lemmy_api_client.SiteAggregates.users","href":"lemmy_api_client/SiteAggregates/users.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"usersActiveDay","qualifiedName":"lemmy_api_client.SiteAggregates.usersActiveDay","href":"lemmy_api_client/SiteAggregates/usersActiveDay.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"usersActiveHalfYear","qualifiedName":"lemmy_api_client.SiteAggregates.usersActiveHalfYear","href":"lemmy_api_client/SiteAggregates/usersActiveHalfYear.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"usersActiveMonth","qualifiedName":"lemmy_api_client.SiteAggregates.usersActiveMonth","href":"lemmy_api_client/SiteAggregates/usersActiveMonth.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"usersActiveWeek","qualifiedName":"lemmy_api_client.SiteAggregates.usersActiveWeek","href":"lemmy_api_client/SiteAggregates/usersActiveWeek.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteAggregates","kind":3,"href":"lemmy_api_client/SiteAggregates-class.html"}},{"name":"SiteView","qualifiedName":"lemmy_api_client.SiteView","href":"lemmy_api_client/SiteView-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"SiteView","qualifiedName":"lemmy_api_client.SiteView.SiteView","href":"lemmy_api_client/SiteView/SiteView.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"SiteView.fromJson","qualifiedName":"lemmy_api_client.SiteView.SiteView.fromJson","href":"lemmy_api_client/SiteView/SiteView.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"counts","qualifiedName":"lemmy_api_client.SiteView.counts","href":"lemmy_api_client/SiteView/counts.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"localSite","qualifiedName":"lemmy_api_client.SiteView.localSite","href":"lemmy_api_client/SiteView/localSite.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"localSiteRateLimit","qualifiedName":"lemmy_api_client.SiteView.localSiteRateLimit","href":"lemmy_api_client/SiteView/localSiteRateLimit.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"site","qualifiedName":"lemmy_api_client.SiteView.site","href":"lemmy_api_client/SiteView/site.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.SiteView.toJson","href":"lemmy_api_client/SiteView/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SiteView","kind":3,"href":"lemmy_api_client/SiteView-class.html"}},{"name":"SubscribedType","qualifiedName":"lemmy_api_client.SubscribedType","href":"lemmy_api_client/SubscribedType.html","kind":5,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"values","qualifiedName":"lemmy_api_client.SubscribedType.values","href":"lemmy_api_client/SubscribedType/values-constant.html","kind":1,"overriddenDepth":0,"packageRank":0,"desc":"A constant List of the values in this enum, in order of their declaration.","enclosedBy":{"name":"SubscribedType","kind":5,"href":"lemmy_api_client/SubscribedType.html"}},{"name":"SuccessResponse","qualifiedName":"lemmy_api_client.SuccessResponse","href":"lemmy_api_client/SuccessResponse-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"SuccessResponse","qualifiedName":"lemmy_api_client.SuccessResponse.SuccessResponse","href":"lemmy_api_client/SuccessResponse/SuccessResponse.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"SuccessResponse","kind":3,"href":"lemmy_api_client/SuccessResponse-class.html"}},{"name":"SuccessResponse.fromJson","qualifiedName":"lemmy_api_client.SuccessResponse.SuccessResponse.fromJson","href":"lemmy_api_client/SuccessResponse/SuccessResponse.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"SuccessResponse","kind":3,"href":"lemmy_api_client/SuccessResponse-class.html"}},{"name":"success","qualifiedName":"lemmy_api_client.SuccessResponse.success","href":"lemmy_api_client/SuccessResponse/success.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SuccessResponse","kind":3,"href":"lemmy_api_client/SuccessResponse-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.SuccessResponse.toJson","href":"lemmy_api_client/SuccessResponse/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"SuccessResponse","kind":3,"href":"lemmy_api_client/SuccessResponse-class.html"}},{"name":"Tagline","qualifiedName":"lemmy_api_client.Tagline","href":"lemmy_api_client/Tagline-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"Tagline","qualifiedName":"lemmy_api_client.Tagline.Tagline","href":"lemmy_api_client/Tagline/Tagline.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"Tagline.fromJson","qualifiedName":"lemmy_api_client.Tagline.Tagline.fromJson","href":"lemmy_api_client/Tagline/Tagline.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"content","qualifiedName":"lemmy_api_client.Tagline.content","href":"lemmy_api_client/Tagline/content.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"id","qualifiedName":"lemmy_api_client.Tagline.id","href":"lemmy_api_client/Tagline/id.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"published","qualifiedName":"lemmy_api_client.Tagline.published","href":"lemmy_api_client/Tagline/published.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.Tagline.toJson","href":"lemmy_api_client/Tagline/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"updated","qualifiedName":"lemmy_api_client.Tagline.updated","href":"lemmy_api_client/Tagline/updated.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"Tagline","kind":3,"href":"lemmy_api_client/Tagline-class.html"}},{"name":"UnreadCountResponse","qualifiedName":"lemmy_api_client.UnreadCountResponse","href":"lemmy_api_client/UnreadCountResponse-class.html","kind":3,"packageRank":0,"desc":"","enclosedBy":{"name":"lemmy_api_client","kind":9,"href":"lemmy_api_client/lemmy_api_client-library.html"}},{"name":"UnreadCountResponse","qualifiedName":"lemmy_api_client.UnreadCountResponse.UnreadCountResponse","href":"lemmy_api_client/UnreadCountResponse/UnreadCountResponse.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"UnreadCountResponse","kind":3,"href":"lemmy_api_client/UnreadCountResponse-class.html"}},{"name":"UnreadCountResponse.fromJson","qualifiedName":"lemmy_api_client.UnreadCountResponse.UnreadCountResponse.fromJson","href":"lemmy_api_client/UnreadCountResponse/UnreadCountResponse.fromJson.html","kind":2,"packageRank":0,"desc":"","enclosedBy":{"name":"UnreadCountResponse","kind":3,"href":"lemmy_api_client/UnreadCountResponse-class.html"}},{"name":"mentions","qualifiedName":"lemmy_api_client.UnreadCountResponse.mentions","href":"lemmy_api_client/UnreadCountResponse/mentions.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"UnreadCountResponse","kind":3,"href":"lemmy_api_client/UnreadCountResponse-class.html"}},{"name":"privateMessages","qualifiedName":"lemmy_api_client.UnreadCountResponse.privateMessages","href":"lemmy_api_client/UnreadCountResponse/privateMessages.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"UnreadCountResponse","kind":3,"href":"lemmy_api_client/UnreadCountResponse-class.html"}},{"name":"replies","qualifiedName":"lemmy_api_client.UnreadCountResponse.replies","href":"lemmy_api_client/UnreadCountResponse/replies.html","kind":16,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"UnreadCountResponse","kind":3,"href":"lemmy_api_client/UnreadCountResponse-class.html"}},{"name":"toJson","qualifiedName":"lemmy_api_client.UnreadCountResponse.toJson","href":"lemmy_api_client/UnreadCountResponse/toJson.html","kind":10,"overriddenDepth":0,"packageRank":0,"desc":"","enclosedBy":{"name":"UnreadCountResponse","kind":3,"href":"lemmy_api_client/UnreadCountResponse-class.html"}}] diff --git a/doc/api/lemmy_api_client/Account-class-sidebar.html b/doc/api/lemmy_api_client/Account-class-sidebar.html new file mode 100644 index 00000000..5323de03 --- /dev/null +++ b/doc/api/lemmy_api_client/Account-class-sidebar.html @@ -0,0 +1,150 @@ +
    + +
  1. Constructors
  2. +
  3. Account
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + acceptedApplication +
  10. + +
  11. + admin +
  12. + +
  13. + autoMarkFetchedPostsAsRead +
  14. + +
  15. + blurNsfw +
  16. + +
  17. + collapseBotComments +
  18. + +
  19. + defaultCommentSortType +
  20. + +
  21. + defaultListingType +
  22. + +
  23. + defaultPostSortType +
  24. + +
  25. + email +
  26. + +
  27. + emailVerified +
  28. + +
  29. + enableAnimatedImages +
  30. + +
  31. + enableKeyboardNavigation +
  32. + +
  33. + enablePrivateMessages +
  34. + +
  35. + hashCode +
  36. + +
  37. + id +
  38. + +
  39. + infiniteScrollEnabled +
  40. + +
  41. + interfaceLanguage +
  42. + +
  43. + openLinksInNewTab +
  44. + +
  45. + personId +
  46. + +
  47. + postListingMode +
  48. + +
  49. + runtimeType +
  50. + +
  51. + sendNotificationsToEmail +
  52. + +
  53. + showAvatars +
  54. + +
  55. + showBotAccounts +
  56. + +
  57. + showNsfw +
  58. + +
  59. + showReadPosts +
  60. + +
  61. + theme +
  62. + +
  63. + totp2faEnabled +
  64. + +
  65. Methods
  66. + +
  67. + noSuchMethod +
  68. + +
  69. + toJson +
  70. + +
  71. + toString +
  72. + +
  73. Operators
  74. + +
  75. + operator == +
  76. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Account-class.html b/doc/api/lemmy_api_client/Account-class.html new file mode 100644 index 00000000..1d44c437 --- /dev/null +++ b/doc/api/lemmy_api_client/Account-class.html @@ -0,0 +1,552 @@ + + + + + + + + Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Account
+ +
+ +
+
+
+
+
+

Account class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Account({required int id, required int personId, String? email, required bool showNsfw, required String theme, required PostSortType defaultPostSortType, required ListingType defaultListingType, required String interfaceLanguage, required bool showAvatars, required bool sendNotificationsToEmail, required bool showBotAccounts, required bool showReadPosts, required bool emailVerified, required bool acceptedApplication, required bool openLinksInNewTab, required bool blurNsfw, required bool infiniteScrollEnabled, required bool admin, required PostListingMode postListingMode, required bool totp2faEnabled, required bool enableKeyboardNavigation, required bool enableAnimatedImages, required bool enablePrivateMessages, required bool collapseBotComments, required CommentSortType defaultCommentSortType, required bool autoMarkFetchedPostsAsRead}) +
+
+ +
+
+ Account.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ acceptedApplication + bool + + +
+
+ +
final
+ +
+ +
+ admin + bool + + +
+
+ +
final
+ +
+ +
+ autoMarkFetchedPostsAsRead + bool + + +
+
+ +
final
+ +
+ +
+ blurNsfw + bool + + +
+
+ +
final
+ +
+ +
+ collapseBotComments + bool + + +
+
+ +
final
+ +
+ +
+ defaultCommentSortType + CommentSortType + + +
+
+ +
final
+ +
+ +
+ defaultListingType + ListingType + + +
+
+ +
final
+ +
+ +
+ defaultPostSortType + PostSortType + + +
+
+ +
final
+ +
+ +
+ email + String? + + +
+
+ +
final
+ +
+ +
+ emailVerified + bool + + +
+
+ +
final
+ +
+ +
+ enableAnimatedImages + bool + + +
+
+ +
final
+ +
+ +
+ enableKeyboardNavigation + bool + + +
+
+ +
final
+ +
+ +
+ enablePrivateMessages + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ infiniteScrollEnabled + bool + + +
+
+ +
final
+ +
+ +
+ interfaceLanguage + String + + +
+
+ +
final
+ +
+ +
+ openLinksInNewTab + bool + + +
+
+ +
final
+ +
+ +
+ personId + int + + +
+
+ +
final
+ +
+ +
+ postListingMode + PostListingMode + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ sendNotificationsToEmail + bool + + +
+
+ +
final
+ +
+ +
+ showAvatars + bool + + +
+
+ +
final
+ +
+ +
+ showBotAccounts + bool + + +
+
+ +
final
+ +
+ +
+ showNsfw + bool + + +
+
+ +
final
+ +
+ +
+ showReadPosts + bool + + +
+
+ +
final
+ +
+ +
+ theme + String + + +
+
+ +
final
+ +
+ +
+ totp2faEnabled + bool + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/Account.fromJson.html b/doc/api/lemmy_api_client/Account/Account.fromJson.html new file mode 100644 index 00000000..98868dfe --- /dev/null +++ b/doc/api/lemmy_api_client/Account/Account.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Account.fromJson constructor - Account - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Account.fromJson
+ +
+ +
+
+
+
+
+

Account.fromJson constructor +

+ +
+ + Account.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Account.fromJson(Map<String, dynamic> json) => _$AccountFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/Account.html b/doc/api/lemmy_api_client/Account/Account.html new file mode 100644 index 00000000..284345de --- /dev/null +++ b/doc/api/lemmy_api_client/Account/Account.html @@ -0,0 +1,160 @@ + + + + + + + + Account constructor - Account - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Account
+ +
+ +
+
+
+
+
+

Account constructor +

+ +
+ + Account({
  1. required int id,
  2. +
  3. required int personId,
  4. +
  5. String? email,
  6. +
  7. required bool showNsfw,
  8. +
  9. required String theme,
  10. +
  11. required PostSortType defaultPostSortType,
  12. +
  13. required ListingType defaultListingType,
  14. +
  15. required String interfaceLanguage,
  16. +
  17. required bool showAvatars,
  18. +
  19. required bool sendNotificationsToEmail,
  20. +
  21. required bool showBotAccounts,
  22. +
  23. required bool showReadPosts,
  24. +
  25. required bool emailVerified,
  26. +
  27. required bool acceptedApplication,
  28. +
  29. required bool openLinksInNewTab,
  30. +
  31. required bool blurNsfw,
  32. +
  33. required bool infiniteScrollEnabled,
  34. +
  35. required bool admin,
  36. +
  37. required PostListingMode postListingMode,
  38. +
  39. required bool totp2faEnabled,
  40. +
  41. required bool enableKeyboardNavigation,
  42. +
  43. required bool enableAnimatedImages,
  44. +
  45. required bool enablePrivateMessages,
  46. +
  47. required bool collapseBotComments,
  48. +
  49. required CommentSortType defaultCommentSortType,
  50. +
  51. required bool autoMarkFetchedPostsAsRead,
  52. +
}) +
+ + + + +
+

Implementation

+
Account({
+  required this.id,
+  required this.personId,
+  this.email,
+  required this.showNsfw,
+  required this.theme,
+  required this.defaultPostSortType,
+  required this.defaultListingType,
+  required this.interfaceLanguage,
+  required this.showAvatars,
+  required this.sendNotificationsToEmail,
+  required this.showBotAccounts,
+  required this.showReadPosts,
+  required this.emailVerified,
+  required this.acceptedApplication,
+  required this.openLinksInNewTab,
+  required this.blurNsfw,
+  required this.infiniteScrollEnabled,
+  required this.admin,
+  required this.postListingMode,
+  required this.totp2faEnabled,
+  required this.enableKeyboardNavigation,
+  required this.enableAnimatedImages,
+  required this.enablePrivateMessages,
+  required this.collapseBotComments,
+  required this.defaultCommentSortType,
+  required this.autoMarkFetchedPostsAsRead,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/acceptedApplication.html b/doc/api/lemmy_api_client/Account/acceptedApplication.html new file mode 100644 index 00000000..8d93d874 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/acceptedApplication.html @@ -0,0 +1,111 @@ + + + + + + + + acceptedApplication property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
acceptedApplication
+ +
+ +
+
+
+
+
+

acceptedApplication property +

+ + +
+ + bool + acceptedApplication +
final
+ +
+ + + +
+

Implementation

+
final bool acceptedApplication;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/admin.html b/doc/api/lemmy_api_client/Account/admin.html new file mode 100644 index 00000000..f35525a3 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/admin.html @@ -0,0 +1,111 @@ + + + + + + + + admin property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
admin
+ +
+ +
+
+
+
+
+

admin property +

+ + +
+ + bool + admin +
final
+ +
+ + + +
+

Implementation

+
final bool admin;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/autoMarkFetchedPostsAsRead.html b/doc/api/lemmy_api_client/Account/autoMarkFetchedPostsAsRead.html new file mode 100644 index 00000000..476c7e63 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/autoMarkFetchedPostsAsRead.html @@ -0,0 +1,111 @@ + + + + + + + + autoMarkFetchedPostsAsRead property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
autoMarkFetchedPostsAsRead
+ +
+ +
+
+
+
+
+

autoMarkFetchedPostsAsRead property +

+ + +
+ + bool + autoMarkFetchedPostsAsRead +
final
+ +
+ + + +
+

Implementation

+
final bool autoMarkFetchedPostsAsRead;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/blurNsfw.html b/doc/api/lemmy_api_client/Account/blurNsfw.html new file mode 100644 index 00000000..2acbcea3 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/blurNsfw.html @@ -0,0 +1,111 @@ + + + + + + + + blurNsfw property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
blurNsfw
+ +
+ +
+
+
+
+
+

blurNsfw property +

+ + +
+ + bool + blurNsfw +
final
+ +
+ + + +
+

Implementation

+
final bool blurNsfw;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/collapseBotComments.html b/doc/api/lemmy_api_client/Account/collapseBotComments.html new file mode 100644 index 00000000..18cab676 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/collapseBotComments.html @@ -0,0 +1,111 @@ + + + + + + + + collapseBotComments property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
collapseBotComments
+ +
+ +
+
+
+
+
+

collapseBotComments property +

+ + +
+ + bool + collapseBotComments +
final
+ +
+ + + +
+

Implementation

+
final bool collapseBotComments;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/defaultCommentSortType.html b/doc/api/lemmy_api_client/Account/defaultCommentSortType.html new file mode 100644 index 00000000..8f4c6ca3 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/defaultCommentSortType.html @@ -0,0 +1,117 @@ + + + + + + + + defaultCommentSortType property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultCommentSortType
+ +
+ +
+
+
+
+
+

defaultCommentSortType property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeCommentSortTypeToJson, fromJson: lowercaseCommentSortTypeFromJson)
  2. +
+
+ CommentSortType + defaultCommentSortType +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeCommentSortTypeToJson, fromJson: lowercaseCommentSortTypeFromJson)
+final CommentSortType defaultCommentSortType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/defaultListingType.html b/doc/api/lemmy_api_client/Account/defaultListingType.html new file mode 100644 index 00000000..b4b9974d --- /dev/null +++ b/doc/api/lemmy_api_client/Account/defaultListingType.html @@ -0,0 +1,117 @@ + + + + + + + + defaultListingType property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultListingType
+ +
+ +
+
+
+
+
+

defaultListingType property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeListingTypeToJson, fromJson: lowercaseListingTypeFromJson)
  2. +
+
+ ListingType + defaultListingType +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeListingTypeToJson, fromJson: lowercaseListingTypeFromJson)
+final ListingType defaultListingType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/defaultPostSortType.html b/doc/api/lemmy_api_client/Account/defaultPostSortType.html new file mode 100644 index 00000000..5ab3d985 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/defaultPostSortType.html @@ -0,0 +1,117 @@ + + + + + + + + defaultPostSortType property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultPostSortType
+ +
+ +
+
+
+
+
+

defaultPostSortType property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizePostSortTypeToJson, fromJson: lowercasePostSortTypeFromJson)
  2. +
+
+ PostSortType + defaultPostSortType +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizePostSortTypeToJson, fromJson: lowercasePostSortTypeFromJson)
+final PostSortType defaultPostSortType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/email.html b/doc/api/lemmy_api_client/Account/email.html new file mode 100644 index 00000000..0c4a838c --- /dev/null +++ b/doc/api/lemmy_api_client/Account/email.html @@ -0,0 +1,111 @@ + + + + + + + + email property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
email
+ +
+ +
+
+
+
+
+

email property +

+ + +
+ + String? + email +
final
+ +
+ + + +
+

Implementation

+
final String? email;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/emailVerified.html b/doc/api/lemmy_api_client/Account/emailVerified.html new file mode 100644 index 00000000..21c14242 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/emailVerified.html @@ -0,0 +1,111 @@ + + + + + + + + emailVerified property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
emailVerified
+ +
+ +
+
+
+
+
+

emailVerified property +

+ + +
+ + bool + emailVerified +
final
+ +
+ + + +
+

Implementation

+
final bool emailVerified;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/enableAnimatedImages.html b/doc/api/lemmy_api_client/Account/enableAnimatedImages.html new file mode 100644 index 00000000..1fcf7e2a --- /dev/null +++ b/doc/api/lemmy_api_client/Account/enableAnimatedImages.html @@ -0,0 +1,111 @@ + + + + + + + + enableAnimatedImages property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
enableAnimatedImages
+ +
+ +
+
+
+
+
+

enableAnimatedImages property +

+ + +
+ + bool + enableAnimatedImages +
final
+ +
+ + + +
+

Implementation

+
final bool enableAnimatedImages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/enableKeyboardNavigation.html b/doc/api/lemmy_api_client/Account/enableKeyboardNavigation.html new file mode 100644 index 00000000..6c9fb974 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/enableKeyboardNavigation.html @@ -0,0 +1,111 @@ + + + + + + + + enableKeyboardNavigation property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
enableKeyboardNavigation
+ +
+ +
+
+
+
+
+

enableKeyboardNavigation property +

+ + +
+ + bool + enableKeyboardNavigation +
final
+ +
+ + + +
+

Implementation

+
final bool enableKeyboardNavigation;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/enablePrivateMessages.html b/doc/api/lemmy_api_client/Account/enablePrivateMessages.html new file mode 100644 index 00000000..90b26396 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/enablePrivateMessages.html @@ -0,0 +1,111 @@ + + + + + + + + enablePrivateMessages property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
enablePrivateMessages
+ +
+ +
+
+
+
+
+

enablePrivateMessages property +

+ + +
+ + bool + enablePrivateMessages +
final
+ +
+ + + +
+

Implementation

+
final bool enablePrivateMessages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/id.html b/doc/api/lemmy_api_client/Account/id.html new file mode 100644 index 00000000..4530acca --- /dev/null +++ b/doc/api/lemmy_api_client/Account/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/infiniteScrollEnabled.html b/doc/api/lemmy_api_client/Account/infiniteScrollEnabled.html new file mode 100644 index 00000000..a407dd2d --- /dev/null +++ b/doc/api/lemmy_api_client/Account/infiniteScrollEnabled.html @@ -0,0 +1,111 @@ + + + + + + + + infiniteScrollEnabled property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
infiniteScrollEnabled
+ +
+ +
+
+
+
+
+

infiniteScrollEnabled property +

+ + +
+ + bool + infiniteScrollEnabled +
final
+ +
+ + + +
+

Implementation

+
final bool infiniteScrollEnabled;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/interfaceLanguage.html b/doc/api/lemmy_api_client/Account/interfaceLanguage.html new file mode 100644 index 00000000..382068f5 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/interfaceLanguage.html @@ -0,0 +1,111 @@ + + + + + + + + interfaceLanguage property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
interfaceLanguage
+ +
+ +
+
+
+
+
+

interfaceLanguage property +

+ + +
+ + String + interfaceLanguage +
final
+ +
+ + + +
+

Implementation

+
final String interfaceLanguage;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/openLinksInNewTab.html b/doc/api/lemmy_api_client/Account/openLinksInNewTab.html new file mode 100644 index 00000000..7bcb0c42 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/openLinksInNewTab.html @@ -0,0 +1,111 @@ + + + + + + + + openLinksInNewTab property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
openLinksInNewTab
+ +
+ +
+
+
+
+
+

openLinksInNewTab property +

+ + +
+ + bool + openLinksInNewTab +
final
+ +
+ + + +
+

Implementation

+
final bool openLinksInNewTab;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/personId.html b/doc/api/lemmy_api_client/Account/personId.html new file mode 100644 index 00000000..4e36cd94 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/personId.html @@ -0,0 +1,111 @@ + + + + + + + + personId property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
personId
+ +
+ +
+
+
+
+
+

personId property +

+ + +
+ + int + personId +
final
+ +
+ + + +
+

Implementation

+
final int personId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/postListingMode.html b/doc/api/lemmy_api_client/Account/postListingMode.html new file mode 100644 index 00000000..acd0e4bf --- /dev/null +++ b/doc/api/lemmy_api_client/Account/postListingMode.html @@ -0,0 +1,117 @@ + + + + + + + + postListingMode property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postListingMode
+ +
+ +
+
+
+
+
+

postListingMode property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizePostListingModeToJson, fromJson: lowercasePostListingModeFromJson)
  2. +
+
+ PostListingMode + postListingMode +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizePostListingModeToJson, fromJson: lowercasePostListingModeFromJson)
+final PostListingMode postListingMode;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/sendNotificationsToEmail.html b/doc/api/lemmy_api_client/Account/sendNotificationsToEmail.html new file mode 100644 index 00000000..ef0d8868 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/sendNotificationsToEmail.html @@ -0,0 +1,111 @@ + + + + + + + + sendNotificationsToEmail property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
sendNotificationsToEmail
+ +
+ +
+
+
+
+
+

sendNotificationsToEmail property +

+ + +
+ + bool + sendNotificationsToEmail +
final
+ +
+ + + +
+

Implementation

+
final bool sendNotificationsToEmail;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/showAvatars.html b/doc/api/lemmy_api_client/Account/showAvatars.html new file mode 100644 index 00000000..426c886d --- /dev/null +++ b/doc/api/lemmy_api_client/Account/showAvatars.html @@ -0,0 +1,111 @@ + + + + + + + + showAvatars property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
showAvatars
+ +
+ +
+
+
+
+
+

showAvatars property +

+ + +
+ + bool + showAvatars +
final
+ +
+ + + +
+

Implementation

+
final bool showAvatars;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/showBotAccounts.html b/doc/api/lemmy_api_client/Account/showBotAccounts.html new file mode 100644 index 00000000..c7b2f71b --- /dev/null +++ b/doc/api/lemmy_api_client/Account/showBotAccounts.html @@ -0,0 +1,111 @@ + + + + + + + + showBotAccounts property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
showBotAccounts
+ +
+ +
+
+
+
+
+

showBotAccounts property +

+ + +
+ + bool + showBotAccounts +
final
+ +
+ + + +
+

Implementation

+
final bool showBotAccounts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/showNsfw.html b/doc/api/lemmy_api_client/Account/showNsfw.html new file mode 100644 index 00000000..8ce4b565 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/showNsfw.html @@ -0,0 +1,111 @@ + + + + + + + + showNsfw property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
showNsfw
+ +
+ +
+
+
+
+
+

showNsfw property +

+ + +
+ + bool + showNsfw +
final
+ +
+ + + +
+

Implementation

+
final bool showNsfw;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/showReadPosts.html b/doc/api/lemmy_api_client/Account/showReadPosts.html new file mode 100644 index 00000000..b3b2aa01 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/showReadPosts.html @@ -0,0 +1,111 @@ + + + + + + + + showReadPosts property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
showReadPosts
+ +
+ +
+
+
+
+
+

showReadPosts property +

+ + +
+ + bool + showReadPosts +
final
+ +
+ + + +
+

Implementation

+
final bool showReadPosts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/theme.html b/doc/api/lemmy_api_client/Account/theme.html new file mode 100644 index 00000000..cdfa1c14 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/theme.html @@ -0,0 +1,111 @@ + + + + + + + + theme property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
theme
+ +
+ +
+
+
+
+
+

theme property +

+ + +
+ + String + theme +
final
+ +
+ + + +
+

Implementation

+
final String theme;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/toJson.html b/doc/api/lemmy_api_client/Account/toJson.html new file mode 100644 index 00000000..01b8eedc --- /dev/null +++ b/doc/api/lemmy_api_client/Account/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$AccountToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Account/totp2faEnabled.html b/doc/api/lemmy_api_client/Account/totp2faEnabled.html new file mode 100644 index 00000000..81571e61 --- /dev/null +++ b/doc/api/lemmy_api_client/Account/totp2faEnabled.html @@ -0,0 +1,117 @@ + + + + + + + + totp2faEnabled property - Account class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
totp2faEnabled
+ +
+ +
+
+
+
+
+

totp2faEnabled property +

+ + +
+ +
+
    +
  1. @JsonKey(name: 'totp_2fa_enabled')
  2. +
+
+ bool + totp2faEnabled +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(name: 'totp_2fa_enabled')
+final bool totp2faEnabled;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView-class-sidebar.html b/doc/api/lemmy_api_client/AccountView-class-sidebar.html new file mode 100644 index 00000000..da46697a --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. AccountView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + counts +
  10. + +
  11. + hashCode +
  12. + +
  13. + localUser +
  14. + +
  15. + localUserVoteDisplayMode +
  16. + +
  17. + person +
  18. + +
  19. + runtimeType +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/AccountView-class.html b/doc/api/lemmy_api_client/AccountView-class.html new file mode 100644 index 00000000..fc9bf4da --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView-class.html @@ -0,0 +1,288 @@ + + + + + + + + AccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
AccountView
+ +
+ +
+
+
+
+
+

AccountView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ AccountView({required Account localUser, required AccountVoteDisplayMode localUserVoteDisplayMode, required Person person, required PersonAggregates counts}) +
+
+ +
+
+ AccountView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ counts + PersonAggregates + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ localUser + Account + + +
+
+ +
final
+ +
+ +
+ localUserVoteDisplayMode + AccountVoteDisplayMode + + +
+
+ +
final
+ +
+ +
+ person + Person + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/AccountView.fromJson.html b/doc/api/lemmy_api_client/AccountView/AccountView.fromJson.html new file mode 100644 index 00000000..c0bc7b27 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/AccountView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + AccountView.fromJson constructor - AccountView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
AccountView.fromJson
+ +
+ +
+
+
+
+
+

AccountView.fromJson constructor +

+ +
+ + AccountView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory AccountView.fromJson(Map<String, dynamic> json) => _$AccountViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/AccountView.html b/doc/api/lemmy_api_client/AccountView/AccountView.html new file mode 100644 index 00000000..47587950 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/AccountView.html @@ -0,0 +1,116 @@ + + + + + + + + AccountView constructor - AccountView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
AccountView
+ +
+ +
+
+
+
+
+

AccountView constructor +

+ +
+ + AccountView({
  1. required Account localUser,
  2. +
  3. required AccountVoteDisplayMode localUserVoteDisplayMode,
  4. +
  5. required Person person,
  6. +
  7. required PersonAggregates counts,
  8. +
}) +
+ + + + +
+

Implementation

+
AccountView({
+  required this.localUser,
+  required this.localUserVoteDisplayMode,
+  required this.person,
+  required this.counts,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/counts.html b/doc/api/lemmy_api_client/AccountView/counts.html new file mode 100644 index 00000000..75657d62 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/counts.html @@ -0,0 +1,111 @@ + + + + + + + + counts property - AccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
counts
+ +
+ +
+
+
+
+
+

counts property +

+ + +
+ + PersonAggregates + counts +
final
+ +
+ + + +
+

Implementation

+
final PersonAggregates counts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/localUser.html b/doc/api/lemmy_api_client/AccountView/localUser.html new file mode 100644 index 00000000..3d6e4091 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/localUser.html @@ -0,0 +1,111 @@ + + + + + + + + localUser property - AccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
localUser
+ +
+ +
+
+
+
+
+

localUser property +

+ + +
+ + Account + localUser +
final
+ +
+ + + +
+

Implementation

+
final Account localUser;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/localUserVoteDisplayMode.html b/doc/api/lemmy_api_client/AccountView/localUserVoteDisplayMode.html new file mode 100644 index 00000000..df314c9c --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/localUserVoteDisplayMode.html @@ -0,0 +1,111 @@ + + + + + + + + localUserVoteDisplayMode property - AccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
localUserVoteDisplayMode
+ +
+ +
+
+
+
+
+

localUserVoteDisplayMode property +

+ + +
+ + AccountVoteDisplayMode + localUserVoteDisplayMode +
final
+ +
+ + + +
+

Implementation

+
final AccountVoteDisplayMode localUserVoteDisplayMode;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/person.html b/doc/api/lemmy_api_client/AccountView/person.html new file mode 100644 index 00000000..e602f464 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/person.html @@ -0,0 +1,111 @@ + + + + + + + + person property - AccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
person
+ +
+ +
+
+
+
+
+

person property +

+ + +
+ + Person + person +
final
+ +
+ + + +
+

Implementation

+
final Person person;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountView/toJson.html b/doc/api/lemmy_api_client/AccountView/toJson.html new file mode 100644 index 00000000..ca8bc94c --- /dev/null +++ b/doc/api/lemmy_api_client/AccountView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - AccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$AccountViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode-class-sidebar.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode-class-sidebar.html new file mode 100644 index 00000000..2eac31e5 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. AccountVoteDisplayMode
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + downvotes +
  10. + +
  11. + hashCode +
  12. + +
  13. + runtimeType +
  14. + +
  15. + score +
  16. + +
  17. + upvotePercentage +
  18. + +
  19. + upvotes +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode-class.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode-class.html new file mode 100644 index 00000000..c224816b --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode-class.html @@ -0,0 +1,288 @@ + + + + + + + + AccountVoteDisplayMode class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
AccountVoteDisplayMode
+ +
+ +
+
+
+
+
+

AccountVoteDisplayMode class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ AccountVoteDisplayMode({required bool score, required bool upvotes, required bool downvotes, required bool upvotePercentage}) +
+
+ +
+
+ AccountVoteDisplayMode.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ downvotes + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ score + bool + + +
+
+ +
final
+ +
+ +
+ upvotePercentage + bool + + +
+
+ +
final
+ +
+ +
+ upvotes + bool + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.fromJson.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.fromJson.html new file mode 100644 index 00000000..9885eec8 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + AccountVoteDisplayMode.fromJson constructor - AccountVoteDisplayMode - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
AccountVoteDisplayMode.fromJson
+ +
+ +
+
+
+
+
+

AccountVoteDisplayMode.fromJson constructor +

+ +
+ + AccountVoteDisplayMode.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory AccountVoteDisplayMode.fromJson(Map<String, dynamic> json) => _$AccountVoteDisplayModeFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.html new file mode 100644 index 00000000..d04a3190 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/AccountVoteDisplayMode.html @@ -0,0 +1,116 @@ + + + + + + + + AccountVoteDisplayMode constructor - AccountVoteDisplayMode - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
AccountVoteDisplayMode
+ +
+ +
+
+
+
+
+

AccountVoteDisplayMode constructor +

+ +
+ + AccountVoteDisplayMode({
  1. required bool score,
  2. +
  3. required bool upvotes,
  4. +
  5. required bool downvotes,
  6. +
  7. required bool upvotePercentage,
  8. +
}) +
+ + + + +
+

Implementation

+
AccountVoteDisplayMode({
+  required this.score,
+  required this.upvotes,
+  required this.downvotes,
+  required this.upvotePercentage,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/downvotes.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/downvotes.html new file mode 100644 index 00000000..f67749a7 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/downvotes.html @@ -0,0 +1,111 @@ + + + + + + + + downvotes property - AccountVoteDisplayMode class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
downvotes
+ +
+ +
+
+
+
+
+

downvotes property +

+ + +
+ + bool + downvotes +
final
+ +
+ + + +
+

Implementation

+
final bool downvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/score.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/score.html new file mode 100644 index 00000000..b90d1296 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/score.html @@ -0,0 +1,111 @@ + + + + + + + + score property - AccountVoteDisplayMode class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
score
+ +
+ +
+
+
+
+
+

score property +

+ + +
+ + bool + score +
final
+ +
+ + + +
+

Implementation

+
final bool score;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/toJson.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/toJson.html new file mode 100644 index 00000000..4b32941d --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - AccountVoteDisplayMode class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$AccountVoteDisplayModeToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/upvotePercentage.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/upvotePercentage.html new file mode 100644 index 00000000..7cc67c00 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/upvotePercentage.html @@ -0,0 +1,111 @@ + + + + + + + + upvotePercentage property - AccountVoteDisplayMode class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
upvotePercentage
+ +
+ +
+
+
+
+
+

upvotePercentage property +

+ + +
+ + bool + upvotePercentage +
final
+ +
+ + + +
+

Implementation

+
final bool upvotePercentage;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/AccountVoteDisplayMode/upvotes.html b/doc/api/lemmy_api_client/AccountVoteDisplayMode/upvotes.html new file mode 100644 index 00000000..12f73f22 --- /dev/null +++ b/doc/api/lemmy_api_client/AccountVoteDisplayMode/upvotes.html @@ -0,0 +1,111 @@ + + + + + + + + upvotes property - AccountVoteDisplayMode class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
upvotes
+ +
+ +
+
+
+
+
+

upvotes property +

+ + +
+ + bool + upvotes +
final
+ +
+ + + +
+

Implementation

+
final bool upvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/BlockPersonResponse-class-sidebar.html b/doc/api/lemmy_api_client/BlockPersonResponse-class-sidebar.html new file mode 100644 index 00000000..6b8d6644 --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse-class-sidebar.html @@ -0,0 +1,54 @@ +
    + +
  1. Constructors
  2. +
  3. BlockPersonResponse
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + blocked +
  10. + +
  11. + hashCode +
  12. + +
  13. + personView +
  14. + +
  15. + runtimeType +
  16. + +
  17. Methods
  18. + +
  19. + noSuchMethod +
  20. + +
  21. + toJson +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
diff --git a/doc/api/lemmy_api_client/BlockPersonResponse-class.html b/doc/api/lemmy_api_client/BlockPersonResponse-class.html new file mode 100644 index 00000000..4b71b5f8 --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse-class.html @@ -0,0 +1,264 @@ + + + + + + + + BlockPersonResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
BlockPersonResponse
+ +
+ +
+
+
+
+
+

BlockPersonResponse class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ BlockPersonResponse({required PersonView personView, required bool blocked}) +
+
+ +
+
+ BlockPersonResponse.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ blocked + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ personView + PersonView + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/BlockPersonResponse/BlockPersonResponse.fromJson.html b/doc/api/lemmy_api_client/BlockPersonResponse/BlockPersonResponse.fromJson.html new file mode 100644 index 00000000..1339812d --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse/BlockPersonResponse.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + BlockPersonResponse.fromJson constructor - BlockPersonResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
BlockPersonResponse.fromJson
+ +
+ +
+
+
+
+
+

BlockPersonResponse.fromJson constructor +

+ +
+ + BlockPersonResponse.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory BlockPersonResponse.fromJson(Map<String, dynamic> json) => _$BlockPersonResponseFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/BlockPersonResponse/BlockPersonResponse.html b/doc/api/lemmy_api_client/BlockPersonResponse/BlockPersonResponse.html new file mode 100644 index 00000000..3ccf926b --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse/BlockPersonResponse.html @@ -0,0 +1,112 @@ + + + + + + + + BlockPersonResponse constructor - BlockPersonResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
BlockPersonResponse
+ +
+ +
+
+
+
+
+

BlockPersonResponse constructor +

+ +
+ + BlockPersonResponse({
  1. required PersonView personView,
  2. +
  3. required bool blocked,
  4. +
}) +
+ + + + +
+

Implementation

+
BlockPersonResponse({
+  required this.personView,
+  required this.blocked,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/BlockPersonResponse/blocked.html b/doc/api/lemmy_api_client/BlockPersonResponse/blocked.html new file mode 100644 index 00000000..6cccf194 --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse/blocked.html @@ -0,0 +1,111 @@ + + + + + + + + blocked property - BlockPersonResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
blocked
+ +
+ +
+
+
+
+
+

blocked property +

+ + +
+ + bool + blocked +
final
+ +
+ + + +
+

Implementation

+
final bool blocked;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/BlockPersonResponse/personView.html b/doc/api/lemmy_api_client/BlockPersonResponse/personView.html new file mode 100644 index 00000000..2cc7ebb6 --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse/personView.html @@ -0,0 +1,111 @@ + + + + + + + + personView property - BlockPersonResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
personView
+ +
+ +
+
+
+
+
+

personView property +

+ + +
+ + PersonView + personView +
final
+ +
+ + + +
+

Implementation

+
final PersonView personView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/BlockPersonResponse/toJson.html b/doc/api/lemmy_api_client/BlockPersonResponse/toJson.html new file mode 100644 index 00000000..e396958c --- /dev/null +++ b/doc/api/lemmy_api_client/BlockPersonResponse/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - BlockPersonResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$BlockPersonResponseToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment-class-sidebar.html b/doc/api/lemmy_api_client/Comment-class-sidebar.html new file mode 100644 index 00000000..0c6f656e --- /dev/null +++ b/doc/api/lemmy_api_client/Comment-class-sidebar.html @@ -0,0 +1,98 @@ +
    + +
  1. Constructors
  2. +
  3. Comment
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + apId +
  10. + +
  11. + content +
  12. + +
  13. + creatorId +
  14. + +
  15. + deleted +
  16. + +
  17. + distinguished +
  18. + +
  19. + hashCode +
  20. + +
  21. + id +
  22. + +
  23. + languageId +
  24. + +
  25. + local +
  26. + +
  27. + path +
  28. + +
  29. + postId +
  30. + +
  31. + published +
  32. + +
  33. + removed +
  34. + +
  35. + runtimeType +
  36. + +
  37. + updated +
  38. + +
  39. Methods
  40. + +
  41. + noSuchMethod +
  42. + +
  43. + toJson +
  44. + +
  45. + toString +
  46. + +
  47. Operators
  48. + +
  49. + operator == +
  50. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Comment-class.html b/doc/api/lemmy_api_client/Comment-class.html new file mode 100644 index 00000000..5b7c7aee --- /dev/null +++ b/doc/api/lemmy_api_client/Comment-class.html @@ -0,0 +1,396 @@ + + + + + + + + Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Comment
+ +
+ +
+
+
+
+
+

Comment class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Comment({required int id, required int creatorId, required int postId, required String content, required bool removed, required DateTime published, DateTime? updated, required bool deleted, required String apId, required bool local, required String path, required bool distinguished, required int languageId}) +
+
+ +
+
+ Comment.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ apId + String + + +
+
+ +
final
+ +
+ +
+ content + String + + +
+
+ +
final
+ +
+ +
+ creatorId + int + + +
+
+ +
final
+ +
+ +
+ deleted + bool + + +
+
+ +
final
+ +
+ +
+ distinguished + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ languageId + int + + +
+
+ +
final
+ +
+ +
+ local + bool + + +
+
+ +
final
+ +
+ +
+ path + String + + +
+
+ +
final
+ +
+ +
+ postId + int + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ removed + bool + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/Comment.fromJson.html b/doc/api/lemmy_api_client/Comment/Comment.fromJson.html new file mode 100644 index 00000000..f2b65ee9 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/Comment.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Comment.fromJson constructor - Comment - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Comment.fromJson
+ +
+ +
+
+
+
+
+

Comment.fromJson constructor +

+ +
+ + Comment.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Comment.fromJson(Map<String, dynamic> json) => _$CommentFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/Comment.html b/doc/api/lemmy_api_client/Comment/Comment.html new file mode 100644 index 00000000..9e9e11f9 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/Comment.html @@ -0,0 +1,134 @@ + + + + + + + + Comment constructor - Comment - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Comment
+ +
+ +
+
+
+
+
+

Comment constructor +

+ +
+ + Comment({
  1. required int id,
  2. +
  3. required int creatorId,
  4. +
  5. required int postId,
  6. +
  7. required String content,
  8. +
  9. required bool removed,
  10. +
  11. required DateTime published,
  12. +
  13. DateTime? updated,
  14. +
  15. required bool deleted,
  16. +
  17. required String apId,
  18. +
  19. required bool local,
  20. +
  21. required String path,
  22. +
  23. required bool distinguished,
  24. +
  25. required int languageId,
  26. +
}) +
+ + + + +
+

Implementation

+
Comment({
+  required this.id,
+  required this.creatorId,
+  required this.postId,
+  required this.content,
+  required this.removed,
+  required this.published,
+  this.updated,
+  required this.deleted,
+  required this.apId,
+  required this.local,
+  required this.path,
+  required this.distinguished,
+  required this.languageId,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/apId.html b/doc/api/lemmy_api_client/Comment/apId.html new file mode 100644 index 00000000..9d8464fe --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/apId.html @@ -0,0 +1,111 @@ + + + + + + + + apId property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
apId
+ +
+ +
+
+
+
+
+

apId property +

+ + +
+ + String + apId +
final
+ +
+ + + +
+

Implementation

+
final String apId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/content.html b/doc/api/lemmy_api_client/Comment/content.html new file mode 100644 index 00000000..3f73e41a --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/content.html @@ -0,0 +1,111 @@ + + + + + + + + content property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
content
+ +
+ +
+
+
+
+
+

content property +

+ + +
+ + String + content +
final
+ +
+ + + +
+

Implementation

+
final String content;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/creatorId.html b/doc/api/lemmy_api_client/Comment/creatorId.html new file mode 100644 index 00000000..7eb6e110 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/creatorId.html @@ -0,0 +1,111 @@ + + + + + + + + creatorId property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorId
+ +
+ +
+
+
+
+
+

creatorId property +

+ + +
+ + int + creatorId +
final
+ +
+ + + +
+

Implementation

+
final int creatorId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/deleted.html b/doc/api/lemmy_api_client/Comment/deleted.html new file mode 100644 index 00000000..33a17430 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/deleted.html @@ -0,0 +1,111 @@ + + + + + + + + deleted property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
deleted
+ +
+ +
+
+
+
+
+

deleted property +

+ + +
+ + bool + deleted +
final
+ +
+ + + +
+

Implementation

+
final bool deleted;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/distinguished.html b/doc/api/lemmy_api_client/Comment/distinguished.html new file mode 100644 index 00000000..f9ff5fdf --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/distinguished.html @@ -0,0 +1,111 @@ + + + + + + + + distinguished property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
distinguished
+ +
+ +
+
+
+
+
+

distinguished property +

+ + +
+ + bool + distinguished +
final
+ +
+ + + +
+

Implementation

+
final bool distinguished;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/id.html b/doc/api/lemmy_api_client/Comment/id.html new file mode 100644 index 00000000..2b2ab0b3 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/languageId.html b/doc/api/lemmy_api_client/Comment/languageId.html new file mode 100644 index 00000000..3c457f52 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/languageId.html @@ -0,0 +1,111 @@ + + + + + + + + languageId property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
languageId
+ +
+ +
+
+
+
+
+

languageId property +

+ + +
+ + int + languageId +
final
+ +
+ + + +
+

Implementation

+
final int languageId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/local.html b/doc/api/lemmy_api_client/Comment/local.html new file mode 100644 index 00000000..52e2de97 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/local.html @@ -0,0 +1,111 @@ + + + + + + + + local property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
local
+ +
+ +
+
+
+
+
+

local property +

+ + +
+ + bool + local +
final
+ +
+ + + +
+

Implementation

+
final bool local;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/path.html b/doc/api/lemmy_api_client/Comment/path.html new file mode 100644 index 00000000..d7bc15e6 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/path.html @@ -0,0 +1,111 @@ + + + + + + + + path property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
path
+ +
+ +
+
+
+
+
+

path property +

+ + +
+ + String + path +
final
+ +
+ + + +
+

Implementation

+
final String path;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/postId.html b/doc/api/lemmy_api_client/Comment/postId.html new file mode 100644 index 00000000..312c58f1 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/postId.html @@ -0,0 +1,111 @@ + + + + + + + + postId property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postId
+ +
+ +
+
+
+
+
+

postId property +

+ + +
+ + int + postId +
final
+ +
+ + + +
+

Implementation

+
final int postId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/published.html b/doc/api/lemmy_api_client/Comment/published.html new file mode 100644 index 00000000..ff6a8c42 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/removed.html b/doc/api/lemmy_api_client/Comment/removed.html new file mode 100644 index 00000000..22c7c89d --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/removed.html @@ -0,0 +1,111 @@ + + + + + + + + removed property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
removed
+ +
+ +
+
+
+
+
+

removed property +

+ + +
+ + bool + removed +
final
+ +
+ + + +
+

Implementation

+
final bool removed;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/toJson.html b/doc/api/lemmy_api_client/Comment/toJson.html new file mode 100644 index 00000000..ddad5b72 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommentToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Comment/updated.html b/doc/api/lemmy_api_client/Comment/updated.html new file mode 100644 index 00000000..2e923728 --- /dev/null +++ b/doc/api/lemmy_api_client/Comment/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Comment class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates-class-sidebar.html b/doc/api/lemmy_api_client/CommentAggregates-class-sidebar.html new file mode 100644 index 00000000..eb5c9e06 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates-class-sidebar.html @@ -0,0 +1,78 @@ +
    + +
  1. Constructors
  2. +
  3. CommentAggregates
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + childCount +
  10. + +
  11. + commentId +
  12. + +
  13. + downvotes +
  14. + +
  15. + hashCode +
  16. + +
  17. + published +
  18. + +
  19. + reportCount +
  20. + +
  21. + runtimeType +
  22. + +
  23. + score +
  24. + +
  25. + unresolvedReportCount +
  26. + +
  27. + upvotes +
  28. + +
  29. Methods
  30. + +
  31. + noSuchMethod +
  32. + +
  33. + toJson +
  34. + +
  35. + toString +
  36. + +
  37. Operators
  38. + +
  39. + operator == +
  40. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommentAggregates-class.html b/doc/api/lemmy_api_client/CommentAggregates-class.html new file mode 100644 index 00000000..afb9e8e2 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates-class.html @@ -0,0 +1,336 @@ + + + + + + + + CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentAggregates
+ +
+ +
+
+
+
+
+

CommentAggregates class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommentAggregates({required int commentId, required int score, required int upvotes, required int downvotes, required DateTime published, required int childCount, int? reportCount, int? unresolvedReportCount}) +
+
+ +
+
+ CommentAggregates.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ childCount + int + + +
+
+ +
final
+ +
+ +
+ commentId + int + + +
+
+ +
final
+ +
+ +
+ downvotes + int + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ reportCount + int? + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ score + int + + +
+
+ +
final
+ +
+ +
+ unresolvedReportCount + int? + + +
+
+ +
final
+ +
+ +
+ upvotes + int + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/CommentAggregates.fromJson.html b/doc/api/lemmy_api_client/CommentAggregates/CommentAggregates.fromJson.html new file mode 100644 index 00000000..6c5a2ddd --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/CommentAggregates.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommentAggregates.fromJson constructor - CommentAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentAggregates.fromJson
+ +
+ +
+
+
+
+
+

CommentAggregates.fromJson constructor +

+ +
+ + CommentAggregates.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommentAggregates.fromJson(Map<String, dynamic> json) => _$CommentAggregatesFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/CommentAggregates.html b/doc/api/lemmy_api_client/CommentAggregates/CommentAggregates.html new file mode 100644 index 00000000..8cd9eed9 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/CommentAggregates.html @@ -0,0 +1,124 @@ + + + + + + + + CommentAggregates constructor - CommentAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentAggregates
+ +
+ +
+
+
+
+
+

CommentAggregates constructor +

+ +
+ + CommentAggregates({
  1. required int commentId,
  2. +
  3. required int score,
  4. +
  5. required int upvotes,
  6. +
  7. required int downvotes,
  8. +
  9. required DateTime published,
  10. +
  11. required int childCount,
  12. +
  13. int? reportCount,
  14. +
  15. int? unresolvedReportCount,
  16. +
}) +
+ + + + +
+

Implementation

+
CommentAggregates({
+  required this.commentId,
+  required this.score,
+  required this.upvotes,
+  required this.downvotes,
+  required this.published,
+  required this.childCount,
+  this.reportCount,
+  this.unresolvedReportCount,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/childCount.html b/doc/api/lemmy_api_client/CommentAggregates/childCount.html new file mode 100644 index 00000000..9cbbb8d1 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/childCount.html @@ -0,0 +1,111 @@ + + + + + + + + childCount property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
childCount
+ +
+ +
+
+
+
+
+

childCount property +

+ + +
+ + int + childCount +
final
+ +
+ + + +
+

Implementation

+
final int childCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/commentId.html b/doc/api/lemmy_api_client/CommentAggregates/commentId.html new file mode 100644 index 00000000..f6c34a47 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/commentId.html @@ -0,0 +1,111 @@ + + + + + + + + commentId property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
commentId
+ +
+ +
+
+
+
+
+

commentId property +

+ + +
+ + int + commentId +
final
+ +
+ + + +
+

Implementation

+
final int commentId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/downvotes.html b/doc/api/lemmy_api_client/CommentAggregates/downvotes.html new file mode 100644 index 00000000..354ba4e3 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/downvotes.html @@ -0,0 +1,111 @@ + + + + + + + + downvotes property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
downvotes
+ +
+ +
+
+
+
+
+

downvotes property +

+ + +
+ + int + downvotes +
final
+ +
+ + + +
+

Implementation

+
final int downvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/published.html b/doc/api/lemmy_api_client/CommentAggregates/published.html new file mode 100644 index 00000000..8f5a83bc --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/reportCount.html b/doc/api/lemmy_api_client/CommentAggregates/reportCount.html new file mode 100644 index 00000000..f4c63bcf --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/reportCount.html @@ -0,0 +1,111 @@ + + + + + + + + reportCount property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
reportCount
+ +
+ +
+
+
+
+
+

reportCount property +

+ + +
+ + int? + reportCount +
final
+ +
+ + + +
+

Implementation

+
final int? reportCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/score.html b/doc/api/lemmy_api_client/CommentAggregates/score.html new file mode 100644 index 00000000..2a40e026 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/score.html @@ -0,0 +1,111 @@ + + + + + + + + score property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
score
+ +
+ +
+
+
+
+
+

score property +

+ + +
+ + int + score +
final
+ +
+ + + +
+

Implementation

+
final int score;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/toJson.html b/doc/api/lemmy_api_client/CommentAggregates/toJson.html new file mode 100644 index 00000000..ffc9d527 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommentAggregatesToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/unresolvedReportCount.html b/doc/api/lemmy_api_client/CommentAggregates/unresolvedReportCount.html new file mode 100644 index 00000000..3810faf1 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/unresolvedReportCount.html @@ -0,0 +1,111 @@ + + + + + + + + unresolvedReportCount property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
unresolvedReportCount
+ +
+ +
+
+
+
+
+

unresolvedReportCount property +

+ + +
+ + int? + unresolvedReportCount +
final
+ +
+ + + +
+

Implementation

+
final int? unresolvedReportCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentAggregates/upvotes.html b/doc/api/lemmy_api_client/CommentAggregates/upvotes.html new file mode 100644 index 00000000..89eaa4a1 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentAggregates/upvotes.html @@ -0,0 +1,111 @@ + + + + + + + + upvotes property - CommentAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
upvotes
+ +
+ +
+
+
+
+
+

upvotes property +

+ + +
+ + int + upvotes +
final
+ +
+ + + +
+

Implementation

+
final int upvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentSortType-enum-sidebar.html b/doc/api/lemmy_api_client/CommentSortType-enum-sidebar.html new file mode 100644 index 00000000..6b85e17e --- /dev/null +++ b/doc/api/lemmy_api_client/CommentSortType-enum-sidebar.html @@ -0,0 +1,58 @@ +
    + + +
  1. Values
  2. +
  3. hot
  4. +
  5. top
  6. +
  7. newest
  8. +
  9. old
  10. +
  11. controversial
  12. + + +
  13. + Properties +
  14. + +
  15. + hashCode +
  16. + +
  17. + index +
  18. + +
  19. + name + (ext) +
  20. + +
  21. + runtimeType +
  22. + +
  23. Methods
  24. + +
  25. + noSuchMethod +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
  33. Constants
  34. +
  35. values
  36. +
diff --git a/doc/api/lemmy_api_client/CommentSortType.html b/doc/api/lemmy_api_client/CommentSortType.html new file mode 100644 index 00000000..bd88767c --- /dev/null +++ b/doc/api/lemmy_api_client/CommentSortType.html @@ -0,0 +1,328 @@ + + + + + + + + CommentSortType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentSortType
+ +
+ +
+
+
+
+
+ +

+ CommentSortType + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ hot + → const CommentSortType + + +
+
+ + + +
+ +
+ top + → const CommentSortType + + +
+
+ + + +
+ +
+ newest + → const CommentSortType + + +
+
+ + + +
+ +
+ old + → const CommentSortType + + +
+
+ + + +
+ +
+ controversial + → const CommentSortType + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<CommentSortType> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentSortType/values-constant.html b/doc/api/lemmy_api_client/CommentSortType/values-constant.html new file mode 100644 index 00000000..a769f86e --- /dev/null +++ b/doc/api/lemmy_api_client/CommentSortType/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - CommentSortType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<CommentSortType> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView-class-sidebar.html b/doc/api/lemmy_api_client/CommentView-class-sidebar.html new file mode 100644 index 00000000..7ec67c82 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView-class-sidebar.html @@ -0,0 +1,98 @@ +
    + +
  1. Constructors
  2. +
  3. CommentView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + bannedFromCommunity +
  10. + +
  11. + comment +
  12. + +
  13. + community +
  14. + +
  15. + counts +
  16. + +
  17. + creator +
  18. + +
  19. + creatorBannedFromCommunity +
  20. + +
  21. + creatorBlocked +
  22. + +
  23. + creatorIsAdmin +
  24. + +
  25. + creatorIsModerator +
  26. + +
  27. + hashCode +
  28. + +
  29. + myVote +
  30. + +
  31. + post +
  32. + +
  33. + runtimeType +
  34. + +
  35. + saved +
  36. + +
  37. + subscribed +
  38. + +
  39. Methods
  40. + +
  41. + noSuchMethod +
  42. + +
  43. + toJson +
  44. + +
  45. + toString +
  46. + +
  47. Operators
  48. + +
  49. + operator == +
  50. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommentView-class.html b/doc/api/lemmy_api_client/CommentView-class.html new file mode 100644 index 00000000..17a92a17 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView-class.html @@ -0,0 +1,396 @@ + + + + + + + + CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentView
+ +
+ +
+
+
+
+
+

CommentView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommentView({required Comment comment, required Person creator, required Post post, required Community community, required CommentAggregates counts, required bool creatorBannedFromCommunity, required bool bannedFromCommunity, required bool creatorIsModerator, required bool creatorIsAdmin, required SubscribedType subscribed, required bool saved, required bool creatorBlocked, int? myVote}) +
+
+ +
+
+ CommentView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ bannedFromCommunity + bool + + +
+
+ +
final
+ +
+ +
+ comment + Comment + + +
+
+ +
final
+ +
+ +
+ community + Community + + +
+
+ +
final
+ +
+ +
+ counts + CommentAggregates + + +
+
+ +
final
+ +
+ +
+ creator + Person + + +
+
+ +
final
+ +
+ +
+ creatorBannedFromCommunity + bool + + +
+
+ +
final
+ +
+ +
+ creatorBlocked + bool + + +
+
+ +
final
+ +
+ +
+ creatorIsAdmin + bool + + +
+
+ +
final
+ +
+ +
+ creatorIsModerator + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ myVote + int? + + +
+
+ +
final
+ +
+ +
+ post + Post + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ saved + bool + + +
+
+ +
final
+ +
+ +
+ subscribed + SubscribedType + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/CommentView.fromJson.html b/doc/api/lemmy_api_client/CommentView/CommentView.fromJson.html new file mode 100644 index 00000000..2942e54e --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/CommentView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommentView.fromJson constructor - CommentView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentView.fromJson
+ +
+ +
+
+
+
+
+

CommentView.fromJson constructor +

+ +
+ + CommentView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommentView.fromJson(Map<String, dynamic> json) => _$CommentViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/CommentView.html b/doc/api/lemmy_api_client/CommentView/CommentView.html new file mode 100644 index 00000000..b843a11d --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/CommentView.html @@ -0,0 +1,134 @@ + + + + + + + + CommentView constructor - CommentView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommentView
+ +
+ +
+
+
+
+
+

CommentView constructor +

+ +
+ + CommentView({
  1. required Comment comment,
  2. +
  3. required Person creator,
  4. +
  5. required Post post,
  6. +
  7. required Community community,
  8. +
  9. required CommentAggregates counts,
  10. +
  11. required bool creatorBannedFromCommunity,
  12. +
  13. required bool bannedFromCommunity,
  14. +
  15. required bool creatorIsModerator,
  16. +
  17. required bool creatorIsAdmin,
  18. +
  19. required SubscribedType subscribed,
  20. +
  21. required bool saved,
  22. +
  23. required bool creatorBlocked,
  24. +
  25. int? myVote,
  26. +
}) +
+ + + + +
+

Implementation

+
CommentView({
+  required this.comment,
+  required this.creator,
+  required this.post,
+  required this.community,
+  required this.counts,
+  required this.creatorBannedFromCommunity,
+  required this.bannedFromCommunity,
+  required this.creatorIsModerator,
+  required this.creatorIsAdmin,
+  required this.subscribed,
+  required this.saved,
+  required this.creatorBlocked,
+  this.myVote,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/bannedFromCommunity.html b/doc/api/lemmy_api_client/CommentView/bannedFromCommunity.html new file mode 100644 index 00000000..fcd8943c --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/bannedFromCommunity.html @@ -0,0 +1,111 @@ + + + + + + + + bannedFromCommunity property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
bannedFromCommunity
+ +
+ +
+
+
+
+
+

bannedFromCommunity property +

+ + +
+ + bool + bannedFromCommunity +
final
+ +
+ + + +
+

Implementation

+
final bool bannedFromCommunity;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/comment.html b/doc/api/lemmy_api_client/CommentView/comment.html new file mode 100644 index 00000000..2f753bf2 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/comment.html @@ -0,0 +1,111 @@ + + + + + + + + comment property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
comment
+ +
+ +
+
+
+
+
+

comment property +

+ + +
+ + Comment + comment +
final
+ +
+ + + +
+

Implementation

+
final Comment comment;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/community.html b/doc/api/lemmy_api_client/CommentView/community.html new file mode 100644 index 00000000..dbec42a2 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/community.html @@ -0,0 +1,111 @@ + + + + + + + + community property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
community
+ +
+ +
+
+
+
+
+

community property +

+ + +
+ + Community + community +
final
+ +
+ + + +
+

Implementation

+
final Community community;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/counts.html b/doc/api/lemmy_api_client/CommentView/counts.html new file mode 100644 index 00000000..b1ded287 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/counts.html @@ -0,0 +1,111 @@ + + + + + + + + counts property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
counts
+ +
+ +
+
+
+
+
+

counts property +

+ + +
+ + CommentAggregates + counts +
final
+ +
+ + + +
+

Implementation

+
final CommentAggregates counts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/creator.html b/doc/api/lemmy_api_client/CommentView/creator.html new file mode 100644 index 00000000..71cfa6d7 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/creator.html @@ -0,0 +1,111 @@ + + + + + + + + creator property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creator
+ +
+ +
+
+
+
+
+

creator property +

+ + +
+ + Person + creator +
final
+ +
+ + + +
+

Implementation

+
final Person creator;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/creatorBannedFromCommunity.html b/doc/api/lemmy_api_client/CommentView/creatorBannedFromCommunity.html new file mode 100644 index 00000000..9b9bb90d --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/creatorBannedFromCommunity.html @@ -0,0 +1,111 @@ + + + + + + + + creatorBannedFromCommunity property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorBannedFromCommunity
+ +
+ +
+
+
+
+
+

creatorBannedFromCommunity property +

+ + +
+ + bool + creatorBannedFromCommunity +
final
+ +
+ + + +
+

Implementation

+
final bool creatorBannedFromCommunity;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/creatorBlocked.html b/doc/api/lemmy_api_client/CommentView/creatorBlocked.html new file mode 100644 index 00000000..e21bc88b --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/creatorBlocked.html @@ -0,0 +1,111 @@ + + + + + + + + creatorBlocked property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorBlocked
+ +
+ +
+
+
+
+
+

creatorBlocked property +

+ + +
+ + bool + creatorBlocked +
final
+ +
+ + + +
+

Implementation

+
final bool creatorBlocked;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/creatorIsAdmin.html b/doc/api/lemmy_api_client/CommentView/creatorIsAdmin.html new file mode 100644 index 00000000..8c723200 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/creatorIsAdmin.html @@ -0,0 +1,111 @@ + + + + + + + + creatorIsAdmin property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorIsAdmin
+ +
+ +
+
+
+
+
+

creatorIsAdmin property +

+ + +
+ + bool + creatorIsAdmin +
final
+ +
+ + + +
+

Implementation

+
final bool creatorIsAdmin;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/creatorIsModerator.html b/doc/api/lemmy_api_client/CommentView/creatorIsModerator.html new file mode 100644 index 00000000..fa8bde9f --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/creatorIsModerator.html @@ -0,0 +1,111 @@ + + + + + + + + creatorIsModerator property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorIsModerator
+ +
+ +
+
+
+
+
+

creatorIsModerator property +

+ + +
+ + bool + creatorIsModerator +
final
+ +
+ + + +
+

Implementation

+
final bool creatorIsModerator;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/myVote.html b/doc/api/lemmy_api_client/CommentView/myVote.html new file mode 100644 index 00000000..6c860f82 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/myVote.html @@ -0,0 +1,111 @@ + + + + + + + + myVote property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
myVote
+ +
+ +
+
+
+
+
+

myVote property +

+ + +
+ + int? + myVote +
final
+ +
+ + + +
+

Implementation

+
final int? myVote;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/post.html b/doc/api/lemmy_api_client/CommentView/post.html new file mode 100644 index 00000000..cc3f28b3 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/post.html @@ -0,0 +1,111 @@ + + + + + + + + post property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
post
+ +
+ +
+
+
+
+
+

post property +

+ + +
+ + Post + post +
final
+ +
+ + + +
+

Implementation

+
final Post post;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/saved.html b/doc/api/lemmy_api_client/CommentView/saved.html new file mode 100644 index 00000000..7c079f6f --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/saved.html @@ -0,0 +1,111 @@ + + + + + + + + saved property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
saved
+ +
+ +
+
+
+
+
+

saved property +

+ + +
+ + bool + saved +
final
+ +
+ + + +
+

Implementation

+
final bool saved;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/subscribed.html b/doc/api/lemmy_api_client/CommentView/subscribed.html new file mode 100644 index 00000000..9bfb3d00 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/subscribed.html @@ -0,0 +1,117 @@ + + + + + + + + subscribed property - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
subscribed
+ +
+ +
+
+
+
+
+

subscribed property +

+ + +
+ +
+
    +
  1. @JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson)
  2. +
+
+ SubscribedType + subscribed +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson)
+final SubscribedType subscribed;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommentView/toJson.html b/doc/api/lemmy_api_client/CommentView/toJson.html new file mode 100644 index 00000000..4fb3f699 --- /dev/null +++ b/doc/api/lemmy_api_client/CommentView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommentView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommentViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community-class-sidebar.html b/doc/api/lemmy_api_client/Community-class-sidebar.html new file mode 100644 index 00000000..97f0e318 --- /dev/null +++ b/doc/api/lemmy_api_client/Community-class-sidebar.html @@ -0,0 +1,118 @@ +
    + +
  1. Constructors
  2. +
  3. Community
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + actorId +
  10. + +
  11. + banner +
  12. + +
  13. + deleted +
  14. + +
  15. + description +
  16. + +
  17. + hashCode +
  18. + +
  19. + hidden +
  20. + +
  21. + icon +
  22. + +
  23. + id +
  24. + +
  25. + instanceId +
  26. + +
  27. + local +
  28. + +
  29. + name +
  30. + +
  31. + nsfw +
  32. + +
  33. + postingRestrictedToMods +
  34. + +
  35. + published +
  36. + +
  37. + removed +
  38. + +
  39. + runtimeType +
  40. + +
  41. + sidebar +
  42. + +
  43. + title +
  44. + +
  45. + updated +
  46. + +
  47. + visibility +
  48. + +
  49. Methods
  50. + +
  51. + noSuchMethod +
  52. + +
  53. + toJson +
  54. + +
  55. + toString +
  56. + +
  57. Operators
  58. + +
  59. + operator == +
  60. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Community-class.html b/doc/api/lemmy_api_client/Community-class.html new file mode 100644 index 00000000..233ca581 --- /dev/null +++ b/doc/api/lemmy_api_client/Community-class.html @@ -0,0 +1,456 @@ + + + + + + + + Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Community
+ +
+ +
+
+
+
+
+

Community class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Community({required int id, required String name, required String title, String? sidebar, required bool removed, required DateTime published, DateTime? updated, required bool deleted, required bool nsfw, required String actorId, required bool local, String? icon, String? banner, required bool hidden, required bool postingRestrictedToMods, required int instanceId, required CommunityVisibility visibility, String? description}) +
+
+ +
+
+ Community.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ actorId + String + + +
+
+ +
final
+ +
+ + +
+ +
final
+ +
+ +
+ deleted + bool + + +
+
+ +
final
+ +
+ +
+ description + String? + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ hidden + bool + + +
+
+ +
final
+ +
+ +
+ icon + String? + + +
+
+ +
final
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ instanceId + int + + +
+
+ +
final
+ +
+ +
+ local + bool + + +
+
+ +
final
+ +
+ +
+ name + String + + +
+
+ +
final
+ +
+ +
+ nsfw + bool + + +
+
+ +
final
+ +
+ +
+ postingRestrictedToMods + bool + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ removed + bool + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ + +
+ +
final
+ +
+ +
+ title + String + + +
+
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+ visibility + CommunityVisibility + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/Community.fromJson.html b/doc/api/lemmy_api_client/Community/Community.fromJson.html new file mode 100644 index 00000000..2a203fda --- /dev/null +++ b/doc/api/lemmy_api_client/Community/Community.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Community.fromJson constructor - Community - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Community.fromJson
+ +
+ +
+
+
+
+
+

Community.fromJson constructor +

+ +
+ + Community.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Community.fromJson(Map<String, dynamic> json) => _$CommunityFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/Community.html b/doc/api/lemmy_api_client/Community/Community.html new file mode 100644 index 00000000..11ab5007 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/Community.html @@ -0,0 +1,144 @@ + + + + + + + + Community constructor - Community - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Community
+ +
+ +
+
+
+
+
+

Community constructor +

+ +
+ + Community({
  1. required int id,
  2. +
  3. required String name,
  4. +
  5. required String title,
  6. +
  7. String? sidebar,
  8. +
  9. required bool removed,
  10. +
  11. required DateTime published,
  12. +
  13. DateTime? updated,
  14. +
  15. required bool deleted,
  16. +
  17. required bool nsfw,
  18. +
  19. required String actorId,
  20. +
  21. required bool local,
  22. +
  23. String? icon,
  24. +
  25. String? banner,
  26. +
  27. required bool hidden,
  28. +
  29. required bool postingRestrictedToMods,
  30. +
  31. required int instanceId,
  32. +
  33. required CommunityVisibility visibility,
  34. +
  35. String? description,
  36. +
}) +
+ + + + +
+

Implementation

+
Community({
+  required this.id,
+  required this.name,
+  required this.title,
+  this.sidebar,
+  required this.removed,
+  required this.published,
+  this.updated,
+  required this.deleted,
+  required this.nsfw,
+  required this.actorId,
+  required this.local,
+  this.icon,
+  this.banner,
+  required this.hidden,
+  required this.postingRestrictedToMods,
+  required this.instanceId,
+  required this.visibility,
+  this.description,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/actorId.html b/doc/api/lemmy_api_client/Community/actorId.html new file mode 100644 index 00000000..a85952b9 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/actorId.html @@ -0,0 +1,111 @@ + + + + + + + + actorId property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
actorId
+ +
+ +
+
+
+
+
+

actorId property +

+ + +
+ + String + actorId +
final
+ +
+ + + +
+

Implementation

+
final String actorId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/banner.html b/doc/api/lemmy_api_client/Community/banner.html new file mode 100644 index 00000000..561faa97 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/banner.html @@ -0,0 +1,111 @@ + + + + + + + + banner property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
banner
+ +
+ +
+
+
+
+
+

banner property +

+ + +
+ + String? + banner +
final
+ +
+ + + +
+

Implementation

+
final String? banner;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/deleted.html b/doc/api/lemmy_api_client/Community/deleted.html new file mode 100644 index 00000000..1917a0f7 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/deleted.html @@ -0,0 +1,111 @@ + + + + + + + + deleted property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
deleted
+ +
+ +
+
+
+
+
+

deleted property +

+ + +
+ + bool + deleted +
final
+ +
+ + + +
+

Implementation

+
final bool deleted;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/description.html b/doc/api/lemmy_api_client/Community/description.html new file mode 100644 index 00000000..64e4e112 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/description.html @@ -0,0 +1,111 @@ + + + + + + + + description property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
description
+ +
+ +
+
+
+
+
+

description property +

+ + +
+ + String? + description +
final
+ +
+ + + +
+

Implementation

+
final String? description;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/hidden.html b/doc/api/lemmy_api_client/Community/hidden.html new file mode 100644 index 00000000..3e29e1cf --- /dev/null +++ b/doc/api/lemmy_api_client/Community/hidden.html @@ -0,0 +1,111 @@ + + + + + + + + hidden property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
hidden
+ +
+ +
+
+
+
+
+

hidden property +

+ + +
+ + bool + hidden +
final
+ +
+ + + +
+

Implementation

+
final bool hidden;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/icon.html b/doc/api/lemmy_api_client/Community/icon.html new file mode 100644 index 00000000..5e521b6a --- /dev/null +++ b/doc/api/lemmy_api_client/Community/icon.html @@ -0,0 +1,111 @@ + + + + + + + + icon property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
icon
+ +
+ +
+
+
+
+
+

icon property +

+ + +
+ + String? + icon +
final
+ +
+ + + +
+

Implementation

+
final String? icon;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/id.html b/doc/api/lemmy_api_client/Community/id.html new file mode 100644 index 00000000..2b37b2ed --- /dev/null +++ b/doc/api/lemmy_api_client/Community/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/instanceId.html b/doc/api/lemmy_api_client/Community/instanceId.html new file mode 100644 index 00000000..5ca29459 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/instanceId.html @@ -0,0 +1,111 @@ + + + + + + + + instanceId property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
instanceId
+ +
+ +
+
+
+
+
+

instanceId property +

+ + +
+ + int + instanceId +
final
+ +
+ + + +
+

Implementation

+
final int instanceId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/local.html b/doc/api/lemmy_api_client/Community/local.html new file mode 100644 index 00000000..c1ffc272 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/local.html @@ -0,0 +1,111 @@ + + + + + + + + local property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
local
+ +
+ +
+
+
+
+
+

local property +

+ + +
+ + bool + local +
final
+ +
+ + + +
+

Implementation

+
final bool local;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/name.html b/doc/api/lemmy_api_client/Community/name.html new file mode 100644 index 00000000..af48a2c1 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/name.html @@ -0,0 +1,111 @@ + + + + + + + + name property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
name
+ +
+ +
+
+
+
+
+

name property +

+ + +
+ + String + name +
final
+ +
+ + + +
+

Implementation

+
final String name;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/nsfw.html b/doc/api/lemmy_api_client/Community/nsfw.html new file mode 100644 index 00000000..bfabc00b --- /dev/null +++ b/doc/api/lemmy_api_client/Community/nsfw.html @@ -0,0 +1,111 @@ + + + + + + + + nsfw property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
nsfw
+ +
+ +
+
+
+
+
+

nsfw property +

+ + +
+ + bool + nsfw +
final
+ +
+ + + +
+

Implementation

+
final bool nsfw;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/postingRestrictedToMods.html b/doc/api/lemmy_api_client/Community/postingRestrictedToMods.html new file mode 100644 index 00000000..cd75e31c --- /dev/null +++ b/doc/api/lemmy_api_client/Community/postingRestrictedToMods.html @@ -0,0 +1,111 @@ + + + + + + + + postingRestrictedToMods property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postingRestrictedToMods
+ +
+ +
+
+
+
+
+

postingRestrictedToMods property +

+ + +
+ + bool + postingRestrictedToMods +
final
+ +
+ + + +
+

Implementation

+
final bool postingRestrictedToMods;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/published.html b/doc/api/lemmy_api_client/Community/published.html new file mode 100644 index 00000000..2b931a8a --- /dev/null +++ b/doc/api/lemmy_api_client/Community/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/removed.html b/doc/api/lemmy_api_client/Community/removed.html new file mode 100644 index 00000000..eb33ec2d --- /dev/null +++ b/doc/api/lemmy_api_client/Community/removed.html @@ -0,0 +1,111 @@ + + + + + + + + removed property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
removed
+ +
+ +
+
+
+
+
+

removed property +

+ + +
+ + bool + removed +
final
+ +
+ + + +
+

Implementation

+
final bool removed;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/sidebar.html b/doc/api/lemmy_api_client/Community/sidebar.html new file mode 100644 index 00000000..2b4745ab --- /dev/null +++ b/doc/api/lemmy_api_client/Community/sidebar.html @@ -0,0 +1,111 @@ + + + + + + + + sidebar property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
sidebar
+ +
+ +
+
+
+
+
+

sidebar property +

+ + +
+ + String? + sidebar +
final
+ +
+ + + +
+

Implementation

+
final String? sidebar;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/title.html b/doc/api/lemmy_api_client/Community/title.html new file mode 100644 index 00000000..f44ec5c8 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/title.html @@ -0,0 +1,111 @@ + + + + + + + + title property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
title
+ +
+ +
+
+
+
+
+

title property +

+ + +
+ + String + title +
final
+ +
+ + + +
+

Implementation

+
final String title;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/toJson.html b/doc/api/lemmy_api_client/Community/toJson.html new file mode 100644 index 00000000..a8fe14b6 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommunityToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/updated.html b/doc/api/lemmy_api_client/Community/updated.html new file mode 100644 index 00000000..778ebe07 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Community/visibility.html b/doc/api/lemmy_api_client/Community/visibility.html new file mode 100644 index 00000000..12d8d809 --- /dev/null +++ b/doc/api/lemmy_api_client/Community/visibility.html @@ -0,0 +1,117 @@ + + + + + + + + visibility property - Community class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
visibility
+ +
+ +
+
+
+
+
+

visibility property +

+ + +
+ +
+
    +
  1. @JsonKey(fromJson: lowercaseCommunityVisibilityFromJson, toJson: capitalizeCommunityVisibilityToJson)
  2. +
+
+ CommunityVisibility + visibility +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(fromJson: lowercaseCommunityVisibilityFromJson, toJson: capitalizeCommunityVisibilityToJson)
+final CommunityVisibility visibility;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates-class-sidebar.html b/doc/api/lemmy_api_client/CommunityAggregates-class-sidebar.html new file mode 100644 index 00000000..c0604fa2 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates-class-sidebar.html @@ -0,0 +1,86 @@ +
    + +
  1. Constructors
  2. +
  3. CommunityAggregates
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + comments +
  10. + +
  11. + communityId +
  12. + +
  13. + hashCode +
  14. + +
  15. + posts +
  16. + +
  17. + published +
  18. + +
  19. + runtimeType +
  20. + +
  21. + subscribers +
  22. + +
  23. + subscribersLocal +
  24. + +
  25. + usersActiveDay +
  26. + +
  27. + usersActiveHalfYear +
  28. + +
  29. + usersActiveMonth +
  30. + +
  31. + usersActiveWeek +
  32. + +
  33. Methods
  34. + +
  35. + noSuchMethod +
  36. + +
  37. + toJson +
  38. + +
  39. + toString +
  40. + +
  41. Operators
  42. + +
  43. + operator == +
  44. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommunityAggregates-class.html b/doc/api/lemmy_api_client/CommunityAggregates-class.html new file mode 100644 index 00000000..45e4e8d4 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates-class.html @@ -0,0 +1,360 @@ + + + + + + + + CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityAggregates
+ +
+ +
+
+
+
+
+

CommunityAggregates class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommunityAggregates({required int communityId, required int subscribers, required int posts, required int comments, required DateTime published, required int usersActiveDay, required int usersActiveWeek, required int usersActiveMonth, required int usersActiveHalfYear, required int subscribersLocal}) +
+
+ +
+
+ CommunityAggregates.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ comments + int + + +
+
+ +
final
+ +
+ +
+ communityId + int + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ posts + int + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ subscribers + int + + +
+
+ +
final
+ +
+ +
+ subscribersLocal + int + + +
+
+ +
final
+ +
+ +
+ usersActiveDay + int + + +
+
+ +
final
+ +
+ +
+ usersActiveHalfYear + int + + +
+
+ +
final
+ +
+ +
+ usersActiveMonth + int + + +
+
+ +
final
+ +
+ +
+ usersActiveWeek + int + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/CommunityAggregates.fromJson.html b/doc/api/lemmy_api_client/CommunityAggregates/CommunityAggregates.fromJson.html new file mode 100644 index 00000000..01f6d057 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/CommunityAggregates.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommunityAggregates.fromJson constructor - CommunityAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityAggregates.fromJson
+ +
+ +
+
+
+
+
+

CommunityAggregates.fromJson constructor +

+ +
+ + CommunityAggregates.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommunityAggregates.fromJson(Map<String, dynamic> json) => _$CommunityAggregatesFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/CommunityAggregates.html b/doc/api/lemmy_api_client/CommunityAggregates/CommunityAggregates.html new file mode 100644 index 00000000..e61fe052 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/CommunityAggregates.html @@ -0,0 +1,128 @@ + + + + + + + + CommunityAggregates constructor - CommunityAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityAggregates
+ +
+ +
+
+
+
+
+

CommunityAggregates constructor +

+ +
+ + CommunityAggregates({
  1. required int communityId,
  2. +
  3. required int subscribers,
  4. +
  5. required int posts,
  6. +
  7. required int comments,
  8. +
  9. required DateTime published,
  10. +
  11. required int usersActiveDay,
  12. +
  13. required int usersActiveWeek,
  14. +
  15. required int usersActiveMonth,
  16. +
  17. required int usersActiveHalfYear,
  18. +
  19. required int subscribersLocal,
  20. +
}) +
+ + + + +
+

Implementation

+
CommunityAggregates({
+  required this.communityId,
+  required this.subscribers,
+  required this.posts,
+  required this.comments,
+  required this.published,
+  required this.usersActiveDay,
+  required this.usersActiveWeek,
+  required this.usersActiveMonth,
+  required this.usersActiveHalfYear,
+  required this.subscribersLocal,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/comments.html b/doc/api/lemmy_api_client/CommunityAggregates/comments.html new file mode 100644 index 00000000..7b3b61fb --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/comments.html @@ -0,0 +1,111 @@ + + + + + + + + comments property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
comments
+ +
+ +
+
+
+
+
+

comments property +

+ + +
+ + int + comments +
final
+ +
+ + + +
+

Implementation

+
final int comments;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/communityId.html b/doc/api/lemmy_api_client/CommunityAggregates/communityId.html new file mode 100644 index 00000000..70c25507 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/communityId.html @@ -0,0 +1,111 @@ + + + + + + + + communityId property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communityId
+ +
+ +
+
+
+
+
+

communityId property +

+ + +
+ + int + communityId +
final
+ +
+ + + +
+

Implementation

+
final int communityId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/posts.html b/doc/api/lemmy_api_client/CommunityAggregates/posts.html new file mode 100644 index 00000000..c6e52555 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/posts.html @@ -0,0 +1,111 @@ + + + + + + + + posts property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
posts
+ +
+ +
+
+
+
+
+

posts property +

+ + +
+ + int + posts +
final
+ +
+ + + +
+

Implementation

+
final int posts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/published.html b/doc/api/lemmy_api_client/CommunityAggregates/published.html new file mode 100644 index 00000000..d6f5ae49 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/subscribers.html b/doc/api/lemmy_api_client/CommunityAggregates/subscribers.html new file mode 100644 index 00000000..26858bcb --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/subscribers.html @@ -0,0 +1,111 @@ + + + + + + + + subscribers property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
subscribers
+ +
+ +
+
+
+
+
+

subscribers property +

+ + +
+ + int + subscribers +
final
+ +
+ + + +
+

Implementation

+
final int subscribers;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/subscribersLocal.html b/doc/api/lemmy_api_client/CommunityAggregates/subscribersLocal.html new file mode 100644 index 00000000..064c3f47 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/subscribersLocal.html @@ -0,0 +1,111 @@ + + + + + + + + subscribersLocal property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
subscribersLocal
+ +
+ +
+
+
+
+
+

subscribersLocal property +

+ + +
+ + int + subscribersLocal +
final
+ +
+ + + +
+

Implementation

+
final int subscribersLocal;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/toJson.html b/doc/api/lemmy_api_client/CommunityAggregates/toJson.html new file mode 100644 index 00000000..7b00c460 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommunityAggregatesToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/usersActiveDay.html b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveDay.html new file mode 100644 index 00000000..c95a4b6a --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveDay.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveDay property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveDay
+ +
+ +
+
+
+
+
+

usersActiveDay property +

+ + +
+ + int + usersActiveDay +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveDay;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/usersActiveHalfYear.html b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveHalfYear.html new file mode 100644 index 00000000..28c69fe9 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveHalfYear.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveHalfYear property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveHalfYear
+ +
+ +
+
+
+
+
+

usersActiveHalfYear property +

+ + +
+ + int + usersActiveHalfYear +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveHalfYear;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/usersActiveMonth.html b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveMonth.html new file mode 100644 index 00000000..58c52198 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveMonth.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveMonth property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveMonth
+ +
+ +
+
+
+
+
+

usersActiveMonth property +

+ + +
+ + int + usersActiveMonth +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveMonth;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityAggregates/usersActiveWeek.html b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveWeek.html new file mode 100644 index 00000000..56a92240 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityAggregates/usersActiveWeek.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveWeek property - CommunityAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveWeek
+ +
+ +
+
+
+
+
+

usersActiveWeek property +

+ + +
+ + int + usersActiveWeek +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveWeek;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityFollowerView-class-sidebar.html b/doc/api/lemmy_api_client/CommunityFollowerView-class-sidebar.html new file mode 100644 index 00000000..a07a5f34 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView-class-sidebar.html @@ -0,0 +1,54 @@ +
    + +
  1. Constructors
  2. +
  3. CommunityFollowerView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + community +
  10. + +
  11. + follower +
  12. + +
  13. + hashCode +
  14. + +
  15. + runtimeType +
  16. + +
  17. Methods
  18. + +
  19. + noSuchMethod +
  20. + +
  21. + toJson +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommunityFollowerView-class.html b/doc/api/lemmy_api_client/CommunityFollowerView-class.html new file mode 100644 index 00000000..361529ff --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView-class.html @@ -0,0 +1,264 @@ + + + + + + + + CommunityFollowerView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityFollowerView
+ +
+ +
+
+
+
+
+

CommunityFollowerView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommunityFollowerView({required Community community, required Person follower}) +
+
+ +
+
+ CommunityFollowerView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ community + Community + + +
+
+ +
final
+ +
+ +
+ follower + Person + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityFollowerView/CommunityFollowerView.fromJson.html b/doc/api/lemmy_api_client/CommunityFollowerView/CommunityFollowerView.fromJson.html new file mode 100644 index 00000000..3051135d --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView/CommunityFollowerView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommunityFollowerView.fromJson constructor - CommunityFollowerView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityFollowerView.fromJson
+ +
+ +
+
+
+
+
+

CommunityFollowerView.fromJson constructor +

+ +
+ + CommunityFollowerView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommunityFollowerView.fromJson(Map<String, dynamic> json) => _$CommunityFollowerViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityFollowerView/CommunityFollowerView.html b/doc/api/lemmy_api_client/CommunityFollowerView/CommunityFollowerView.html new file mode 100644 index 00000000..cac54e7e --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView/CommunityFollowerView.html @@ -0,0 +1,112 @@ + + + + + + + + CommunityFollowerView constructor - CommunityFollowerView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityFollowerView
+ +
+ +
+
+
+
+
+

CommunityFollowerView constructor +

+ +
+ + CommunityFollowerView({
  1. required Community community,
  2. +
  3. required Person follower,
  4. +
}) +
+ + + + +
+

Implementation

+
CommunityFollowerView({
+  required this.community,
+  required this.follower,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityFollowerView/community.html b/doc/api/lemmy_api_client/CommunityFollowerView/community.html new file mode 100644 index 00000000..845717c7 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView/community.html @@ -0,0 +1,111 @@ + + + + + + + + community property - CommunityFollowerView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
community
+ +
+ +
+
+
+
+
+

community property +

+ + +
+ + Community + community +
final
+ +
+ + + +
+

Implementation

+
final Community community;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityFollowerView/follower.html b/doc/api/lemmy_api_client/CommunityFollowerView/follower.html new file mode 100644 index 00000000..13ed538b --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView/follower.html @@ -0,0 +1,111 @@ + + + + + + + + follower property - CommunityFollowerView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
follower
+ +
+ +
+
+
+
+
+

follower property +

+ + +
+ + Person + follower +
final
+ +
+ + + +
+

Implementation

+
final Person follower;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityFollowerView/toJson.html b/doc/api/lemmy_api_client/CommunityFollowerView/toJson.html new file mode 100644 index 00000000..8eaf4910 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityFollowerView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommunityFollowerView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommunityFollowerViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityModeratorView-class-sidebar.html b/doc/api/lemmy_api_client/CommunityModeratorView-class-sidebar.html new file mode 100644 index 00000000..1e2468c1 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView-class-sidebar.html @@ -0,0 +1,54 @@ +
    + +
  1. Constructors
  2. +
  3. CommunityModeratorView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + community +
  10. + +
  11. + hashCode +
  12. + +
  13. + moderator +
  14. + +
  15. + runtimeType +
  16. + +
  17. Methods
  18. + +
  19. + noSuchMethod +
  20. + +
  21. + toJson +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommunityModeratorView-class.html b/doc/api/lemmy_api_client/CommunityModeratorView-class.html new file mode 100644 index 00000000..c913bc8f --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView-class.html @@ -0,0 +1,264 @@ + + + + + + + + CommunityModeratorView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityModeratorView
+ +
+ +
+
+
+
+
+

CommunityModeratorView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommunityModeratorView({required Community community, required Person moderator}) +
+
+ +
+
+ CommunityModeratorView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ community + Community + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ moderator + Person + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityModeratorView/CommunityModeratorView.fromJson.html b/doc/api/lemmy_api_client/CommunityModeratorView/CommunityModeratorView.fromJson.html new file mode 100644 index 00000000..142d9f98 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView/CommunityModeratorView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommunityModeratorView.fromJson constructor - CommunityModeratorView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityModeratorView.fromJson
+ +
+ +
+
+
+
+
+

CommunityModeratorView.fromJson constructor +

+ +
+ + CommunityModeratorView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommunityModeratorView.fromJson(Map<String, dynamic> json) => _$CommunityModeratorViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityModeratorView/CommunityModeratorView.html b/doc/api/lemmy_api_client/CommunityModeratorView/CommunityModeratorView.html new file mode 100644 index 00000000..f1ad15d8 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView/CommunityModeratorView.html @@ -0,0 +1,112 @@ + + + + + + + + CommunityModeratorView constructor - CommunityModeratorView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityModeratorView
+ +
+ +
+
+
+
+
+

CommunityModeratorView constructor +

+ +
+ + CommunityModeratorView({
  1. required Community community,
  2. +
  3. required Person moderator,
  4. +
}) +
+ + + + +
+

Implementation

+
CommunityModeratorView({
+  required this.community,
+  required this.moderator,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityModeratorView/community.html b/doc/api/lemmy_api_client/CommunityModeratorView/community.html new file mode 100644 index 00000000..bb3faf68 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView/community.html @@ -0,0 +1,111 @@ + + + + + + + + community property - CommunityModeratorView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
community
+ +
+ +
+
+
+
+
+

community property +

+ + +
+ + Community + community +
final
+ +
+ + + +
+

Implementation

+
final Community community;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityModeratorView/moderator.html b/doc/api/lemmy_api_client/CommunityModeratorView/moderator.html new file mode 100644 index 00000000..12a109cc --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView/moderator.html @@ -0,0 +1,111 @@ + + + + + + + + moderator property - CommunityModeratorView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
moderator
+ +
+ +
+
+
+
+
+

moderator property +

+ + +
+ + Person + moderator +
final
+ +
+ + + +
+

Implementation

+
final Person moderator;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityModeratorView/toJson.html b/doc/api/lemmy_api_client/CommunityModeratorView/toJson.html new file mode 100644 index 00000000..658bc151 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityModeratorView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommunityModeratorView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommunityModeratorViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityResponse-class-sidebar.html b/doc/api/lemmy_api_client/CommunityResponse-class-sidebar.html new file mode 100644 index 00000000..5a4d4418 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse-class-sidebar.html @@ -0,0 +1,54 @@ +
    + +
  1. Constructors
  2. +
  3. CommunityResponse
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + communityView +
  10. + +
  11. + discussionLanguages +
  12. + +
  13. + hashCode +
  14. + +
  15. + runtimeType +
  16. + +
  17. Methods
  18. + +
  19. + noSuchMethod +
  20. + +
  21. + toJson +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommunityResponse-class.html b/doc/api/lemmy_api_client/CommunityResponse-class.html new file mode 100644 index 00000000..c0e43203 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse-class.html @@ -0,0 +1,264 @@ + + + + + + + + CommunityResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityResponse
+ +
+ +
+
+
+
+
+

CommunityResponse class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommunityResponse({required CommunityView communityView, required List<int> discussionLanguages}) +
+
+ +
+
+ CommunityResponse.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ communityView + CommunityView + + +
+
+ +
final
+ +
+ +
+ discussionLanguages + List<int> + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityResponse/CommunityResponse.fromJson.html b/doc/api/lemmy_api_client/CommunityResponse/CommunityResponse.fromJson.html new file mode 100644 index 00000000..19d001c0 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse/CommunityResponse.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommunityResponse.fromJson constructor - CommunityResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityResponse.fromJson
+ +
+ +
+
+
+
+
+

CommunityResponse.fromJson constructor +

+ +
+ + CommunityResponse.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommunityResponse.fromJson(Map<String, dynamic> json) => _$CommunityResponseFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityResponse/CommunityResponse.html b/doc/api/lemmy_api_client/CommunityResponse/CommunityResponse.html new file mode 100644 index 00000000..c297d266 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse/CommunityResponse.html @@ -0,0 +1,112 @@ + + + + + + + + CommunityResponse constructor - CommunityResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityResponse
+ +
+ +
+
+
+
+
+

CommunityResponse constructor +

+ +
+ + CommunityResponse({
  1. required CommunityView communityView,
  2. +
  3. required List<int> discussionLanguages,
  4. +
}) +
+ + + + +
+

Implementation

+
CommunityResponse({
+  required this.communityView,
+  required this.discussionLanguages,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityResponse/communityView.html b/doc/api/lemmy_api_client/CommunityResponse/communityView.html new file mode 100644 index 00000000..ff424a56 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse/communityView.html @@ -0,0 +1,111 @@ + + + + + + + + communityView property - CommunityResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communityView
+ +
+ +
+
+
+
+
+

communityView property +

+ + +
+ + CommunityView + communityView +
final
+ +
+ + + +
+

Implementation

+
final CommunityView communityView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityResponse/discussionLanguages.html b/doc/api/lemmy_api_client/CommunityResponse/discussionLanguages.html new file mode 100644 index 00000000..b6197397 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse/discussionLanguages.html @@ -0,0 +1,111 @@ + + + + + + + + discussionLanguages property - CommunityResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
discussionLanguages
+ +
+ +
+
+
+
+
+

discussionLanguages property +

+ + +
+ + List<int> + discussionLanguages +
final
+ +
+ + + +
+

Implementation

+
final List<int> discussionLanguages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityResponse/toJson.html b/doc/api/lemmy_api_client/CommunityResponse/toJson.html new file mode 100644 index 00000000..7768e3c8 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityResponse/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommunityResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommunityResponseToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView-class-sidebar.html b/doc/api/lemmy_api_client/CommunityView-class-sidebar.html new file mode 100644 index 00000000..8a3fde45 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView-class-sidebar.html @@ -0,0 +1,66 @@ +
    + +
  1. Constructors
  2. +
  3. CommunityView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + bannedFromCommunity +
  10. + +
  11. + blocked +
  12. + +
  13. + community +
  14. + +
  15. + counts +
  16. + +
  17. + hashCode +
  18. + +
  19. + runtimeType +
  20. + +
  21. + subscribed +
  22. + +
  23. Methods
  24. + +
  25. + noSuchMethod +
  26. + +
  27. + toJson +
  28. + +
  29. + toString +
  30. + +
  31. Operators
  32. + +
  33. + operator == +
  34. + + + + + + +
diff --git a/doc/api/lemmy_api_client/CommunityView-class.html b/doc/api/lemmy_api_client/CommunityView-class.html new file mode 100644 index 00000000..68ce425f --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView-class.html @@ -0,0 +1,300 @@ + + + + + + + + CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityView
+ +
+ +
+
+
+
+
+

CommunityView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ CommunityView({required Community community, required SubscribedType subscribed, required bool blocked, required CommunityAggregates counts, required bool bannedFromCommunity}) +
+
+ +
+
+ CommunityView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ bannedFromCommunity + bool + + +
+
+ +
final
+ +
+ +
+ blocked + bool + + +
+
+ +
final
+ +
+ +
+ community + Community + + +
+
+ +
final
+ +
+ +
+ counts + CommunityAggregates + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ subscribed + SubscribedType + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/CommunityView.fromJson.html b/doc/api/lemmy_api_client/CommunityView/CommunityView.fromJson.html new file mode 100644 index 00000000..6c90c99a --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/CommunityView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + CommunityView.fromJson constructor - CommunityView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityView.fromJson
+ +
+ +
+
+
+
+
+

CommunityView.fromJson constructor +

+ +
+ + CommunityView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory CommunityView.fromJson(Map<String, dynamic> json) => _$CommunityViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/CommunityView.html b/doc/api/lemmy_api_client/CommunityView/CommunityView.html new file mode 100644 index 00000000..5ffaa345 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/CommunityView.html @@ -0,0 +1,118 @@ + + + + + + + + CommunityView constructor - CommunityView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityView
+ +
+ +
+
+
+
+
+

CommunityView constructor +

+ +
+ + CommunityView({
  1. required Community community,
  2. +
  3. required SubscribedType subscribed,
  4. +
  5. required bool blocked,
  6. +
  7. required CommunityAggregates counts,
  8. +
  9. required bool bannedFromCommunity,
  10. +
}) +
+ + + + +
+

Implementation

+
CommunityView({
+  required this.community,
+  required this.subscribed,
+  required this.blocked,
+  required this.counts,
+  required this.bannedFromCommunity,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/bannedFromCommunity.html b/doc/api/lemmy_api_client/CommunityView/bannedFromCommunity.html new file mode 100644 index 00000000..3efb7047 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/bannedFromCommunity.html @@ -0,0 +1,111 @@ + + + + + + + + bannedFromCommunity property - CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
bannedFromCommunity
+ +
+ +
+
+
+
+
+

bannedFromCommunity property +

+ + +
+ + bool + bannedFromCommunity +
final
+ +
+ + + +
+

Implementation

+
final bool bannedFromCommunity;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/blocked.html b/doc/api/lemmy_api_client/CommunityView/blocked.html new file mode 100644 index 00000000..903f32ed --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/blocked.html @@ -0,0 +1,111 @@ + + + + + + + + blocked property - CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
blocked
+ +
+ +
+
+
+
+
+

blocked property +

+ + +
+ + bool + blocked +
final
+ +
+ + + +
+

Implementation

+
final bool blocked;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/community.html b/doc/api/lemmy_api_client/CommunityView/community.html new file mode 100644 index 00000000..12c2eba0 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/community.html @@ -0,0 +1,111 @@ + + + + + + + + community property - CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
community
+ +
+ +
+
+
+
+
+

community property +

+ + +
+ + Community + community +
final
+ +
+ + + +
+

Implementation

+
final Community community;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/counts.html b/doc/api/lemmy_api_client/CommunityView/counts.html new file mode 100644 index 00000000..747736dc --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/counts.html @@ -0,0 +1,111 @@ + + + + + + + + counts property - CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
counts
+ +
+ +
+
+
+
+
+

counts property +

+ + +
+ + CommunityAggregates + counts +
final
+ +
+ + + +
+

Implementation

+
final CommunityAggregates counts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/subscribed.html b/doc/api/lemmy_api_client/CommunityView/subscribed.html new file mode 100644 index 00000000..0021a197 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/subscribed.html @@ -0,0 +1,117 @@ + + + + + + + + subscribed property - CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
subscribed
+ +
+ +
+
+
+
+
+

subscribed property +

+ + +
+ +
+
    +
  1. @JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson)
  2. +
+
+ SubscribedType + subscribed +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson)
+final SubscribedType subscribed;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityView/toJson.html b/doc/api/lemmy_api_client/CommunityView/toJson.html new file mode 100644 index 00000000..44c32fb5 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - CommunityView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$CommunityViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityVisibility-enum-sidebar.html b/doc/api/lemmy_api_client/CommunityVisibility-enum-sidebar.html new file mode 100644 index 00000000..d9bf16da --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityVisibility-enum-sidebar.html @@ -0,0 +1,56 @@ +
    + + +
  1. Values
  2. +
  3. public
  4. +
  5. localOnly
  6. +
  7. private
  8. + + +
  9. + Properties +
  10. + +
  11. + hashCode +
  12. + +
  13. + index +
  14. + +
  15. + name + (ext) +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
  29. Constants
  30. +
  31. values
  32. +
diff --git a/doc/api/lemmy_api_client/CommunityVisibility.html b/doc/api/lemmy_api_client/CommunityVisibility.html new file mode 100644 index 00000000..619aaa24 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityVisibility.html @@ -0,0 +1,304 @@ + + + + + + + + CommunityVisibility enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
CommunityVisibility
+ +
+ +
+
+
+
+
+ +

+ CommunityVisibility + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ public + → const CommunityVisibility + + +
+
+ + + +
+ +
+ localOnly + → const CommunityVisibility + + +
+
+ + + +
+ +
+ private + → const CommunityVisibility + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<CommunityVisibility> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/CommunityVisibility/values-constant.html b/doc/api/lemmy_api_client/CommunityVisibility/values-constant.html new file mode 100644 index 00000000..bdab0e49 --- /dev/null +++ b/doc/api/lemmy_api_client/CommunityVisibility/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - CommunityVisibility enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<CommunityVisibility> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FederationMode-enum-sidebar.html b/doc/api/lemmy_api_client/FederationMode-enum-sidebar.html new file mode 100644 index 00000000..43c09331 --- /dev/null +++ b/doc/api/lemmy_api_client/FederationMode-enum-sidebar.html @@ -0,0 +1,56 @@ +
    + + +
  1. Values
  2. +
  3. all
  4. +
  5. local
  6. +
  7. disable
  8. + + +
  9. + Properties +
  10. + +
  11. + hashCode +
  12. + +
  13. + index +
  14. + +
  15. + name + (ext) +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
  29. Constants
  30. +
  31. values
  32. +
diff --git a/doc/api/lemmy_api_client/FederationMode.html b/doc/api/lemmy_api_client/FederationMode.html new file mode 100644 index 00000000..101665b0 --- /dev/null +++ b/doc/api/lemmy_api_client/FederationMode.html @@ -0,0 +1,304 @@ + + + + + + + + FederationMode enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FederationMode
+ +
+ +
+
+
+
+
+ +

+ FederationMode + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ all + → const FederationMode + + +
+
+ + + +
+ +
+ local + → const FederationMode + + +
+
+ + + +
+ +
+ disable + → const FederationMode + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<FederationMode> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FederationMode/values-constant.html b/doc/api/lemmy_api_client/FederationMode/values-constant.html new file mode 100644 index 00000000..9eaa33a7 --- /dev/null +++ b/doc/api/lemmy_api_client/FederationMode/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - FederationMode enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<FederationMode> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView-class-sidebar.html b/doc/api/lemmy_api_client/FullAccountView-class-sidebar.html new file mode 100644 index 00000000..96da6522 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView-class-sidebar.html @@ -0,0 +1,74 @@ +
    + +
  1. Constructors
  2. +
  3. FullAccountView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + communityBlocks +
  10. + +
  11. + discussionLanguages +
  12. + +
  13. + follows +
  14. + +
  15. + hashCode +
  16. + +
  17. + instanceBlocks +
  18. + +
  19. + localUserView +
  20. + +
  21. + moderates +
  22. + +
  23. + personBlocks +
  24. + +
  25. + runtimeType +
  26. + +
  27. Methods
  28. + +
  29. + noSuchMethod +
  30. + +
  31. + toJson +
  32. + +
  33. + toString +
  34. + +
  35. Operators
  36. + +
  37. + operator == +
  38. + + + + + + +
diff --git a/doc/api/lemmy_api_client/FullAccountView-class.html b/doc/api/lemmy_api_client/FullAccountView-class.html new file mode 100644 index 00000000..56383ef0 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView-class.html @@ -0,0 +1,324 @@ + + + + + + + + FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullAccountView
+ +
+ +
+
+
+
+
+

FullAccountView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ FullAccountView({required AccountView localUserView, required List<CommunityFollowerView> follows, required List<CommunityModeratorView> moderates, required List<Community> communityBlocks, required List<Instance> instanceBlocks, required List<Person> personBlocks, required List<int> discussionLanguages}) +
+
+ +
+
+ FullAccountView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ communityBlocks + List<Community> + + +
+
+ +
final
+ +
+ +
+ discussionLanguages + List<int> + + +
+
+ +
final
+ +
+ +
+ follows + List<CommunityFollowerView> + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ instanceBlocks + List<Instance> + + +
+
+ +
final
+ +
+ +
+ localUserView + AccountView + + +
+
+ +
final
+ +
+ +
+ moderates + List<CommunityModeratorView> + + +
+
+ +
final
+ +
+ +
+ personBlocks + List<Person> + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/FullAccountView.fromJson.html b/doc/api/lemmy_api_client/FullAccountView/FullAccountView.fromJson.html new file mode 100644 index 00000000..b353d198 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/FullAccountView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + FullAccountView.fromJson constructor - FullAccountView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullAccountView.fromJson
+ +
+ +
+
+
+
+
+

FullAccountView.fromJson constructor +

+ +
+ + FullAccountView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory FullAccountView.fromJson(Map<String, dynamic> json) => _$FullAccountViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/FullAccountView.html b/doc/api/lemmy_api_client/FullAccountView/FullAccountView.html new file mode 100644 index 00000000..f2f1b281 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/FullAccountView.html @@ -0,0 +1,122 @@ + + + + + + + + FullAccountView constructor - FullAccountView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullAccountView
+ +
+ +
+
+
+
+
+

FullAccountView constructor +

+ +
+ + FullAccountView({
  1. required AccountView localUserView,
  2. +
  3. required List<CommunityFollowerView> follows,
  4. +
  5. required List<CommunityModeratorView> moderates,
  6. +
  7. required List<Community> communityBlocks,
  8. +
  9. required List<Instance> instanceBlocks,
  10. +
  11. required List<Person> personBlocks,
  12. +
  13. required List<int> discussionLanguages,
  14. +
}) +
+ + + + +
+

Implementation

+
FullAccountView({
+  required this.localUserView,
+  required this.follows,
+  required this.moderates,
+  required this.communityBlocks,
+  required this.instanceBlocks,
+  required this.personBlocks,
+  required this.discussionLanguages,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/communityBlocks.html b/doc/api/lemmy_api_client/FullAccountView/communityBlocks.html new file mode 100644 index 00000000..3294d43b --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/communityBlocks.html @@ -0,0 +1,111 @@ + + + + + + + + communityBlocks property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communityBlocks
+ +
+ +
+
+
+
+
+

communityBlocks property +

+ + +
+ + List<Community> + communityBlocks +
final
+ +
+ + + +
+

Implementation

+
final List<Community> communityBlocks;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/discussionLanguages.html b/doc/api/lemmy_api_client/FullAccountView/discussionLanguages.html new file mode 100644 index 00000000..1be08942 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/discussionLanguages.html @@ -0,0 +1,111 @@ + + + + + + + + discussionLanguages property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
discussionLanguages
+ +
+ +
+
+
+
+
+

discussionLanguages property +

+ + +
+ + List<int> + discussionLanguages +
final
+ +
+ + + +
+

Implementation

+
final List<int> discussionLanguages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/follows.html b/doc/api/lemmy_api_client/FullAccountView/follows.html new file mode 100644 index 00000000..76eba823 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/follows.html @@ -0,0 +1,111 @@ + + + + + + + + follows property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
follows
+ +
+ +
+
+
+
+
+

follows property +

+ + +
+ + List<CommunityFollowerView> + follows +
final
+ +
+ + + +
+

Implementation

+
final List<CommunityFollowerView> follows;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/instanceBlocks.html b/doc/api/lemmy_api_client/FullAccountView/instanceBlocks.html new file mode 100644 index 00000000..eff7f761 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/instanceBlocks.html @@ -0,0 +1,111 @@ + + + + + + + + instanceBlocks property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
instanceBlocks
+ +
+ +
+
+
+
+
+

instanceBlocks property +

+ + +
+ + List<Instance> + instanceBlocks +
final
+ +
+ + + +
+

Implementation

+
final List<Instance> instanceBlocks;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/localUserView.html b/doc/api/lemmy_api_client/FullAccountView/localUserView.html new file mode 100644 index 00000000..ae3daa27 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/localUserView.html @@ -0,0 +1,111 @@ + + + + + + + + localUserView property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
localUserView
+ +
+ +
+
+
+
+
+

localUserView property +

+ + +
+ + AccountView + localUserView +
final
+ +
+ + + +
+

Implementation

+
final AccountView localUserView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/moderates.html b/doc/api/lemmy_api_client/FullAccountView/moderates.html new file mode 100644 index 00000000..708967d1 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/moderates.html @@ -0,0 +1,111 @@ + + + + + + + + moderates property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
moderates
+ +
+ +
+
+
+
+
+

moderates property +

+ + +
+ + List<CommunityModeratorView> + moderates +
final
+ +
+ + + +
+

Implementation

+
final List<CommunityModeratorView> moderates;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/personBlocks.html b/doc/api/lemmy_api_client/FullAccountView/personBlocks.html new file mode 100644 index 00000000..d0586b23 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/personBlocks.html @@ -0,0 +1,111 @@ + + + + + + + + personBlocks property - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
personBlocks
+ +
+ +
+
+
+
+
+

personBlocks property +

+ + +
+ + List<Person> + personBlocks +
final
+ +
+ + + +
+

Implementation

+
final List<Person> personBlocks;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullAccountView/toJson.html b/doc/api/lemmy_api_client/FullAccountView/toJson.html new file mode 100644 index 00000000..499b7d62 --- /dev/null +++ b/doc/api/lemmy_api_client/FullAccountView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - FullAccountView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$FullAccountViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView-class-sidebar.html b/doc/api/lemmy_api_client/FullPersonView-class-sidebar.html new file mode 100644 index 00000000..63070d01 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView-class-sidebar.html @@ -0,0 +1,66 @@ +
    + +
  1. Constructors
  2. +
  3. FullPersonView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + comments +
  10. + +
  11. + hashCode +
  12. + +
  13. + moderates +
  14. + +
  15. + personView +
  16. + +
  17. + posts +
  18. + +
  19. + runtimeType +
  20. + +
  21. + site +
  22. + +
  23. Methods
  24. + +
  25. + noSuchMethod +
  26. + +
  27. + toJson +
  28. + +
  29. + toString +
  30. + +
  31. Operators
  32. + +
  33. + operator == +
  34. + + + + + + +
diff --git a/doc/api/lemmy_api_client/FullPersonView-class.html b/doc/api/lemmy_api_client/FullPersonView-class.html new file mode 100644 index 00000000..e6a7640b --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView-class.html @@ -0,0 +1,300 @@ + + + + + + + + FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullPersonView
+ +
+ +
+
+
+
+
+

FullPersonView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ FullPersonView({required PersonView personView, Site? site, required List<CommentView> comments, required List<PostView> posts, required List<CommunityModeratorView> moderates}) +
+
+ +
+
+ FullPersonView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ comments + List<CommentView> + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ moderates + List<CommunityModeratorView> + + +
+
+ +
final
+ +
+ +
+ personView + PersonView + + +
+
+ +
final
+ +
+ +
+ posts + List<PostView> + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ site + Site? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/FullPersonView.fromJson.html b/doc/api/lemmy_api_client/FullPersonView/FullPersonView.fromJson.html new file mode 100644 index 00000000..3606d933 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/FullPersonView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + FullPersonView.fromJson constructor - FullPersonView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullPersonView.fromJson
+ +
+ +
+
+
+
+
+

FullPersonView.fromJson constructor +

+ +
+ + FullPersonView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory FullPersonView.fromJson(Map<String, dynamic> json) => _$FullPersonViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/FullPersonView.html b/doc/api/lemmy_api_client/FullPersonView/FullPersonView.html new file mode 100644 index 00000000..a63f0a93 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/FullPersonView.html @@ -0,0 +1,118 @@ + + + + + + + + FullPersonView constructor - FullPersonView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullPersonView
+ +
+ +
+
+
+
+
+

FullPersonView constructor +

+ +
+ + FullPersonView({
  1. required PersonView personView,
  2. +
  3. Site? site,
  4. +
  5. required List<CommentView> comments,
  6. +
  7. required List<PostView> posts,
  8. +
  9. required List<CommunityModeratorView> moderates,
  10. +
}) +
+ + + + +
+

Implementation

+
FullPersonView({
+  required this.personView,
+  this.site,
+  required this.comments,
+  required this.posts,
+  required this.moderates,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/comments.html b/doc/api/lemmy_api_client/FullPersonView/comments.html new file mode 100644 index 00000000..330261b1 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/comments.html @@ -0,0 +1,111 @@ + + + + + + + + comments property - FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
comments
+ +
+ +
+
+
+
+
+

comments property +

+ + +
+ + List<CommentView> + comments +
final
+ +
+ + + +
+

Implementation

+
final List<CommentView> comments;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/moderates.html b/doc/api/lemmy_api_client/FullPersonView/moderates.html new file mode 100644 index 00000000..515cd772 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/moderates.html @@ -0,0 +1,111 @@ + + + + + + + + moderates property - FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
moderates
+ +
+ +
+
+
+
+
+

moderates property +

+ + +
+ + List<CommunityModeratorView> + moderates +
final
+ +
+ + + +
+

Implementation

+
final List<CommunityModeratorView> moderates;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/personView.html b/doc/api/lemmy_api_client/FullPersonView/personView.html new file mode 100644 index 00000000..9446d9f3 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/personView.html @@ -0,0 +1,111 @@ + + + + + + + + personView property - FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
personView
+ +
+ +
+
+
+
+
+

personView property +

+ + +
+ + PersonView + personView +
final
+ +
+ + + +
+

Implementation

+
final PersonView personView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/posts.html b/doc/api/lemmy_api_client/FullPersonView/posts.html new file mode 100644 index 00000000..df3d1820 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/posts.html @@ -0,0 +1,111 @@ + + + + + + + + posts property - FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
posts
+ +
+ +
+
+
+
+
+

posts property +

+ + +
+ + List<PostView> + posts +
final
+ +
+ + + +
+

Implementation

+
final List<PostView> posts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/site.html b/doc/api/lemmy_api_client/FullPersonView/site.html new file mode 100644 index 00000000..294a29c8 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/site.html @@ -0,0 +1,111 @@ + + + + + + + + site property - FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
site
+ +
+ +
+
+
+
+
+

site property +

+ + +
+ + Site? + site +
final
+ +
+ + + +
+

Implementation

+
final Site? site;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPersonView/toJson.html b/doc/api/lemmy_api_client/FullPersonView/toJson.html new file mode 100644 index 00000000..f1ad47c3 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPersonView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - FullPersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$FullPersonViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView-class-sidebar.html b/doc/api/lemmy_api_client/FullPostView-class-sidebar.html new file mode 100644 index 00000000..611015c5 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. FullPostView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + communityView +
  10. + +
  11. + crossPosts +
  12. + +
  13. + hashCode +
  14. + +
  15. + moderators +
  16. + +
  17. + postView +
  18. + +
  19. + runtimeType +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/FullPostView-class.html b/doc/api/lemmy_api_client/FullPostView-class.html new file mode 100644 index 00000000..f3265abb --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView-class.html @@ -0,0 +1,288 @@ + + + + + + + + FullPostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullPostView
+ +
+ +
+
+
+
+
+

FullPostView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ FullPostView({required PostView postView, required CommunityView communityView, required List<CommunityModeratorView> moderators, required List<PostView> crossPosts}) +
+
+ +
+
+ FullPostView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ communityView + CommunityView + + +
+
+ +
final
+ +
+ +
+ crossPosts + List<PostView> + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ moderators + List<CommunityModeratorView> + + +
+
+ +
final
+ +
+ +
+ postView + PostView + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/FullPostView.fromJson.html b/doc/api/lemmy_api_client/FullPostView/FullPostView.fromJson.html new file mode 100644 index 00000000..ca3233ee --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/FullPostView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + FullPostView.fromJson constructor - FullPostView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullPostView.fromJson
+ +
+ +
+
+
+
+
+

FullPostView.fromJson constructor +

+ +
+ + FullPostView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory FullPostView.fromJson(Map<String, dynamic> json) => _$FullPostViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/FullPostView.html b/doc/api/lemmy_api_client/FullPostView/FullPostView.html new file mode 100644 index 00000000..1d7dcd62 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/FullPostView.html @@ -0,0 +1,116 @@ + + + + + + + + FullPostView constructor - FullPostView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullPostView
+ +
+ +
+
+
+
+
+

FullPostView constructor +

+ +
+ + FullPostView({
  1. required PostView postView,
  2. +
  3. required CommunityView communityView,
  4. +
  5. required List<CommunityModeratorView> moderators,
  6. +
  7. required List<PostView> crossPosts,
  8. +
}) +
+ + + + +
+

Implementation

+
FullPostView({
+  required this.postView,
+  required this.communityView,
+  required this.moderators,
+  required this.crossPosts,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/communityView.html b/doc/api/lemmy_api_client/FullPostView/communityView.html new file mode 100644 index 00000000..e83a2e38 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/communityView.html @@ -0,0 +1,111 @@ + + + + + + + + communityView property - FullPostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communityView
+ +
+ +
+
+
+
+
+

communityView property +

+ + +
+ + CommunityView + communityView +
final
+ +
+ + + +
+

Implementation

+
final CommunityView communityView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/crossPosts.html b/doc/api/lemmy_api_client/FullPostView/crossPosts.html new file mode 100644 index 00000000..25e46770 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/crossPosts.html @@ -0,0 +1,111 @@ + + + + + + + + crossPosts property - FullPostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
crossPosts
+ +
+ +
+
+
+
+
+

crossPosts property +

+ + +
+ + List<PostView> + crossPosts +
final
+ +
+ + + +
+

Implementation

+
final List<PostView> crossPosts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/moderators.html b/doc/api/lemmy_api_client/FullPostView/moderators.html new file mode 100644 index 00000000..64a51728 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/moderators.html @@ -0,0 +1,111 @@ + + + + + + + + moderators property - FullPostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
moderators
+ +
+ +
+
+
+
+
+

moderators property +

+ + +
+ + List<CommunityModeratorView> + moderators +
final
+ +
+ + + +
+

Implementation

+
final List<CommunityModeratorView> moderators;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/postView.html b/doc/api/lemmy_api_client/FullPostView/postView.html new file mode 100644 index 00000000..e2a813d8 --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/postView.html @@ -0,0 +1,111 @@ + + + + + + + + postView property - FullPostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postView
+ +
+ +
+
+
+
+
+

postView property +

+ + +
+ + PostView + postView +
final
+ +
+ + + +
+

Implementation

+
final PostView postView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullPostView/toJson.html b/doc/api/lemmy_api_client/FullPostView/toJson.html new file mode 100644 index 00000000..9a7a46bb --- /dev/null +++ b/doc/api/lemmy_api_client/FullPostView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - FullPostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$FullPostViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView-class-sidebar.html b/doc/api/lemmy_api_client/FullSiteView-class-sidebar.html new file mode 100644 index 00000000..721878cf --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView-class-sidebar.html @@ -0,0 +1,82 @@ +
    + +
  1. Constructors
  2. +
  3. FullSiteView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + adminOAuthProviders +
  10. + +
  11. + admins +
  12. + +
  13. + allLanguages +
  14. + +
  15. + blockedUrls +
  16. + +
  17. + discussionLanguages +
  18. + +
  19. + hashCode +
  20. + +
  21. + oauthProviders +
  22. + +
  23. + runtimeType +
  24. + +
  25. + siteView +
  26. + +
  27. + tagline +
  28. + +
  29. + version +
  30. + +
  31. Methods
  32. + +
  33. + noSuchMethod +
  34. + +
  35. + toJson +
  36. + +
  37. + toString +
  38. + +
  39. Operators
  40. + +
  41. + operator == +
  42. + + + + + + +
diff --git a/doc/api/lemmy_api_client/FullSiteView-class.html b/doc/api/lemmy_api_client/FullSiteView-class.html new file mode 100644 index 00000000..c4bfbc10 --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView-class.html @@ -0,0 +1,348 @@ + + + + + + + + FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullSiteView
+ +
+ +
+
+
+
+
+

FullSiteView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ FullSiteView({required SiteView siteView, required List<PersonView> admins, required String version, required List<Language> allLanguages, required List<int> discussionLanguages, Tagline? tagline, List<OAuthProvider>? oauthProviders, List<OAuthProvider>? adminOAuthProviders, required List<LocalSiteUrlBlocklist> blockedUrls}) +
+
+ +
+
+ FullSiteView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ adminOAuthProviders + List<OAuthProvider>? + + +
+
+ +
final
+ +
+ +
+ admins + List<PersonView> + + +
+
+ +
final
+ +
+ +
+ allLanguages + List<Language> + + +
+
+ +
final
+ +
+ +
+ blockedUrls + List<LocalSiteUrlBlocklist> + + +
+
+ +
final
+ +
+ +
+ discussionLanguages + List<int> + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ oauthProviders + List<OAuthProvider>? + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ siteView + SiteView + + +
+
+ +
final
+ +
+ +
+ tagline + Tagline? + + +
+
+ +
final
+ +
+ +
+ version + String + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/FullSiteView.fromJson.html b/doc/api/lemmy_api_client/FullSiteView/FullSiteView.fromJson.html new file mode 100644 index 00000000..33309dfe --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/FullSiteView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + FullSiteView.fromJson constructor - FullSiteView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullSiteView.fromJson
+ +
+ +
+
+
+
+
+

FullSiteView.fromJson constructor +

+ +
+ + FullSiteView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory FullSiteView.fromJson(Map<String, dynamic> json) => _$FullSiteViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/FullSiteView.html b/doc/api/lemmy_api_client/FullSiteView/FullSiteView.html new file mode 100644 index 00000000..0b423e1b --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/FullSiteView.html @@ -0,0 +1,126 @@ + + + + + + + + FullSiteView constructor - FullSiteView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
FullSiteView
+ +
+ +
+
+
+
+
+

FullSiteView constructor +

+ +
+ + FullSiteView({
  1. required SiteView siteView,
  2. +
  3. required List<PersonView> admins,
  4. +
  5. required String version,
  6. +
  7. required List<Language> allLanguages,
  8. +
  9. required List<int> discussionLanguages,
  10. +
  11. Tagline? tagline,
  12. +
  13. List<OAuthProvider>? oauthProviders,
  14. +
  15. List<OAuthProvider>? adminOAuthProviders,
  16. +
  17. required List<LocalSiteUrlBlocklist> blockedUrls,
  18. +
}) +
+ + + + +
+

Implementation

+
FullSiteView({
+  required this.siteView,
+  required this.admins,
+  required this.version,
+  required this.allLanguages,
+  required this.discussionLanguages,
+  this.tagline,
+  this.oauthProviders,
+  this.adminOAuthProviders,
+  required this.blockedUrls,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/adminOAuthProviders.html b/doc/api/lemmy_api_client/FullSiteView/adminOAuthProviders.html new file mode 100644 index 00000000..1815c370 --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/adminOAuthProviders.html @@ -0,0 +1,111 @@ + + + + + + + + adminOAuthProviders property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
adminOAuthProviders
+ +
+ +
+
+
+
+
+

adminOAuthProviders property +

+ + +
+ + List<OAuthProvider>? + adminOAuthProviders +
final
+ +
+ + + +
+

Implementation

+
final List<OAuthProvider>? adminOAuthProviders;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/admins.html b/doc/api/lemmy_api_client/FullSiteView/admins.html new file mode 100644 index 00000000..15d7257c --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/admins.html @@ -0,0 +1,111 @@ + + + + + + + + admins property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
admins
+ +
+ +
+
+
+
+
+

admins property +

+ + +
+ + List<PersonView> + admins +
final
+ +
+ + + +
+

Implementation

+
final List<PersonView> admins;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/allLanguages.html b/doc/api/lemmy_api_client/FullSiteView/allLanguages.html new file mode 100644 index 00000000..2ce4886b --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/allLanguages.html @@ -0,0 +1,111 @@ + + + + + + + + allLanguages property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
allLanguages
+ +
+ +
+
+
+
+
+

allLanguages property +

+ + +
+ + List<Language> + allLanguages +
final
+ +
+ + + +
+

Implementation

+
final List<Language> allLanguages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/blockedUrls.html b/doc/api/lemmy_api_client/FullSiteView/blockedUrls.html new file mode 100644 index 00000000..82d0a1ba --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/blockedUrls.html @@ -0,0 +1,111 @@ + + + + + + + + blockedUrls property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
blockedUrls
+ +
+ +
+
+
+
+
+

blockedUrls property +

+ + +
+ + List<LocalSiteUrlBlocklist> + blockedUrls +
final
+ +
+ + + +
+

Implementation

+
final List<LocalSiteUrlBlocklist> blockedUrls;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/discussionLanguages.html b/doc/api/lemmy_api_client/FullSiteView/discussionLanguages.html new file mode 100644 index 00000000..00116157 --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/discussionLanguages.html @@ -0,0 +1,111 @@ + + + + + + + + discussionLanguages property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
discussionLanguages
+ +
+ +
+
+
+
+
+

discussionLanguages property +

+ + +
+ + List<int> + discussionLanguages +
final
+ +
+ + + +
+

Implementation

+
final List<int> discussionLanguages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/oauthProviders.html b/doc/api/lemmy_api_client/FullSiteView/oauthProviders.html new file mode 100644 index 00000000..10543875 --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/oauthProviders.html @@ -0,0 +1,111 @@ + + + + + + + + oauthProviders property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
oauthProviders
+ +
+ +
+
+
+
+
+

oauthProviders property +

+ + +
+ + List<OAuthProvider>? + oauthProviders +
final
+ +
+ + + +
+

Implementation

+
final List<OAuthProvider>? oauthProviders;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/siteView.html b/doc/api/lemmy_api_client/FullSiteView/siteView.html new file mode 100644 index 00000000..13caa67a --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/siteView.html @@ -0,0 +1,111 @@ + + + + + + + + siteView property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
siteView
+ +
+ +
+
+
+
+
+

siteView property +

+ + +
+ + SiteView + siteView +
final
+ +
+ + + +
+

Implementation

+
final SiteView siteView;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/tagline.html b/doc/api/lemmy_api_client/FullSiteView/tagline.html new file mode 100644 index 00000000..d3eb1178 --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/tagline.html @@ -0,0 +1,111 @@ + + + + + + + + tagline property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
tagline
+ +
+ +
+
+
+
+
+

tagline property +

+ + +
+ + Tagline? + tagline +
final
+ +
+ + + +
+

Implementation

+
final Tagline? tagline;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/toJson.html b/doc/api/lemmy_api_client/FullSiteView/toJson.html new file mode 100644 index 00000000..88523c6a --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$FullSiteViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/FullSiteView/version.html b/doc/api/lemmy_api_client/FullSiteView/version.html new file mode 100644 index 00000000..ac0a35a7 --- /dev/null +++ b/doc/api/lemmy_api_client/FullSiteView/version.html @@ -0,0 +1,111 @@ + + + + + + + + version property - FullSiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
version
+ +
+ +
+
+
+
+
+

version property +

+ + +
+ + String + version +
final
+ +
+ + + +
+

Implementation

+
final String version;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails-class-sidebar.html b/doc/api/lemmy_api_client/ImageDetails-class-sidebar.html new file mode 100644 index 00000000..48f48b0d --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. ImageDetails
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + contentType +
  10. + +
  11. + hashCode +
  12. + +
  13. + height +
  14. + +
  15. + link +
  16. + +
  17. + runtimeType +
  18. + +
  19. + width +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/ImageDetails-class.html b/doc/api/lemmy_api_client/ImageDetails-class.html new file mode 100644 index 00000000..57299823 --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails-class.html @@ -0,0 +1,288 @@ + + + + + + + + ImageDetails class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
ImageDetails
+ +
+ +
+
+
+
+
+

ImageDetails class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ ImageDetails({required String link, required int width, required int height, required String contentType}) +
+
+ +
+
+ ImageDetails.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ contentType + String + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ height + int + + +
+
+ +
final
+ +
+ + +
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ width + int + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/ImageDetails.fromJson.html b/doc/api/lemmy_api_client/ImageDetails/ImageDetails.fromJson.html new file mode 100644 index 00000000..8eff9bfd --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/ImageDetails.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + ImageDetails.fromJson constructor - ImageDetails - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
ImageDetails.fromJson
+ +
+ +
+
+
+
+
+

ImageDetails.fromJson constructor +

+ +
+ + ImageDetails.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory ImageDetails.fromJson(Map<String, dynamic> json) => _$ImageDetailsFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/ImageDetails.html b/doc/api/lemmy_api_client/ImageDetails/ImageDetails.html new file mode 100644 index 00000000..9c122185 --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/ImageDetails.html @@ -0,0 +1,116 @@ + + + + + + + + ImageDetails constructor - ImageDetails - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
ImageDetails
+ +
+ +
+
+
+
+
+

ImageDetails constructor +

+ +
+ + ImageDetails({
  1. required String link,
  2. +
  3. required int width,
  4. +
  5. required int height,
  6. +
  7. required String contentType,
  8. +
}) +
+ + + + +
+

Implementation

+
ImageDetails({
+  required this.link,
+  required this.width,
+  required this.height,
+  required this.contentType,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/contentType.html b/doc/api/lemmy_api_client/ImageDetails/contentType.html new file mode 100644 index 00000000..dde5979f --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/contentType.html @@ -0,0 +1,111 @@ + + + + + + + + contentType property - ImageDetails class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
contentType
+ +
+ +
+
+
+
+
+

contentType property +

+ + +
+ + String + contentType +
final
+ +
+ + + +
+

Implementation

+
final String contentType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/height.html b/doc/api/lemmy_api_client/ImageDetails/height.html new file mode 100644 index 00000000..d0316aa3 --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/height.html @@ -0,0 +1,111 @@ + + + + + + + + height property - ImageDetails class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
height
+ +
+ +
+
+
+
+
+

height property +

+ + +
+ + int + height +
final
+ +
+ + + +
+

Implementation

+
final int height;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/link.html b/doc/api/lemmy_api_client/ImageDetails/link.html new file mode 100644 index 00000000..160d4646 --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/link.html @@ -0,0 +1,111 @@ + + + + + + + + link property - ImageDetails class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
link
+ +
+ +
+
+
+
+
+

link property +

+ + +
+ + String + link +
final
+ +
+ + + +
+

Implementation

+
final String link;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/toJson.html b/doc/api/lemmy_api_client/ImageDetails/toJson.html new file mode 100644 index 00000000..472844c1 --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - ImageDetails class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$ImageDetailsToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ImageDetails/width.html b/doc/api/lemmy_api_client/ImageDetails/width.html new file mode 100644 index 00000000..506d8ea3 --- /dev/null +++ b/doc/api/lemmy_api_client/ImageDetails/width.html @@ -0,0 +1,111 @@ + + + + + + + + width property - ImageDetails class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
width
+ +
+ +
+
+
+
+
+

width property +

+ + +
+ + int + width +
final
+ +
+ + + +
+

Implementation

+
final int width;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance-class-sidebar.html b/doc/api/lemmy_api_client/Instance-class-sidebar.html new file mode 100644 index 00000000..12eaadeb --- /dev/null +++ b/doc/api/lemmy_api_client/Instance-class-sidebar.html @@ -0,0 +1,70 @@ +
    + +
  1. Constructors
  2. +
  3. Instance
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + domain +
  10. + +
  11. + hashCode +
  12. + +
  13. + id +
  14. + +
  15. + published +
  16. + +
  17. + runtimeType +
  18. + +
  19. + software +
  20. + +
  21. + updated +
  22. + +
  23. + version +
  24. + +
  25. Methods
  26. + +
  27. + noSuchMethod +
  28. + +
  29. + toJson +
  30. + +
  31. + toString +
  32. + +
  33. Operators
  34. + +
  35. + operator == +
  36. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Instance-class.html b/doc/api/lemmy_api_client/Instance-class.html new file mode 100644 index 00000000..3c96823b --- /dev/null +++ b/doc/api/lemmy_api_client/Instance-class.html @@ -0,0 +1,312 @@ + + + + + + + + Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Instance
+ +
+ +
+
+
+
+
+

Instance class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Instance({required int id, required String domain, required DateTime published, DateTime? updated, String? software, String? version}) +
+
+ +
+
+ Instance.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ domain + String + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ software + String? + + +
+
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+ version + String? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/Instance.fromJson.html b/doc/api/lemmy_api_client/Instance/Instance.fromJson.html new file mode 100644 index 00000000..44fcbfec --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/Instance.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Instance.fromJson constructor - Instance - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Instance.fromJson
+ +
+ +
+
+
+
+
+

Instance.fromJson constructor +

+ +
+ + Instance.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Instance.fromJson(Map<String, dynamic> json) => _$InstanceFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/Instance.html b/doc/api/lemmy_api_client/Instance/Instance.html new file mode 100644 index 00000000..1cec9748 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/Instance.html @@ -0,0 +1,120 @@ + + + + + + + + Instance constructor - Instance - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Instance
+ +
+ +
+
+
+
+
+

Instance constructor +

+ +
+ + Instance({
  1. required int id,
  2. +
  3. required String domain,
  4. +
  5. required DateTime published,
  6. +
  7. DateTime? updated,
  8. +
  9. String? software,
  10. +
  11. String? version,
  12. +
}) +
+ + + + +
+

Implementation

+
Instance({
+  required this.id,
+  required this.domain,
+  required this.published,
+  this.updated,
+  this.software,
+  this.version,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/domain.html b/doc/api/lemmy_api_client/Instance/domain.html new file mode 100644 index 00000000..ef547347 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/domain.html @@ -0,0 +1,111 @@ + + + + + + + + domain property - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
domain
+ +
+ +
+
+
+
+
+

domain property +

+ + +
+ + String + domain +
final
+ +
+ + + +
+

Implementation

+
final String domain;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/id.html b/doc/api/lemmy_api_client/Instance/id.html new file mode 100644 index 00000000..1ad4cc34 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/published.html b/doc/api/lemmy_api_client/Instance/published.html new file mode 100644 index 00000000..bd683716 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/software.html b/doc/api/lemmy_api_client/Instance/software.html new file mode 100644 index 00000000..e06f43d4 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/software.html @@ -0,0 +1,111 @@ + + + + + + + + software property - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
software
+ +
+ +
+
+
+
+
+

software property +

+ + +
+ + String? + software +
final
+ +
+ + + +
+

Implementation

+
final String? software;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/toJson.html b/doc/api/lemmy_api_client/Instance/toJson.html new file mode 100644 index 00000000..0b974ed5 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$InstanceToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/updated.html b/doc/api/lemmy_api_client/Instance/updated.html new file mode 100644 index 00000000..93f9c851 --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Instance/version.html b/doc/api/lemmy_api_client/Instance/version.html new file mode 100644 index 00000000..1ea093ed --- /dev/null +++ b/doc/api/lemmy_api_client/Instance/version.html @@ -0,0 +1,111 @@ + + + + + + + + version property - Instance class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
version
+ +
+ +
+
+
+
+
+

version property +

+ + +
+ + String? + version +
final
+ +
+ + + +
+

Implementation

+
final String? version;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language-class-sidebar.html b/doc/api/lemmy_api_client/Language-class-sidebar.html new file mode 100644 index 00000000..3cb77485 --- /dev/null +++ b/doc/api/lemmy_api_client/Language-class-sidebar.html @@ -0,0 +1,58 @@ +
    + +
  1. Constructors
  2. +
  3. Language
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + code +
  10. + +
  11. + hashCode +
  12. + +
  13. + id +
  14. + +
  15. + name +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toJson +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Language-class.html b/doc/api/lemmy_api_client/Language-class.html new file mode 100644 index 00000000..51b0bfb5 --- /dev/null +++ b/doc/api/lemmy_api_client/Language-class.html @@ -0,0 +1,276 @@ + + + + + + + + Language class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Language
+ +
+ +
+
+
+
+
+

Language class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Language({required int id, required String code, required String name}) +
+
+ +
+
+ Language.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ code + String + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ name + String + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language/Language.fromJson.html b/doc/api/lemmy_api_client/Language/Language.fromJson.html new file mode 100644 index 00000000..35c4b34a --- /dev/null +++ b/doc/api/lemmy_api_client/Language/Language.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Language.fromJson constructor - Language - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Language.fromJson
+ +
+ +
+
+
+
+
+

Language.fromJson constructor +

+ +
+ + Language.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Language.fromJson(Map<String, dynamic> json) => _$LanguageFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language/Language.html b/doc/api/lemmy_api_client/Language/Language.html new file mode 100644 index 00000000..031f3676 --- /dev/null +++ b/doc/api/lemmy_api_client/Language/Language.html @@ -0,0 +1,114 @@ + + + + + + + + Language constructor - Language - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Language
+ +
+ +
+
+
+
+
+

Language constructor +

+ +
+ + Language({
  1. required int id,
  2. +
  3. required String code,
  4. +
  5. required String name,
  6. +
}) +
+ + + + +
+

Implementation

+
Language({
+  required this.id,
+  required this.code,
+  required this.name,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language/code.html b/doc/api/lemmy_api_client/Language/code.html new file mode 100644 index 00000000..e191a2ed --- /dev/null +++ b/doc/api/lemmy_api_client/Language/code.html @@ -0,0 +1,111 @@ + + + + + + + + code property - Language class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
code
+ +
+ +
+
+
+
+
+

code property +

+ + +
+ + String + code +
final
+ +
+ + + +
+

Implementation

+
final String code;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language/id.html b/doc/api/lemmy_api_client/Language/id.html new file mode 100644 index 00000000..bba4b83e --- /dev/null +++ b/doc/api/lemmy_api_client/Language/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Language class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language/name.html b/doc/api/lemmy_api_client/Language/name.html new file mode 100644 index 00000000..450c02f6 --- /dev/null +++ b/doc/api/lemmy_api_client/Language/name.html @@ -0,0 +1,111 @@ + + + + + + + + name property - Language class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
name
+ +
+ +
+
+
+
+
+

name property +

+ + +
+ + String + name +
final
+ +
+ + + +
+

Implementation

+
final String name;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Language/toJson.html b/doc/api/lemmy_api_client/Language/toJson.html new file mode 100644 index 00000000..57f2af6a --- /dev/null +++ b/doc/api/lemmy_api_client/Language/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Language class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$LanguageToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient-class-sidebar.html b/doc/api/lemmy_api_client/LemmyClient-class-sidebar.html new file mode 100644 index 00000000..25936f5d --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient-class-sidebar.html @@ -0,0 +1,97 @@ +
    + + + + +
  1. + Properties +
  2. + +
  3. + account +
  4. + +
  5. + accountInformation +
  6. + +
  7. + auth +
  8. + +
  9. + community +
  10. + +
  11. + feed +
  12. + +
  13. + hashCode +
  14. + +
  15. + httpClient +
  16. + +
  17. + instance +
  18. + +
  19. + runtimeType +
  20. + +
  21. + scheme +
  22. + +
  23. + site +
  24. + +
  25. + siteInformation +
  26. + +
  27. + user +
  28. + +
  29. + version +
  30. + +
  31. Methods
  32. + +
  33. + get +
  34. + +
  35. + noSuchMethod +
  36. + +
  37. + post +
  38. + +
  39. + toString +
  40. + +
  41. Operators
  42. + +
  43. + operator == +
  44. + + + + + +
  45. Static methods
  46. +
  47. initialize
  48. + +
diff --git a/doc/api/lemmy_api_client/LemmyClient-class.html b/doc/api/lemmy_api_client/LemmyClient-class.html new file mode 100644 index 00000000..3f38cfb5 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient-class.html @@ -0,0 +1,387 @@ + + + + + + + + LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LemmyClient
+ +
+ +
+
+
+
+
+

LemmyClient class + +

+ + +
+

A client that interacts with a Lemmy instance. The client must be initialized before it can be used.

+

Example:

+
final client = LemmyClient();
+await client.initialize();
+
+final siteInformation = client.site.info;
+
+
+ + + + + +
+

Properties

+
+
+ account + → AccountHelper + + +
+
+ Interface to work with AccountHelper instances. +
no setter
+ +
+ +
+ accountInformation + FullAccountView? + + +
+
+ The account information. This is fetched when the client is initialized if the auth parameter is passed in. +
getter/setter pair
+ +
+ +
+ auth + String? + + +
+
+ The authentication token for the current client instance. +This is used to authenticate requests to the Lemmy instance as a given user. +
getter/setter pair
+ +
+ +
+ community + → CommunityHelper + + +
+
+ +
no setter
+ +
+ +
+ feed + → FeedHelper + + +
+
+ Interface to work with FeedHelper instances. +
no setter
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ httpClient + Client + + +
+
+ The HTTP client to use when interacting with the Lemmy instance. +
getter/setter pair
+ +
+ +
+ instance + String + + +
+
+ The URL of the Lemmy instance, excluding the scheme. +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ scheme + String + + +
+
+ The scheme to use when interacting with the Lemmy instance. Defaults to 'https'. +
final
+ +
+ +
+ site + → SiteHelper + + +
+
+ Interface to work with SiteHelper instances. +
no setter
+ +
+ +
+ siteInformation + FullSiteView + + +
+
+ The site information. This is fetched when the client is initialized. +
getter/setter pair
+ +
+ +
+ user + → UserHelper + + +
+
+ Interface to work with UserHelper instances. +
no setter
+ +
+ +
+ version + String + + +
+
+ The version of the Lemmy API to use. Defaults to 'v4'. +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ get({String? path, Map<String, dynamic>? body}) + Future<Map<String, dynamic>> + + + +
+
+ Helper method to perform GET requests. + + +
+ +
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ post({String? path, Map<String, dynamic>? body}) + Future<Map<String, dynamic>> + + + +
+
+ Helper method to perform POST requests. + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + +
+

Static Methods

+
+
+ initialize({String instance = '192.168.50.50', String scheme = 'http', String version = 'v4', String? auth}) + Future<LemmyClient> + + + +
+
+ Initializes the client with the given parameters. + + +
+ +
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/account.html b/doc/api/lemmy_api_client/LemmyClient/account.html new file mode 100644 index 00000000..b3482b22 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/account.html @@ -0,0 +1,120 @@ + + + + + + + + account property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
account
+ +
+ +
+
+
+
+
+

account property +

+ + + + + +
+
+ + AccountHelper + get + account + + +
+ +
+

Interface to work with AccountHelper instances.

+
+ + +
+

Implementation

+
AccountHelper get account => AccountHelper(this);
+
+ +
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/accountInformation.html b/doc/api/lemmy_api_client/LemmyClient/accountInformation.html new file mode 100644 index 00000000..2b1b08ca --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/accountInformation.html @@ -0,0 +1,114 @@ + + + + + + + + accountInformation property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
accountInformation
+ +
+ +
+
+
+
+
+

accountInformation property +

+ + +
+ + FullAccountView? + accountInformation +
getter/setter pair
+ +
+ +
+

The account information. This is fetched when the client is initialized if the auth parameter is passed in.

+
+ + +
+

Implementation

+
models.FullAccountView? accountInformation;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/auth.html b/doc/api/lemmy_api_client/LemmyClient/auth.html new file mode 100644 index 00000000..91e8034b --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/auth.html @@ -0,0 +1,115 @@ + + + + + + + + auth property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
auth
+ +
+ +
+
+
+
+
+

auth property +

+ + +
+ + String? + auth +
getter/setter pair
+ +
+ +
+

The authentication token for the current client instance. +This is used to authenticate requests to the Lemmy instance as a given user.

+
+ + +
+

Implementation

+
String? auth;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/community.html b/doc/api/lemmy_api_client/LemmyClient/community.html new file mode 100644 index 00000000..cbacdbe0 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/community.html @@ -0,0 +1,117 @@ + + + + + + + + community property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
community
+ +
+ +
+
+
+
+
+

community property +

+ + + + + +
+
+ + CommunityHelper + get + community + + +
+ + + +
+

Implementation

+
CommunityHelper get community => CommunityHelper(this);
+
+ +
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/feed.html b/doc/api/lemmy_api_client/LemmyClient/feed.html new file mode 100644 index 00000000..4ebf4c5b --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/feed.html @@ -0,0 +1,120 @@ + + + + + + + + feed property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
feed
+ +
+ +
+
+
+
+
+

feed property +

+ + + + + +
+
+ + FeedHelper + get + feed + + +
+ +
+

Interface to work with FeedHelper instances.

+
+ + +
+

Implementation

+
FeedHelper get feed => FeedHelper(this);
+
+ +
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/get.html b/doc/api/lemmy_api_client/LemmyClient/get.html new file mode 100644 index 00000000..2a280b52 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/get.html @@ -0,0 +1,140 @@ + + + + + + + + get method - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
get
+ +
+ +
+
+
+
+
+

get method +

+ +
+ +Future<Map<String, dynamic>> +get({
  1. String? path,
  2. +
  3. Map<String, dynamic>? body,
  4. +
}) + + + +
+ +
+

Helper method to perform GET requests.

+
+ + + +
+

Implementation

+
Future<Map<String, dynamic>> get({String? path, Map<String, dynamic>? body}) async {
+  body?.removeWhere((key, value) => value == null);
+
+  Map<String, String>? queryParameters;
+
+  if (body != null) {
+    queryParameters = <String, String>{};
+
+    for (final entry in body.entries) {
+      queryParameters[entry.key] = entry.value.toString();
+    }
+  }
+
+  final response = await httpClient.get(
+    Uri(
+      scheme: scheme,
+      host: instance,
+      path: 'api/$version$path',
+      queryParameters: queryParameters,
+    ),
+    headers: {'Authorization': 'Bearer $auth'},
+  );
+
+  return _responseHandler(response);
+}
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/httpClient.html b/doc/api/lemmy_api_client/LemmyClient/httpClient.html new file mode 100644 index 00000000..0206cdf6 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/httpClient.html @@ -0,0 +1,114 @@ + + + + + + + + httpClient property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
httpClient
+ +
+ +
+
+
+
+
+

httpClient property +

+ + +
+ + Client + httpClient +
getter/setter pair
+ +
+ +
+

The HTTP client to use when interacting with the Lemmy instance.

+
+ + +
+

Implementation

+
late http.Client httpClient;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/initialize.html b/doc/api/lemmy_api_client/LemmyClient/initialize.html new file mode 100644 index 00000000..9d50552c --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/initialize.html @@ -0,0 +1,147 @@ + + + + + + + + initialize method - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
initialize
+ +
+ +
+
+
+
+
+

initialize static method +

+ +
+ +Future<LemmyClient> +initialize({
  1. String instance = '192.168.50.50',
  2. +
  3. String scheme = 'http',
  4. +
  5. String version = 'v4',
  6. +
  7. String? auth,
  8. +
}) + + + +
+ +
+

Initializes the client with the given parameters.

+

When the client is initialized, we also fetch the instance's site information. +If the auth parameter is passed in, we also fetch the account information.

+
+ + + +
+

Implementation

+
static Future<LemmyClient> initialize({
+  String instance = '192.168.50.50',
+  String scheme = 'http',
+  String version = 'v4',
+  String? auth,
+}) async {
+  final siteUrl = Uri(scheme: scheme, host: instance, path: 'api/$version/site');
+  final siteResponse = await http.get(siteUrl, headers: {'Authorization': 'Bearer $auth'});
+  final fullSiteView = models.FullSiteView.fromJson(jsonDecode(utf8.decode(siteResponse.bodyBytes)));
+
+  final accountUrl = Uri(scheme: scheme, host: instance, path: 'api/$version/account');
+  final accountResponse = await http.get(accountUrl, headers: {'Authorization': 'Bearer $auth'});
+
+  models.FullAccountView? fullAccountView;
+
+  if (accountResponse.statusCode == 200) {
+    fullAccountView = models.FullAccountView.fromJson(jsonDecode(utf8.decode(accountResponse.bodyBytes)));
+  }
+
+  return LemmyClient._(
+    fullSiteView,
+    fullAccountView,
+    instance: instance,
+    scheme: scheme,
+    version: version,
+    auth: auth,
+  );
+}
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/instance.html b/doc/api/lemmy_api_client/LemmyClient/instance.html new file mode 100644 index 00000000..bad7cb75 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/instance.html @@ -0,0 +1,114 @@ + + + + + + + + instance property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
instance
+ +
+ +
+
+
+
+
+

instance property +

+ + +
+ + String + instance +
final
+ +
+ +
+

The URL of the Lemmy instance, excluding the scheme.

+
+ + +
+

Implementation

+
final String instance;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/post.html b/doc/api/lemmy_api_client/LemmyClient/post.html new file mode 100644 index 00000000..c03819dd --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/post.html @@ -0,0 +1,124 @@ + + + + + + + + post method - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
post
+ +
+ +
+
+
+
+
+

post method +

+ +
+ +Future<Map<String, dynamic>> +post({
  1. String? path,
  2. +
  3. Map<String, dynamic>? body,
  4. +
}) + + + +
+ +
+

Helper method to perform POST requests.

+
+ + + +
+

Implementation

+
Future<Map<String, dynamic>> post({String? path, Map<String, dynamic>? body}) async {
+  final response = await httpClient.post(
+    Uri(scheme: scheme, host: instance, path: 'api/$version$path'),
+    headers: {'Content-Type': 'application/json', 'Authorization': 'Bearer $auth'},
+    body: jsonEncode(body),
+  );
+
+  return _responseHandler(response);
+}
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/scheme.html b/doc/api/lemmy_api_client/LemmyClient/scheme.html new file mode 100644 index 00000000..150ffb5c --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/scheme.html @@ -0,0 +1,114 @@ + + + + + + + + scheme property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
scheme
+ +
+ +
+
+
+
+
+

scheme property +

+ + +
+ + String + scheme +
final
+ +
+ +
+

The scheme to use when interacting with the Lemmy instance. Defaults to 'https'.

+
+ + +
+

Implementation

+
final String scheme;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/site.html b/doc/api/lemmy_api_client/LemmyClient/site.html new file mode 100644 index 00000000..e75f0158 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/site.html @@ -0,0 +1,120 @@ + + + + + + + + site property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
site
+ +
+ +
+
+
+
+
+

site property +

+ + + + + +
+
+ + SiteHelper + get + site + + +
+ +
+

Interface to work with SiteHelper instances.

+
+ + +
+

Implementation

+
SiteHelper get site => SiteHelper(this);
+
+ +
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/siteInformation.html b/doc/api/lemmy_api_client/LemmyClient/siteInformation.html new file mode 100644 index 00000000..79a80694 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/siteInformation.html @@ -0,0 +1,114 @@ + + + + + + + + siteInformation property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
siteInformation
+ +
+ +
+
+
+
+
+

siteInformation property +

+ + +
+ + FullSiteView + siteInformation +
getter/setter pair
+ +
+ +
+

The site information. This is fetched when the client is initialized.

+
+ + +
+

Implementation

+
models.FullSiteView siteInformation;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/user.html b/doc/api/lemmy_api_client/LemmyClient/user.html new file mode 100644 index 00000000..b365d383 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/user.html @@ -0,0 +1,120 @@ + + + + + + + + user property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
user
+ +
+ +
+
+
+
+
+

user property +

+ + + + + +
+
+ + UserHelper + get + user + + +
+ +
+

Interface to work with UserHelper instances.

+
+ + +
+

Implementation

+
UserHelper get user => UserHelper(this);
+
+ +
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LemmyClient/version.html b/doc/api/lemmy_api_client/LemmyClient/version.html new file mode 100644 index 00000000..4b29ebe4 --- /dev/null +++ b/doc/api/lemmy_api_client/LemmyClient/version.html @@ -0,0 +1,114 @@ + + + + + + + + version property - LemmyClient class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
version
+ +
+ +
+
+
+
+
+

version property +

+ + +
+ + String + version +
final
+ +
+ +
+

The version of the Lemmy API to use. Defaults to 'v4'.

+
+ + +
+

Implementation

+
final String version;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ListingType-enum-sidebar.html b/doc/api/lemmy_api_client/ListingType-enum-sidebar.html new file mode 100644 index 00000000..73947917 --- /dev/null +++ b/doc/api/lemmy_api_client/ListingType-enum-sidebar.html @@ -0,0 +1,57 @@ +
    + + +
  1. Values
  2. +
  3. all
  4. +
  5. local
  6. +
  7. subscribed
  8. +
  9. moderatorView
  10. + + +
  11. + Properties +
  12. + +
  13. + hashCode +
  14. + +
  15. + index +
  16. + +
  17. + name + (ext) +
  18. + +
  19. + runtimeType +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
  31. Constants
  32. +
  33. values
  34. +
diff --git a/doc/api/lemmy_api_client/ListingType.html b/doc/api/lemmy_api_client/ListingType.html new file mode 100644 index 00000000..f54fe290 --- /dev/null +++ b/doc/api/lemmy_api_client/ListingType.html @@ -0,0 +1,316 @@ + + + + + + + + ListingType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
ListingType
+ +
+ +
+
+
+
+
+ +

+ ListingType + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ all + → const ListingType + + +
+
+ + + +
+ +
+ local + → const ListingType + + +
+
+ + + +
+ +
+ subscribed + → const ListingType + + +
+
+ + + +
+ +
+ moderatorView + → const ListingType + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<ListingType> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/ListingType/values-constant.html b/doc/api/lemmy_api_client/ListingType/values-constant.html new file mode 100644 index 00000000..3e4da11f --- /dev/null +++ b/doc/api/lemmy_api_client/ListingType/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - ListingType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<ListingType> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite-class-sidebar.html b/doc/api/lemmy_api_client/LocalSite-class-sidebar.html new file mode 100644 index 00000000..9fab5ced --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite-class-sidebar.html @@ -0,0 +1,166 @@ +
    + +
  1. Constructors
  2. +
  3. LocalSite
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + actorNameMaxLength +
  10. + +
  11. + applicationEmailAdmins +
  12. + +
  13. + applicationQuestion +
  14. + +
  15. + captchaDifficulty +
  16. + +
  17. + captchaEnabled +
  18. + +
  19. + commentDownvotes +
  20. + +
  21. + commentUpvotes +
  22. + +
  23. + communityCreationAdminOnly +
  24. + +
  25. + defaultCommentSortType +
  26. + +
  27. + defaultPostListingMode +
  28. + +
  29. + defaultPostListingType +
  30. + +
  31. + defaultPostSortType +
  32. + +
  33. + defaultTheme +
  34. + +
  35. + federationEnabled +
  36. + +
  37. + federationSignedFetch +
  38. + +
  39. + hashCode +
  40. + +
  41. + hideModlogModNames +
  42. + +
  43. + id +
  44. + +
  45. + legalInformation +
  46. + +
  47. + oauthRegistration +
  48. + +
  49. + postDownvotes +
  50. + +
  51. + postUpvotes +
  52. + +
  53. + privateInstance +
  54. + +
  55. + published +
  56. + +
  57. + registrationMode +
  58. + +
  59. + reportsEmailAdmins +
  60. + +
  61. + requireEmailVerification +
  62. + +
  63. + runtimeType +
  64. + +
  65. + siteId +
  66. + +
  67. + siteSetup +
  68. + +
  69. + slurFilterRegex +
  70. + +
  71. + updated +
  72. + +
  73. Methods
  74. + +
  75. + noSuchMethod +
  76. + +
  77. + toJson +
  78. + +
  79. + toString +
  80. + +
  81. Operators
  82. + +
  83. + operator == +
  84. + + + + + + +
diff --git a/doc/api/lemmy_api_client/LocalSite-class.html b/doc/api/lemmy_api_client/LocalSite-class.html new file mode 100644 index 00000000..f8c1f6de --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite-class.html @@ -0,0 +1,600 @@ + + + + + + + + LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSite
+ +
+ +
+
+
+
+
+

LocalSite class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ LocalSite({required int id, required int siteId, required bool siteSetup, required bool communityCreationAdminOnly, required bool requireEmailVerification, String? applicationQuestion, required bool privateInstance, required String defaultTheme, required ListingType defaultPostListingType, String? legalInformation, required bool hideModlogModNames, required bool applicationEmailAdmins, String? slurFilterRegex, required int actorNameMaxLength, required bool federationEnabled, required bool captchaEnabled, required String captchaDifficulty, required DateTime published, DateTime? updated, required RegistrationMode registrationMode, required bool reportsEmailAdmins, required bool federationSignedFetch, required PostListingMode defaultPostListingMode, required PostSortType defaultPostSortType, required CommentSortType defaultCommentSortType, required bool? oauthRegistration, required FederationMode postUpvotes, required FederationMode postDownvotes, required FederationMode commentUpvotes, required FederationMode commentDownvotes}) +
+
+ +
+
+ LocalSite.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ actorNameMaxLength + int + + +
+
+ +
final
+ +
+ +
+ applicationEmailAdmins + bool + + +
+
+ +
final
+ +
+ +
+ applicationQuestion + String? + + +
+
+ +
final
+ +
+ +
+ captchaDifficulty + String + + +
+
+ +
final
+ +
+ +
+ captchaEnabled + bool + + +
+
+ +
final
+ +
+ +
+ commentDownvotes + FederationMode + + +
+
+ +
final
+ +
+ +
+ commentUpvotes + FederationMode + + +
+
+ +
final
+ +
+ +
+ communityCreationAdminOnly + bool + + +
+
+ +
final
+ +
+ +
+ defaultCommentSortType + CommentSortType + + +
+
+ +
final
+ +
+ +
+ defaultPostListingMode + PostListingMode + + +
+
+ +
final
+ +
+ +
+ defaultPostListingType + ListingType + + +
+
+ +
final
+ +
+ +
+ defaultPostSortType + PostSortType + + +
+
+ +
final
+ +
+ +
+ defaultTheme + String + + +
+
+ +
final
+ +
+ +
+ federationEnabled + bool + + +
+
+ +
final
+ +
+ +
+ federationSignedFetch + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ hideModlogModNames + bool + + +
+
+ +
final
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ legalInformation + String? + + +
+
+ +
final
+ +
+ +
+ oauthRegistration + bool? + + +
+
+ +
final
+ +
+ +
+ postDownvotes + FederationMode + + +
+
+ +
final
+ +
+ +
+ postUpvotes + FederationMode + + +
+
+ +
final
+ +
+ +
+ privateInstance + bool + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ registrationMode + RegistrationMode + + +
+
+ +
final
+ +
+ +
+ reportsEmailAdmins + bool + + +
+
+ +
final
+ +
+ +
+ requireEmailVerification + bool + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ siteId + int + + +
+
+ +
final
+ +
+ +
+ siteSetup + bool + + +
+
+ +
final
+ +
+ +
+ slurFilterRegex + String? + + +
+
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/LocalSite.fromJson.html b/doc/api/lemmy_api_client/LocalSite/LocalSite.fromJson.html new file mode 100644 index 00000000..2b266038 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/LocalSite.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + LocalSite.fromJson constructor - LocalSite - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSite.fromJson
+ +
+ +
+
+
+
+
+

LocalSite.fromJson constructor +

+ +
+ + LocalSite.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory LocalSite.fromJson(Map<String, dynamic> json) => _$LocalSiteFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/LocalSite.html b/doc/api/lemmy_api_client/LocalSite/LocalSite.html new file mode 100644 index 00000000..137f26ec --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/LocalSite.html @@ -0,0 +1,168 @@ + + + + + + + + LocalSite constructor - LocalSite - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSite
+ +
+ +
+
+
+
+
+

LocalSite constructor +

+ +
+ + LocalSite({
  1. required int id,
  2. +
  3. required int siteId,
  4. +
  5. required bool siteSetup,
  6. +
  7. required bool communityCreationAdminOnly,
  8. +
  9. required bool requireEmailVerification,
  10. +
  11. String? applicationQuestion,
  12. +
  13. required bool privateInstance,
  14. +
  15. required String defaultTheme,
  16. +
  17. required ListingType defaultPostListingType,
  18. +
  19. String? legalInformation,
  20. +
  21. required bool hideModlogModNames,
  22. +
  23. required bool applicationEmailAdmins,
  24. +
  25. String? slurFilterRegex,
  26. +
  27. required int actorNameMaxLength,
  28. +
  29. required bool federationEnabled,
  30. +
  31. required bool captchaEnabled,
  32. +
  33. required String captchaDifficulty,
  34. +
  35. required DateTime published,
  36. +
  37. DateTime? updated,
  38. +
  39. required RegistrationMode registrationMode,
  40. +
  41. required bool reportsEmailAdmins,
  42. +
  43. required bool federationSignedFetch,
  44. +
  45. required PostListingMode defaultPostListingMode,
  46. +
  47. required PostSortType defaultPostSortType,
  48. +
  49. required CommentSortType defaultCommentSortType,
  50. +
  51. required bool? oauthRegistration,
  52. +
  53. required FederationMode postUpvotes,
  54. +
  55. required FederationMode postDownvotes,
  56. +
  57. required FederationMode commentUpvotes,
  58. +
  59. required FederationMode commentDownvotes,
  60. +
}) +
+ + + + +
+

Implementation

+
LocalSite({
+  required this.id,
+  required this.siteId,
+  required this.siteSetup,
+  required this.communityCreationAdminOnly,
+  required this.requireEmailVerification,
+  this.applicationQuestion,
+  required this.privateInstance,
+  required this.defaultTheme,
+  required this.defaultPostListingType,
+  this.legalInformation,
+  required this.hideModlogModNames,
+  required this.applicationEmailAdmins,
+  this.slurFilterRegex,
+  required this.actorNameMaxLength,
+  required this.federationEnabled,
+  required this.captchaEnabled,
+  required this.captchaDifficulty,
+  required this.published,
+  this.updated,
+  required this.registrationMode,
+  required this.reportsEmailAdmins,
+  required this.federationSignedFetch,
+  required this.defaultPostListingMode,
+  required this.defaultPostSortType,
+  required this.defaultCommentSortType,
+  required this.oauthRegistration,
+  required this.postUpvotes,
+  required this.postDownvotes,
+  required this.commentUpvotes,
+  required this.commentDownvotes,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/actorNameMaxLength.html b/doc/api/lemmy_api_client/LocalSite/actorNameMaxLength.html new file mode 100644 index 00000000..7e2a713b --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/actorNameMaxLength.html @@ -0,0 +1,111 @@ + + + + + + + + actorNameMaxLength property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
actorNameMaxLength
+ +
+ +
+
+
+
+
+

actorNameMaxLength property +

+ + +
+ + int + actorNameMaxLength +
final
+ +
+ + + +
+

Implementation

+
final int actorNameMaxLength;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/applicationEmailAdmins.html b/doc/api/lemmy_api_client/LocalSite/applicationEmailAdmins.html new file mode 100644 index 00000000..b238d148 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/applicationEmailAdmins.html @@ -0,0 +1,111 @@ + + + + + + + + applicationEmailAdmins property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
applicationEmailAdmins
+ +
+ +
+
+
+
+
+

applicationEmailAdmins property +

+ + +
+ + bool + applicationEmailAdmins +
final
+ +
+ + + +
+

Implementation

+
final bool applicationEmailAdmins;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/applicationQuestion.html b/doc/api/lemmy_api_client/LocalSite/applicationQuestion.html new file mode 100644 index 00000000..7d06c526 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/applicationQuestion.html @@ -0,0 +1,111 @@ + + + + + + + + applicationQuestion property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
applicationQuestion
+ +
+ +
+
+
+
+
+

applicationQuestion property +

+ + +
+ + String? + applicationQuestion +
final
+ +
+ + + +
+

Implementation

+
final String? applicationQuestion;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/captchaDifficulty.html b/doc/api/lemmy_api_client/LocalSite/captchaDifficulty.html new file mode 100644 index 00000000..284b5673 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/captchaDifficulty.html @@ -0,0 +1,111 @@ + + + + + + + + captchaDifficulty property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
captchaDifficulty
+ +
+ +
+
+
+
+
+

captchaDifficulty property +

+ + +
+ + String + captchaDifficulty +
final
+ +
+ + + +
+

Implementation

+
final String captchaDifficulty;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/captchaEnabled.html b/doc/api/lemmy_api_client/LocalSite/captchaEnabled.html new file mode 100644 index 00000000..cdd6cd51 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/captchaEnabled.html @@ -0,0 +1,111 @@ + + + + + + + + captchaEnabled property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
captchaEnabled
+ +
+ +
+
+
+
+
+

captchaEnabled property +

+ + +
+ + bool + captchaEnabled +
final
+ +
+ + + +
+

Implementation

+
final bool captchaEnabled;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/commentDownvotes.html b/doc/api/lemmy_api_client/LocalSite/commentDownvotes.html new file mode 100644 index 00000000..b997f394 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/commentDownvotes.html @@ -0,0 +1,117 @@ + + + + + + + + commentDownvotes property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
commentDownvotes
+ +
+ +
+
+
+
+
+

commentDownvotes property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
  2. +
+
+ FederationMode + commentDownvotes +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
+final FederationMode commentDownvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/commentUpvotes.html b/doc/api/lemmy_api_client/LocalSite/commentUpvotes.html new file mode 100644 index 00000000..0362eb9d --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/commentUpvotes.html @@ -0,0 +1,117 @@ + + + + + + + + commentUpvotes property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
commentUpvotes
+ +
+ +
+
+
+
+
+

commentUpvotes property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
  2. +
+
+ FederationMode + commentUpvotes +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
+final FederationMode commentUpvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/communityCreationAdminOnly.html b/doc/api/lemmy_api_client/LocalSite/communityCreationAdminOnly.html new file mode 100644 index 00000000..d7c88d10 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/communityCreationAdminOnly.html @@ -0,0 +1,111 @@ + + + + + + + + communityCreationAdminOnly property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communityCreationAdminOnly
+ +
+ +
+
+
+
+
+

communityCreationAdminOnly property +

+ + +
+ + bool + communityCreationAdminOnly +
final
+ +
+ + + +
+

Implementation

+
final bool communityCreationAdminOnly;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/defaultCommentSortType.html b/doc/api/lemmy_api_client/LocalSite/defaultCommentSortType.html new file mode 100644 index 00000000..ba90af2e --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/defaultCommentSortType.html @@ -0,0 +1,117 @@ + + + + + + + + defaultCommentSortType property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultCommentSortType
+ +
+ +
+
+
+
+
+

defaultCommentSortType property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeCommentSortTypeToJson, fromJson: lowercaseCommentSortTypeFromJson)
  2. +
+
+ CommentSortType + defaultCommentSortType +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeCommentSortTypeToJson, fromJson: lowercaseCommentSortTypeFromJson)
+final CommentSortType defaultCommentSortType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/defaultPostListingMode.html b/doc/api/lemmy_api_client/LocalSite/defaultPostListingMode.html new file mode 100644 index 00000000..b73ba7fd --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/defaultPostListingMode.html @@ -0,0 +1,117 @@ + + + + + + + + defaultPostListingMode property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultPostListingMode
+ +
+ +
+
+
+
+
+

defaultPostListingMode property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizePostListingModeToJson, fromJson: lowercasePostListingModeFromJson)
  2. +
+
+ PostListingMode + defaultPostListingMode +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizePostListingModeToJson, fromJson: lowercasePostListingModeFromJson)
+final PostListingMode defaultPostListingMode;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/defaultPostListingType.html b/doc/api/lemmy_api_client/LocalSite/defaultPostListingType.html new file mode 100644 index 00000000..d9b31b48 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/defaultPostListingType.html @@ -0,0 +1,117 @@ + + + + + + + + defaultPostListingType property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultPostListingType
+ +
+ +
+
+
+
+
+

defaultPostListingType property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeListingTypeToJson, fromJson: lowercaseListingTypeFromJson)
  2. +
+
+ ListingType + defaultPostListingType +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeListingTypeToJson, fromJson: lowercaseListingTypeFromJson)
+final ListingType defaultPostListingType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/defaultPostSortType.html b/doc/api/lemmy_api_client/LocalSite/defaultPostSortType.html new file mode 100644 index 00000000..20b1b1cf --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/defaultPostSortType.html @@ -0,0 +1,117 @@ + + + + + + + + defaultPostSortType property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultPostSortType
+ +
+ +
+
+
+
+
+

defaultPostSortType property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizePostSortTypeToJson, fromJson: lowercasePostSortTypeFromJson)
  2. +
+
+ PostSortType + defaultPostSortType +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizePostSortTypeToJson, fromJson: lowercasePostSortTypeFromJson)
+final PostSortType defaultPostSortType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/defaultTheme.html b/doc/api/lemmy_api_client/LocalSite/defaultTheme.html new file mode 100644 index 00000000..fcff3735 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/defaultTheme.html @@ -0,0 +1,111 @@ + + + + + + + + defaultTheme property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
defaultTheme
+ +
+ +
+
+
+
+
+

defaultTheme property +

+ + +
+ + String + defaultTheme +
final
+ +
+ + + +
+

Implementation

+
final String defaultTheme;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/federationEnabled.html b/doc/api/lemmy_api_client/LocalSite/federationEnabled.html new file mode 100644 index 00000000..b276181c --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/federationEnabled.html @@ -0,0 +1,111 @@ + + + + + + + + federationEnabled property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
federationEnabled
+ +
+ +
+
+
+
+
+

federationEnabled property +

+ + +
+ + bool + federationEnabled +
final
+ +
+ + + +
+

Implementation

+
final bool federationEnabled;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/federationSignedFetch.html b/doc/api/lemmy_api_client/LocalSite/federationSignedFetch.html new file mode 100644 index 00000000..dbc0a20b --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/federationSignedFetch.html @@ -0,0 +1,111 @@ + + + + + + + + federationSignedFetch property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
federationSignedFetch
+ +
+ +
+
+
+
+
+

federationSignedFetch property +

+ + +
+ + bool + federationSignedFetch +
final
+ +
+ + + +
+

Implementation

+
final bool federationSignedFetch;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/hideModlogModNames.html b/doc/api/lemmy_api_client/LocalSite/hideModlogModNames.html new file mode 100644 index 00000000..9324b809 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/hideModlogModNames.html @@ -0,0 +1,111 @@ + + + + + + + + hideModlogModNames property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
hideModlogModNames
+ +
+ +
+
+
+
+
+

hideModlogModNames property +

+ + +
+ + bool + hideModlogModNames +
final
+ +
+ + + +
+

Implementation

+
final bool hideModlogModNames;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/id.html b/doc/api/lemmy_api_client/LocalSite/id.html new file mode 100644 index 00000000..5767c6b0 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/legalInformation.html b/doc/api/lemmy_api_client/LocalSite/legalInformation.html new file mode 100644 index 00000000..e9c89c89 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/legalInformation.html @@ -0,0 +1,111 @@ + + + + + + + + legalInformation property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
legalInformation
+ +
+ +
+
+
+
+
+

legalInformation property +

+ + +
+ + String? + legalInformation +
final
+ +
+ + + +
+

Implementation

+
final String? legalInformation;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/oauthRegistration.html b/doc/api/lemmy_api_client/LocalSite/oauthRegistration.html new file mode 100644 index 00000000..570902cb --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/oauthRegistration.html @@ -0,0 +1,111 @@ + + + + + + + + oauthRegistration property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
oauthRegistration
+ +
+ +
+
+
+
+
+

oauthRegistration property +

+ + +
+ + bool? + oauthRegistration +
final
+ +
+ + + +
+

Implementation

+
final bool? oauthRegistration;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/postDownvotes.html b/doc/api/lemmy_api_client/LocalSite/postDownvotes.html new file mode 100644 index 00000000..b2f48d22 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/postDownvotes.html @@ -0,0 +1,117 @@ + + + + + + + + postDownvotes property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postDownvotes
+ +
+ +
+
+
+
+
+

postDownvotes property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
  2. +
+
+ FederationMode + postDownvotes +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
+final FederationMode postDownvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/postUpvotes.html b/doc/api/lemmy_api_client/LocalSite/postUpvotes.html new file mode 100644 index 00000000..c1382708 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/postUpvotes.html @@ -0,0 +1,117 @@ + + + + + + + + postUpvotes property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postUpvotes
+ +
+ +
+
+
+
+
+

postUpvotes property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
  2. +
+
+ FederationMode + postUpvotes +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson)
+final FederationMode postUpvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/privateInstance.html b/doc/api/lemmy_api_client/LocalSite/privateInstance.html new file mode 100644 index 00000000..4ae63a30 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/privateInstance.html @@ -0,0 +1,111 @@ + + + + + + + + privateInstance property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
privateInstance
+ +
+ +
+
+
+
+
+

privateInstance property +

+ + +
+ + bool + privateInstance +
final
+ +
+ + + +
+

Implementation

+
final bool privateInstance;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/published.html b/doc/api/lemmy_api_client/LocalSite/published.html new file mode 100644 index 00000000..b76a16d6 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/registrationMode.html b/doc/api/lemmy_api_client/LocalSite/registrationMode.html new file mode 100644 index 00000000..51da395e --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/registrationMode.html @@ -0,0 +1,117 @@ + + + + + + + + registrationMode property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
registrationMode
+ +
+ +
+
+
+
+
+

registrationMode property +

+ + +
+ +
+
    +
  1. @JsonKey(toJson: capitalizeRegistrationModeToJson, fromJson: lowercaseRegistrationModeFromJson)
  2. +
+
+ RegistrationMode + registrationMode +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(toJson: capitalizeRegistrationModeToJson, fromJson: lowercaseRegistrationModeFromJson)
+final RegistrationMode registrationMode;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/reportsEmailAdmins.html b/doc/api/lemmy_api_client/LocalSite/reportsEmailAdmins.html new file mode 100644 index 00000000..4805c7a1 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/reportsEmailAdmins.html @@ -0,0 +1,111 @@ + + + + + + + + reportsEmailAdmins property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
reportsEmailAdmins
+ +
+ +
+
+
+
+
+

reportsEmailAdmins property +

+ + +
+ + bool + reportsEmailAdmins +
final
+ +
+ + + +
+

Implementation

+
final bool reportsEmailAdmins;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/requireEmailVerification.html b/doc/api/lemmy_api_client/LocalSite/requireEmailVerification.html new file mode 100644 index 00000000..557c2a1b --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/requireEmailVerification.html @@ -0,0 +1,111 @@ + + + + + + + + requireEmailVerification property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
requireEmailVerification
+ +
+ +
+
+
+
+
+

requireEmailVerification property +

+ + +
+ + bool + requireEmailVerification +
final
+ +
+ + + +
+

Implementation

+
final bool requireEmailVerification;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/siteId.html b/doc/api/lemmy_api_client/LocalSite/siteId.html new file mode 100644 index 00000000..9312656b --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/siteId.html @@ -0,0 +1,111 @@ + + + + + + + + siteId property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
siteId
+ +
+ +
+
+
+
+
+

siteId property +

+ + +
+ + int + siteId +
final
+ +
+ + + +
+

Implementation

+
final int siteId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/siteSetup.html b/doc/api/lemmy_api_client/LocalSite/siteSetup.html new file mode 100644 index 00000000..0a2eeab2 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/siteSetup.html @@ -0,0 +1,111 @@ + + + + + + + + siteSetup property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
siteSetup
+ +
+ +
+
+
+
+
+

siteSetup property +

+ + +
+ + bool + siteSetup +
final
+ +
+ + + +
+

Implementation

+
final bool siteSetup;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/slurFilterRegex.html b/doc/api/lemmy_api_client/LocalSite/slurFilterRegex.html new file mode 100644 index 00000000..429ac93f --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/slurFilterRegex.html @@ -0,0 +1,111 @@ + + + + + + + + slurFilterRegex property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
slurFilterRegex
+ +
+ +
+
+
+
+
+

slurFilterRegex property +

+ + +
+ + String? + slurFilterRegex +
final
+ +
+ + + +
+

Implementation

+
final String? slurFilterRegex;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/toJson.html b/doc/api/lemmy_api_client/LocalSite/toJson.html new file mode 100644 index 00000000..ecb8107d --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$LocalSiteToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSite/updated.html b/doc/api/lemmy_api_client/LocalSite/updated.html new file mode 100644 index 00000000..be156cc2 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSite/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - LocalSite class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit-class-sidebar.html b/doc/api/lemmy_api_client/LocalSiteRateLimit-class-sidebar.html new file mode 100644 index 00000000..4008bfc7 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit-class-sidebar.html @@ -0,0 +1,114 @@ +
    + +
  1. Constructors
  2. +
  3. LocalSiteRateLimit
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + comment +
  10. + +
  11. + commentPerSecond +
  12. + +
  13. + hashCode +
  14. + +
  15. + image +
  16. + +
  17. + imagePerSecond +
  18. + +
  19. + importUserSettings +
  20. + +
  21. + importUserSettingsPerSecond +
  22. + +
  23. + localSiteId +
  24. + +
  25. + message +
  26. + +
  27. + messagePerSecond +
  28. + +
  29. + post +
  30. + +
  31. + postPerSecond +
  32. + +
  33. + published +
  34. + +
  35. + register +
  36. + +
  37. + registerPerSecond +
  38. + +
  39. + runtimeType +
  40. + +
  41. + search +
  42. + +
  43. + searchPerSecond +
  44. + +
  45. + updated +
  46. + +
  47. Methods
  48. + +
  49. + noSuchMethod +
  50. + +
  51. + toJson +
  52. + +
  53. + toString +
  54. + +
  55. Operators
  56. + +
  57. + operator == +
  58. + + + + + + +
diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit-class.html b/doc/api/lemmy_api_client/LocalSiteRateLimit-class.html new file mode 100644 index 00000000..97e17ee4 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit-class.html @@ -0,0 +1,444 @@ + + + + + + + + LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSiteRateLimit
+ +
+ +
+
+
+
+
+

LocalSiteRateLimit class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ LocalSiteRateLimit({required int localSiteId, required int message, required int messagePerSecond, required int post, required int postPerSecond, required int register, required int registerPerSecond, required int image, required int imagePerSecond, required int comment, required int commentPerSecond, required int search, required int searchPerSecond, required DateTime published, DateTime? updated, required int importUserSettings, required int importUserSettingsPerSecond}) +
+
+ +
+
+ LocalSiteRateLimit.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ comment + int + + +
+
+ +
final
+ +
+ +
+ commentPerSecond + int + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ image + int + + +
+
+ +
final
+ +
+ +
+ imagePerSecond + int + + +
+
+ +
final
+ +
+ +
+ importUserSettings + int + + +
+
+ +
final
+ +
+ +
+ importUserSettingsPerSecond + int + + +
+
+ +
final
+ +
+ +
+ localSiteId + int + + +
+
+ +
final
+ +
+ +
+ message + int + + +
+
+ +
final
+ +
+ +
+ messagePerSecond + int + + +
+
+ +
final
+ +
+ +
+ post + int + + +
+
+ +
final
+ +
+ +
+ postPerSecond + int + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ register + int + + +
+
+ +
final
+ +
+ +
+ registerPerSecond + int + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ + +
+ +
final
+ +
+ +
+ searchPerSecond + int + + +
+
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.fromJson.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.fromJson.html new file mode 100644 index 00000000..21654174 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + LocalSiteRateLimit.fromJson constructor - LocalSiteRateLimit - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSiteRateLimit.fromJson
+ +
+ +
+
+
+
+
+

LocalSiteRateLimit.fromJson constructor +

+ +
+ + LocalSiteRateLimit.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory LocalSiteRateLimit.fromJson(Map<String, dynamic> json) => _$LocalSiteRateLimitFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.html new file mode 100644 index 00000000..a4bde010 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/LocalSiteRateLimit.html @@ -0,0 +1,142 @@ + + + + + + + + LocalSiteRateLimit constructor - LocalSiteRateLimit - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSiteRateLimit
+ +
+ +
+
+
+
+
+

LocalSiteRateLimit constructor +

+ +
+ + LocalSiteRateLimit({
  1. required int localSiteId,
  2. +
  3. required int message,
  4. +
  5. required int messagePerSecond,
  6. +
  7. required int post,
  8. +
  9. required int postPerSecond,
  10. +
  11. required int register,
  12. +
  13. required int registerPerSecond,
  14. +
  15. required int image,
  16. +
  17. required int imagePerSecond,
  18. +
  19. required int comment,
  20. +
  21. required int commentPerSecond,
  22. +
  23. required int search,
  24. +
  25. required int searchPerSecond,
  26. +
  27. required DateTime published,
  28. +
  29. DateTime? updated,
  30. +
  31. required int importUserSettings,
  32. +
  33. required int importUserSettingsPerSecond,
  34. +
}) +
+ + + + +
+

Implementation

+
LocalSiteRateLimit({
+  required this.localSiteId,
+  required this.message,
+  required this.messagePerSecond,
+  required this.post,
+  required this.postPerSecond,
+  required this.register,
+  required this.registerPerSecond,
+  required this.image,
+  required this.imagePerSecond,
+  required this.comment,
+  required this.commentPerSecond,
+  required this.search,
+  required this.searchPerSecond,
+  required this.published,
+  this.updated,
+  required this.importUserSettings,
+  required this.importUserSettingsPerSecond,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/comment.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/comment.html new file mode 100644 index 00000000..fce12dec --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/comment.html @@ -0,0 +1,111 @@ + + + + + + + + comment property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
comment
+ +
+ +
+
+
+
+
+

comment property +

+ + +
+ + int + comment +
final
+ +
+ + + +
+

Implementation

+
final int comment;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/commentPerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/commentPerSecond.html new file mode 100644 index 00000000..51f38528 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/commentPerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + commentPerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
commentPerSecond
+ +
+ +
+
+
+
+
+

commentPerSecond property +

+ + +
+ + int + commentPerSecond +
final
+ +
+ + + +
+

Implementation

+
final int commentPerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/image.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/image.html new file mode 100644 index 00000000..dacc64f0 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/image.html @@ -0,0 +1,111 @@ + + + + + + + + image property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
image
+ +
+ +
+
+
+
+
+

image property +

+ + +
+ + int + image +
final
+ +
+ + + +
+

Implementation

+
final int image;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/imagePerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/imagePerSecond.html new file mode 100644 index 00000000..d9ce8376 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/imagePerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + imagePerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
imagePerSecond
+ +
+ +
+
+
+
+
+

imagePerSecond property +

+ + +
+ + int + imagePerSecond +
final
+ +
+ + + +
+

Implementation

+
final int imagePerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/importUserSettings.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/importUserSettings.html new file mode 100644 index 00000000..5c86152b --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/importUserSettings.html @@ -0,0 +1,111 @@ + + + + + + + + importUserSettings property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
importUserSettings
+ +
+ +
+
+
+
+
+

importUserSettings property +

+ + +
+ + int + importUserSettings +
final
+ +
+ + + +
+

Implementation

+
final int importUserSettings;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/importUserSettingsPerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/importUserSettingsPerSecond.html new file mode 100644 index 00000000..9912f585 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/importUserSettingsPerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + importUserSettingsPerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
importUserSettingsPerSecond
+ +
+ +
+
+
+
+
+

importUserSettingsPerSecond property +

+ + +
+ + int + importUserSettingsPerSecond +
final
+ +
+ + + +
+

Implementation

+
final int importUserSettingsPerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/localSiteId.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/localSiteId.html new file mode 100644 index 00000000..de8bec0f --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/localSiteId.html @@ -0,0 +1,111 @@ + + + + + + + + localSiteId property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
localSiteId
+ +
+ +
+
+
+
+
+

localSiteId property +

+ + +
+ + int + localSiteId +
final
+ +
+ + + +
+

Implementation

+
final int localSiteId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/message.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/message.html new file mode 100644 index 00000000..a103d8e3 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/message.html @@ -0,0 +1,111 @@ + + + + + + + + message property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
message
+ +
+ +
+
+
+
+
+

message property +

+ + +
+ + int + message +
final
+ +
+ + + +
+

Implementation

+
final int message;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/messagePerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/messagePerSecond.html new file mode 100644 index 00000000..2fb001d6 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/messagePerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + messagePerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
messagePerSecond
+ +
+ +
+
+
+
+
+

messagePerSecond property +

+ + +
+ + int + messagePerSecond +
final
+ +
+ + + +
+

Implementation

+
final int messagePerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/post.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/post.html new file mode 100644 index 00000000..c462bcce --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/post.html @@ -0,0 +1,111 @@ + + + + + + + + post property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
post
+ +
+ +
+
+
+
+
+

post property +

+ + +
+ + int + post +
final
+ +
+ + + +
+

Implementation

+
final int post;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/postPerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/postPerSecond.html new file mode 100644 index 00000000..13caa920 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/postPerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + postPerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postPerSecond
+ +
+ +
+
+
+
+
+

postPerSecond property +

+ + +
+ + int + postPerSecond +
final
+ +
+ + + +
+

Implementation

+
final int postPerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/published.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/published.html new file mode 100644 index 00000000..da1fb192 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/register.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/register.html new file mode 100644 index 00000000..656b0427 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/register.html @@ -0,0 +1,111 @@ + + + + + + + + register property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
register
+ +
+ +
+
+
+
+
+

register property +

+ + +
+ + int + register +
final
+ +
+ + + +
+

Implementation

+
final int register;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/registerPerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/registerPerSecond.html new file mode 100644 index 00000000..78135f2e --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/registerPerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + registerPerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
registerPerSecond
+ +
+ +
+
+
+
+
+

registerPerSecond property +

+ + +
+ + int + registerPerSecond +
final
+ +
+ + + +
+

Implementation

+
final int registerPerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/search.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/search.html new file mode 100644 index 00000000..c4548cc4 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/search.html @@ -0,0 +1,111 @@ + + + + + + + + search property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
search
+ +
+ +
+
+
+
+
+

search property +

+ + +
+ + int + search +
final
+ +
+ + + +
+

Implementation

+
final int search;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/searchPerSecond.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/searchPerSecond.html new file mode 100644 index 00000000..0f515310 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/searchPerSecond.html @@ -0,0 +1,111 @@ + + + + + + + + searchPerSecond property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
searchPerSecond
+ +
+ +
+
+
+
+
+

searchPerSecond property +

+ + +
+ + int + searchPerSecond +
final
+ +
+ + + +
+

Implementation

+
final int searchPerSecond;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/toJson.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/toJson.html new file mode 100644 index 00000000..3459e5d7 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$LocalSiteRateLimitToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteRateLimit/updated.html b/doc/api/lemmy_api_client/LocalSiteRateLimit/updated.html new file mode 100644 index 00000000..6580efca --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteRateLimit/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - LocalSiteRateLimit class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist-class-sidebar.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist-class-sidebar.html new file mode 100644 index 00000000..4a3abfad --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. LocalSiteUrlBlocklist
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + hashCode +
  10. + +
  11. + id +
  12. + +
  13. + published +
  14. + +
  15. + runtimeType +
  16. + +
  17. + updated +
  18. + +
  19. + url +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist-class.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist-class.html new file mode 100644 index 00000000..30ebf5fd --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist-class.html @@ -0,0 +1,288 @@ + + + + + + + + LocalSiteUrlBlocklist class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSiteUrlBlocklist
+ +
+ +
+
+
+
+
+

LocalSiteUrlBlocklist class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ LocalSiteUrlBlocklist({required int id, required String url, required DateTime published, DateTime? updated}) +
+
+ +
+
+ LocalSiteUrlBlocklist.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+ url + String + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.fromJson.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.fromJson.html new file mode 100644 index 00000000..4629b6a4 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + LocalSiteUrlBlocklist.fromJson constructor - LocalSiteUrlBlocklist - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSiteUrlBlocklist.fromJson
+ +
+ +
+
+
+
+
+

LocalSiteUrlBlocklist.fromJson constructor +

+ +
+ + LocalSiteUrlBlocklist.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory LocalSiteUrlBlocklist.fromJson(Map<String, dynamic> json) => _$LocalSiteUrlBlocklistFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.html new file mode 100644 index 00000000..c0e216b7 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/LocalSiteUrlBlocklist.html @@ -0,0 +1,116 @@ + + + + + + + + LocalSiteUrlBlocklist constructor - LocalSiteUrlBlocklist - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LocalSiteUrlBlocklist
+ +
+ +
+
+
+
+
+

LocalSiteUrlBlocklist constructor +

+ +
+ + LocalSiteUrlBlocklist({
  1. required int id,
  2. +
  3. required String url,
  4. +
  5. required DateTime published,
  6. +
  7. DateTime? updated,
  8. +
}) +
+ + + + +
+

Implementation

+
LocalSiteUrlBlocklist({
+  required this.id,
+  required this.url,
+  required this.published,
+  this.updated,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/id.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/id.html new file mode 100644 index 00000000..dea98378 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - LocalSiteUrlBlocklist class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/published.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/published.html new file mode 100644 index 00000000..9da0c576 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - LocalSiteUrlBlocklist class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/toJson.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/toJson.html new file mode 100644 index 00000000..9fa9f406 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - LocalSiteUrlBlocklist class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$LocalSiteUrlBlocklistToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/updated.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/updated.html new file mode 100644 index 00000000..f981a8fc --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - LocalSiteUrlBlocklist class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/url.html b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/url.html new file mode 100644 index 00000000..ae7a04a3 --- /dev/null +++ b/doc/api/lemmy_api_client/LocalSiteUrlBlocklist/url.html @@ -0,0 +1,111 @@ + + + + + + + + url property - LocalSiteUrlBlocklist class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
url
+ +
+ +
+
+
+
+
+

url property +

+ + +
+ + String + url +
final
+ +
+ + + +
+

Implementation

+
final String url;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse-class-sidebar.html b/doc/api/lemmy_api_client/LoginResponse-class-sidebar.html new file mode 100644 index 00000000..eb61311f --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse-class-sidebar.html @@ -0,0 +1,58 @@ +
    + +
  1. Constructors
  2. +
  3. LoginResponse
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + hashCode +
  10. + +
  11. + jwt +
  12. + +
  13. + registrationCreated +
  14. + +
  15. + runtimeType +
  16. + +
  17. + verifyEmailSent +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toJson +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
diff --git a/doc/api/lemmy_api_client/LoginResponse-class.html b/doc/api/lemmy_api_client/LoginResponse-class.html new file mode 100644 index 00000000..9fd48182 --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse-class.html @@ -0,0 +1,276 @@ + + + + + + + + LoginResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LoginResponse
+ +
+ +
+
+
+
+
+

LoginResponse class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ LoginResponse({String? jwt, required bool registrationCreated, required bool verifyEmailSent}) +
+
+ +
+
+ LoginResponse.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ jwt + String? + + +
+
+ +
final
+ +
+ +
+ registrationCreated + bool + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ verifyEmailSent + bool + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse/LoginResponse.fromJson.html b/doc/api/lemmy_api_client/LoginResponse/LoginResponse.fromJson.html new file mode 100644 index 00000000..89a6596b --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse/LoginResponse.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + LoginResponse.fromJson constructor - LoginResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LoginResponse.fromJson
+ +
+ +
+
+
+
+
+

LoginResponse.fromJson constructor +

+ +
+ + LoginResponse.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory LoginResponse.fromJson(Map<String, dynamic> json) => _$LoginResponseFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse/LoginResponse.html b/doc/api/lemmy_api_client/LoginResponse/LoginResponse.html new file mode 100644 index 00000000..06788066 --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse/LoginResponse.html @@ -0,0 +1,114 @@ + + + + + + + + LoginResponse constructor - LoginResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
LoginResponse
+ +
+ +
+
+
+
+
+

LoginResponse constructor +

+ +
+ + LoginResponse({
  1. String? jwt,
  2. +
  3. required bool registrationCreated,
  4. +
  5. required bool verifyEmailSent,
  6. +
}) +
+ + + + +
+

Implementation

+
LoginResponse({
+  this.jwt,
+  required this.registrationCreated,
+  required this.verifyEmailSent,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse/jwt.html b/doc/api/lemmy_api_client/LoginResponse/jwt.html new file mode 100644 index 00000000..3c31efeb --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse/jwt.html @@ -0,0 +1,111 @@ + + + + + + + + jwt property - LoginResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
jwt
+ +
+ +
+
+
+
+
+

jwt property +

+ + +
+ + String? + jwt +
final
+ +
+ + + +
+

Implementation

+
final String? jwt;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse/registrationCreated.html b/doc/api/lemmy_api_client/LoginResponse/registrationCreated.html new file mode 100644 index 00000000..5e458836 --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse/registrationCreated.html @@ -0,0 +1,111 @@ + + + + + + + + registrationCreated property - LoginResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
registrationCreated
+ +
+ +
+
+
+
+
+

registrationCreated property +

+ + +
+ + bool + registrationCreated +
final
+ +
+ + + +
+

Implementation

+
final bool registrationCreated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse/toJson.html b/doc/api/lemmy_api_client/LoginResponse/toJson.html new file mode 100644 index 00000000..37957b4d --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - LoginResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$LoginResponseToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/LoginResponse/verifyEmailSent.html b/doc/api/lemmy_api_client/LoginResponse/verifyEmailSent.html new file mode 100644 index 00000000..a1f404be --- /dev/null +++ b/doc/api/lemmy_api_client/LoginResponse/verifyEmailSent.html @@ -0,0 +1,111 @@ + + + + + + + + verifyEmailSent property - LoginResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
verifyEmailSent
+ +
+ +
+
+
+
+
+

verifyEmailSent property +

+ + +
+ + bool + verifyEmailSent +
final
+ +
+ + + +
+

Implementation

+
final bool verifyEmailSent;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider-class-sidebar.html b/doc/api/lemmy_api_client/OAuthProvider-class-sidebar.html new file mode 100644 index 00000000..b968fc26 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider-class-sidebar.html @@ -0,0 +1,106 @@ +
    + +
  1. Constructors
  2. +
  3. OAuthProvider
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + accountLinkingEnabled +
  10. + +
  11. + authorizationEndpoint +
  12. + +
  13. + autoVerifyEmail +
  14. + +
  15. + clientId +
  16. + +
  17. + displayName +
  18. + +
  19. + enabled +
  20. + +
  21. + hashCode +
  22. + +
  23. + id +
  24. + +
  25. + idClaim +
  26. + +
  27. + issuer +
  28. + +
  29. + published +
  30. + +
  31. + runtimeType +
  32. + +
  33. + scopes +
  34. + +
  35. + tokenEndpoint +
  36. + +
  37. + updated +
  38. + +
  39. + usePkce +
  40. + +
  41. + userinfoEndpoint +
  42. + +
  43. Methods
  44. + +
  45. + noSuchMethod +
  46. + +
  47. + toJson +
  48. + +
  49. + toString +
  50. + +
  51. Operators
  52. + +
  53. + operator == +
  54. + + + + + + +
diff --git a/doc/api/lemmy_api_client/OAuthProvider-class.html b/doc/api/lemmy_api_client/OAuthProvider-class.html new file mode 100644 index 00000000..66d8a3f4 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider-class.html @@ -0,0 +1,420 @@ + + + + + + + + OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
OAuthProvider
+ +
+ +
+
+
+
+
+

OAuthProvider class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ OAuthProvider({required int id, required String displayName, required String issuer, required String authorizationEndpoint, required String tokenEndpoint, required String userinfoEndpoint, required String idClaim, required String clientId, required String scopes, required bool autoVerifyEmail, required bool accountLinkingEnabled, required bool enabled, required DateTime published, DateTime? updated, required bool usePkce}) +
+
+ +
+
+ OAuthProvider.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ accountLinkingEnabled + bool + + +
+
+ +
final
+ +
+ +
+ authorizationEndpoint + String + + +
+
+ +
final
+ +
+ +
+ autoVerifyEmail + bool + + +
+
+ +
final
+ +
+ +
+ clientId + String + + +
+
+ +
final
+ +
+ +
+ displayName + String + + +
+
+ +
final
+ +
+ +
+ enabled + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ idClaim + String + + +
+
+ +
final
+ +
+ +
+ issuer + String + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ scopes + String + + +
+
+ +
final
+ +
+ +
+ tokenEndpoint + String + + +
+
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+ usePkce + bool + + +
+
+ +
final
+ +
+ +
+ userinfoEndpoint + String + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/OAuthProvider.fromJson.html b/doc/api/lemmy_api_client/OAuthProvider/OAuthProvider.fromJson.html new file mode 100644 index 00000000..ccc5fe6f --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/OAuthProvider.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + OAuthProvider.fromJson constructor - OAuthProvider - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
OAuthProvider.fromJson
+ +
+ +
+
+
+
+
+

OAuthProvider.fromJson constructor +

+ +
+ + OAuthProvider.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory OAuthProvider.fromJson(Map<String, dynamic> json) => _$OAuthProviderFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/OAuthProvider.html b/doc/api/lemmy_api_client/OAuthProvider/OAuthProvider.html new file mode 100644 index 00000000..5b12b4c8 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/OAuthProvider.html @@ -0,0 +1,138 @@ + + + + + + + + OAuthProvider constructor - OAuthProvider - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
OAuthProvider
+ +
+ +
+
+
+
+
+

OAuthProvider constructor +

+ +
+ + OAuthProvider({
  1. required int id,
  2. +
  3. required String displayName,
  4. +
  5. required String issuer,
  6. +
  7. required String authorizationEndpoint,
  8. +
  9. required String tokenEndpoint,
  10. +
  11. required String userinfoEndpoint,
  12. +
  13. required String idClaim,
  14. +
  15. required String clientId,
  16. +
  17. required String scopes,
  18. +
  19. required bool autoVerifyEmail,
  20. +
  21. required bool accountLinkingEnabled,
  22. +
  23. required bool enabled,
  24. +
  25. required DateTime published,
  26. +
  27. DateTime? updated,
  28. +
  29. required bool usePkce,
  30. +
}) +
+ + + + +
+

Implementation

+
OAuthProvider({
+  required this.id,
+  required this.displayName,
+  required this.issuer,
+  required this.authorizationEndpoint,
+  required this.tokenEndpoint,
+  required this.userinfoEndpoint,
+  required this.idClaim,
+  required this.clientId,
+  required this.scopes,
+  required this.autoVerifyEmail,
+  required this.accountLinkingEnabled,
+  required this.enabled,
+  required this.published,
+  this.updated,
+  required this.usePkce,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/accountLinkingEnabled.html b/doc/api/lemmy_api_client/OAuthProvider/accountLinkingEnabled.html new file mode 100644 index 00000000..13b1b0b4 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/accountLinkingEnabled.html @@ -0,0 +1,111 @@ + + + + + + + + accountLinkingEnabled property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
accountLinkingEnabled
+ +
+ +
+
+
+
+
+

accountLinkingEnabled property +

+ + +
+ + bool + accountLinkingEnabled +
final
+ +
+ + + +
+

Implementation

+
final bool accountLinkingEnabled;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/authorizationEndpoint.html b/doc/api/lemmy_api_client/OAuthProvider/authorizationEndpoint.html new file mode 100644 index 00000000..f5256b18 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/authorizationEndpoint.html @@ -0,0 +1,111 @@ + + + + + + + + authorizationEndpoint property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
authorizationEndpoint
+ +
+ +
+
+
+
+
+

authorizationEndpoint property +

+ + +
+ + String + authorizationEndpoint +
final
+ +
+ + + +
+

Implementation

+
final String authorizationEndpoint;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/autoVerifyEmail.html b/doc/api/lemmy_api_client/OAuthProvider/autoVerifyEmail.html new file mode 100644 index 00000000..8d42edf7 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/autoVerifyEmail.html @@ -0,0 +1,111 @@ + + + + + + + + autoVerifyEmail property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
autoVerifyEmail
+ +
+ +
+
+
+
+
+

autoVerifyEmail property +

+ + +
+ + bool + autoVerifyEmail +
final
+ +
+ + + +
+

Implementation

+
final bool autoVerifyEmail;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/clientId.html b/doc/api/lemmy_api_client/OAuthProvider/clientId.html new file mode 100644 index 00000000..e0fcae7f --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/clientId.html @@ -0,0 +1,111 @@ + + + + + + + + clientId property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
clientId
+ +
+ +
+
+
+
+
+

clientId property +

+ + +
+ + String + clientId +
final
+ +
+ + + +
+

Implementation

+
final String clientId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/displayName.html b/doc/api/lemmy_api_client/OAuthProvider/displayName.html new file mode 100644 index 00000000..786df1e0 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/displayName.html @@ -0,0 +1,111 @@ + + + + + + + + displayName property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
displayName
+ +
+ +
+
+
+
+
+

displayName property +

+ + +
+ + String + displayName +
final
+ +
+ + + +
+

Implementation

+
final String displayName;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/enabled.html b/doc/api/lemmy_api_client/OAuthProvider/enabled.html new file mode 100644 index 00000000..c3fbb730 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/enabled.html @@ -0,0 +1,111 @@ + + + + + + + + enabled property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
enabled
+ +
+ +
+
+
+
+
+

enabled property +

+ + +
+ + bool + enabled +
final
+ +
+ + + +
+

Implementation

+
final bool enabled;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/id.html b/doc/api/lemmy_api_client/OAuthProvider/id.html new file mode 100644 index 00000000..ef602a48 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/idClaim.html b/doc/api/lemmy_api_client/OAuthProvider/idClaim.html new file mode 100644 index 00000000..7d4a0d1f --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/idClaim.html @@ -0,0 +1,111 @@ + + + + + + + + idClaim property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
idClaim
+ +
+ +
+
+
+
+
+

idClaim property +

+ + +
+ + String + idClaim +
final
+ +
+ + + +
+

Implementation

+
final String idClaim;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/issuer.html b/doc/api/lemmy_api_client/OAuthProvider/issuer.html new file mode 100644 index 00000000..48970f9f --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/issuer.html @@ -0,0 +1,111 @@ + + + + + + + + issuer property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
issuer
+ +
+ +
+
+
+
+
+

issuer property +

+ + +
+ + String + issuer +
final
+ +
+ + + +
+

Implementation

+
final String issuer;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/published.html b/doc/api/lemmy_api_client/OAuthProvider/published.html new file mode 100644 index 00000000..16f836dd --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/scopes.html b/doc/api/lemmy_api_client/OAuthProvider/scopes.html new file mode 100644 index 00000000..fe364f18 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/scopes.html @@ -0,0 +1,111 @@ + + + + + + + + scopes property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
scopes
+ +
+ +
+
+
+
+
+

scopes property +

+ + +
+ + String + scopes +
final
+ +
+ + + +
+

Implementation

+
final String scopes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/toJson.html b/doc/api/lemmy_api_client/OAuthProvider/toJson.html new file mode 100644 index 00000000..8de63e84 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$OAuthProviderToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/tokenEndpoint.html b/doc/api/lemmy_api_client/OAuthProvider/tokenEndpoint.html new file mode 100644 index 00000000..f12cd8ed --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/tokenEndpoint.html @@ -0,0 +1,111 @@ + + + + + + + + tokenEndpoint property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
tokenEndpoint
+ +
+ +
+
+
+
+
+

tokenEndpoint property +

+ + +
+ + String + tokenEndpoint +
final
+ +
+ + + +
+

Implementation

+
final String tokenEndpoint;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/updated.html b/doc/api/lemmy_api_client/OAuthProvider/updated.html new file mode 100644 index 00000000..45bddff6 --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/usePkce.html b/doc/api/lemmy_api_client/OAuthProvider/usePkce.html new file mode 100644 index 00000000..0607406e --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/usePkce.html @@ -0,0 +1,111 @@ + + + + + + + + usePkce property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usePkce
+ +
+ +
+
+
+
+
+

usePkce property +

+ + +
+ + bool + usePkce +
final
+ +
+ + + +
+

Implementation

+
final bool usePkce;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/OAuthProvider/userinfoEndpoint.html b/doc/api/lemmy_api_client/OAuthProvider/userinfoEndpoint.html new file mode 100644 index 00000000..5bda076d --- /dev/null +++ b/doc/api/lemmy_api_client/OAuthProvider/userinfoEndpoint.html @@ -0,0 +1,111 @@ + + + + + + + + userinfoEndpoint property - OAuthProvider class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
userinfoEndpoint
+ +
+ +
+
+
+
+
+

userinfoEndpoint property +

+ + +
+ + String + userinfoEndpoint +
final
+ +
+ + + +
+

Implementation

+
final String userinfoEndpoint;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person-class-sidebar.html b/doc/api/lemmy_api_client/Person-class-sidebar.html new file mode 100644 index 00000000..0c22ed07 --- /dev/null +++ b/doc/api/lemmy_api_client/Person-class-sidebar.html @@ -0,0 +1,110 @@ +
    + +
  1. Constructors
  2. +
  3. Person
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + actorId +
  10. + +
  11. + avatar +
  12. + +
  13. + banExpires +
  14. + +
  15. + banned +
  16. + +
  17. + banner +
  18. + +
  19. + bio +
  20. + +
  21. + botAccount +
  22. + +
  23. + deleted +
  24. + +
  25. + displayName +
  26. + +
  27. + hashCode +
  28. + +
  29. + id +
  30. + +
  31. + instanceId +
  32. + +
  33. + local +
  34. + +
  35. + matrixUserId +
  36. + +
  37. + name +
  38. + +
  39. + published +
  40. + +
  41. + runtimeType +
  42. + +
  43. + updated +
  44. + +
  45. Methods
  46. + +
  47. + noSuchMethod +
  48. + +
  49. + toJson +
  50. + +
  51. + toString +
  52. + +
  53. Operators
  54. + +
  55. + operator == +
  56. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Person-class.html b/doc/api/lemmy_api_client/Person-class.html new file mode 100644 index 00000000..702dbbd4 --- /dev/null +++ b/doc/api/lemmy_api_client/Person-class.html @@ -0,0 +1,432 @@ + + + + + + + + Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Person
+ +
+ +
+
+
+
+
+

Person class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Person({required int id, required String name, String? displayName, String? avatar, required bool banned, required DateTime published, DateTime? updated, required String actorId, String? bio, required bool local, String? banner, required bool deleted, String? matrixUserId, required bool botAccount, DateTime? banExpires, required int instanceId}) +
+
+ +
+
+ Person.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ actorId + String + + +
+
+ +
final
+ +
+ +
+ avatar + String? + + +
+
+ +
final
+ +
+ +
+ banExpires + DateTime? + + +
+
+ +
final
+ +
+ +
+ banned + bool + + +
+
+ +
final
+ +
+ + +
+ +
final
+ +
+ +
+ bio + String? + + +
+
+ +
final
+ +
+ +
+ botAccount + bool + + +
+
+ +
final
+ +
+ +
+ deleted + bool + + +
+
+ +
final
+ +
+ +
+ displayName + String? + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ instanceId + int + + +
+
+ +
final
+ +
+ +
+ local + bool + + +
+
+ +
final
+ +
+ +
+ matrixUserId + String? + + +
+
+ +
final
+ +
+ +
+ name + String + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/Person.fromJson.html b/doc/api/lemmy_api_client/Person/Person.fromJson.html new file mode 100644 index 00000000..b9c8c78e --- /dev/null +++ b/doc/api/lemmy_api_client/Person/Person.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Person.fromJson constructor - Person - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Person.fromJson
+ +
+ +
+
+
+
+
+

Person.fromJson constructor +

+ +
+ + Person.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Person.fromJson(Map<String, dynamic> json) => _$PersonFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/Person.html b/doc/api/lemmy_api_client/Person/Person.html new file mode 100644 index 00000000..f9292b1b --- /dev/null +++ b/doc/api/lemmy_api_client/Person/Person.html @@ -0,0 +1,140 @@ + + + + + + + + Person constructor - Person - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Person
+ +
+ +
+
+
+
+
+

Person constructor +

+ +
+ + Person({
  1. required int id,
  2. +
  3. required String name,
  4. +
  5. String? displayName,
  6. +
  7. String? avatar,
  8. +
  9. required bool banned,
  10. +
  11. required DateTime published,
  12. +
  13. DateTime? updated,
  14. +
  15. required String actorId,
  16. +
  17. String? bio,
  18. +
  19. required bool local,
  20. +
  21. String? banner,
  22. +
  23. required bool deleted,
  24. +
  25. String? matrixUserId,
  26. +
  27. required bool botAccount,
  28. +
  29. DateTime? banExpires,
  30. +
  31. required int instanceId,
  32. +
}) +
+ + + + +
+

Implementation

+
Person({
+  required this.id,
+  required this.name,
+  this.displayName,
+  this.avatar,
+  required this.banned,
+  required this.published,
+  this.updated,
+  required this.actorId,
+  this.bio,
+  required this.local,
+  this.banner,
+  required this.deleted,
+  this.matrixUserId,
+  required this.botAccount,
+  this.banExpires,
+  required this.instanceId,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/actorId.html b/doc/api/lemmy_api_client/Person/actorId.html new file mode 100644 index 00000000..7ba0dfb7 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/actorId.html @@ -0,0 +1,111 @@ + + + + + + + + actorId property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
actorId
+ +
+ +
+
+
+
+
+

actorId property +

+ + +
+ + String + actorId +
final
+ +
+ + + +
+

Implementation

+
final String actorId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/avatar.html b/doc/api/lemmy_api_client/Person/avatar.html new file mode 100644 index 00000000..d47cbcc6 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/avatar.html @@ -0,0 +1,111 @@ + + + + + + + + avatar property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
avatar
+ +
+ +
+
+
+
+
+

avatar property +

+ + +
+ + String? + avatar +
final
+ +
+ + + +
+

Implementation

+
final String? avatar;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/banExpires.html b/doc/api/lemmy_api_client/Person/banExpires.html new file mode 100644 index 00000000..2adeefc8 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/banExpires.html @@ -0,0 +1,111 @@ + + + + + + + + banExpires property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
banExpires
+ +
+ +
+
+
+
+
+

banExpires property +

+ + +
+ + DateTime? + banExpires +
final
+ +
+ + + +
+

Implementation

+
final DateTime? banExpires;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/banned.html b/doc/api/lemmy_api_client/Person/banned.html new file mode 100644 index 00000000..d3a9f917 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/banned.html @@ -0,0 +1,111 @@ + + + + + + + + banned property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
banned
+ +
+ +
+
+
+
+
+

banned property +

+ + +
+ + bool + banned +
final
+ +
+ + + +
+

Implementation

+
final bool banned;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/banner.html b/doc/api/lemmy_api_client/Person/banner.html new file mode 100644 index 00000000..05de08ca --- /dev/null +++ b/doc/api/lemmy_api_client/Person/banner.html @@ -0,0 +1,111 @@ + + + + + + + + banner property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
banner
+ +
+ +
+
+
+
+
+

banner property +

+ + +
+ + String? + banner +
final
+ +
+ + + +
+

Implementation

+
final String? banner;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/bio.html b/doc/api/lemmy_api_client/Person/bio.html new file mode 100644 index 00000000..d3aa0c2b --- /dev/null +++ b/doc/api/lemmy_api_client/Person/bio.html @@ -0,0 +1,111 @@ + + + + + + + + bio property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
bio
+ +
+ +
+
+
+
+
+

bio property +

+ + +
+ + String? + bio +
final
+ +
+ + + +
+

Implementation

+
final String? bio;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/botAccount.html b/doc/api/lemmy_api_client/Person/botAccount.html new file mode 100644 index 00000000..792a87f7 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/botAccount.html @@ -0,0 +1,111 @@ + + + + + + + + botAccount property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
botAccount
+ +
+ +
+
+
+
+
+

botAccount property +

+ + +
+ + bool + botAccount +
final
+ +
+ + + +
+

Implementation

+
final bool botAccount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/deleted.html b/doc/api/lemmy_api_client/Person/deleted.html new file mode 100644 index 00000000..04b75a99 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/deleted.html @@ -0,0 +1,111 @@ + + + + + + + + deleted property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
deleted
+ +
+ +
+
+
+
+
+

deleted property +

+ + +
+ + bool + deleted +
final
+ +
+ + + +
+

Implementation

+
final bool deleted;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/displayName.html b/doc/api/lemmy_api_client/Person/displayName.html new file mode 100644 index 00000000..5c3fe349 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/displayName.html @@ -0,0 +1,111 @@ + + + + + + + + displayName property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
displayName
+ +
+ +
+
+
+
+
+

displayName property +

+ + +
+ + String? + displayName +
final
+ +
+ + + +
+

Implementation

+
final String? displayName;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/id.html b/doc/api/lemmy_api_client/Person/id.html new file mode 100644 index 00000000..4d2c8ce7 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/instanceId.html b/doc/api/lemmy_api_client/Person/instanceId.html new file mode 100644 index 00000000..b39c83bb --- /dev/null +++ b/doc/api/lemmy_api_client/Person/instanceId.html @@ -0,0 +1,111 @@ + + + + + + + + instanceId property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
instanceId
+ +
+ +
+
+
+
+
+

instanceId property +

+ + +
+ + int + instanceId +
final
+ +
+ + + +
+

Implementation

+
final int instanceId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/local.html b/doc/api/lemmy_api_client/Person/local.html new file mode 100644 index 00000000..c0ff7b92 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/local.html @@ -0,0 +1,111 @@ + + + + + + + + local property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
local
+ +
+ +
+
+
+
+
+

local property +

+ + +
+ + bool + local +
final
+ +
+ + + +
+

Implementation

+
final bool local;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/matrixUserId.html b/doc/api/lemmy_api_client/Person/matrixUserId.html new file mode 100644 index 00000000..3431be1d --- /dev/null +++ b/doc/api/lemmy_api_client/Person/matrixUserId.html @@ -0,0 +1,111 @@ + + + + + + + + matrixUserId property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
matrixUserId
+ +
+ +
+
+
+
+
+

matrixUserId property +

+ + +
+ + String? + matrixUserId +
final
+ +
+ + + +
+

Implementation

+
final String? matrixUserId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/name.html b/doc/api/lemmy_api_client/Person/name.html new file mode 100644 index 00000000..d6973c63 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/name.html @@ -0,0 +1,111 @@ + + + + + + + + name property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
name
+ +
+ +
+
+
+
+
+

name property +

+ + +
+ + String + name +
final
+ +
+ + + +
+

Implementation

+
final String name;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/published.html b/doc/api/lemmy_api_client/Person/published.html new file mode 100644 index 00000000..b1a40a28 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/toJson.html b/doc/api/lemmy_api_client/Person/toJson.html new file mode 100644 index 00000000..0e684a9e --- /dev/null +++ b/doc/api/lemmy_api_client/Person/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PersonToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Person/updated.html b/doc/api/lemmy_api_client/Person/updated.html new file mode 100644 index 00000000..7f69c571 --- /dev/null +++ b/doc/api/lemmy_api_client/Person/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Person class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates-class-sidebar.html b/doc/api/lemmy_api_client/PersonAggregates-class-sidebar.html new file mode 100644 index 00000000..032c65ca --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates-class-sidebar.html @@ -0,0 +1,58 @@ +
    + +
  1. Constructors
  2. +
  3. PersonAggregates
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + commentCount +
  10. + +
  11. + hashCode +
  12. + +
  13. + personId +
  14. + +
  15. + postCount +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toJson +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
diff --git a/doc/api/lemmy_api_client/PersonAggregates-class.html b/doc/api/lemmy_api_client/PersonAggregates-class.html new file mode 100644 index 00000000..4bec1ccf --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates-class.html @@ -0,0 +1,276 @@ + + + + + + + + PersonAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PersonAggregates
+ +
+ +
+
+
+
+
+

PersonAggregates class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ PersonAggregates({required int personId, required int postCount, required int commentCount}) +
+
+ +
+
+ PersonAggregates.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ commentCount + int + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ personId + int + + +
+
+ +
final
+ +
+ +
+ postCount + int + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates/PersonAggregates.fromJson.html b/doc/api/lemmy_api_client/PersonAggregates/PersonAggregates.fromJson.html new file mode 100644 index 00000000..4827e1a7 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates/PersonAggregates.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + PersonAggregates.fromJson constructor - PersonAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PersonAggregates.fromJson
+ +
+ +
+
+
+
+
+

PersonAggregates.fromJson constructor +

+ +
+ + PersonAggregates.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory PersonAggregates.fromJson(Map<String, dynamic> json) => _$PersonAggregatesFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates/PersonAggregates.html b/doc/api/lemmy_api_client/PersonAggregates/PersonAggregates.html new file mode 100644 index 00000000..9fc50f25 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates/PersonAggregates.html @@ -0,0 +1,114 @@ + + + + + + + + PersonAggregates constructor - PersonAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PersonAggregates
+ +
+ +
+
+
+
+
+

PersonAggregates constructor +

+ +
+ + PersonAggregates({
  1. required int personId,
  2. +
  3. required int postCount,
  4. +
  5. required int commentCount,
  6. +
}) +
+ + + + +
+

Implementation

+
PersonAggregates({
+  required this.personId,
+  required this.postCount,
+  required this.commentCount,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates/commentCount.html b/doc/api/lemmy_api_client/PersonAggregates/commentCount.html new file mode 100644 index 00000000..40f271d4 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates/commentCount.html @@ -0,0 +1,111 @@ + + + + + + + + commentCount property - PersonAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
commentCount
+ +
+ +
+
+
+
+
+

commentCount property +

+ + +
+ + int + commentCount +
final
+ +
+ + + +
+

Implementation

+
final int commentCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates/personId.html b/doc/api/lemmy_api_client/PersonAggregates/personId.html new file mode 100644 index 00000000..8e17fedd --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates/personId.html @@ -0,0 +1,111 @@ + + + + + + + + personId property - PersonAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
personId
+ +
+ +
+
+
+
+
+

personId property +

+ + +
+ + int + personId +
final
+ +
+ + + +
+

Implementation

+
final int personId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates/postCount.html b/doc/api/lemmy_api_client/PersonAggregates/postCount.html new file mode 100644 index 00000000..d20f49e9 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates/postCount.html @@ -0,0 +1,111 @@ + + + + + + + + postCount property - PersonAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postCount
+ +
+ +
+
+
+
+
+

postCount property +

+ + +
+ + int + postCount +
final
+ +
+ + + +
+

Implementation

+
final int postCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonAggregates/toJson.html b/doc/api/lemmy_api_client/PersonAggregates/toJson.html new file mode 100644 index 00000000..2abbcd37 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonAggregates/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - PersonAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PersonAggregatesToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView-class-sidebar.html b/doc/api/lemmy_api_client/PersonView-class-sidebar.html new file mode 100644 index 00000000..1b1e81d7 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView-class-sidebar.html @@ -0,0 +1,58 @@ +
    + +
  1. Constructors
  2. +
  3. PersonView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + counts +
  10. + +
  11. + hashCode +
  12. + +
  13. + isAdmin +
  14. + +
  15. + person +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toJson +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
diff --git a/doc/api/lemmy_api_client/PersonView-class.html b/doc/api/lemmy_api_client/PersonView-class.html new file mode 100644 index 00000000..1dfea9a1 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView-class.html @@ -0,0 +1,276 @@ + + + + + + + + PersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PersonView
+ +
+ +
+
+
+
+
+

PersonView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ PersonView({required Person person, required PersonAggregates counts, required bool isAdmin}) +
+
+ +
+
+ PersonView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ counts + PersonAggregates + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ isAdmin + bool + + +
+
+ +
final
+ +
+ +
+ person + Person + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView/PersonView.fromJson.html b/doc/api/lemmy_api_client/PersonView/PersonView.fromJson.html new file mode 100644 index 00000000..a91d0533 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView/PersonView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + PersonView.fromJson constructor - PersonView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PersonView.fromJson
+ +
+ +
+
+
+
+
+

PersonView.fromJson constructor +

+ +
+ + PersonView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory PersonView.fromJson(Map<String, dynamic> json) => _$PersonViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView/PersonView.html b/doc/api/lemmy_api_client/PersonView/PersonView.html new file mode 100644 index 00000000..7db508c3 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView/PersonView.html @@ -0,0 +1,114 @@ + + + + + + + + PersonView constructor - PersonView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PersonView
+ +
+ +
+
+
+
+
+

PersonView constructor +

+ +
+ + PersonView({
  1. required Person person,
  2. +
  3. required PersonAggregates counts,
  4. +
  5. required bool isAdmin,
  6. +
}) +
+ + + + +
+

Implementation

+
PersonView({
+  required this.person,
+  required this.counts,
+  required this.isAdmin,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView/counts.html b/doc/api/lemmy_api_client/PersonView/counts.html new file mode 100644 index 00000000..6504b6f6 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView/counts.html @@ -0,0 +1,111 @@ + + + + + + + + counts property - PersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
counts
+ +
+ +
+
+
+
+
+

counts property +

+ + +
+ + PersonAggregates + counts +
final
+ +
+ + + +
+

Implementation

+
final PersonAggregates counts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView/isAdmin.html b/doc/api/lemmy_api_client/PersonView/isAdmin.html new file mode 100644 index 00000000..c8deb6cf --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView/isAdmin.html @@ -0,0 +1,111 @@ + + + + + + + + isAdmin property - PersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
isAdmin
+ +
+ +
+
+
+
+
+

isAdmin property +

+ + +
+ + bool + isAdmin +
final
+ +
+ + + +
+

Implementation

+
final bool isAdmin;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView/person.html b/doc/api/lemmy_api_client/PersonView/person.html new file mode 100644 index 00000000..78c4f002 --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView/person.html @@ -0,0 +1,111 @@ + + + + + + + + person property - PersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
person
+ +
+ +
+
+
+
+
+

person property +

+ + +
+ + Person + person +
final
+ +
+ + + +
+

Implementation

+
final Person person;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PersonView/toJson.html b/doc/api/lemmy_api_client/PersonView/toJson.html new file mode 100644 index 00000000..3cb9a68e --- /dev/null +++ b/doc/api/lemmy_api_client/PersonView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - PersonView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PersonViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post-class-sidebar.html b/doc/api/lemmy_api_client/Post-class-sidebar.html new file mode 100644 index 00000000..c2caa7b5 --- /dev/null +++ b/doc/api/lemmy_api_client/Post-class-sidebar.html @@ -0,0 +1,142 @@ +
    + +
  1. Constructors
  2. +
  3. Post
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + altText +
  10. + +
  11. + apId +
  12. + +
  13. + body +
  14. + +
  15. + communityId +
  16. + +
  17. + creatorId +
  18. + +
  19. + deleted +
  20. + +
  21. + embedDescription +
  22. + +
  23. + embedTitle +
  24. + +
  25. + embedVideoUrl +
  26. + +
  27. + featuredCommunity +
  28. + +
  29. + featuredLocal +
  30. + +
  31. + hashCode +
  32. + +
  33. + id +
  34. + +
  35. + languageId +
  36. + +
  37. + local +
  38. + +
  39. + locked +
  40. + +
  41. + name +
  42. + +
  43. + nsfw +
  44. + +
  45. + published +
  46. + +
  47. + removed +
  48. + +
  49. + runtimeType +
  50. + +
  51. + scheduledPublishTime +
  52. + +
  53. + thumbnailUrl +
  54. + +
  55. + updated +
  56. + +
  57. + url +
  58. + +
  59. + urlContentType +
  60. + +
  61. Methods
  62. + +
  63. + noSuchMethod +
  64. + +
  65. + toJson +
  66. + +
  67. + toString +
  68. + +
  69. Operators
  70. + +
  71. + operator == +
  72. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Post-class.html b/doc/api/lemmy_api_client/Post-class.html new file mode 100644 index 00000000..4e7b432a --- /dev/null +++ b/doc/api/lemmy_api_client/Post-class.html @@ -0,0 +1,528 @@ + + + + + + + + Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Post
+ +
+ +
+
+
+
+
+

Post class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Post({required int id, required String name, String? url, String? body, required int creatorId, required int communityId, required bool removed, required bool locked, required DateTime published, DateTime? updated, required bool deleted, required bool nsfw, String? embedTitle, String? embedDescription, String? thumbnailUrl, required String apId, required bool local, String? embedVideoUrl, required int languageId, required bool featuredCommunity, required bool featuredLocal, String? urlContentType, String? altText, String? scheduledPublishTime}) +
+
+ +
+
+ Post.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ altText + String? + + +
+
+ +
final
+ +
+ +
+ apId + String + + +
+
+ +
final
+ +
+ +
+ body + String? + + +
+
+ +
final
+ +
+ +
+ communityId + int + + +
+
+ +
final
+ +
+ +
+ creatorId + int + + +
+
+ +
final
+ +
+ +
+ deleted + bool + + +
+
+ +
final
+ +
+ +
+ embedDescription + String? + + +
+
+ +
final
+ +
+ +
+ embedTitle + String? + + +
+
+ +
final
+ +
+ +
+ embedVideoUrl + String? + + +
+
+ +
final
+ +
+ +
+ featuredCommunity + bool + + +
+
+ +
final
+ +
+ +
+ featuredLocal + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ languageId + int + + +
+
+ +
final
+ +
+ +
+ local + bool + + +
+
+ +
final
+ +
+ +
+ locked + bool + + +
+
+ +
final
+ +
+ +
+ name + String + + +
+
+ +
final
+ +
+ +
+ nsfw + bool + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ removed + bool + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ scheduledPublishTime + String? + + +
+
+ +
final
+ +
+ +
+ thumbnailUrl + String? + + +
+
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+ url + String? + + +
+
+ +
final
+ +
+ +
+ urlContentType + String? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/Post.fromJson.html b/doc/api/lemmy_api_client/Post/Post.fromJson.html new file mode 100644 index 00000000..fddf0d0a --- /dev/null +++ b/doc/api/lemmy_api_client/Post/Post.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Post.fromJson constructor - Post - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Post.fromJson
+ +
+ +
+
+
+
+
+

Post.fromJson constructor +

+ +
+ + Post.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Post.fromJson(Map<String, dynamic> json) => _$PostFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/Post.html b/doc/api/lemmy_api_client/Post/Post.html new file mode 100644 index 00000000..731ae2a7 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/Post.html @@ -0,0 +1,156 @@ + + + + + + + + Post constructor - Post - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Post
+ +
+ +
+
+
+
+
+

Post constructor +

+ +
+ + Post({
  1. required int id,
  2. +
  3. required String name,
  4. +
  5. String? url,
  6. +
  7. String? body,
  8. +
  9. required int creatorId,
  10. +
  11. required int communityId,
  12. +
  13. required bool removed,
  14. +
  15. required bool locked,
  16. +
  17. required DateTime published,
  18. +
  19. DateTime? updated,
  20. +
  21. required bool deleted,
  22. +
  23. required bool nsfw,
  24. +
  25. String? embedTitle,
  26. +
  27. String? embedDescription,
  28. +
  29. String? thumbnailUrl,
  30. +
  31. required String apId,
  32. +
  33. required bool local,
  34. +
  35. String? embedVideoUrl,
  36. +
  37. required int languageId,
  38. +
  39. required bool featuredCommunity,
  40. +
  41. required bool featuredLocal,
  42. +
  43. String? urlContentType,
  44. +
  45. String? altText,
  46. +
  47. String? scheduledPublishTime,
  48. +
}) +
+ + + + +
+

Implementation

+
Post({
+  required this.id,
+  required this.name,
+  this.url,
+  this.body,
+  required this.creatorId,
+  required this.communityId,
+  required this.removed,
+  required this.locked,
+  required this.published,
+  this.updated,
+  required this.deleted,
+  required this.nsfw,
+  this.embedTitle,
+  this.embedDescription,
+  this.thumbnailUrl,
+  required this.apId,
+  required this.local,
+  this.embedVideoUrl,
+  required this.languageId,
+  required this.featuredCommunity,
+  required this.featuredLocal,
+  this.urlContentType,
+  this.altText,
+  this.scheduledPublishTime,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/altText.html b/doc/api/lemmy_api_client/Post/altText.html new file mode 100644 index 00000000..66353814 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/altText.html @@ -0,0 +1,111 @@ + + + + + + + + altText property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
altText
+ +
+ +
+
+
+
+
+

altText property +

+ + +
+ + String? + altText +
final
+ +
+ + + +
+

Implementation

+
final String? altText;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/apId.html b/doc/api/lemmy_api_client/Post/apId.html new file mode 100644 index 00000000..fdad2d97 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/apId.html @@ -0,0 +1,111 @@ + + + + + + + + apId property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
apId
+ +
+ +
+
+
+
+
+

apId property +

+ + +
+ + String + apId +
final
+ +
+ + + +
+

Implementation

+
final String apId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/body.html b/doc/api/lemmy_api_client/Post/body.html new file mode 100644 index 00000000..14495064 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/body.html @@ -0,0 +1,111 @@ + + + + + + + + body property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
body
+ +
+ +
+
+
+
+
+

body property +

+ + +
+ + String? + body +
final
+ +
+ + + +
+

Implementation

+
final String? body;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/communityId.html b/doc/api/lemmy_api_client/Post/communityId.html new file mode 100644 index 00000000..2dfa0457 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/communityId.html @@ -0,0 +1,111 @@ + + + + + + + + communityId property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communityId
+ +
+ +
+
+
+
+
+

communityId property +

+ + +
+ + int + communityId +
final
+ +
+ + + +
+

Implementation

+
final int communityId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/creatorId.html b/doc/api/lemmy_api_client/Post/creatorId.html new file mode 100644 index 00000000..01f0ae9d --- /dev/null +++ b/doc/api/lemmy_api_client/Post/creatorId.html @@ -0,0 +1,111 @@ + + + + + + + + creatorId property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorId
+ +
+ +
+
+
+
+
+

creatorId property +

+ + +
+ + int + creatorId +
final
+ +
+ + + +
+

Implementation

+
final int creatorId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/deleted.html b/doc/api/lemmy_api_client/Post/deleted.html new file mode 100644 index 00000000..ea492860 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/deleted.html @@ -0,0 +1,111 @@ + + + + + + + + deleted property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
deleted
+ +
+ +
+
+
+
+
+

deleted property +

+ + +
+ + bool + deleted +
final
+ +
+ + + +
+

Implementation

+
final bool deleted;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/embedDescription.html b/doc/api/lemmy_api_client/Post/embedDescription.html new file mode 100644 index 00000000..61cd82ab --- /dev/null +++ b/doc/api/lemmy_api_client/Post/embedDescription.html @@ -0,0 +1,111 @@ + + + + + + + + embedDescription property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
embedDescription
+ +
+ +
+
+
+
+
+

embedDescription property +

+ + +
+ + String? + embedDescription +
final
+ +
+ + + +
+

Implementation

+
final String? embedDescription;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/embedTitle.html b/doc/api/lemmy_api_client/Post/embedTitle.html new file mode 100644 index 00000000..77bbf4a4 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/embedTitle.html @@ -0,0 +1,111 @@ + + + + + + + + embedTitle property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
embedTitle
+ +
+ +
+
+
+
+
+

embedTitle property +

+ + +
+ + String? + embedTitle +
final
+ +
+ + + +
+

Implementation

+
final String? embedTitle;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/embedVideoUrl.html b/doc/api/lemmy_api_client/Post/embedVideoUrl.html new file mode 100644 index 00000000..a9e308f5 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/embedVideoUrl.html @@ -0,0 +1,111 @@ + + + + + + + + embedVideoUrl property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
embedVideoUrl
+ +
+ +
+
+
+
+
+

embedVideoUrl property +

+ + +
+ + String? + embedVideoUrl +
final
+ +
+ + + +
+

Implementation

+
final String? embedVideoUrl;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/featuredCommunity.html b/doc/api/lemmy_api_client/Post/featuredCommunity.html new file mode 100644 index 00000000..a0bf905b --- /dev/null +++ b/doc/api/lemmy_api_client/Post/featuredCommunity.html @@ -0,0 +1,111 @@ + + + + + + + + featuredCommunity property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
featuredCommunity
+ +
+ +
+
+
+
+
+

featuredCommunity property +

+ + +
+ + bool + featuredCommunity +
final
+ +
+ + + +
+

Implementation

+
final bool featuredCommunity;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/featuredLocal.html b/doc/api/lemmy_api_client/Post/featuredLocal.html new file mode 100644 index 00000000..00351cd4 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/featuredLocal.html @@ -0,0 +1,111 @@ + + + + + + + + featuredLocal property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
featuredLocal
+ +
+ +
+
+
+
+
+

featuredLocal property +

+ + +
+ + bool + featuredLocal +
final
+ +
+ + + +
+

Implementation

+
final bool featuredLocal;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/id.html b/doc/api/lemmy_api_client/Post/id.html new file mode 100644 index 00000000..1be91426 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/languageId.html b/doc/api/lemmy_api_client/Post/languageId.html new file mode 100644 index 00000000..6d1080f5 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/languageId.html @@ -0,0 +1,111 @@ + + + + + + + + languageId property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
languageId
+ +
+ +
+
+
+
+
+

languageId property +

+ + +
+ + int + languageId +
final
+ +
+ + + +
+

Implementation

+
final int languageId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/local.html b/doc/api/lemmy_api_client/Post/local.html new file mode 100644 index 00000000..f57ef16d --- /dev/null +++ b/doc/api/lemmy_api_client/Post/local.html @@ -0,0 +1,111 @@ + + + + + + + + local property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
local
+ +
+ +
+
+
+
+
+

local property +

+ + +
+ + bool + local +
final
+ +
+ + + +
+

Implementation

+
final bool local;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/locked.html b/doc/api/lemmy_api_client/Post/locked.html new file mode 100644 index 00000000..d36720ad --- /dev/null +++ b/doc/api/lemmy_api_client/Post/locked.html @@ -0,0 +1,111 @@ + + + + + + + + locked property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
locked
+ +
+ +
+
+
+
+
+

locked property +

+ + +
+ + bool + locked +
final
+ +
+ + + +
+

Implementation

+
final bool locked;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/name.html b/doc/api/lemmy_api_client/Post/name.html new file mode 100644 index 00000000..45337846 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/name.html @@ -0,0 +1,111 @@ + + + + + + + + name property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
name
+ +
+ +
+
+
+
+
+

name property +

+ + +
+ + String + name +
final
+ +
+ + + +
+

Implementation

+
final String name;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/nsfw.html b/doc/api/lemmy_api_client/Post/nsfw.html new file mode 100644 index 00000000..c6c6d5ee --- /dev/null +++ b/doc/api/lemmy_api_client/Post/nsfw.html @@ -0,0 +1,111 @@ + + + + + + + + nsfw property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
nsfw
+ +
+ +
+
+
+
+
+

nsfw property +

+ + +
+ + bool + nsfw +
final
+ +
+ + + +
+

Implementation

+
final bool nsfw;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/published.html b/doc/api/lemmy_api_client/Post/published.html new file mode 100644 index 00000000..275e0f41 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/removed.html b/doc/api/lemmy_api_client/Post/removed.html new file mode 100644 index 00000000..917e34e3 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/removed.html @@ -0,0 +1,111 @@ + + + + + + + + removed property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
removed
+ +
+ +
+
+
+
+
+

removed property +

+ + +
+ + bool + removed +
final
+ +
+ + + +
+

Implementation

+
final bool removed;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/scheduledPublishTime.html b/doc/api/lemmy_api_client/Post/scheduledPublishTime.html new file mode 100644 index 00000000..affbdabe --- /dev/null +++ b/doc/api/lemmy_api_client/Post/scheduledPublishTime.html @@ -0,0 +1,111 @@ + + + + + + + + scheduledPublishTime property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
scheduledPublishTime
+ +
+ +
+
+
+
+
+

scheduledPublishTime property +

+ + +
+ + String? + scheduledPublishTime +
final
+ +
+ + + +
+

Implementation

+
final String? scheduledPublishTime;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/thumbnailUrl.html b/doc/api/lemmy_api_client/Post/thumbnailUrl.html new file mode 100644 index 00000000..8e1121e3 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/thumbnailUrl.html @@ -0,0 +1,111 @@ + + + + + + + + thumbnailUrl property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
thumbnailUrl
+ +
+ +
+
+
+
+
+

thumbnailUrl property +

+ + +
+ + String? + thumbnailUrl +
final
+ +
+ + + +
+

Implementation

+
final String? thumbnailUrl;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/toJson.html b/doc/api/lemmy_api_client/Post/toJson.html new file mode 100644 index 00000000..798dfd90 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PostToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/updated.html b/doc/api/lemmy_api_client/Post/updated.html new file mode 100644 index 00000000..37512dc8 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/url.html b/doc/api/lemmy_api_client/Post/url.html new file mode 100644 index 00000000..33ce43f9 --- /dev/null +++ b/doc/api/lemmy_api_client/Post/url.html @@ -0,0 +1,111 @@ + + + + + + + + url property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
url
+ +
+ +
+
+
+
+
+

url property +

+ + +
+ + String? + url +
final
+ +
+ + + +
+

Implementation

+
final String? url;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Post/urlContentType.html b/doc/api/lemmy_api_client/Post/urlContentType.html new file mode 100644 index 00000000..7314930d --- /dev/null +++ b/doc/api/lemmy_api_client/Post/urlContentType.html @@ -0,0 +1,111 @@ + + + + + + + + urlContentType property - Post class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
urlContentType
+ +
+ +
+
+
+
+
+

urlContentType property +

+ + +
+ + String? + urlContentType +
final
+ +
+ + + +
+

Implementation

+
final String? urlContentType;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates-class-sidebar.html b/doc/api/lemmy_api_client/PostAggregates-class-sidebar.html new file mode 100644 index 00000000..97d1aefe --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates-class-sidebar.html @@ -0,0 +1,82 @@ +
    + +
  1. Constructors
  2. +
  3. PostAggregates
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + comments +
  10. + +
  11. + downvotes +
  12. + +
  13. + hashCode +
  14. + +
  15. + newestCommentTime +
  16. + +
  17. + postId +
  18. + +
  19. + published +
  20. + +
  21. + reportCount +
  22. + +
  23. + runtimeType +
  24. + +
  25. + score +
  26. + +
  27. + unresolvedReportCount +
  28. + +
  29. + upvotes +
  30. + +
  31. Methods
  32. + +
  33. + noSuchMethod +
  34. + +
  35. + toJson +
  36. + +
  37. + toString +
  38. + +
  39. Operators
  40. + +
  41. + operator == +
  42. + + + + + + +
diff --git a/doc/api/lemmy_api_client/PostAggregates-class.html b/doc/api/lemmy_api_client/PostAggregates-class.html new file mode 100644 index 00000000..01d37888 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates-class.html @@ -0,0 +1,348 @@ + + + + + + + + PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostAggregates
+ +
+ +
+
+
+
+
+

PostAggregates class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ PostAggregates({required int postId, required int comments, required int score, required int upvotes, required int downvotes, required DateTime published, required DateTime newestCommentTime, int? reportCount, int? unresolvedReportCount}) +
+
+ +
+
+ PostAggregates.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ comments + int + + +
+
+ +
final
+ +
+ +
+ downvotes + int + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ newestCommentTime + DateTime + + +
+
+ +
final
+ +
+ +
+ postId + int + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ reportCount + int? + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ score + int + + +
+
+ +
final
+ +
+ +
+ unresolvedReportCount + int? + + +
+
+ +
final
+ +
+ +
+ upvotes + int + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/PostAggregates.fromJson.html b/doc/api/lemmy_api_client/PostAggregates/PostAggregates.fromJson.html new file mode 100644 index 00000000..a8d1322b --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/PostAggregates.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + PostAggregates.fromJson constructor - PostAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostAggregates.fromJson
+ +
+ +
+
+
+
+
+

PostAggregates.fromJson constructor +

+ +
+ + PostAggregates.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory PostAggregates.fromJson(Map<String, dynamic> json) => _$PostAggregatesFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/PostAggregates.html b/doc/api/lemmy_api_client/PostAggregates/PostAggregates.html new file mode 100644 index 00000000..be767d9f --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/PostAggregates.html @@ -0,0 +1,126 @@ + + + + + + + + PostAggregates constructor - PostAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostAggregates
+ +
+ +
+
+
+
+
+

PostAggregates constructor +

+ +
+ + PostAggregates({
  1. required int postId,
  2. +
  3. required int comments,
  4. +
  5. required int score,
  6. +
  7. required int upvotes,
  8. +
  9. required int downvotes,
  10. +
  11. required DateTime published,
  12. +
  13. required DateTime newestCommentTime,
  14. +
  15. int? reportCount,
  16. +
  17. int? unresolvedReportCount,
  18. +
}) +
+ + + + +
+

Implementation

+
PostAggregates({
+  required this.postId,
+  required this.comments,
+  required this.score,
+  required this.upvotes,
+  required this.downvotes,
+  required this.published,
+  required this.newestCommentTime,
+  this.reportCount,
+  this.unresolvedReportCount,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/comments.html b/doc/api/lemmy_api_client/PostAggregates/comments.html new file mode 100644 index 00000000..7a5da525 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/comments.html @@ -0,0 +1,111 @@ + + + + + + + + comments property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
comments
+ +
+ +
+
+
+
+
+

comments property +

+ + +
+ + int + comments +
final
+ +
+ + + +
+

Implementation

+
final int comments;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/downvotes.html b/doc/api/lemmy_api_client/PostAggregates/downvotes.html new file mode 100644 index 00000000..675e24d1 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/downvotes.html @@ -0,0 +1,111 @@ + + + + + + + + downvotes property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
downvotes
+ +
+ +
+
+
+
+
+

downvotes property +

+ + +
+ + int + downvotes +
final
+ +
+ + + +
+

Implementation

+
final int downvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/newestCommentTime.html b/doc/api/lemmy_api_client/PostAggregates/newestCommentTime.html new file mode 100644 index 00000000..c35737f1 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/newestCommentTime.html @@ -0,0 +1,111 @@ + + + + + + + + newestCommentTime property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
newestCommentTime
+ +
+ +
+
+
+
+
+

newestCommentTime property +

+ + +
+ + DateTime + newestCommentTime +
final
+ +
+ + + +
+

Implementation

+
final DateTime newestCommentTime;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/postId.html b/doc/api/lemmy_api_client/PostAggregates/postId.html new file mode 100644 index 00000000..6e09e7d4 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/postId.html @@ -0,0 +1,111 @@ + + + + + + + + postId property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
postId
+ +
+ +
+
+
+
+
+

postId property +

+ + +
+ + int + postId +
final
+ +
+ + + +
+

Implementation

+
final int postId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/published.html b/doc/api/lemmy_api_client/PostAggregates/published.html new file mode 100644 index 00000000..96289eae --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/reportCount.html b/doc/api/lemmy_api_client/PostAggregates/reportCount.html new file mode 100644 index 00000000..7ecd9990 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/reportCount.html @@ -0,0 +1,111 @@ + + + + + + + + reportCount property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
reportCount
+ +
+ +
+
+
+
+
+

reportCount property +

+ + +
+ + int? + reportCount +
final
+ +
+ + + +
+

Implementation

+
final int? reportCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/score.html b/doc/api/lemmy_api_client/PostAggregates/score.html new file mode 100644 index 00000000..2a583dbb --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/score.html @@ -0,0 +1,111 @@ + + + + + + + + score property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
score
+ +
+ +
+
+
+
+
+

score property +

+ + +
+ + int + score +
final
+ +
+ + + +
+

Implementation

+
final int score;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/toJson.html b/doc/api/lemmy_api_client/PostAggregates/toJson.html new file mode 100644 index 00000000..5f08e91a --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PostAggregatesToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/unresolvedReportCount.html b/doc/api/lemmy_api_client/PostAggregates/unresolvedReportCount.html new file mode 100644 index 00000000..38a53bd3 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/unresolvedReportCount.html @@ -0,0 +1,111 @@ + + + + + + + + unresolvedReportCount property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
unresolvedReportCount
+ +
+ +
+
+
+
+
+

unresolvedReportCount property +

+ + +
+ + int? + unresolvedReportCount +
final
+ +
+ + + +
+

Implementation

+
final int? unresolvedReportCount;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostAggregates/upvotes.html b/doc/api/lemmy_api_client/PostAggregates/upvotes.html new file mode 100644 index 00000000..a19a9ae8 --- /dev/null +++ b/doc/api/lemmy_api_client/PostAggregates/upvotes.html @@ -0,0 +1,111 @@ + + + + + + + + upvotes property - PostAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
upvotes
+ +
+ +
+
+
+
+
+

upvotes property +

+ + +
+ + int + upvotes +
final
+ +
+ + + +
+

Implementation

+
final int upvotes;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostListingMode-enum-sidebar.html b/doc/api/lemmy_api_client/PostListingMode-enum-sidebar.html new file mode 100644 index 00000000..741c245e --- /dev/null +++ b/doc/api/lemmy_api_client/PostListingMode-enum-sidebar.html @@ -0,0 +1,56 @@ +
    + + +
  1. Values
  2. +
  3. list
  4. +
  5. card
  6. +
  7. smallCard
  8. + + +
  9. + Properties +
  10. + +
  11. + hashCode +
  12. + +
  13. + index +
  14. + +
  15. + name + (ext) +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
  29. Constants
  30. +
  31. values
  32. +
diff --git a/doc/api/lemmy_api_client/PostListingMode.html b/doc/api/lemmy_api_client/PostListingMode.html new file mode 100644 index 00000000..fdd093be --- /dev/null +++ b/doc/api/lemmy_api_client/PostListingMode.html @@ -0,0 +1,304 @@ + + + + + + + + PostListingMode enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostListingMode
+ +
+ +
+
+
+
+
+ +

+ PostListingMode + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ list + → const PostListingMode + + +
+
+ + + +
+ +
+ card + → const PostListingMode + + +
+
+ + + +
+ +
+ smallCard + → const PostListingMode + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<PostListingMode> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostListingMode/values-constant.html b/doc/api/lemmy_api_client/PostListingMode/values-constant.html new file mode 100644 index 00000000..72b48916 --- /dev/null +++ b/doc/api/lemmy_api_client/PostListingMode/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - PostListingMode enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<PostListingMode> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostSortType-enum-sidebar.html b/doc/api/lemmy_api_client/PostSortType-enum-sidebar.html new file mode 100644 index 00000000..fdc5e66d --- /dev/null +++ b/doc/api/lemmy_api_client/PostSortType-enum-sidebar.html @@ -0,0 +1,72 @@ +
    + + +
  1. Values
  2. +
  3. active
  4. +
  5. hot
  6. +
  7. newPost
  8. +
  9. old
  10. +
  11. topDay
  12. +
  13. topWeek
  14. +
  15. topMonth
  16. +
  17. topYear
  18. +
  19. topAll
  20. +
  21. mostComments
  22. +
  23. newComments
  24. +
  25. topHour
  26. +
  27. topSixHour
  28. +
  29. topTwelveHour
  30. +
  31. topThreeMonths
  32. +
  33. topSixMonths
  34. +
  35. topNineMonths
  36. +
  37. controversial
  38. +
  39. scaled
  40. + + +
  41. + Properties +
  42. + +
  43. + hashCode +
  44. + +
  45. + index +
  46. + +
  47. + name + (ext) +
  48. + +
  49. + runtimeType +
  50. + +
  51. Methods
  52. + +
  53. + noSuchMethod +
  54. + +
  55. + toString +
  56. + +
  57. Operators
  58. + +
  59. + operator == +
  60. + + + + + + +
  61. Constants
  62. +
  63. values
  64. +
diff --git a/doc/api/lemmy_api_client/PostSortType.html b/doc/api/lemmy_api_client/PostSortType.html new file mode 100644 index 00000000..eb69fe2c --- /dev/null +++ b/doc/api/lemmy_api_client/PostSortType.html @@ -0,0 +1,496 @@ + + + + + + + + PostSortType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostSortType
+ +
+ +
+
+
+
+
+ +

+ PostSortType + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ active + → const PostSortType + + +
+
+ + + +
+ +
+ hot + → const PostSortType + + +
+
+ + + +
+ +
+ newPost + → const PostSortType + + +
+
+ + + +
+ +
+ old + → const PostSortType + + +
+
+ + + +
+ +
+ topDay + → const PostSortType + + +
+
+ + + +
+ +
+ topWeek + → const PostSortType + + +
+
+ + + +
+ +
+ topMonth + → const PostSortType + + +
+
+ + + +
+ +
+ topYear + → const PostSortType + + +
+
+ + + +
+ +
+ topAll + → const PostSortType + + +
+
+ + + +
+ +
+ mostComments + → const PostSortType + + +
+
+ + + +
+ +
+ newComments + → const PostSortType + + +
+
+ + + +
+ +
+ topHour + → const PostSortType + + +
+
+ + + +
+ +
+ topSixHour + → const PostSortType + + +
+
+ + + +
+ +
+ topTwelveHour + → const PostSortType + + +
+
+ + + +
+ +
+ topThreeMonths + → const PostSortType + + +
+
+ + + +
+ +
+ topSixMonths + → const PostSortType + + +
+
+ + + +
+ +
+ topNineMonths + → const PostSortType + + +
+
+ + + +
+ +
+ controversial + → const PostSortType + + +
+
+ + + +
+ +
+ scaled + → const PostSortType + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<PostSortType> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostSortType/values-constant.html b/doc/api/lemmy_api_client/PostSortType/values-constant.html new file mode 100644 index 00000000..0039bffd --- /dev/null +++ b/doc/api/lemmy_api_client/PostSortType/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - PostSortType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<PostSortType> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView-class-sidebar.html b/doc/api/lemmy_api_client/PostView-class-sidebar.html new file mode 100644 index 00000000..6374545c --- /dev/null +++ b/doc/api/lemmy_api_client/PostView-class-sidebar.html @@ -0,0 +1,110 @@ +
    + +
  1. Constructors
  2. +
  3. PostView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + bannedFromCommunity +
  10. + +
  11. + community +
  12. + +
  13. + counts +
  14. + +
  15. + creator +
  16. + +
  17. + creatorBannedFromCommunity +
  18. + +
  19. + creatorBlocked +
  20. + +
  21. + creatorIsAdmin +
  22. + +
  23. + creatorIsModerator +
  24. + +
  25. + hashCode +
  26. + +
  27. + hidden +
  28. + +
  29. + imageDetails +
  30. + +
  31. + myVote +
  32. + +
  33. + post +
  34. + +
  35. + read +
  36. + +
  37. + runtimeType +
  38. + +
  39. + saved +
  40. + +
  41. + subscribed +
  42. + +
  43. + unreadComments +
  44. + +
  45. Methods
  46. + +
  47. + noSuchMethod +
  48. + +
  49. + toJson +
  50. + +
  51. + toString +
  52. + +
  53. Operators
  54. + +
  55. + operator == +
  56. + + + + + + +
diff --git a/doc/api/lemmy_api_client/PostView-class.html b/doc/api/lemmy_api_client/PostView-class.html new file mode 100644 index 00000000..7aeac0c3 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView-class.html @@ -0,0 +1,432 @@ + + + + + + + + PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostView
+ +
+ +
+
+
+
+
+

PostView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ PostView({required Post post, required Person creator, required Community community, ImageDetails? imageDetails, required bool creatorBannedFromCommunity, required bool bannedFromCommunity, required bool creatorIsModerator, required bool creatorIsAdmin, required PostAggregates counts, required SubscribedType subscribed, required bool saved, required bool read, required bool hidden, required bool creatorBlocked, int? myVote, required int unreadComments}) +
+
+ +
+
+ PostView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ bannedFromCommunity + bool + + +
+
+ +
final
+ +
+ +
+ community + Community + + +
+
+ +
final
+ +
+ +
+ counts + PostAggregates + + +
+
+ +
final
+ +
+ +
+ creator + Person + + +
+
+ +
final
+ +
+ +
+ creatorBannedFromCommunity + bool + + +
+
+ +
final
+ +
+ +
+ creatorBlocked + bool + + +
+
+ +
final
+ +
+ +
+ creatorIsAdmin + bool + + +
+
+ +
final
+ +
+ +
+ creatorIsModerator + bool + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ hidden + bool + + +
+
+ +
final
+ +
+ +
+ imageDetails + ImageDetails? + + +
+
+ +
final
+ +
+ +
+ myVote + int? + + +
+
+ +
final
+ +
+ +
+ post + Post + + +
+
+ +
final
+ +
+ +
+ read + bool + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ saved + bool + + +
+
+ +
final
+ +
+ +
+ subscribed + SubscribedType + + +
+
+ +
final
+ +
+ +
+ unreadComments + int + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/PostView.fromJson.html b/doc/api/lemmy_api_client/PostView/PostView.fromJson.html new file mode 100644 index 00000000..cd122c9f --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/PostView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + PostView.fromJson constructor - PostView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostView.fromJson
+ +
+ +
+
+
+
+
+

PostView.fromJson constructor +

+ +
+ + PostView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory PostView.fromJson(Map<String, dynamic> json) => _$PostViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/PostView.html b/doc/api/lemmy_api_client/PostView/PostView.html new file mode 100644 index 00000000..ee83a400 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/PostView.html @@ -0,0 +1,140 @@ + + + + + + + + PostView constructor - PostView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostView
+ +
+ +
+
+
+
+
+

PostView constructor +

+ +
+ + PostView({
  1. required Post post,
  2. +
  3. required Person creator,
  4. +
  5. required Community community,
  6. +
  7. ImageDetails? imageDetails,
  8. +
  9. required bool creatorBannedFromCommunity,
  10. +
  11. required bool bannedFromCommunity,
  12. +
  13. required bool creatorIsModerator,
  14. +
  15. required bool creatorIsAdmin,
  16. +
  17. required PostAggregates counts,
  18. +
  19. required SubscribedType subscribed,
  20. +
  21. required bool saved,
  22. +
  23. required bool read,
  24. +
  25. required bool hidden,
  26. +
  27. required bool creatorBlocked,
  28. +
  29. int? myVote,
  30. +
  31. required int unreadComments,
  32. +
}) +
+ + + + +
+

Implementation

+
PostView({
+  required this.post,
+  required this.creator,
+  required this.community,
+  this.imageDetails,
+  required this.creatorBannedFromCommunity,
+  required this.bannedFromCommunity,
+  required this.creatorIsModerator,
+  required this.creatorIsAdmin,
+  required this.counts,
+  required this.subscribed,
+  required this.saved,
+  required this.read,
+  required this.hidden,
+  required this.creatorBlocked,
+  this.myVote,
+  required this.unreadComments,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/bannedFromCommunity.html b/doc/api/lemmy_api_client/PostView/bannedFromCommunity.html new file mode 100644 index 00000000..fe33f046 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/bannedFromCommunity.html @@ -0,0 +1,111 @@ + + + + + + + + bannedFromCommunity property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
bannedFromCommunity
+ +
+ +
+
+
+
+
+

bannedFromCommunity property +

+ + +
+ + bool + bannedFromCommunity +
final
+ +
+ + + +
+

Implementation

+
final bool bannedFromCommunity;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/community.html b/doc/api/lemmy_api_client/PostView/community.html new file mode 100644 index 00000000..b72cf9a7 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/community.html @@ -0,0 +1,111 @@ + + + + + + + + community property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
community
+ +
+ +
+
+
+
+
+

community property +

+ + +
+ + Community + community +
final
+ +
+ + + +
+

Implementation

+
final Community community;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/counts.html b/doc/api/lemmy_api_client/PostView/counts.html new file mode 100644 index 00000000..d9ef6f1d --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/counts.html @@ -0,0 +1,111 @@ + + + + + + + + counts property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
counts
+ +
+ +
+
+
+
+
+

counts property +

+ + +
+ + PostAggregates + counts +
final
+ +
+ + + +
+

Implementation

+
final PostAggregates counts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/creator.html b/doc/api/lemmy_api_client/PostView/creator.html new file mode 100644 index 00000000..7daea650 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/creator.html @@ -0,0 +1,111 @@ + + + + + + + + creator property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creator
+ +
+ +
+
+
+
+
+

creator property +

+ + +
+ + Person + creator +
final
+ +
+ + + +
+

Implementation

+
final Person creator;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/creatorBannedFromCommunity.html b/doc/api/lemmy_api_client/PostView/creatorBannedFromCommunity.html new file mode 100644 index 00000000..a41ee9c6 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/creatorBannedFromCommunity.html @@ -0,0 +1,111 @@ + + + + + + + + creatorBannedFromCommunity property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorBannedFromCommunity
+ +
+ +
+
+
+
+
+

creatorBannedFromCommunity property +

+ + +
+ + bool + creatorBannedFromCommunity +
final
+ +
+ + + +
+

Implementation

+
final bool creatorBannedFromCommunity;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/creatorBlocked.html b/doc/api/lemmy_api_client/PostView/creatorBlocked.html new file mode 100644 index 00000000..0290b813 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/creatorBlocked.html @@ -0,0 +1,111 @@ + + + + + + + + creatorBlocked property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorBlocked
+ +
+ +
+
+
+
+
+

creatorBlocked property +

+ + +
+ + bool + creatorBlocked +
final
+ +
+ + + +
+

Implementation

+
final bool creatorBlocked;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/creatorIsAdmin.html b/doc/api/lemmy_api_client/PostView/creatorIsAdmin.html new file mode 100644 index 00000000..6d2b4a2f --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/creatorIsAdmin.html @@ -0,0 +1,111 @@ + + + + + + + + creatorIsAdmin property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorIsAdmin
+ +
+ +
+
+
+
+
+

creatorIsAdmin property +

+ + +
+ + bool + creatorIsAdmin +
final
+ +
+ + + +
+

Implementation

+
final bool creatorIsAdmin;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/creatorIsModerator.html b/doc/api/lemmy_api_client/PostView/creatorIsModerator.html new file mode 100644 index 00000000..383640d0 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/creatorIsModerator.html @@ -0,0 +1,111 @@ + + + + + + + + creatorIsModerator property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
creatorIsModerator
+ +
+ +
+
+
+
+
+

creatorIsModerator property +

+ + +
+ + bool + creatorIsModerator +
final
+ +
+ + + +
+

Implementation

+
final bool creatorIsModerator;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/hidden.html b/doc/api/lemmy_api_client/PostView/hidden.html new file mode 100644 index 00000000..e4f74c3a --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/hidden.html @@ -0,0 +1,111 @@ + + + + + + + + hidden property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
hidden
+ +
+ +
+
+
+
+
+

hidden property +

+ + +
+ + bool + hidden +
final
+ +
+ + + +
+

Implementation

+
final bool hidden;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/imageDetails.html b/doc/api/lemmy_api_client/PostView/imageDetails.html new file mode 100644 index 00000000..0cbeabe3 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/imageDetails.html @@ -0,0 +1,111 @@ + + + + + + + + imageDetails property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
imageDetails
+ +
+ +
+
+
+
+
+

imageDetails property +

+ + +
+ + ImageDetails? + imageDetails +
final
+ +
+ + + +
+

Implementation

+
final ImageDetails? imageDetails;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/myVote.html b/doc/api/lemmy_api_client/PostView/myVote.html new file mode 100644 index 00000000..8f351a31 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/myVote.html @@ -0,0 +1,111 @@ + + + + + + + + myVote property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
myVote
+ +
+ +
+
+
+
+
+

myVote property +

+ + +
+ + int? + myVote +
final
+ +
+ + + +
+

Implementation

+
final int? myVote;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/post.html b/doc/api/lemmy_api_client/PostView/post.html new file mode 100644 index 00000000..6ffdcc1d --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/post.html @@ -0,0 +1,111 @@ + + + + + + + + post property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
post
+ +
+ +
+
+
+
+
+

post property +

+ + +
+ + Post + post +
final
+ +
+ + + +
+

Implementation

+
final Post post;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/read.html b/doc/api/lemmy_api_client/PostView/read.html new file mode 100644 index 00000000..bc64f384 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/read.html @@ -0,0 +1,111 @@ + + + + + + + + read property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
read
+ +
+ +
+
+
+
+
+

read property +

+ + +
+ + bool + read +
final
+ +
+ + + +
+

Implementation

+
final bool read;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/saved.html b/doc/api/lemmy_api_client/PostView/saved.html new file mode 100644 index 00000000..06cf02c3 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/saved.html @@ -0,0 +1,111 @@ + + + + + + + + saved property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
saved
+ +
+ +
+
+
+
+
+

saved property +

+ + +
+ + bool + saved +
final
+ +
+ + + +
+

Implementation

+
final bool saved;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/subscribed.html b/doc/api/lemmy_api_client/PostView/subscribed.html new file mode 100644 index 00000000..b1cc5a41 --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/subscribed.html @@ -0,0 +1,117 @@ + + + + + + + + subscribed property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
subscribed
+ +
+ +
+
+
+
+
+

subscribed property +

+ + +
+ +
+
    +
  1. @JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson)
  2. +
+
+ SubscribedType + subscribed +
final
+ +
+ + + +
+

Implementation

+
@JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson)
+final SubscribedType subscribed;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/toJson.html b/doc/api/lemmy_api_client/PostView/toJson.html new file mode 100644 index 00000000..61513cfb --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PostViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostView/unreadComments.html b/doc/api/lemmy_api_client/PostView/unreadComments.html new file mode 100644 index 00000000..025046fa --- /dev/null +++ b/doc/api/lemmy_api_client/PostView/unreadComments.html @@ -0,0 +1,111 @@ + + + + + + + + unreadComments property - PostView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
unreadComments
+ +
+ +
+
+
+
+
+

unreadComments property +

+ + +
+ + int + unreadComments +
final
+ +
+ + + +
+

Implementation

+
final int unreadComments;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostsResponse-class-sidebar.html b/doc/api/lemmy_api_client/PostsResponse-class-sidebar.html new file mode 100644 index 00000000..e2fa3d6e --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse-class-sidebar.html @@ -0,0 +1,54 @@ +
    + +
  1. Constructors
  2. +
  3. PostsResponse
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + hashCode +
  10. + +
  11. + nextPage +
  12. + +
  13. + posts +
  14. + +
  15. + runtimeType +
  16. + +
  17. Methods
  18. + +
  19. + noSuchMethod +
  20. + +
  21. + toJson +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
diff --git a/doc/api/lemmy_api_client/PostsResponse-class.html b/doc/api/lemmy_api_client/PostsResponse-class.html new file mode 100644 index 00000000..52d81982 --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse-class.html @@ -0,0 +1,264 @@ + + + + + + + + PostsResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostsResponse
+ +
+ +
+
+
+
+
+

PostsResponse class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ PostsResponse({required List<PostView> posts, String? nextPage}) +
+
+ +
+
+ PostsResponse.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ nextPage + String? + + +
+
+ +
final
+ +
+ +
+ posts + List<PostView> + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostsResponse/PostsResponse.fromJson.html b/doc/api/lemmy_api_client/PostsResponse/PostsResponse.fromJson.html new file mode 100644 index 00000000..bc7a0c83 --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse/PostsResponse.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + PostsResponse.fromJson constructor - PostsResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostsResponse.fromJson
+ +
+ +
+
+
+
+
+

PostsResponse.fromJson constructor +

+ +
+ + PostsResponse.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory PostsResponse.fromJson(Map<String, dynamic> json) => _$PostsResponseFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostsResponse/PostsResponse.html b/doc/api/lemmy_api_client/PostsResponse/PostsResponse.html new file mode 100644 index 00000000..dea3f73b --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse/PostsResponse.html @@ -0,0 +1,112 @@ + + + + + + + + PostsResponse constructor - PostsResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
PostsResponse
+ +
+ +
+
+
+
+
+

PostsResponse constructor +

+ +
+ + PostsResponse({
  1. required List<PostView> posts,
  2. +
  3. String? nextPage,
  4. +
}) +
+ + + + +
+

Implementation

+
PostsResponse({
+  required this.posts,
+  this.nextPage,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostsResponse/nextPage.html b/doc/api/lemmy_api_client/PostsResponse/nextPage.html new file mode 100644 index 00000000..c42071f4 --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse/nextPage.html @@ -0,0 +1,111 @@ + + + + + + + + nextPage property - PostsResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
nextPage
+ +
+ +
+
+
+
+
+

nextPage property +

+ + +
+ + String? + nextPage +
final
+ +
+ + + +
+

Implementation

+
final String? nextPage;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostsResponse/posts.html b/doc/api/lemmy_api_client/PostsResponse/posts.html new file mode 100644 index 00000000..c761085d --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse/posts.html @@ -0,0 +1,111 @@ + + + + + + + + posts property - PostsResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
posts
+ +
+ +
+
+
+
+
+

posts property +

+ + +
+ + List<PostView> + posts +
final
+ +
+ + + +
+

Implementation

+
final List<PostView> posts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/PostsResponse/toJson.html b/doc/api/lemmy_api_client/PostsResponse/toJson.html new file mode 100644 index 00000000..67a6ac95 --- /dev/null +++ b/doc/api/lemmy_api_client/PostsResponse/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - PostsResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$PostsResponseToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/RegistrationMode-enum-sidebar.html b/doc/api/lemmy_api_client/RegistrationMode-enum-sidebar.html new file mode 100644 index 00000000..b3cc87c2 --- /dev/null +++ b/doc/api/lemmy_api_client/RegistrationMode-enum-sidebar.html @@ -0,0 +1,56 @@ +
    + + +
  1. Values
  2. +
  3. closed
  4. +
  5. requireApplication
  6. +
  7. open
  8. + + +
  9. + Properties +
  10. + +
  11. + hashCode +
  12. + +
  13. + index +
  14. + +
  15. + name + (ext) +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toString +
  24. + +
  25. Operators
  26. + +
  27. + operator == +
  28. + + + + + + +
  29. Constants
  30. +
  31. values
  32. +
diff --git a/doc/api/lemmy_api_client/RegistrationMode.html b/doc/api/lemmy_api_client/RegistrationMode.html new file mode 100644 index 00000000..ceddf01a --- /dev/null +++ b/doc/api/lemmy_api_client/RegistrationMode.html @@ -0,0 +1,304 @@ + + + + + + + + RegistrationMode enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
RegistrationMode
+ +
+ +
+
+
+
+
+ +

+ RegistrationMode + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ closed + → const RegistrationMode + + +
+
+ + + +
+ +
+ requireApplication + → const RegistrationMode + + +
+
+ + + +
+ +
+ open + → const RegistrationMode + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<RegistrationMode> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/RegistrationMode/values-constant.html b/doc/api/lemmy_api_client/RegistrationMode/values-constant.html new file mode 100644 index 00000000..0d64fd1c --- /dev/null +++ b/doc/api/lemmy_api_client/RegistrationMode/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - RegistrationMode enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<RegistrationMode> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site-class-sidebar.html b/doc/api/lemmy_api_client/Site-class-sidebar.html new file mode 100644 index 00000000..42b9be97 --- /dev/null +++ b/doc/api/lemmy_api_client/Site-class-sidebar.html @@ -0,0 +1,102 @@ +
    + +
  1. Constructors
  2. +
  3. Site
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + actorId +
  10. + +
  11. + banner +
  12. + +
  13. + contentWarning +
  14. + +
  15. + description +
  16. + +
  17. + hashCode +
  18. + +
  19. + icon +
  20. + +
  21. + id +
  22. + +
  23. + inboxUrl +
  24. + +
  25. + instanceId +
  26. + +
  27. + lastRefreshedAt +
  28. + +
  29. + name +
  30. + +
  31. + publicKey +
  32. + +
  33. + published +
  34. + +
  35. + runtimeType +
  36. + +
  37. + sidebar +
  38. + +
  39. + updated +
  40. + +
  41. Methods
  42. + +
  43. + noSuchMethod +
  44. + +
  45. + toJson +
  46. + +
  47. + toString +
  48. + +
  49. Operators
  50. + +
  51. + operator == +
  52. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Site-class.html b/doc/api/lemmy_api_client/Site-class.html new file mode 100644 index 00000000..a555964a --- /dev/null +++ b/doc/api/lemmy_api_client/Site-class.html @@ -0,0 +1,408 @@ + + + + + + + + Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Site
+ +
+ +
+
+
+
+
+

Site class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Site({required int id, required String name, String? sidebar, required DateTime published, DateTime? updated, String? icon, String? banner, String? description, required String actorId, required DateTime lastRefreshedAt, required String inboxUrl, required String publicKey, required int instanceId, String? contentWarning}) +
+
+ +
+
+ Site.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ actorId + String + + +
+
+ +
final
+ +
+ + +
+ +
final
+ +
+ +
+ contentWarning + String? + + +
+
+ +
final
+ +
+ +
+ description + String? + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ icon + String? + + +
+
+ +
final
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ inboxUrl + String + + +
+
+ +
final
+ +
+ +
+ instanceId + int + + +
+
+ +
final
+ +
+ +
+ lastRefreshedAt + DateTime + + +
+
+ +
final
+ +
+ +
+ name + String + + +
+
+ +
final
+ +
+ +
+ publicKey + String + + +
+
+ +
final
+ +
+ +
+ published + DateTime + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ + +
+ +
final
+ +
+ +
+ updated + DateTime? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/Site.fromJson.html b/doc/api/lemmy_api_client/Site/Site.fromJson.html new file mode 100644 index 00000000..60da4753 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/Site.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Site.fromJson constructor - Site - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Site.fromJson
+ +
+ +
+
+
+
+
+

Site.fromJson constructor +

+ +
+ + Site.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Site.fromJson(Map<String, dynamic> json) => _$SiteFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/Site.html b/doc/api/lemmy_api_client/Site/Site.html new file mode 100644 index 00000000..c01b58a4 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/Site.html @@ -0,0 +1,136 @@ + + + + + + + + Site constructor - Site - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Site
+ +
+ +
+
+
+
+
+

Site constructor +

+ +
+ + Site({
  1. required int id,
  2. +
  3. required String name,
  4. +
  5. String? sidebar,
  6. +
  7. required DateTime published,
  8. +
  9. DateTime? updated,
  10. +
  11. String? icon,
  12. +
  13. String? banner,
  14. +
  15. String? description,
  16. +
  17. required String actorId,
  18. +
  19. required DateTime lastRefreshedAt,
  20. +
  21. required String inboxUrl,
  22. +
  23. required String publicKey,
  24. +
  25. required int instanceId,
  26. +
  27. String? contentWarning,
  28. +
}) +
+ + + + +
+

Implementation

+
Site({
+  required this.id,
+  required this.name,
+  this.sidebar,
+  required this.published,
+  this.updated,
+  this.icon,
+  this.banner,
+  this.description,
+  required this.actorId,
+  required this.lastRefreshedAt,
+  required this.inboxUrl,
+  required this.publicKey,
+  required this.instanceId,
+  this.contentWarning,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/actorId.html b/doc/api/lemmy_api_client/Site/actorId.html new file mode 100644 index 00000000..ca993698 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/actorId.html @@ -0,0 +1,111 @@ + + + + + + + + actorId property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
actorId
+ +
+ +
+
+
+
+
+

actorId property +

+ + +
+ + String + actorId +
final
+ +
+ + + +
+

Implementation

+
final String actorId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/banner.html b/doc/api/lemmy_api_client/Site/banner.html new file mode 100644 index 00000000..4b13de2a --- /dev/null +++ b/doc/api/lemmy_api_client/Site/banner.html @@ -0,0 +1,111 @@ + + + + + + + + banner property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
banner
+ +
+ +
+
+
+
+
+

banner property +

+ + +
+ + String? + banner +
final
+ +
+ + + +
+

Implementation

+
final String? banner;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/contentWarning.html b/doc/api/lemmy_api_client/Site/contentWarning.html new file mode 100644 index 00000000..6371b629 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/contentWarning.html @@ -0,0 +1,111 @@ + + + + + + + + contentWarning property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
contentWarning
+ +
+ +
+
+
+
+
+

contentWarning property +

+ + +
+ + String? + contentWarning +
final
+ +
+ + + +
+

Implementation

+
final String? contentWarning;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/description.html b/doc/api/lemmy_api_client/Site/description.html new file mode 100644 index 00000000..673f548c --- /dev/null +++ b/doc/api/lemmy_api_client/Site/description.html @@ -0,0 +1,111 @@ + + + + + + + + description property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
description
+ +
+ +
+
+
+
+
+

description property +

+ + +
+ + String? + description +
final
+ +
+ + + +
+

Implementation

+
final String? description;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/icon.html b/doc/api/lemmy_api_client/Site/icon.html new file mode 100644 index 00000000..a902885f --- /dev/null +++ b/doc/api/lemmy_api_client/Site/icon.html @@ -0,0 +1,111 @@ + + + + + + + + icon property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
icon
+ +
+ +
+
+
+
+
+

icon property +

+ + +
+ + String? + icon +
final
+ +
+ + + +
+

Implementation

+
final String? icon;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/id.html b/doc/api/lemmy_api_client/Site/id.html new file mode 100644 index 00000000..a79c3d59 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/inboxUrl.html b/doc/api/lemmy_api_client/Site/inboxUrl.html new file mode 100644 index 00000000..7db68214 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/inboxUrl.html @@ -0,0 +1,111 @@ + + + + + + + + inboxUrl property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
inboxUrl
+ +
+ +
+
+
+
+
+

inboxUrl property +

+ + +
+ + String + inboxUrl +
final
+ +
+ + + +
+

Implementation

+
final String inboxUrl;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/instanceId.html b/doc/api/lemmy_api_client/Site/instanceId.html new file mode 100644 index 00000000..ec8c3b16 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/instanceId.html @@ -0,0 +1,111 @@ + + + + + + + + instanceId property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
instanceId
+ +
+ +
+
+
+
+
+

instanceId property +

+ + +
+ + int + instanceId +
final
+ +
+ + + +
+

Implementation

+
final int instanceId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/lastRefreshedAt.html b/doc/api/lemmy_api_client/Site/lastRefreshedAt.html new file mode 100644 index 00000000..9fc87ba8 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/lastRefreshedAt.html @@ -0,0 +1,111 @@ + + + + + + + + lastRefreshedAt property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
lastRefreshedAt
+ +
+ +
+
+
+
+
+

lastRefreshedAt property +

+ + +
+ + DateTime + lastRefreshedAt +
final
+ +
+ + + +
+

Implementation

+
final DateTime lastRefreshedAt;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/name.html b/doc/api/lemmy_api_client/Site/name.html new file mode 100644 index 00000000..d70deb4a --- /dev/null +++ b/doc/api/lemmy_api_client/Site/name.html @@ -0,0 +1,111 @@ + + + + + + + + name property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
name
+ +
+ +
+
+
+
+
+

name property +

+ + +
+ + String + name +
final
+ +
+ + + +
+

Implementation

+
final String name;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/publicKey.html b/doc/api/lemmy_api_client/Site/publicKey.html new file mode 100644 index 00000000..4a0506d8 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/publicKey.html @@ -0,0 +1,111 @@ + + + + + + + + publicKey property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
publicKey
+ +
+ +
+
+
+
+
+

publicKey property +

+ + +
+ + String + publicKey +
final
+ +
+ + + +
+

Implementation

+
final String publicKey;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/published.html b/doc/api/lemmy_api_client/Site/published.html new file mode 100644 index 00000000..226d97a6 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + DateTime + published +
final
+ +
+ + + +
+

Implementation

+
final DateTime published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/sidebar.html b/doc/api/lemmy_api_client/Site/sidebar.html new file mode 100644 index 00000000..6a9777c0 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/sidebar.html @@ -0,0 +1,111 @@ + + + + + + + + sidebar property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
sidebar
+ +
+ +
+
+
+
+
+

sidebar property +

+ + +
+ + String? + sidebar +
final
+ +
+ + + +
+

Implementation

+
final String? sidebar;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/toJson.html b/doc/api/lemmy_api_client/Site/toJson.html new file mode 100644 index 00000000..7578b3f9 --- /dev/null +++ b/doc/api/lemmy_api_client/Site/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$SiteToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Site/updated.html b/doc/api/lemmy_api_client/Site/updated.html new file mode 100644 index 00000000..1383de1f --- /dev/null +++ b/doc/api/lemmy_api_client/Site/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Site class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + DateTime? + updated +
final
+ +
+ + + +
+

Implementation

+
final DateTime? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates-class-sidebar.html b/doc/api/lemmy_api_client/SiteAggregates-class-sidebar.html new file mode 100644 index 00000000..6e479dcf --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates-class-sidebar.html @@ -0,0 +1,82 @@ +
    + +
  1. Constructors
  2. +
  3. SiteAggregates
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + comments +
  10. + +
  11. + communities +
  12. + +
  13. + hashCode +
  14. + +
  15. + posts +
  16. + +
  17. + runtimeType +
  18. + +
  19. + siteId +
  20. + +
  21. + users +
  22. + +
  23. + usersActiveDay +
  24. + +
  25. + usersActiveHalfYear +
  26. + +
  27. + usersActiveMonth +
  28. + +
  29. + usersActiveWeek +
  30. + +
  31. Methods
  32. + +
  33. + noSuchMethod +
  34. + +
  35. + toJson +
  36. + +
  37. + toString +
  38. + +
  39. Operators
  40. + +
  41. + operator == +
  42. + + + + + + +
diff --git a/doc/api/lemmy_api_client/SiteAggregates-class.html b/doc/api/lemmy_api_client/SiteAggregates-class.html new file mode 100644 index 00000000..ee6cfc0a --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates-class.html @@ -0,0 +1,348 @@ + + + + + + + + SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SiteAggregates
+ +
+ +
+
+
+
+
+

SiteAggregates class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ SiteAggregates({required int siteId, required int users, required int posts, required int comments, required int communities, required int usersActiveDay, required int usersActiveWeek, required int usersActiveMonth, required int usersActiveHalfYear}) +
+
+ +
+
+ SiteAggregates.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ comments + int + + +
+
+ +
final
+ +
+ +
+ communities + int + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ posts + int + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ siteId + int + + +
+
+ +
final
+ +
+ +
+ users + int + + +
+
+ +
final
+ +
+ +
+ usersActiveDay + int + + +
+
+ +
final
+ +
+ +
+ usersActiveHalfYear + int + + +
+
+ +
final
+ +
+ +
+ usersActiveMonth + int + + +
+
+ +
final
+ +
+ +
+ usersActiveWeek + int + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/SiteAggregates.fromJson.html b/doc/api/lemmy_api_client/SiteAggregates/SiteAggregates.fromJson.html new file mode 100644 index 00000000..d73b028e --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/SiteAggregates.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + SiteAggregates.fromJson constructor - SiteAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SiteAggregates.fromJson
+ +
+ +
+
+
+
+
+

SiteAggregates.fromJson constructor +

+ +
+ + SiteAggregates.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory SiteAggregates.fromJson(Map<String, dynamic> json) => _$SiteAggregatesFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/SiteAggregates.html b/doc/api/lemmy_api_client/SiteAggregates/SiteAggregates.html new file mode 100644 index 00000000..897e9689 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/SiteAggregates.html @@ -0,0 +1,126 @@ + + + + + + + + SiteAggregates constructor - SiteAggregates - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SiteAggregates
+ +
+ +
+
+
+
+
+

SiteAggregates constructor +

+ +
+ + SiteAggregates({
  1. required int siteId,
  2. +
  3. required int users,
  4. +
  5. required int posts,
  6. +
  7. required int comments,
  8. +
  9. required int communities,
  10. +
  11. required int usersActiveDay,
  12. +
  13. required int usersActiveWeek,
  14. +
  15. required int usersActiveMonth,
  16. +
  17. required int usersActiveHalfYear,
  18. +
}) +
+ + + + +
+

Implementation

+
SiteAggregates({
+  required this.siteId,
+  required this.users,
+  required this.posts,
+  required this.comments,
+  required this.communities,
+  required this.usersActiveDay,
+  required this.usersActiveWeek,
+  required this.usersActiveMonth,
+  required this.usersActiveHalfYear,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/comments.html b/doc/api/lemmy_api_client/SiteAggregates/comments.html new file mode 100644 index 00000000..e3d9aa18 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/comments.html @@ -0,0 +1,111 @@ + + + + + + + + comments property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
comments
+ +
+ +
+
+
+
+
+

comments property +

+ + +
+ + int + comments +
final
+ +
+ + + +
+

Implementation

+
final int comments;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/communities.html b/doc/api/lemmy_api_client/SiteAggregates/communities.html new file mode 100644 index 00000000..b8e5f456 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/communities.html @@ -0,0 +1,111 @@ + + + + + + + + communities property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
communities
+ +
+ +
+
+
+
+
+

communities property +

+ + +
+ + int + communities +
final
+ +
+ + + +
+

Implementation

+
final int communities;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/posts.html b/doc/api/lemmy_api_client/SiteAggregates/posts.html new file mode 100644 index 00000000..ca035203 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/posts.html @@ -0,0 +1,111 @@ + + + + + + + + posts property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
posts
+ +
+ +
+
+
+
+
+

posts property +

+ + +
+ + int + posts +
final
+ +
+ + + +
+

Implementation

+
final int posts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/siteId.html b/doc/api/lemmy_api_client/SiteAggregates/siteId.html new file mode 100644 index 00000000..6d5a9fdd --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/siteId.html @@ -0,0 +1,111 @@ + + + + + + + + siteId property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
siteId
+ +
+ +
+
+
+
+
+

siteId property +

+ + +
+ + int + siteId +
final
+ +
+ + + +
+

Implementation

+
final int siteId;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/toJson.html b/doc/api/lemmy_api_client/SiteAggregates/toJson.html new file mode 100644 index 00000000..a3c81240 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$SiteAggregatesToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/users.html b/doc/api/lemmy_api_client/SiteAggregates/users.html new file mode 100644 index 00000000..e5844468 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/users.html @@ -0,0 +1,111 @@ + + + + + + + + users property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
users
+ +
+ +
+
+
+
+
+

users property +

+ + +
+ + int + users +
final
+ +
+ + + +
+

Implementation

+
final int users;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/usersActiveDay.html b/doc/api/lemmy_api_client/SiteAggregates/usersActiveDay.html new file mode 100644 index 00000000..8ddbd82e --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/usersActiveDay.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveDay property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveDay
+ +
+ +
+
+
+
+
+

usersActiveDay property +

+ + +
+ + int + usersActiveDay +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveDay;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/usersActiveHalfYear.html b/doc/api/lemmy_api_client/SiteAggregates/usersActiveHalfYear.html new file mode 100644 index 00000000..4ce6b754 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/usersActiveHalfYear.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveHalfYear property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveHalfYear
+ +
+ +
+
+
+
+
+

usersActiveHalfYear property +

+ + +
+ + int + usersActiveHalfYear +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveHalfYear;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/usersActiveMonth.html b/doc/api/lemmy_api_client/SiteAggregates/usersActiveMonth.html new file mode 100644 index 00000000..0987c835 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/usersActiveMonth.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveMonth property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveMonth
+ +
+ +
+
+
+
+
+

usersActiveMonth property +

+ + +
+ + int + usersActiveMonth +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveMonth;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteAggregates/usersActiveWeek.html b/doc/api/lemmy_api_client/SiteAggregates/usersActiveWeek.html new file mode 100644 index 00000000..a82a5c36 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteAggregates/usersActiveWeek.html @@ -0,0 +1,111 @@ + + + + + + + + usersActiveWeek property - SiteAggregates class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
usersActiveWeek
+ +
+ +
+
+
+
+
+

usersActiveWeek property +

+ + +
+ + int + usersActiveWeek +
final
+ +
+ + + +
+

Implementation

+
final int usersActiveWeek;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView-class-sidebar.html b/doc/api/lemmy_api_client/SiteView-class-sidebar.html new file mode 100644 index 00000000..b7e16eab --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. SiteView
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + counts +
  10. + +
  11. + hashCode +
  12. + +
  13. + localSite +
  14. + +
  15. + localSiteRateLimit +
  16. + +
  17. + runtimeType +
  18. + +
  19. + site +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/SiteView-class.html b/doc/api/lemmy_api_client/SiteView-class.html new file mode 100644 index 00000000..ced5862e --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView-class.html @@ -0,0 +1,288 @@ + + + + + + + + SiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SiteView
+ +
+ +
+
+
+
+
+

SiteView class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ SiteView({required Site site, required LocalSite localSite, required LocalSiteRateLimit localSiteRateLimit, required SiteAggregates counts}) +
+
+ +
+
+ SiteView.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ counts + SiteAggregates + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ localSite + LocalSite + + +
+
+ +
final
+ +
+ +
+ localSiteRateLimit + LocalSiteRateLimit + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ site + Site + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/SiteView.fromJson.html b/doc/api/lemmy_api_client/SiteView/SiteView.fromJson.html new file mode 100644 index 00000000..e5bbc929 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/SiteView.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + SiteView.fromJson constructor - SiteView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SiteView.fromJson
+ +
+ +
+
+
+
+
+

SiteView.fromJson constructor +

+ +
+ + SiteView.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory SiteView.fromJson(Map<String, dynamic> json) => _$SiteViewFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/SiteView.html b/doc/api/lemmy_api_client/SiteView/SiteView.html new file mode 100644 index 00000000..1b654931 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/SiteView.html @@ -0,0 +1,116 @@ + + + + + + + + SiteView constructor - SiteView - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SiteView
+ +
+ +
+
+
+
+
+

SiteView constructor +

+ +
+ + SiteView({
  1. required Site site,
  2. +
  3. required LocalSite localSite,
  4. +
  5. required LocalSiteRateLimit localSiteRateLimit,
  6. +
  7. required SiteAggregates counts,
  8. +
}) +
+ + + + +
+

Implementation

+
SiteView({
+  required this.site,
+  required this.localSite,
+  required this.localSiteRateLimit,
+  required this.counts,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/counts.html b/doc/api/lemmy_api_client/SiteView/counts.html new file mode 100644 index 00000000..5f2e9cc6 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/counts.html @@ -0,0 +1,111 @@ + + + + + + + + counts property - SiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
counts
+ +
+ +
+
+
+
+
+

counts property +

+ + +
+ + SiteAggregates + counts +
final
+ +
+ + + +
+

Implementation

+
final SiteAggregates counts;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/localSite.html b/doc/api/lemmy_api_client/SiteView/localSite.html new file mode 100644 index 00000000..82e54625 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/localSite.html @@ -0,0 +1,111 @@ + + + + + + + + localSite property - SiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
localSite
+ +
+ +
+
+
+
+
+

localSite property +

+ + +
+ + LocalSite + localSite +
final
+ +
+ + + +
+

Implementation

+
final LocalSite localSite;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/localSiteRateLimit.html b/doc/api/lemmy_api_client/SiteView/localSiteRateLimit.html new file mode 100644 index 00000000..06b58809 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/localSiteRateLimit.html @@ -0,0 +1,111 @@ + + + + + + + + localSiteRateLimit property - SiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
localSiteRateLimit
+ +
+ +
+
+
+
+
+

localSiteRateLimit property +

+ + +
+ + LocalSiteRateLimit + localSiteRateLimit +
final
+ +
+ + + +
+

Implementation

+
final LocalSiteRateLimit localSiteRateLimit;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/site.html b/doc/api/lemmy_api_client/SiteView/site.html new file mode 100644 index 00000000..57ba90b9 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/site.html @@ -0,0 +1,111 @@ + + + + + + + + site property - SiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
site
+ +
+ +
+
+
+
+
+

site property +

+ + +
+ + Site + site +
final
+ +
+ + + +
+

Implementation

+
final Site site;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SiteView/toJson.html b/doc/api/lemmy_api_client/SiteView/toJson.html new file mode 100644 index 00000000..634c1323 --- /dev/null +++ b/doc/api/lemmy_api_client/SiteView/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - SiteView class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$SiteViewToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SubscribedType-enum-sidebar.html b/doc/api/lemmy_api_client/SubscribedType-enum-sidebar.html new file mode 100644 index 00000000..ea37cddb --- /dev/null +++ b/doc/api/lemmy_api_client/SubscribedType-enum-sidebar.html @@ -0,0 +1,57 @@ +
    + + +
  1. Values
  2. +
  3. subscribed
  4. +
  5. notSubscribed
  6. +
  7. pending
  8. +
  9. approvalRequired
  10. + + +
  11. + Properties +
  12. + +
  13. + hashCode +
  14. + +
  15. + index +
  16. + +
  17. + name + (ext) +
  18. + +
  19. + runtimeType +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
  31. Constants
  32. +
  33. values
  34. +
diff --git a/doc/api/lemmy_api_client/SubscribedType.html b/doc/api/lemmy_api_client/SubscribedType.html new file mode 100644 index 00000000..5160c185 --- /dev/null +++ b/doc/api/lemmy_api_client/SubscribedType.html @@ -0,0 +1,316 @@ + + + + + + + + SubscribedType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SubscribedType
+ +
+ +
+
+
+
+
+ +

+ SubscribedType + enum + + +

+
+ + + + +
+
+ +
Inheritance
+
+ +
+ + + + +
Available extensions
+
+ + + +
+
+ +
+

Values

+
+
+ subscribed + → const SubscribedType + + +
+
+ + + +
+ +
+ notSubscribed + → const SubscribedType + + +
+
+ + + +
+ +
+ pending + → const SubscribedType + + +
+
+ + + +
+ +
+ approvalRequired + → const SubscribedType + + +
+
+ + + +
+ +
+
+ + +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ index + int + + +
+
+ A numeric identifier for the enumerated value. +
no setterinherited
+ +
+ +
+ name + String + + +
+
+

+ Available on Enum, + provided by the EnumName extension +

+ The name of the enum value. +
no setter
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+

Constants

+
+
+ values + → const List<SubscribedType> + + +
+
+ A constant List of the values in this enum, in order of their declaration. + + +
+ +
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SubscribedType/values-constant.html b/doc/api/lemmy_api_client/SubscribedType/values-constant.html new file mode 100644 index 00000000..8fc197b1 --- /dev/null +++ b/doc/api/lemmy_api_client/SubscribedType/values-constant.html @@ -0,0 +1,110 @@ + + + + + + + + values constant - SubscribedType enum - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
values
+ +
+ +
+
+
+
+
+

values constant +

+ + +
+ + List<SubscribedType> + const values + + +
+ +
+

A constant List of the values in this enum, in order of their declaration.

+
+ + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SuccessResponse-class-sidebar.html b/doc/api/lemmy_api_client/SuccessResponse-class-sidebar.html new file mode 100644 index 00000000..d1b7f712 --- /dev/null +++ b/doc/api/lemmy_api_client/SuccessResponse-class-sidebar.html @@ -0,0 +1,50 @@ +
    + +
  1. Constructors
  2. +
  3. SuccessResponse
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + hashCode +
  10. + +
  11. + runtimeType +
  12. + +
  13. + success +
  14. + +
  15. Methods
  16. + +
  17. + noSuchMethod +
  18. + +
  19. + toJson +
  20. + +
  21. + toString +
  22. + +
  23. Operators
  24. + +
  25. + operator == +
  26. + + + + + + +
diff --git a/doc/api/lemmy_api_client/SuccessResponse-class.html b/doc/api/lemmy_api_client/SuccessResponse-class.html new file mode 100644 index 00000000..bbd787ee --- /dev/null +++ b/doc/api/lemmy_api_client/SuccessResponse-class.html @@ -0,0 +1,252 @@ + + + + + + + + SuccessResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SuccessResponse
+ +
+ +
+
+
+
+
+

SuccessResponse class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ SuccessResponse({required bool success}) +
+
+ +
+
+ SuccessResponse.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ success + bool + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SuccessResponse/SuccessResponse.fromJson.html b/doc/api/lemmy_api_client/SuccessResponse/SuccessResponse.fromJson.html new file mode 100644 index 00000000..9938eb31 --- /dev/null +++ b/doc/api/lemmy_api_client/SuccessResponse/SuccessResponse.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + SuccessResponse.fromJson constructor - SuccessResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SuccessResponse.fromJson
+ +
+ +
+
+
+
+
+

SuccessResponse.fromJson constructor +

+ +
+ + SuccessResponse.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory SuccessResponse.fromJson(Map<String, dynamic> json) => _$SuccessResponseFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SuccessResponse/SuccessResponse.html b/doc/api/lemmy_api_client/SuccessResponse/SuccessResponse.html new file mode 100644 index 00000000..c7a374cb --- /dev/null +++ b/doc/api/lemmy_api_client/SuccessResponse/SuccessResponse.html @@ -0,0 +1,108 @@ + + + + + + + + SuccessResponse constructor - SuccessResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
SuccessResponse
+ +
+ +
+
+
+
+
+

SuccessResponse constructor +

+ +
+ + SuccessResponse({
  1. required bool success,
  2. +
}) +
+ + + + +
+

Implementation

+
SuccessResponse({required this.success});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SuccessResponse/success.html b/doc/api/lemmy_api_client/SuccessResponse/success.html new file mode 100644 index 00000000..082ca22d --- /dev/null +++ b/doc/api/lemmy_api_client/SuccessResponse/success.html @@ -0,0 +1,111 @@ + + + + + + + + success property - SuccessResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
success
+ +
+ +
+
+
+
+
+

success property +

+ + +
+ + bool + success +
final
+ +
+ + + +
+

Implementation

+
final bool success;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/SuccessResponse/toJson.html b/doc/api/lemmy_api_client/SuccessResponse/toJson.html new file mode 100644 index 00000000..f644e58a --- /dev/null +++ b/doc/api/lemmy_api_client/SuccessResponse/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - SuccessResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$SuccessResponseToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline-class-sidebar.html b/doc/api/lemmy_api_client/Tagline-class-sidebar.html new file mode 100644 index 00000000..8ae41e94 --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline-class-sidebar.html @@ -0,0 +1,62 @@ +
    + +
  1. Constructors
  2. +
  3. Tagline
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + content +
  10. + +
  11. + hashCode +
  12. + +
  13. + id +
  14. + +
  15. + published +
  16. + +
  17. + runtimeType +
  18. + +
  19. + updated +
  20. + +
  21. Methods
  22. + +
  23. + noSuchMethod +
  24. + +
  25. + toJson +
  26. + +
  27. + toString +
  28. + +
  29. Operators
  30. + +
  31. + operator == +
  32. + + + + + + +
diff --git a/doc/api/lemmy_api_client/Tagline-class.html b/doc/api/lemmy_api_client/Tagline-class.html new file mode 100644 index 00000000..92d88e58 --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline-class.html @@ -0,0 +1,288 @@ + + + + + + + + Tagline class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Tagline
+ +
+ +
+
+
+
+
+

Tagline class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ Tagline({required int id, required String content, required String published, String? updated}) +
+
+ +
+
+ Tagline.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ content + String + + +
+
+ +
final
+ +
+ +
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ id + int + + +
+
+ +
final
+ +
+ +
+ published + String + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+ updated + String? + + +
+
+ +
final
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/Tagline.fromJson.html b/doc/api/lemmy_api_client/Tagline/Tagline.fromJson.html new file mode 100644 index 00000000..95b20234 --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/Tagline.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + Tagline.fromJson constructor - Tagline - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Tagline.fromJson
+ +
+ +
+
+
+
+
+

Tagline.fromJson constructor +

+ +
+ + Tagline.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory Tagline.fromJson(Map<String, dynamic> json) => _$TaglineFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/Tagline.html b/doc/api/lemmy_api_client/Tagline/Tagline.html new file mode 100644 index 00000000..e1026730 --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/Tagline.html @@ -0,0 +1,116 @@ + + + + + + + + Tagline constructor - Tagline - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
Tagline
+ +
+ +
+
+
+
+
+

Tagline constructor +

+ +
+ + Tagline({
  1. required int id,
  2. +
  3. required String content,
  4. +
  5. required String published,
  6. +
  7. String? updated,
  8. +
}) +
+ + + + +
+

Implementation

+
Tagline({
+  required this.id,
+  required this.content,
+  required this.published,
+  this.updated,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/content.html b/doc/api/lemmy_api_client/Tagline/content.html new file mode 100644 index 00000000..56174b74 --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/content.html @@ -0,0 +1,111 @@ + + + + + + + + content property - Tagline class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
content
+ +
+ +
+
+
+
+
+

content property +

+ + +
+ + String + content +
final
+ +
+ + + +
+

Implementation

+
final String content;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/id.html b/doc/api/lemmy_api_client/Tagline/id.html new file mode 100644 index 00000000..92042a91 --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/id.html @@ -0,0 +1,111 @@ + + + + + + + + id property - Tagline class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
id
+ +
+ +
+
+
+
+
+

id property +

+ + +
+ + int + id +
final
+ +
+ + + +
+

Implementation

+
final int id;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/published.html b/doc/api/lemmy_api_client/Tagline/published.html new file mode 100644 index 00000000..38903ebd --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/published.html @@ -0,0 +1,111 @@ + + + + + + + + published property - Tagline class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
published
+ +
+ +
+
+
+
+
+

published property +

+ + +
+ + String + published +
final
+ +
+ + + +
+

Implementation

+
final String published;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/toJson.html b/doc/api/lemmy_api_client/Tagline/toJson.html new file mode 100644 index 00000000..ba9c19eb --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - Tagline class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$TaglineToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/Tagline/updated.html b/doc/api/lemmy_api_client/Tagline/updated.html new file mode 100644 index 00000000..799d707f --- /dev/null +++ b/doc/api/lemmy_api_client/Tagline/updated.html @@ -0,0 +1,111 @@ + + + + + + + + updated property - Tagline class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
updated
+ +
+ +
+
+
+
+
+

updated property +

+ + +
+ + String? + updated +
final
+ +
+ + + +
+

Implementation

+
final String? updated;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse-class-sidebar.html b/doc/api/lemmy_api_client/UnreadCountResponse-class-sidebar.html new file mode 100644 index 00000000..98db47fc --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse-class-sidebar.html @@ -0,0 +1,58 @@ +
    + +
  1. Constructors
  2. +
  3. UnreadCountResponse
  4. +
  5. fromJson
  6. + + + +
  7. + Properties +
  8. + +
  9. + hashCode +
  10. + +
  11. + mentions +
  12. + +
  13. + privateMessages +
  14. + +
  15. + replies +
  16. + +
  17. + runtimeType +
  18. + +
  19. Methods
  20. + +
  21. + noSuchMethod +
  22. + +
  23. + toJson +
  24. + +
  25. + toString +
  26. + +
  27. Operators
  28. + +
  29. + operator == +
  30. + + + + + + +
diff --git a/doc/api/lemmy_api_client/UnreadCountResponse-class.html b/doc/api/lemmy_api_client/UnreadCountResponse-class.html new file mode 100644 index 00000000..16bf0a6b --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse-class.html @@ -0,0 +1,276 @@ + + + + + + + + UnreadCountResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
UnreadCountResponse
+ +
+ +
+
+
+
+
+

UnreadCountResponse class + +

+ + + + +
+
+ + + + + + + + +
Annotations
+
+ +
+ + +
+
+ + +
+

Constructors

+
+
+ UnreadCountResponse({required int replies, required int mentions, required int privateMessages}) +
+
+ +
+
+ UnreadCountResponse.fromJson(Map<String, dynamic> json) +
+
+ +
factory
+
+
+
+ +
+

Properties

+
+
+ hashCode + int + + +
+
+ The hash code for this object. +
no setterinherited
+ +
+ +
+ mentions + int + + +
+
+ +
final
+ +
+ +
+ privateMessages + int + + +
+
+ +
final
+ +
+ +
+ replies + int + + +
+
+ +
final
+ +
+ +
+ runtimeType + Type + + +
+
+ A representation of the runtime type of the object. +
no setterinherited
+ +
+ +
+
+ + +
+

Methods

+
+
+ noSuchMethod(Invocation invocation) + → dynamic + + + +
+
+ Invoked when a nonexistent method or property is accessed. +
inherited
+ +
+ +
+ toJson() + Map<String, dynamic> + + + +
+
+ + + +
+ +
+ toString() + String + + + +
+
+ A string representation of this object. +
inherited
+ +
+ +
+
+ +
+

Operators

+
+
+ operator ==(Object other) + bool + + + +
+
+ The equality operator. +
inherited
+ +
+ +
+
+ + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse/UnreadCountResponse.fromJson.html b/doc/api/lemmy_api_client/UnreadCountResponse/UnreadCountResponse.fromJson.html new file mode 100644 index 00000000..e1b74b2d --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse/UnreadCountResponse.fromJson.html @@ -0,0 +1,108 @@ + + + + + + + + UnreadCountResponse.fromJson constructor - UnreadCountResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
UnreadCountResponse.fromJson
+ +
+ +
+
+
+
+
+

UnreadCountResponse.fromJson constructor +

+ +
+ + UnreadCountResponse.fromJson(
  1. Map<String, dynamic> json
  2. +
) +
+ + + + +
+

Implementation

+
factory UnreadCountResponse.fromJson(Map<String, dynamic> json) => _$UnreadCountResponseFromJson(json);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse/UnreadCountResponse.html b/doc/api/lemmy_api_client/UnreadCountResponse/UnreadCountResponse.html new file mode 100644 index 00000000..2fb7af90 --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse/UnreadCountResponse.html @@ -0,0 +1,114 @@ + + + + + + + + UnreadCountResponse constructor - UnreadCountResponse - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
UnreadCountResponse
+ +
+ +
+
+
+
+
+

UnreadCountResponse constructor +

+ +
+ + UnreadCountResponse({
  1. required int replies,
  2. +
  3. required int mentions,
  4. +
  5. required int privateMessages,
  6. +
}) +
+ + + + +
+

Implementation

+
UnreadCountResponse({
+  required this.replies,
+  required this.mentions,
+  required this.privateMessages,
+});
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse/mentions.html b/doc/api/lemmy_api_client/UnreadCountResponse/mentions.html new file mode 100644 index 00000000..635f9526 --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse/mentions.html @@ -0,0 +1,111 @@ + + + + + + + + mentions property - UnreadCountResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
mentions
+ +
+ +
+
+
+
+
+

mentions property +

+ + +
+ + int + mentions +
final
+ +
+ + + +
+

Implementation

+
final int mentions;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse/privateMessages.html b/doc/api/lemmy_api_client/UnreadCountResponse/privateMessages.html new file mode 100644 index 00000000..5388e765 --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse/privateMessages.html @@ -0,0 +1,111 @@ + + + + + + + + privateMessages property - UnreadCountResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
privateMessages
+ +
+ +
+
+
+
+
+

privateMessages property +

+ + +
+ + int + privateMessages +
final
+ +
+ + + +
+

Implementation

+
final int privateMessages;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse/replies.html b/doc/api/lemmy_api_client/UnreadCountResponse/replies.html new file mode 100644 index 00000000..e9838e9c --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse/replies.html @@ -0,0 +1,111 @@ + + + + + + + + replies property - UnreadCountResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
replies
+ +
+ +
+
+
+
+
+

replies property +

+ + +
+ + int + replies +
final
+ +
+ + + +
+

Implementation

+
final int replies;
+
+ + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/UnreadCountResponse/toJson.html b/doc/api/lemmy_api_client/UnreadCountResponse/toJson.html new file mode 100644 index 00000000..ceead541 --- /dev/null +++ b/doc/api/lemmy_api_client/UnreadCountResponse/toJson.html @@ -0,0 +1,111 @@ + + + + + + + + toJson method - UnreadCountResponse class - lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
toJson
+ +
+ +
+
+
+
+
+

toJson method +

+ +
+ +Map<String, dynamic> +toJson() + + + +
+ + + + +
+

Implementation

+
Map<String, dynamic> toJson() => _$UnreadCountResponseToJson(this);
+
+ + +
+ + +
+ + + + + + + + + diff --git a/doc/api/lemmy_api_client/lemmy_api_client-library-sidebar.html b/doc/api/lemmy_api_client/lemmy_api_client-library-sidebar.html new file mode 100644 index 00000000..512dbcc6 --- /dev/null +++ b/doc/api/lemmy_api_client/lemmy_api_client-library-sidebar.html @@ -0,0 +1,60 @@ +
    +
  1. Classes
  2. +
  3. Account
  4. +
  5. AccountView
  6. +
  7. AccountVoteDisplayMode
  8. +
  9. BlockPersonResponse
  10. +
  11. Comment
  12. +
  13. CommentAggregates
  14. +
  15. CommentView
  16. +
  17. Community
  18. +
  19. CommunityAggregates
  20. +
  21. CommunityFollowerView
  22. +
  23. CommunityModeratorView
  24. +
  25. CommunityResponse
  26. +
  27. CommunityView
  28. +
  29. FullAccountView
  30. +
  31. FullPersonView
  32. +
  33. FullPostView
  34. +
  35. FullSiteView
  36. +
  37. ImageDetails
  38. +
  39. Instance
  40. +
  41. Language
  42. +
  43. LemmyClient
  44. +
  45. LocalSite
  46. +
  47. LocalSiteRateLimit
  48. +
  49. LocalSiteUrlBlocklist
  50. +
  51. LoginResponse
  52. +
  53. OAuthProvider
  54. +
  55. Person
  56. +
  57. PersonAggregates
  58. +
  59. PersonView
  60. +
  61. Post
  62. +
  63. PostAggregates
  64. +
  65. PostsResponse
  66. +
  67. PostView
  68. +
  69. Site
  70. +
  71. SiteAggregates
  72. +
  73. SiteView
  74. +
  75. SuccessResponse
  76. +
  77. Tagline
  78. +
  79. UnreadCountResponse
  80. + +
  81. Enums
  82. +
  83. CommentSortType
  84. +
  85. CommunityVisibility
  86. +
  87. FederationMode
  88. +
  89. ListingType
  90. +
  91. PostListingMode
  92. +
  93. PostSortType
  94. +
  95. RegistrationMode
  96. +
  97. SubscribedType
  98. + + + + + + + + +
diff --git a/doc/api/lemmy_api_client/lemmy_api_client-library.html b/doc/api/lemmy_api_client/lemmy_api_client-library.html new file mode 100644 index 00000000..48566079 --- /dev/null +++ b/doc/api/lemmy_api_client/lemmy_api_client-library.html @@ -0,0 +1,500 @@ + + + + + + + + lemmy_api_client library - Dart API + + + + + + + + + + + + + + +
+
+ menu + +
lemmy_api_client
+ +
+ +
+
+
+
+ +
+ + +

+ lemmy_api_client + library + + +

+
+ + + + +
+

Classes

+
+
+ Account + +
+
+ +
+ +
+ AccountView + +
+
+ +
+ +
+ AccountVoteDisplayMode + +
+
+ +
+ +
+ BlockPersonResponse + +
+
+ +
+ +
+ Comment + +
+
+ +
+ +
+ CommentAggregates + +
+
+ +
+ +
+ CommentView + +
+
+ +
+ +
+ Community + +
+
+ +
+ +
+ CommunityAggregates + +
+
+ +
+ +
+ CommunityFollowerView + +
+
+ +
+ +
+ CommunityModeratorView + +
+
+ +
+ +
+ CommunityResponse + +
+
+ +
+ +
+ CommunityView + +
+
+ +
+ +
+ FullAccountView + +
+
+ +
+ +
+ FullPersonView + +
+
+ +
+ +
+ FullPostView + +
+
+ +
+ +
+ FullSiteView + +
+
+ +
+ +
+ ImageDetails + +
+
+ +
+ +
+ Instance + +
+
+ +
+ +
+ Language + +
+
+ +
+ +
+ LemmyClient + +
+
+ A client that interacts with a Lemmy instance. The client must be initialized before it can be used. +
+ +
+ LocalSite + +
+
+ +
+ +
+ LocalSiteRateLimit + +
+
+ +
+ +
+ LocalSiteUrlBlocklist + +
+
+ +
+ +
+ LoginResponse + +
+
+ +
+ +
+ OAuthProvider + +
+
+ +
+ +
+ Person + +
+
+ +
+ +
+ PersonAggregates + +
+
+ +
+ +
+ PersonView + +
+
+ +
+ +
+ Post + +
+
+ +
+ +
+ PostAggregates + +
+
+ +
+ +
+ PostsResponse + +
+
+ +
+ +
+ PostView + +
+
+ +
+ +
+ Site + +
+
+ +
+ +
+ SiteAggregates + +
+
+ +
+ +
+ SiteView + +
+
+ +
+ +
+ SuccessResponse + +
+
+ +
+ +
+ Tagline + +
+
+ +
+ +
+ UnreadCountResponse + +
+
+ +
+ +
+
+ +
+

Enums

+
+
+ CommentSortType + +
+
+ +
+ +
+ CommunityVisibility + +
+
+ +
+ +
+ FederationMode + +
+
+ +
+ +
+ ListingType + +
+
+ +
+ +
+ PostListingMode + +
+
+ +
+ +
+ PostSortType + +
+
+ +
+ +
+ RegistrationMode + +
+
+ +
+ +
+ SubscribedType + +
+
+ +
+ +
+
+ + + + + + + + +
+ + +
+ + + + + + + + + diff --git a/doc/api/search.html b/doc/api/search.html new file mode 100644 index 00000000..471b6133 --- /dev/null +++ b/doc/api/search.html @@ -0,0 +1,85 @@ + + + + + + + + lemmy_api_client - Dart API docs + + + + + + + + + + + + + + +
+
+ menu + +
lemmy_api_client
+ +
+ +
+
+
+
+
+ + +
+ + + + + + + + + diff --git a/doc/api/static-assets/docs.dart.js b/doc/api/static-assets/docs.dart.js new file mode 100644 index 00000000..62e1c08f --- /dev/null +++ b/doc/api/static-assets/docs.dart.js @@ -0,0 +1,4656 @@ +(function dartProgram(){function copyProperties(a,b){var s=Object.keys(a) +for(var r=0;r=0)return true +if(typeof version=="function"&&version.length==0){var q=version() +if(/^\d+\.\d+\.\d+\.\d+$/.test(q))return true}}catch(p){}return false}() +function inherit(a,b){a.prototype.constructor=a +a.prototype["$i"+a.name]=a +if(b!=null){if(z){Object.setPrototypeOf(a.prototype,b.prototype) +return}var s=Object.create(b.prototype) +copyProperties(a.prototype,s) +a.prototype=s}}function inheritMany(a,b){for(var s=0;s4294967295)throw A.a(A.H(a,0,4294967295,"length",null)) +return J.hL(new Array(a),b)}, +hK(a,b){if(a<0)throw A.a(A.L("Length must be a non-negative integer: "+a,null)) +return A.h(new Array(a),b.i("o<0>"))}, +eR(a,b){if(a<0)throw A.a(A.L("Length must be a non-negative integer: "+a,null)) +return A.h(new Array(a),b.i("o<0>"))}, +hL(a,b){return J.eb(A.h(a,b.i("o<0>")))}, +eb(a){a.fixed$length=Array +return a}, +hM(a,b){return J.hm(a,b)}, +ak(a){if(typeof a=="number"){if(Math.floor(a)==a)return J.aL.prototype +return J.bE.prototype}if(typeof a=="string")return J.ad.prototype +if(a==null)return J.aM.prototype +if(typeof a=="boolean")return J.bD.prototype +if(Array.isArray(a))return J.o.prototype +if(typeof a!="object"){if(typeof a=="function")return J.a_.prototype +if(typeof a=="symbol")return J.aQ.prototype +if(typeof a=="bigint")return J.aO.prototype +return a}if(a instanceof A.k)return a +return J.eC(a)}, +cj(a){if(typeof a=="string")return J.ad.prototype +if(a==null)return a +if(Array.isArray(a))return J.o.prototype +if(typeof a!="object"){if(typeof a=="function")return J.a_.prototype +if(typeof a=="symbol")return J.aQ.prototype +if(typeof a=="bigint")return J.aO.prototype +return a}if(a instanceof A.k)return a +return J.eC(a)}, +dT(a){if(a==null)return a +if(Array.isArray(a))return J.o.prototype +if(typeof a!="object"){if(typeof a=="function")return J.a_.prototype +if(typeof a=="symbol")return J.aQ.prototype +if(typeof a=="bigint")return J.aO.prototype +return a}if(a instanceof A.k)return a +return J.eC(a)}, +jz(a){if(typeof a=="number")return J.aN.prototype +if(typeof a=="string")return J.ad.prototype +if(a==null)return a +if(!(a instanceof A.k))return J.ar.prototype +return a}, +F(a,b){if(a==null)return b==null +if(typeof a!="object")return b!=null&&a===b +return J.ak(a).E(a,b)}, +hj(a,b){if(typeof b==="number")if(Array.isArray(a)||typeof a=="string"||A.fX(a,a[v.dispatchPropertyName]))if(b>>>0===b&&b>>0===b&&b").b(a))return new A.b4(a,b.i("@<0>").B(c).i("b4<1,2>")) +return new A.ab(a,b.i("@<0>").B(c).i("ab<1,2>"))}, +dU(a){var s,r=a^48 +if(r<=9)return r +s=a|32 +if(97<=s&&s<=102)return s-87 +return-1}, +a2(a,b){a=a+b&536870911 +a=a+((a&524287)<<10)&536870911 +return a^a>>>6}, +ej(a){a=a+((a&67108863)<<3)&536870911 +a^=a>>>11 +return a+((a&16383)<<15)&536870911}, +ci(a,b,c){return a}, +eE(a){var s,r +for(s=$.al.length,r=0;r").B(d).i("aI<1,2>")) +return new A.af(a,b,c.i("@<0>").B(d).i("af<1,2>"))}, +hG(){return new A.b1("No element")}, +a3:function a3(){}, +bw:function bw(a,b){this.a=a +this.$ti=b}, +ab:function ab(a,b){this.a=a +this.$ti=b}, +b4:function b4(a,b){this.a=a +this.$ti=b}, +b3:function b3(){}, +M:function M(a,b){this.a=a +this.$ti=b}, +aR:function aR(a){this.a=a}, +bx:function bx(a){this.a=a}, +cL:function cL(){}, +c:function c(){}, +J:function J(){}, +an:function an(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.d=null +_.$ti=c}, +af:function af(a,b,c){this.a=a +this.b=b +this.$ti=c}, +aI:function aI(a,b,c){this.a=a +this.b=b +this.$ti=c}, +ao:function ao(a,b,c){var _=this +_.a=null +_.b=a +_.c=b +_.$ti=c}, +ag:function ag(a,b,c){this.a=a +this.b=b +this.$ti=c}, +aK:function aK(){}, +bW:function bW(){}, +as:function as(){}, +bk:function bk(){}, +hx(){throw A.a(A.ai("Cannot modify unmodifiable Map"))}, +h1(a){var s=v.mangledGlobalNames[a] +if(s!=null)return s +return"minified:"+a}, +fX(a,b){var s +if(b!=null){s=b.x +if(s!=null)return s}return t.p.b(a)}, +i(a){var s +if(typeof a=="string")return a +if(typeof a=="number"){if(a!==0)return""+a}else if(!0===a)return"true" +else if(!1===a)return"false" +else if(a==null)return"null" +s=J.am(a) +return s}, +bS(a){var s,r=$.eW +if(r==null)r=$.eW=Symbol("identityHashCode") +s=a[r] +if(s==null){s=Math.random()*0x3fffffff|0 +a[r]=s}return s}, +eX(a,b){var s,r,q,p,o,n=null,m=/^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(a) +if(m==null)return n +s=m[3] +if(b==null){if(s!=null)return parseInt(a,10) +if(m[2]!=null)return parseInt(a,16) +return n}if(b<2||b>36)throw A.a(A.H(b,2,36,"radix",n)) +if(b===10&&s!=null)return parseInt(a,10) +if(b<10||s==null){r=b<=10?47+b:86+b +q=m[1] +for(p=q.length,o=0;or)return n}return parseInt(a,b)}, +cK(a){return A.hT(a)}, +hT(a){var s,r,q,p +if(a instanceof A.k)return A.C(A.aB(a),null) +s=J.ak(a) +if(s===B.E||s===B.G||t.o.b(a)){r=B.l(a) +if(r!=="Object"&&r!=="")return r +q=a.constructor +if(typeof q=="function"){p=q.name +if(typeof p=="string"&&p!=="Object"&&p!=="")return p}}return A.C(A.aB(a),null)}, +eY(a){if(a==null||typeof a=="number"||A.ev(a))return J.am(a) +if(typeof a=="string")return JSON.stringify(a) +if(a instanceof A.ac)return a.h(0) +if(a instanceof A.ba)return a.aG(!0) +return"Instance of '"+A.cK(a)+"'"}, +hV(a,b,c){var s,r,q,p +if(c<=500&&b===0&&c===a.length)return String.fromCharCode.apply(null,a) +for(s=b,r="";s>>0,s&1023|56320)}}throw A.a(A.H(a,0,1114111,null,null))}, +hU(a){var s=a.$thrownJsError +if(s==null)return null +return A.a8(s)}, +eB(a,b){var s,r="index" +if(!A.fH(b))return new A.G(!0,b,r,null) +s=J.bs(a) +if(b<0||b>=s)return A.e9(b,s,a,r) +return A.hW(b,r)}, +jw(a,b,c){if(a>c)return A.H(a,0,c,"start",null) +if(b!=null)if(bc)return A.H(b,a,c,"end",null) +return new A.G(!0,b,"end",null)}, +jp(a){return new A.G(!0,a,null,null)}, +a(a){return A.fW(new Error(),a)}, +fW(a,b){var s +if(b==null)b=new A.Q() +a.dartException=b +s=A.jW +if("defineProperty" in Object){Object.defineProperty(a,"message",{get:s}) +a.name=""}else a.toString=s +return a}, +jW(){return J.am(this.dartException)}, +ck(a){throw A.a(a)}, +h0(a,b){throw A.fW(b,a)}, +eG(a){throw A.a(A.aD(a))}, +R(a){var s,r,q,p,o,n +a=A.jQ(a.replace(String({}),"$receiver$")) +s=a.match(/\\\$[a-zA-Z]+\\\$/g) +if(s==null)s=A.h([],t.s) +r=s.indexOf("\\$arguments\\$") +q=s.indexOf("\\$argumentsExpr\\$") +p=s.indexOf("\\$expr\\$") +o=s.indexOf("\\$method\\$") +n=s.indexOf("\\$receiver\\$") +return new A.cO(a.replace(new RegExp("\\\\\\$arguments\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$","g"),"((?:x|[^x])*)"),r,q,p,o,n)}, +cP(a){return function($expr$){var $argumentsExpr$="$arguments$" +try{$expr$.$method$($argumentsExpr$)}catch(s){return s.message}}(a)}, +f5(a){return function($expr$){try{$expr$.$method$}catch(s){return s.message}}(a)}, +ed(a,b){var s=b==null,r=s?null:b.method +return new A.bF(a,r,s?null:b.receiver)}, +aa(a){if(a==null)return new A.cJ(a) +if(a instanceof A.aJ)return A.a9(a,a.a) +if(typeof a!=="object")return a +if("dartException" in a)return A.a9(a,a.dartException) +return A.jo(a)}, +a9(a,b){if(t.Q.b(b))if(b.$thrownJsError==null)b.$thrownJsError=a +return b}, +jo(a){var s,r,q,p,o,n,m,l,k,j,i,h,g +if(!("message" in a))return a +s=a.message +if("number" in a&&typeof a.number=="number"){r=a.number +q=r&65535 +if((B.b.W(r,16)&8191)===10)switch(q){case 438:return A.a9(a,A.ed(A.i(s)+" (Error "+q+")",null)) +case 445:case 5007:A.i(s) +return A.a9(a,new A.aY())}}if(a instanceof TypeError){p=$.h2() +o=$.h3() +n=$.h4() +m=$.h5() +l=$.h8() +k=$.h9() +j=$.h7() +$.h6() +i=$.hb() +h=$.ha() +g=p.D(s) +if(g!=null)return A.a9(a,A.ed(s,g)) +else{g=o.D(s) +if(g!=null){g.method="call" +return A.a9(a,A.ed(s,g))}else if(n.D(s)!=null||m.D(s)!=null||l.D(s)!=null||k.D(s)!=null||j.D(s)!=null||m.D(s)!=null||i.D(s)!=null||h.D(s)!=null)return A.a9(a,new A.aY())}return A.a9(a,new A.bV(typeof s=="string"?s:""))}if(a instanceof RangeError){if(typeof s=="string"&&s.indexOf("call stack")!==-1)return new A.b0() +s=function(b){try{return String(b)}catch(f){}return null}(a) +return A.a9(a,new A.G(!1,null,null,typeof s=="string"?s.replace(/^RangeError:\s*/,""):s))}if(typeof InternalError=="function"&&a instanceof InternalError)if(typeof s=="string"&&s==="too much recursion")return new A.b0() +return a}, +a8(a){var s +if(a instanceof A.aJ)return a.b +if(a==null)return new A.bb(a) +s=a.$cachedTrace +if(s!=null)return s +s=new A.bb(a) +if(typeof a==="object")a.$cachedTrace=s +return s}, +fY(a){if(a==null)return J.W(a) +if(typeof a=="object")return A.bS(a) +return J.W(a)}, +jy(a,b){var s,r,q,p=a.length +for(s=0;s=0}, +jQ(a){if(/[[\]{}()*+?.\\^$|]/.test(a))return a.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&") +return a}, +fP(a){return a}, +jU(a,b,c,d){var s,r,q,p=new A.cY(b,a,0),o=t.F,n=0,m="" +for(;p.m();){s=p.d +if(s==null)s=o.a(s) +r=s.b +q=r.index +m=m+A.i(A.fP(B.a.j(a,n,q)))+A.i(c.$1(s)) +n=q+r[0].length}p=m+A.i(A.fP(B.a.J(a,n))) +return p.charCodeAt(0)==0?p:p}, +cb:function cb(a,b){this.a=a +this.b=b}, +aE:function aE(){}, +aG:function aG(a,b,c){this.a=a +this.b=b +this.$ti=c}, +c8:function c8(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.d=null +_.$ti=c}, +aF:function aF(){}, +aH:function aH(a,b,c){this.a=a +this.b=b +this.$ti=c}, +cO:function cO(a,b,c,d,e,f){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f}, +aY:function aY(){}, +bF:function bF(a,b,c){this.a=a +this.b=b +this.c=c}, +bV:function bV(a){this.a=a}, +cJ:function cJ(a){this.a=a}, +aJ:function aJ(a,b){this.a=a +this.b=b}, +bb:function bb(a){this.a=a +this.b=null}, +ac:function ac(){}, +co:function co(){}, +cp:function cp(){}, +cN:function cN(){}, +cM:function cM(){}, +aC:function aC(a,b){this.a=a +this.b=b}, +c2:function c2(a){this.a=a}, +bT:function bT(a){this.a=a}, +ae:function ae(a){var _=this +_.a=0 +_.f=_.e=_.d=_.c=_.b=null +_.r=0 +_.$ti=a}, +cC:function cC(a){this.a=a}, +cF:function cF(a,b){this.a=a +this.b=b +this.c=null}, +N:function N(a,b){this.a=a +this.$ti=b}, +bG:function bG(a,b){var _=this +_.a=a +_.b=b +_.d=_.c=null}, +dV:function dV(a){this.a=a}, +dW:function dW(a){this.a=a}, +dX:function dX(a){this.a=a}, +ba:function ba(){}, +ca:function ca(){}, +cA:function cA(a,b){var _=this +_.a=a +_.b=b +_.d=_.c=null}, +c9:function c9(a){this.b=a}, +cY:function cY(a,b,c){var _=this +_.a=a +_.b=b +_.c=c +_.d=null}, +iR(a){return a}, +hQ(a){return new Int8Array(a)}, +hR(a){return new Uint8Array(a)}, +T(a,b,c){if(a>>>0!==a||a>=c)throw A.a(A.eB(b,a))}, +iO(a,b,c){var s +if(!(a>>>0!==a))s=b>>>0!==b||a>b||b>c +else s=!0 +if(s)throw A.a(A.jw(a,b,c)) +return b}, +bH:function bH(){}, +aV:function aV(){}, +bI:function bI(){}, +ap:function ap(){}, +aT:function aT(){}, +aU:function aU(){}, +bJ:function bJ(){}, +bK:function bK(){}, +bL:function bL(){}, +bM:function bM(){}, +bN:function bN(){}, +bO:function bO(){}, +bP:function bP(){}, +aW:function aW(){}, +aX:function aX(){}, +b6:function b6(){}, +b7:function b7(){}, +b8:function b8(){}, +b9:function b9(){}, +f_(a,b){var s=b.c +return s==null?b.c=A.en(a,b.x,!0):s}, +ei(a,b){var s=b.c +return s==null?b.c=A.be(a,"Z",[b.x]):s}, +f0(a){var s=a.w +if(s===6||s===7||s===8)return A.f0(a.x) +return s===12||s===13}, +hX(a){return a.as}, +bo(a){return A.cf(v.typeUniverse,a,!1)}, +a7(a1,a2,a3,a4){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0=a2.w +switch(a0){case 5:case 1:case 2:case 3:case 4:return a2 +case 6:s=a2.x +r=A.a7(a1,s,a3,a4) +if(r===s)return a2 +return A.fk(a1,r,!0) +case 7:s=a2.x +r=A.a7(a1,s,a3,a4) +if(r===s)return a2 +return A.en(a1,r,!0) +case 8:s=a2.x +r=A.a7(a1,s,a3,a4) +if(r===s)return a2 +return A.fi(a1,r,!0) +case 9:q=a2.y +p=A.ay(a1,q,a3,a4) +if(p===q)return a2 +return A.be(a1,a2.x,p) +case 10:o=a2.x +n=A.a7(a1,o,a3,a4) +m=a2.y +l=A.ay(a1,m,a3,a4) +if(n===o&&l===m)return a2 +return A.el(a1,n,l) +case 11:k=a2.x +j=a2.y +i=A.ay(a1,j,a3,a4) +if(i===j)return a2 +return A.fj(a1,k,i) +case 12:h=a2.x +g=A.a7(a1,h,a3,a4) +f=a2.y +e=A.jl(a1,f,a3,a4) +if(g===h&&e===f)return a2 +return A.fh(a1,g,e) +case 13:d=a2.y +a4+=d.length +c=A.ay(a1,d,a3,a4) +o=a2.x +n=A.a7(a1,o,a3,a4) +if(c===d&&n===o)return a2 +return A.em(a1,n,c,!0) +case 14:b=a2.x +if(b") +for(r=1;r=0)p+=" "+r[q];++q}return p+"})"}, +fF(a3,a4,a5){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1=", ",a2=null +if(a5!=null){s=a5.length +if(a4==null)a4=A.h([],t.s) +else a2=a4.length +r=a4.length +for(q=s;q>0;--q)a4.push("T"+(r+q)) +for(p=t.X,o=t._,n="<",m="",q=0;q0){a+=a0+"[" +for(a0="",q=0;q0){a+=a0+"{" +for(a0="",q=0;q "+b}, +C(a,b){var s,r,q,p,o,n,m=a.w +if(m===5)return"erased" +if(m===2)return"dynamic" +if(m===3)return"void" +if(m===1)return"Never" +if(m===4)return"any" +if(m===6)return A.C(a.x,b) +if(m===7){s=a.x +r=A.C(s,b) +q=s.w +return(q===12||q===13?"("+r+")":r)+"?"}if(m===8)return"FutureOr<"+A.C(a.x,b)+">" +if(m===9){p=A.jn(a.x) +o=a.y +return o.length>0?p+("<"+A.fM(o,b)+">"):p}if(m===11)return A.jf(a,b) +if(m===12)return A.fF(a,b,null) +if(m===13)return A.fF(a.x,b,a.y) +if(m===14){n=a.x +return b[b.length-1-n]}return"?"}, +jn(a){var s=v.mangledGlobalNames[a] +if(s!=null)return s +return"minified:"+a}, +iq(a,b){var s=a.tR[b] +for(;typeof s=="string";)s=a.tR[s] +return s}, +ip(a,b){var s,r,q,p,o,n=a.eT,m=n[b] +if(m==null)return A.cf(a,b,!1) +else if(typeof m=="number"){s=m +r=A.bf(a,5,"#") +q=A.dB(s) +for(p=0;p0)p+="<"+A.bd(c)+">" +s=a.eC.get(p) +if(s!=null)return s +r=new A.I(null,null) +r.w=9 +r.x=b +r.y=c +if(c.length>0)r.c=c[0] +r.as=p +q=A.S(a,r) +a.eC.set(p,q) +return q}, +el(a,b,c){var s,r,q,p,o,n +if(b.w===10){s=b.x +r=b.y.concat(c)}else{r=c +s=b}q=s.as+(";<"+A.bd(r)+">") +p=a.eC.get(q) +if(p!=null)return p +o=new A.I(null,null) +o.w=10 +o.x=s +o.y=r +o.as=q +n=A.S(a,o) +a.eC.set(q,n) +return n}, +fj(a,b,c){var s,r,q="+"+(b+"("+A.bd(c)+")"),p=a.eC.get(q) +if(p!=null)return p +s=new A.I(null,null) +s.w=11 +s.x=b +s.y=c +s.as=q +r=A.S(a,s) +a.eC.set(q,r) +return r}, +fh(a,b,c){var s,r,q,p,o,n=b.as,m=c.a,l=m.length,k=c.b,j=k.length,i=c.c,h=i.length,g="("+A.bd(m) +if(j>0){s=l>0?",":"" +g+=s+"["+A.bd(k)+"]"}if(h>0){s=l>0?",":"" +g+=s+"{"+A.ig(i)+"}"}r=n+(g+")") +q=a.eC.get(r) +if(q!=null)return q +p=new A.I(null,null) +p.w=12 +p.x=b +p.y=c +p.as=r +o=A.S(a,p) +a.eC.set(r,o) +return o}, +em(a,b,c,d){var s,r=b.as+("<"+A.bd(c)+">"),q=a.eC.get(r) +if(q!=null)return q +s=A.ii(a,b,c,r,d) +a.eC.set(r,s) +return s}, +ii(a,b,c,d,e){var s,r,q,p,o,n,m,l +if(e){s=c.length +r=A.dB(s) +for(q=0,p=0;p0){n=A.a7(a,b,r,0) +m=A.ay(a,c,r,0) +return A.em(a,n,m,c!==m)}}l=new A.I(null,null) +l.w=13 +l.x=b +l.y=c +l.as=d +return A.S(a,l)}, +fd(a,b,c,d){return{u:a,e:b,r:c,s:[],p:0,n:d}}, +ff(a){var s,r,q,p,o,n,m,l=a.r,k=a.s +for(s=l.length,r=0;r=48&&q<=57)r=A.i8(r+1,q,l,k) +else if((((q|32)>>>0)-97&65535)<26||q===95||q===36||q===124)r=A.fe(a,r,l,k,!1) +else if(q===46)r=A.fe(a,r,l,k,!0) +else{++r +switch(q){case 44:break +case 58:k.push(!1) +break +case 33:k.push(!0) +break +case 59:k.push(A.a4(a.u,a.e,k.pop())) +break +case 94:k.push(A.il(a.u,k.pop())) +break +case 35:k.push(A.bf(a.u,5,"#")) +break +case 64:k.push(A.bf(a.u,2,"@")) +break +case 126:k.push(A.bf(a.u,3,"~")) +break +case 60:k.push(a.p) +a.p=k.length +break +case 62:A.ia(a,k) +break +case 38:A.i9(a,k) +break +case 42:p=a.u +k.push(A.fk(p,A.a4(p,a.e,k.pop()),a.n)) +break +case 63:p=a.u +k.push(A.en(p,A.a4(p,a.e,k.pop()),a.n)) +break +case 47:p=a.u +k.push(A.fi(p,A.a4(p,a.e,k.pop()),a.n)) +break +case 40:k.push(-3) +k.push(a.p) +a.p=k.length +break +case 41:A.i7(a,k) +break +case 91:k.push(a.p) +a.p=k.length +break +case 93:o=k.splice(a.p) +A.fg(a.u,a.e,o) +a.p=k.pop() +k.push(o) +k.push(-1) +break +case 123:k.push(a.p) +a.p=k.length +break +case 125:o=k.splice(a.p) +A.ic(a.u,a.e,o) +a.p=k.pop() +k.push(o) +k.push(-2) +break +case 43:n=l.indexOf("(",r) +k.push(l.substring(r,n)) +k.push(-4) +k.push(a.p) +a.p=k.length +r=n+1 +break +default:throw"Bad character "+q}}}m=k.pop() +return A.a4(a.u,a.e,m)}, +i8(a,b,c,d){var s,r,q=b-48 +for(s=c.length;a=48&&r<=57))break +q=q*10+(r-48)}d.push(q) +return a}, +fe(a,b,c,d,e){var s,r,q,p,o,n,m=b+1 +for(s=c.length;m>>0)-97&65535)<26||r===95||r===36||r===124))q=r>=48&&r<=57 +else q=!0 +if(!q)break}}p=c.substring(b,m) +if(e){s=a.u +o=a.e +if(o.w===10)o=o.x +n=A.iq(s,o.x)[p] +if(n==null)A.ck('No "'+p+'" in "'+A.hX(o)+'"') +d.push(A.bg(s,o,n))}else d.push(p) +return m}, +ia(a,b){var s,r=a.u,q=A.fc(a,b),p=b.pop() +if(typeof p=="string")b.push(A.be(r,p,q)) +else{s=A.a4(r,a.e,p) +switch(s.w){case 12:b.push(A.em(r,s,q,a.n)) +break +default:b.push(A.el(r,s,q)) +break}}}, +i7(a,b){var s,r,q,p=a.u,o=b.pop(),n=null,m=null +if(typeof o=="number")switch(o){case-1:n=b.pop() +break +case-2:m=b.pop() +break +default:b.push(o) +break}else b.push(o) +s=A.fc(a,b) +o=b.pop() +switch(o){case-3:o=b.pop() +if(n==null)n=p.sEA +if(m==null)m=p.sEA +r=A.a4(p,a.e,o) +q=new A.c5() +q.a=s +q.b=n +q.c=m +b.push(A.fh(p,r,q)) +return +case-4:b.push(A.fj(p,b.pop(),s)) +return +default:throw A.a(A.bu("Unexpected state under `()`: "+A.i(o)))}}, +i9(a,b){var s=b.pop() +if(0===s){b.push(A.bf(a.u,1,"0&")) +return}if(1===s){b.push(A.bf(a.u,4,"1&")) +return}throw A.a(A.bu("Unexpected extended operation "+A.i(s)))}, +fc(a,b){var s=b.splice(a.p) +A.fg(a.u,a.e,s) +a.p=b.pop() +return s}, +a4(a,b,c){if(typeof c=="string")return A.be(a,c,a.sEA) +else if(typeof c=="number"){b.toString +return A.ib(a,b,c)}else return c}, +fg(a,b,c){var s,r=c.length +for(s=0;sn)return!1 +m=n-o +l=s.b +k=r.b +j=l.length +i=k.length +if(o+j=d)return!1 +a1=f[b] +b+=3 +if(a00?new Array(q):v.typeUniverse.sEA +for(o=0;o0?new Array(a):v.typeUniverse.sEA}, +I:function I(a,b){var _=this +_.a=a +_.b=b +_.r=_.f=_.d=_.c=null +_.w=0 +_.as=_.Q=_.z=_.y=_.x=null}, +c5:function c5(){this.c=this.b=this.a=null}, +dt:function dt(a){this.a=a}, +c4:function c4(){}, +bc:function bc(a){this.a=a}, +i2(){var s,r,q={} +if(self.scheduleImmediate!=null)return A.jq() +if(self.MutationObserver!=null&&self.document!=null){s=self.document.createElement("div") +r=self.document.createElement("span") +q.a=null +new self.MutationObserver(A.aA(new A.d_(q),1)).observe(s,{childList:true}) +return new A.cZ(q,s,r)}else if(self.setImmediate!=null)return A.jr() +return A.js()}, +i3(a){self.scheduleImmediate(A.aA(new A.d0(a),0))}, +i4(a){self.setImmediate(A.aA(new A.d1(a),0))}, +i5(a){A.id(0,a)}, +id(a,b){var s=new A.dr() +s.bc(a,b) +return s}, +fK(a){return new A.c_(new A.v($.r,a.i("v<0>")),a.i("c_<0>"))}, +fC(a,b){a.$2(0,null) +b.b=!0 +return b.a}, +fz(a,b){A.iM(a,b)}, +fB(a,b){b.ae(a)}, +fA(a,b){b.af(A.aa(a),A.a8(a))}, +iM(a,b){var s,r,q=new A.dD(b),p=new A.dE(b) +if(a instanceof A.v)a.aF(q,p,t.z) +else{s=t.z +if(a instanceof A.v)a.ar(q,p,s) +else{r=new A.v($.r,t.e) +r.a=8 +r.c=a +r.aF(q,p,s)}}}, +fR(a){var s=function(b,c){return function(d,e){while(true){try{b(d,e) +break}catch(r){e=r +d=c}}}}(a,1) +return $.r.aZ(new A.dR(s))}, +cl(a,b){var s=A.ci(a,"error",t.K) +return new A.bv(s,b==null?A.eK(a):b)}, +eK(a){var s +if(t.Q.b(a)){s=a.gS() +if(s!=null)return s}return B.D}, +fb(a,b){var s,r +for(;s=a.a,(s&4)!==0;)a=a.c +if(a===b){b.T(new A.G(!0,a,null,"Cannot complete a future with itself"),A.f1()) +return}s|=b.a&1 +a.a=s +if((s&24)!==0){r=b.ac() +b.U(a) +A.b5(b,r)}else{r=b.c +b.aD(a) +a.ab(r)}}, +i6(a,b){var s,r,q={},p=q.a=a +for(;s=p.a,(s&4)!==0;){p=p.c +q.a=p}if(p===b){b.T(new A.G(!0,p,null,"Cannot complete a future with itself"),A.f1()) +return}if((s&24)===0){r=b.c +b.aD(p) +q.a.ab(r) +return}if((s&16)===0&&b.c==null){b.U(p) +return}b.a^=2 +A.ax(null,null,b.b,new A.d7(q,b))}, +b5(a,b){var s,r,q,p,o,n,m,l,k,j,i,h,g={},f=g.a=a +for(;!0;){s={} +r=f.a +q=(r&16)===0 +p=!q +if(b==null){if(p&&(r&1)===0){f=f.c +A.ex(f.a,f.b)}return}s.a=b +o=b.a +for(f=b;o!=null;f=o,o=n){f.a=null +A.b5(g.a,f) +s.a=o +n=o.a}r=g.a +m=r.c +s.b=p +s.c=m +if(q){l=f.c +l=(l&1)!==0||(l&15)===8}else l=!0 +if(l){k=f.b.b +if(p){r=r.b===k +r=!(r||r)}else r=!1 +if(r){A.ex(m.a,m.b) +return}j=$.r +if(j!==k)$.r=k +else j=null +f=f.c +if((f&15)===8)new A.de(s,g,p).$0() +else if(q){if((f&1)!==0)new A.dd(s,m).$0()}else if((f&2)!==0)new A.dc(g,s).$0() +if(j!=null)$.r=j +f=s.c +if(f instanceof A.v){r=s.a.$ti +r=r.i("Z<2>").b(f)||!r.y[1].b(f)}else r=!1 +if(r){i=s.a.b +if((f.a&24)!==0){h=i.c +i.c=null +b=i.V(h) +i.a=f.a&30|i.a&1 +i.c=f.c +g.a=f +continue}else A.fb(f,i) +return}}i=s.a.b +h=i.c +i.c=null +b=i.V(h) +f=s.b +r=s.c +if(!f){i.a=8 +i.c=r}else{i.a=i.a&1|16 +i.c=r}g.a=i +f=i}}, +jg(a,b){if(t.C.b(a))return b.aZ(a) +if(t.v.b(a))return a +throw A.a(A.eJ(a,"onError",u.c))}, +jd(){var s,r +for(s=$.aw;s!=null;s=$.aw){$.bn=null +r=s.b +$.aw=r +if(r==null)$.bm=null +s.a.$0()}}, +jk(){$.ew=!0 +try{A.jd()}finally{$.bn=null +$.ew=!1 +if($.aw!=null)$.eI().$1(A.fT())}}, +fO(a){var s=new A.c0(a),r=$.bm +if(r==null){$.aw=$.bm=s +if(!$.ew)$.eI().$1(A.fT())}else $.bm=r.b=s}, +jj(a){var s,r,q,p=$.aw +if(p==null){A.fO(a) +$.bn=$.bm +return}s=new A.c0(a) +r=$.bn +if(r==null){s.b=p +$.aw=$.bn=s}else{q=r.b +s.b=q +$.bn=r.b=s +if(q==null)$.bm=s}}, +jR(a){var s=null,r=$.r +if(B.d===r){A.ax(s,s,B.d,a) +return}A.ax(s,s,r,r.aH(a))}, +k1(a){A.ci(a,"stream",t.K) +return new A.cd()}, +ex(a,b){A.jj(new A.dP(a,b))}, +fL(a,b,c,d){var s,r=$.r +if(r===c)return d.$0() +$.r=c +s=r +try{r=d.$0() +return r}finally{$.r=s}}, +ji(a,b,c,d,e){var s,r=$.r +if(r===c)return d.$1(e) +$.r=c +s=r +try{r=d.$1(e) +return r}finally{$.r=s}}, +jh(a,b,c,d,e,f){var s,r=$.r +if(r===c)return d.$2(e,f) +$.r=c +s=r +try{r=d.$2(e,f) +return r}finally{$.r=s}}, +ax(a,b,c,d){if(B.d!==c)d=c.aH(d) +A.fO(d)}, +d_:function d_(a){this.a=a}, +cZ:function cZ(a,b,c){this.a=a +this.b=b +this.c=c}, +d0:function d0(a){this.a=a}, +d1:function d1(a){this.a=a}, +dr:function dr(){}, +ds:function ds(a,b){this.a=a +this.b=b}, +c_:function c_(a,b){this.a=a +this.b=!1 +this.$ti=b}, +dD:function dD(a){this.a=a}, +dE:function dE(a){this.a=a}, +dR:function dR(a){this.a=a}, +bv:function bv(a,b){this.a=a +this.b=b}, +c1:function c1(){}, +b2:function b2(a,b){this.a=a +this.$ti=b}, +au:function au(a,b,c,d,e){var _=this +_.a=null +_.b=a +_.c=b +_.d=c +_.e=d +_.$ti=e}, +v:function v(a,b){var _=this +_.a=0 +_.b=a +_.c=null +_.$ti=b}, +d4:function d4(a,b){this.a=a +this.b=b}, +db:function db(a,b){this.a=a +this.b=b}, +d8:function d8(a){this.a=a}, +d9:function d9(a){this.a=a}, +da:function da(a,b,c){this.a=a +this.b=b +this.c=c}, +d7:function d7(a,b){this.a=a +this.b=b}, +d6:function d6(a,b){this.a=a +this.b=b}, +d5:function d5(a,b,c){this.a=a +this.b=b +this.c=c}, +de:function de(a,b,c){this.a=a +this.b=b +this.c=c}, +df:function df(a){this.a=a}, +dd:function dd(a,b){this.a=a +this.b=b}, +dc:function dc(a,b){this.a=a +this.b=b}, +c0:function c0(a){this.a=a +this.b=null}, +cd:function cd(){}, +dC:function dC(){}, +dP:function dP(a,b){this.a=a +this.b=b}, +di:function di(){}, +dj:function dj(a,b){this.a=a +this.b=b}, +eT(a,b,c){return A.jy(a,new A.ae(b.i("@<0>").B(c).i("ae<1,2>")))}, +ee(a,b){return new A.ae(a.i("@<0>").B(b).i("ae<1,2>"))}, +hH(a){var s,r=A.a5(a),q=new J.Y(a,a.length,r.i("Y<1>")) +if(q.m()){s=q.d +return s==null?r.c.a(s):s}return null}, +ef(a){var s,r={} +if(A.eE(a))return"{...}" +s=new A.z("") +try{$.al.push(a) +s.a+="{" +r.a=!0 +a.F(0,new A.cG(r,s)) +s.a+="}"}finally{$.al.pop()}r=s.a +return r.charCodeAt(0)==0?r:r}, +e:function e(){}, +O:function O(){}, +cG:function cG(a,b){this.a=a +this.b=b}, +cg:function cg(){}, +aS:function aS(){}, +at:function at(a,b){this.a=a +this.$ti=b}, +aq:function aq(){}, +bh:function bh(){}, +je(a,b){var s,r,q,p=null +try{p=JSON.parse(a)}catch(r){s=A.aa(r) +q=A.x(String(s),null,null) +throw A.a(q)}q=A.dF(p) +return q}, +dF(a){var s +if(a==null)return null +if(typeof a!="object")return a +if(!Array.isArray(a))return new A.c6(a,Object.create(null)) +for(s=0;s")) +for(s=J.X(a);s.m();)r.push(s.gn()) +if(b)return r +return J.eb(r)}, +eV(a,b,c){var s=A.hN(a,c) +return s}, +hN(a,b){var s,r +if(Array.isArray(a))return A.h(a.slice(0),b.i("o<0>")) +s=A.h([],b.i("o<0>")) +for(r=J.X(a);r.m();)s.push(r.gn()) +return s}, +f4(a,b,c){var s,r +A.eg(b,"start") +if(c!=null){s=c-b +if(s<0)throw A.a(A.H(c,b,null,"end",null)) +if(s===0)return""}r=A.hY(a,b,c) +return r}, +hY(a,b,c){var s=a.length +if(b>=s)return"" +return A.hV(a,b,c==null||c>s?s:c)}, +eZ(a,b){return new A.cA(a,A.eS(a,!1,b,!1,!1,!1))}, +f3(a,b,c){var s=J.X(b) +if(!s.m())return a +if(c.length===0){do a+=A.i(s.gn()) +while(s.m())}else{a+=A.i(s.gn()) +for(;s.m();)a=a+c+A.i(s.gn())}return a}, +fs(a,b,c,d){var s,r,q,p,o,n="0123456789ABCDEF" +if(c===B.e){s=$.hd() +s=s.b.test(b)}else s=!1 +if(s)return b +r=B.C.H(b) +for(s=r.length,q=0,p="";q>>4]&1<<(o&15))!==0)p+=A.P(o) +else p=d&&o===32?p+"+":p+"%"+n[o>>>4&15]+n[o&15]}return p.charCodeAt(0)==0?p:p}, +iy(a){var s,r,q +if(!$.he())return A.iz(a) +s=new URLSearchParams() +a.F(0,new A.dw(s)) +r=s.toString() +q=r.length +if(q>0&&r[q-1]==="=")r=B.a.j(r,0,q-1) +return r.replace(/=&|\*|%7E/g,b=>b==="=&"?"&":b==="*"?"%2A":"~")}, +f1(){return A.a8(new Error())}, +cs(a){if(typeof a=="number"||A.ev(a)||a==null)return J.am(a) +if(typeof a=="string")return JSON.stringify(a) +return A.eY(a)}, +hz(a,b){A.ci(a,"error",t.K) +A.ci(b,"stackTrace",t.l) +A.hy(a,b)}, +bu(a){return new A.bt(a)}, +L(a,b){return new A.G(!1,null,b,a)}, +eJ(a,b,c){return new A.G(!0,a,b,c)}, +hW(a,b){return new A.aZ(null,null,!0,a,b,"Value not in range")}, +H(a,b,c,d,e){return new A.aZ(b,c,!0,a,d,"Invalid value")}, +b_(a,b,c){if(0>a||a>c)throw A.a(A.H(a,0,c,"start",null)) +if(b!=null){if(a>b||b>c)throw A.a(A.H(b,a,c,"end",null)) +return b}return c}, +eg(a,b){if(a<0)throw A.a(A.H(a,0,null,b,null)) +return a}, +e9(a,b,c,d){return new A.bB(b,!0,a,d,"Index out of range")}, +ai(a){return new A.bX(a)}, +f6(a){return new A.bU(a)}, +f2(a){return new A.b1(a)}, +aD(a){return new A.bz(a)}, +x(a,b,c){return new A.ct(a,b,c)}, +hI(a,b,c){var s,r +if(A.eE(a)){if(b==="("&&c===")")return"(...)" +return b+"..."+c}s=A.h([],t.s) +$.al.push(a) +try{A.jb(a,s)}finally{$.al.pop()}r=A.f3(b,s,", ")+c +return r.charCodeAt(0)==0?r:r}, +ea(a,b,c){var s,r +if(A.eE(a))return b+"..."+c +s=new A.z(b) +$.al.push(a) +try{r=s +r.a=A.f3(r.a,a,", ")}finally{$.al.pop()}s.a+=c +r=s.a +return r.charCodeAt(0)==0?r:r}, +jb(a,b){var s,r,q,p,o,n,m,l=a.gA(a),k=0,j=0 +while(!0){if(!(k<80||j<3))break +if(!l.m())return +s=A.i(l.gn()) +b.push(s) +k+=s.length+2;++j}if(!l.m()){if(j<=5)return +r=b.pop() +q=b.pop()}else{p=l.gn();++j +if(!l.m()){if(j<=4){b.push(A.i(p)) +return}r=A.i(p) +q=b.pop() +k+=r.length+2}else{o=l.gn();++j +for(;l.m();p=o,o=n){n=l.gn();++j +if(j>100){while(!0){if(!(k>75&&j>3))break +k-=b.pop().length+2;--j}b.push("...") +return}}q=A.i(p) +r=A.i(o) +k+=r.length+q.length+4}}if(j>b.length+2){k+=5 +m="..."}else m=null +while(!0){if(!(k>80&&b.length>3))break +k-=b.pop().length+2 +if(m==null){k+=5 +m="..."}}if(m!=null)b.push(m) +b.push(q) +b.push(r)}, +hS(a,b,c,d){var s +if(B.i===c){s=B.b.gp(a) +b=J.W(b) +return A.ej(A.a2(A.a2($.e7(),s),b))}if(B.i===d){s=B.b.gp(a) +b=J.W(b) +c=J.W(c) +return A.ej(A.a2(A.a2(A.a2($.e7(),s),b),c))}s=B.b.gp(a) +b=J.W(b) +c=J.W(c) +d=J.W(d) +d=A.ej(A.a2(A.a2(A.a2(A.a2($.e7(),s),b),c),d)) +return d}, +bZ(a5){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1,a2,a3=null,a4=a5.length +if(a4>=5){s=((a5.charCodeAt(4)^58)*3|a5.charCodeAt(0)^100|a5.charCodeAt(1)^97|a5.charCodeAt(2)^116|a5.charCodeAt(3)^97)>>>0 +if(s===0)return A.f7(a4=14)r[7]=a4 +q=r[1] +if(q>=0)if(A.fN(a5,0,q,20,r)===20)r[7]=q +p=r[2]+1 +o=r[3] +n=r[4] +m=r[5] +l=r[6] +if(lq+3)){i=o>0 +if(!(i&&o+1===n)){if(!B.a.v(a5,"\\",n))if(p>0)h=B.a.v(a5,"\\",p-1)||B.a.v(a5,"\\",p-2) +else h=!1 +else h=!0 +if(!h){if(!(mn+2&&B.a.v(a5,"/..",m-3) +else h=!0 +if(!h)if(q===4){if(B.a.v(a5,"file",0)){if(p<=0){if(!B.a.v(a5,"/",n)){g="file:///" +s=3}else{g="file://" +s=2}a5=g+B.a.j(a5,n,a4) +m+=s +l+=s +a4=a5.length +p=7 +o=7 +n=7}else if(n===m){++l +f=m+1 +a5=B.a.I(a5,n,m,"/");++a4 +m=f}j="file"}else if(B.a.v(a5,"http",0)){if(i&&o+3===n&&B.a.v(a5,"80",o+1)){l-=3 +e=n-3 +m-=3 +a5=B.a.I(a5,o,n,"") +a4-=3 +n=e}j="http"}}else if(q===5&&B.a.v(a5,"https",0)){if(i&&o+4===n&&B.a.v(a5,"443",o+1)){l-=4 +e=n-4 +m-=4 +a5=B.a.I(a5,o,n,"") +a4-=3 +n=e}j="https"}k=!h}}}}if(k)return new A.cc(a40)j=A.iA(a5,0,q) +else{if(q===0)A.av(a5,0,"Invalid empty scheme") +j=""}d=a3 +if(p>0){c=q+3 +b=c9)k.$2("invalid character",s)}else{if(q===3)k.$2(m,s) +o=A.e1(B.a.j(a,r,s),null) +if(o>255)k.$2(l,r) +n=q+1 +j[q]=o +r=s+1 +q=n}}if(q!==3)k.$2(m,c) +o=A.e1(B.a.j(a,r,c),null) +if(o>255)k.$2(l,r) +j[q]=o +return j}, +f8(a,b,a0){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e=null,d=new A.cS(a),c=new A.cT(d,a) +if(a.length<2)d.$2("address is too short",e) +s=A.h([],t.t) +for(r=b,q=r,p=!1,o=!1;r>>0) +s.push((k[2]<<8|k[3])>>>0)}if(p){if(s.length>7)d.$2("an address with a wildcard must have less than 7 parts",e)}else if(s.length!==8)d.$2("an address without a wildcard must contain exactly 8 parts",e) +j=new Uint8Array(16) +for(l=s.length,i=9-l,r=0,h=0;r=b&&q=b&&s>>4]&1<<(p&15))!==0){if(q&&65<=p&&90>=p){if(i==null)i=new A.z("") +if(r>>4]&1<<(o&15))!==0){if(p&&65<=o&&90>=o){if(q==null)q=new A.z("") +if(r>>4]&1<<(o&15))!==0)A.av(a,s,"Invalid character") +else{j=1 +if((o&64512)===55296&&s+1>>4]&1<<(q&15))!==0))A.av(a,s,"Illegal scheme character") +if(65<=q&&q<=90)r=!0}a=B.a.j(a,b,c) +return A.ir(r?a.toLowerCase():a)}, +ir(a){if(a==="http")return"http" +if(a==="file")return"file" +if(a==="https")return"https" +if(a==="package")return"package" +return a}, +iB(a,b,c){return A.bj(a,b,c,B.a4,!1,!1)}, +iw(a,b,c,d,e,f){var s,r=e==="file",q=r||f +if(a==null)return r?"/":"" +else s=A.bj(a,b,c,B.o,!0,!0) +if(s.length===0){if(r)return"/"}else if(q&&!B.a.u(s,"/"))s="/"+s +return A.iC(s,e,f)}, +iC(a,b,c){var s=b.length===0 +if(s&&!c&&!B.a.u(a,"/")&&!B.a.u(a,"\\"))return A.iE(a,!s||c) +return A.iF(a)}, +eq(a,b,c,d){if(a!=null){if(d!=null)throw A.a(A.L("Both query and queryParameters specified",null)) +return A.bj(a,b,c,B.f,!0,!1)}if(d==null)return null +return A.iy(d)}, +iz(a){var s={},r=new A.z("") +s.a="" +a.F(0,new A.du(new A.dv(s,r))) +s=r.a +return s.charCodeAt(0)==0?s:s}, +iu(a,b,c){return A.bj(a,b,c,B.f,!0,!1)}, +er(a,b,c){var s,r,q,p,o,n=b+2 +if(n>=a.length)return"%" +s=a.charCodeAt(b+1) +r=a.charCodeAt(n) +q=A.dU(s) +p=A.dU(r) +if(q<0||p<0)return"%" +o=q*16+p +if(o<127&&(B.h[B.b.W(o,4)]&1<<(o&15))!==0)return A.P(c&&65<=o&&90>=o?(o|32)>>>0:o) +if(s>=97||r>=97)return B.a.j(a,b,b+3).toUpperCase() +return null}, +ep(a){var s,r,q,p,o,n="0123456789ABCDEF" +if(a<128){s=new Uint8Array(3) +s[0]=37 +s[1]=n.charCodeAt(a>>>4) +s[2]=n.charCodeAt(a&15)}else{if(a>2047)if(a>65535){r=240 +q=4}else{r=224 +q=3}else{r=192 +q=2}s=new Uint8Array(3*q) +for(p=0;--q,q>=0;r=128){o=B.b.br(a,6*q)&63|r +s[p]=37 +s[p+1]=n.charCodeAt(o>>>4) +s[p+2]=n.charCodeAt(o&15) +p+=3}}return A.f4(s,0,null)}, +bj(a,b,c,d,e,f){var s=A.fq(a,b,c,d,e,f) +return s==null?B.a.j(a,b,c):s}, +fq(a,b,c,d,e,f){var s,r,q,p,o,n,m,l,k,j,i=null +for(s=!e,r=b,q=r,p=i;r>>4]&1<<(o&15))!==0)++r +else{n=1 +if(o===37){m=A.er(a,r,!1) +if(m==null){r+=3 +continue}if("%"===m)m="%25" +else n=3}else if(o===92&&f)m="/" +else if(s&&o<=93&&(B.q[o>>>4]&1<<(o&15))!==0){A.av(a,r,"Invalid character") +n=i +m=n}else{if((o&64512)===55296){l=r+1 +if(l=2&&A.fo(a.charCodeAt(0)))for(s=1;s127||(B.n[r>>>4]&1<<(r&15))===0)break}return a}, +it(a,b){var s,r,q +for(s=0,r=0;r<2;++r){q=a.charCodeAt(b+r) +if(48<=q&&q<=57)s=s*16+q-48 +else{q|=32 +if(97<=q&&q<=102)s=s*16+q-87 +else throw A.a(A.L("Invalid URL encoding",null))}}return s}, +es(a,b,c,d,e){var s,r,q,p,o=b +while(!0){if(!(o127)throw A.a(A.L("Illegal percent encoding in URI",null)) +if(r===37){if(o+3>q)throw A.a(A.L("Truncated URI",null)) +p.push(A.it(a,o+1)) +o+=2}else if(r===43)p.push(32) +else p.push(r)}}return B.an.H(p)}, +fo(a){var s=a|32 +return 97<=s&&s<=122}, +f7(a,b,c){var s,r,q,p,o,n,m,l,k="Invalid MIME type",j=A.h([b-1],t.t) +for(s=a.length,r=b,q=-1,p=null;rb)throw A.a(A.x(k,a,r)) +for(;p!==44;){j.push(r);++r +for(o=-1;r=0)j.push(o) +else{n=B.c.ga0(j) +if(p!==44||r!==n+7||!B.a.v(a,"base64",n+1))throw A.a(A.x("Expecting '='",a,r)) +break}}j.push(r) +m=r+1 +if((j.length&1)===1)a=B.t.bI(a,m,s) +else{l=A.fq(a,m,s,B.f,!0,!1) +if(l!=null)a=B.a.I(a,m,s,l)}return new A.cQ(a,j,c)}, +iQ(){var s,r,q,p,o,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",m=".",l=":",k="/",j="\\",i="?",h="#",g="/\\",f=J.eR(22,t.D) +for(s=0;s<22;++s)f[s]=new Uint8Array(96) +r=new A.dI(f) +q=new A.dJ() +p=new A.dK() +o=r.$2(0,225) +q.$3(o,n,1) +q.$3(o,m,14) +q.$3(o,l,34) +q.$3(o,k,3) +q.$3(o,j,227) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(14,225) +q.$3(o,n,1) +q.$3(o,m,15) +q.$3(o,l,34) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(15,225) +q.$3(o,n,1) +q.$3(o,"%",225) +q.$3(o,l,34) +q.$3(o,k,9) +q.$3(o,j,233) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(1,225) +q.$3(o,n,1) +q.$3(o,l,34) +q.$3(o,k,10) +q.$3(o,j,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(2,235) +q.$3(o,n,139) +q.$3(o,k,131) +q.$3(o,j,131) +q.$3(o,m,146) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(3,235) +q.$3(o,n,11) +q.$3(o,k,68) +q.$3(o,j,68) +q.$3(o,m,18) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(4,229) +q.$3(o,n,5) +p.$3(o,"AZ",229) +q.$3(o,l,102) +q.$3(o,"@",68) +q.$3(o,"[",232) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(5,229) +q.$3(o,n,5) +p.$3(o,"AZ",229) +q.$3(o,l,102) +q.$3(o,"@",68) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(6,231) +p.$3(o,"19",7) +q.$3(o,"@",68) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(7,231) +p.$3(o,"09",7) +q.$3(o,"@",68) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +q.$3(r.$2(8,8),"]",5) +o=r.$2(9,235) +q.$3(o,n,11) +q.$3(o,m,16) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(16,235) +q.$3(o,n,11) +q.$3(o,m,17) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(17,235) +q.$3(o,n,11) +q.$3(o,k,9) +q.$3(o,j,233) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(10,235) +q.$3(o,n,11) +q.$3(o,m,18) +q.$3(o,k,10) +q.$3(o,j,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(18,235) +q.$3(o,n,11) +q.$3(o,m,19) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(19,235) +q.$3(o,n,11) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(11,235) +q.$3(o,n,11) +q.$3(o,k,10) +q.$3(o,j,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(12,236) +q.$3(o,n,12) +q.$3(o,i,12) +q.$3(o,h,205) +o=r.$2(13,237) +q.$3(o,n,13) +q.$3(o,i,13) +p.$3(r.$2(20,245),"az",21) +o=r.$2(21,245) +p.$3(o,"az",21) +p.$3(o,"09",21) +q.$3(o,"+-.",21) +return f}, +fN(a,b,c,d,e){var s,r,q,p,o=$.hi() +for(s=b;s95?31:q] +d=p&31 +e[p>>>5]=s}return d}, +dw:function dw(a){this.a=a}, +d2:function d2(){}, +l:function l(){}, +bt:function bt(a){this.a=a}, +Q:function Q(){}, +G:function G(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +aZ:function aZ(a,b,c,d,e,f){var _=this +_.e=a +_.f=b +_.a=c +_.b=d +_.c=e +_.d=f}, +bB:function bB(a,b,c,d,e){var _=this +_.f=a +_.a=b +_.b=c +_.c=d +_.d=e}, +bX:function bX(a){this.a=a}, +bU:function bU(a){this.a=a}, +b1:function b1(a){this.a=a}, +bz:function bz(a){this.a=a}, +bQ:function bQ(){}, +b0:function b0(){}, +d3:function d3(a){this.a=a}, +ct:function ct(a,b,c){this.a=a +this.b=b +this.c=c}, +n:function n(){}, +u:function u(){}, +k:function k(){}, +ce:function ce(){}, +z:function z(a){this.a=a}, +cU:function cU(a){this.a=a}, +cR:function cR(a){this.a=a}, +cS:function cS(a){this.a=a}, +cT:function cT(a,b){this.a=a +this.b=b}, +bi:function bi(a,b,c,d,e,f,g){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f +_.r=g +_.z=_.y=_.w=$}, +dv:function dv(a,b){this.a=a +this.b=b}, +du:function du(a){this.a=a}, +cQ:function cQ(a,b,c){this.a=a +this.b=b +this.c=c}, +dI:function dI(a){this.a=a}, +dJ:function dJ(){}, +dK:function dK(){}, +cc:function cc(a,b,c,d,e,f,g,h){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f +_.r=g +_.w=h +_.x=null}, +c3:function c3(a,b,c,d,e,f,g){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f +_.r=g +_.z=_.y=_.w=$}, +a6(a){var s +if(typeof a=="function")throw A.a(A.L("Attempting to rewrap a JS function.",null)) +s=function(b,c){return function(d){return b(c,d,arguments.length)}}(A.iN,a) +s[$.eH()]=a +return s}, +iN(a,b,c){if(c>=1)return a.$1(b) +return a.$0()}, +e4(a,b){var s=new A.v($.r,b.i("v<0>")),r=new A.b2(s,b.i("b2<0>")) +a.then(A.aA(new A.e5(r),1),A.aA(new A.e6(r),1)) +return s}, +e5:function e5(a){this.a=a}, +e6:function e6(a){this.a=a}, +cI:function cI(a){this.a=a}, +m:function m(a,b){this.a=a +this.b=b}, +hC(a){var s,r,q,p,o,n,m,l,k="enclosedBy" +if(a.k(0,k)!=null){s=t.a.a(a.k(0,k)) +r=new A.cq(A.fy(s.k(0,"name")),B.p[A.fw(s.k(0,"kind"))],A.fy(s.k(0,"href")))}else r=null +q=a.k(0,"name") +p=a.k(0,"qualifiedName") +o=A.fx(a.k(0,"packageRank")) +if(o==null)o=0 +n=a.k(0,"href") +m=B.p[A.fw(a.k(0,"kind"))] +l=A.fx(a.k(0,"overriddenDepth")) +if(l==null)l=0 +return new A.w(q,p,o,m,n,l,a.k(0,"desc"),r)}, +A:function A(a,b){this.a=a +this.b=b}, +cw:function cw(a){this.a=a}, +cz:function cz(a,b){this.a=a +this.b=b}, +cx:function cx(){}, +cy:function cy(){}, +w:function w(a,b,c,d,e,f,g,h){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f +_.r=g +_.w=h}, +cq:function cq(a,b,c){this.a=a +this.b=b +this.c=c}, +jD(){var s=self,r=s.document.getElementById("search-box"),q=s.document.getElementById("search-body"),p=s.document.getElementById("search-sidebar") +A.e4(s.window.fetch($.br()+"index.json"),t.m).aq(new A.dZ(new A.e_(r,q,p),r,q,p),t.P)}, +ek(a){var s=A.h([],t.O),r=A.h([],t.M) +return new A.dk(a,A.bZ(self.window.location.href),s,r)}, +iP(a,b){var s,r,q,p,o,n,m,l=self,k=l.document.createElement("div"),j=b.e +if(j==null)j="" +k.setAttribute("data-href",j) +k.classList.add("tt-suggestion") +s=l.document.createElement("span") +s.classList.add("tt-suggestion-title") +s.innerHTML=A.et(b.a+" "+b.d.h(0).toLowerCase(),a) +k.appendChild(s) +r=b.w +j=r!=null +if(j){s=l.document.createElement("span") +s.classList.add("tt-suggestion-container") +s.innerHTML="(in "+A.et(r.a,a)+")" +k.appendChild(s)}q=b.r +if(q!=null&&q.length!==0){s=l.document.createElement("blockquote") +s.classList.add("one-line-description") +p=l.document.createElement("textarea") +p.innerHTML=q +s.setAttribute("title",p.value) +s.innerHTML=A.et(q,a) +k.appendChild(s)}k.addEventListener("mousedown",A.a6(new A.dG())) +k.addEventListener("click",A.a6(new A.dH(b))) +if(j){j=r.a +o=r.b.h(0) +n=r.c +s=l.document.createElement("div") +s.classList.add("tt-container") +p=l.document.createElement("p") +p.textContent="Results from " +p.classList.add("tt-container-text") +m=l.document.createElement("a") +m.setAttribute("href",n) +m.innerHTML=j+" "+o +p.appendChild(m) +s.appendChild(p) +A.jc(s,k)}return k}, +jc(a,b){var s,r=a.innerHTML +if(r.length===0)return +s=$.bl.k(0,r) +if(s!=null)s.appendChild(b) +else{a.appendChild(b) +$.bl.q(0,r,a)}}, +et(a,b){return A.jU(a,A.eZ(b,!1),new A.dL(),null)}, +dM:function dM(){}, +e_:function e_(a,b,c){this.a=a +this.b=b +this.c=c}, +dZ:function dZ(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +dk:function dk(a,b,c,d){var _=this +_.a=a +_.b=b +_.e=_.d=_.c=$ +_.f=null +_.r="" +_.w=c +_.x=d +_.y=-1}, +dl:function dl(a){this.a=a}, +dm:function dm(a,b){this.a=a +this.b=b}, +dn:function dn(a,b){this.a=a +this.b=b}, +dp:function dp(a,b){this.a=a +this.b=b}, +dq:function dq(a,b){this.a=a +this.b=b}, +dG:function dG(){}, +dH:function dH(a){this.a=a}, +dL:function dL(){}, +iX(){var s=self,r=s.document.getElementById("sidenav-left-toggle"),q=s.document.querySelector(".sidebar-offcanvas-left"),p=s.document.getElementById("overlay-under-drawer"),o=A.a6(new A.dN(q,p)) +if(p!=null)p.addEventListener("click",o) +if(r!=null)r.addEventListener("click",o)}, +iW(){var s,r,q,p,o=self,n=o.document.body +if(n==null)return +s=n.getAttribute("data-using-base-href") +if(s==null)return +if(s!=="true"){r=n.getAttribute("data-base-href") +if(r==null)return +q=r}else q="" +p=o.document.getElementById("dartdoc-main-content") +if(p==null)return +A.fJ(q,p.getAttribute("data-above-sidebar"),o.document.getElementById("dartdoc-sidebar-left-content")) +A.fJ(q,p.getAttribute("data-below-sidebar"),o.document.getElementById("dartdoc-sidebar-right"))}, +fJ(a,b,c){if(b==null||b.length===0||c==null)return +A.e4(self.window.fetch(a+A.i(b)),t.m).aq(new A.dO(c,a),t.P)}, +fQ(a,b){var s,r,q,p +if(b.nodeName.toLowerCase()==="a"){s=b.getAttribute("href") +if(s!=null)if(!A.bZ(s).gaV())b.href=a+s}r=b.childNodes +for(q=0;q").B(b).i("M<1,2>"))}, +Z(a){if(!!a.fixed$length)A.ck(A.ai("clear")) +a.length=0}, +aW(a,b){var s,r=A.eU(a.length,"",!1,t.N) +for(s=0;ss)throw A.a(A.H(b,0,s,"start",null)) +if(cs)throw A.a(A.H(c,b,s,"end",null)) +if(b===c)return A.h([],A.a5(a)) +return A.h(a.slice(b,c),A.a5(a))}, +ga0(a){var s=a.length +if(s>0)return a[s-1] +throw A.a(A.hG())}, +b9(a,b){var s,r,q,p,o +if(!!a.immutable$list)A.ck(A.ai("sort")) +s=a.length +if(s<2)return +if(b==null)b=J.j0() +if(s===2){r=a[0] +q=a[1] +if(b.$2(r,q)>0){a[0]=q +a[1]=r}return}p=0 +if(A.a5(a).c.b(null))for(o=0;o0)this.bp(a,p)}, +bp(a,b){var s,r=a.length +for(;s=r-1,r>0;r=s)if(a[s]===null){a[s]=void 0;--b +if(b===0)break}}, +h(a){return A.ea(a,"[","]")}, +gA(a){return new J.Y(a,a.length,A.a5(a).i("Y<1>"))}, +gp(a){return A.bS(a)}, +gl(a){return a.length}, +k(a,b){if(!(b>=0&&b=0&&b=p){r.d=null +return!1}r.d=q[s] +r.c=s+1 +return!0}} +J.aN.prototype={ +aJ(a,b){var s +if(ab)return 1 +else if(a===b){if(a===0){s=this.gal(b) +if(this.gal(a)===s)return 0 +if(this.gal(a))return-1 +return 1}return 0}else if(isNaN(a)){if(isNaN(b))return 0 +return 1}else return-1}, +gal(a){return a===0?1/a<0:a<0}, +h(a){if(a===0&&1/a<0)return"-0.0" +else return""+a}, +gp(a){var s,r,q,p,o=a|0 +if(a===o)return o&536870911 +s=Math.abs(a) +r=Math.log(s)/0.6931471805599453|0 +q=Math.pow(2,r) +p=s<1?s/q:q/s +return((p*9007199254740992|0)+(p*3542243181176521|0))*599197+r*1259&536870911}, +a2(a,b){var s=a%b +if(s===0)return 0 +if(s>0)return s +return s+b}, +bs(a,b){return(a|0)===a?a/b|0:this.bt(a,b)}, +bt(a,b){var s=a/b +if(s>=-2147483648&&s<=2147483647)return s|0 +if(s>0){if(s!==1/0)return Math.floor(s)}else if(s>-1/0)return Math.ceil(s) +throw A.a(A.ai("Result of truncating division is "+A.i(s)+": "+A.i(a)+" ~/ "+b))}, +W(a,b){var s +if(a>0)s=this.aE(a,b) +else{s=b>31?31:b +s=a>>s>>>0}return s}, +br(a,b){if(0>b)throw A.a(A.jp(b)) +return this.aE(a,b)}, +aE(a,b){return b>31?0:a>>>b}, +gt(a){return A.aj(t.H)}, +$it:1} +J.aL.prototype={ +gt(a){return A.aj(t.S)}, +$ij:1, +$ib:1} +J.bE.prototype={ +gt(a){return A.aj(t.i)}, +$ij:1} +J.ad.prototype={ +b3(a,b){return a+b}, +I(a,b,c,d){var s=A.b_(b,c,a.length) +return a.substring(0,b)+d+a.substring(s)}, +v(a,b,c){var s +if(c<0||c>a.length)throw A.a(A.H(c,0,a.length,null,null)) +s=c+b.length +if(s>a.length)return!1 +return b===a.substring(c,s)}, +u(a,b){return this.v(a,b,0)}, +j(a,b,c){return a.substring(b,A.b_(b,c,a.length))}, +J(a,b){return this.j(a,b,null)}, +b6(a,b){var s,r +if(0>=b)return"" +if(b===1||a.length===0)return a +if(b!==b>>>0)throw A.a(B.B) +for(s=a,r="";!0;){if((b&1)===1)r=s+r +b=b>>>1 +if(b===0)break +s+=s}return r}, +a_(a,b,c){var s +if(c<0||c>a.length)throw A.a(A.H(c,0,a.length,null,null)) +s=a.indexOf(b,c) +return s}, +aS(a,b){return this.a_(a,b,0)}, +N(a,b){return A.jT(a,b,0)}, +aJ(a,b){var s +if(a===b)s=0 +else s=a>6}r=r+((r&67108863)<<3)&536870911 +r^=r>>11 +return r+((r&16383)<<15)&536870911}, +gt(a){return A.aj(t.N)}, +gl(a){return a.length}, +$ij:1, +$id:1} +A.a3.prototype={ +gA(a){return new A.bw(J.X(this.gM()),A.E(this).i("bw<1,2>"))}, +gl(a){return J.bs(this.gM())}, +C(a,b){return A.E(this).y[1].a(J.e8(this.gM(),b))}, +h(a){return J.am(this.gM())}} +A.bw.prototype={ +m(){return this.a.m()}, +gn(){return this.$ti.y[1].a(this.a.gn())}} +A.ab.prototype={ +gM(){return this.a}} +A.b4.prototype={$ic:1} +A.b3.prototype={ +k(a,b){return this.$ti.y[1].a(J.hj(this.a,b))}, +q(a,b,c){J.hk(this.a,b,this.$ti.c.a(c))}, +$ic:1, +$if:1} +A.M.prototype={ +Y(a,b){return new A.M(this.a,this.$ti.i("@<1>").B(b).i("M<1,2>"))}, +gM(){return this.a}} +A.aR.prototype={ +h(a){return"LateInitializationError: "+this.a}} +A.bx.prototype={ +gl(a){return this.a.length}, +k(a,b){return this.a.charCodeAt(b)}} +A.cL.prototype={} +A.c.prototype={} +A.J.prototype={ +gA(a){var s=this +return new A.an(s,s.gl(s),A.E(s).i("an"))}} +A.an.prototype={ +gn(){var s=this.d +return s==null?this.$ti.c.a(s):s}, +m(){var s,r=this,q=r.a,p=J.cj(q),o=p.gl(q) +if(r.b!==o)throw A.a(A.aD(q)) +s=r.c +if(s>=o){r.d=null +return!1}r.d=p.C(q,s);++r.c +return!0}} +A.af.prototype={ +gA(a){return new A.ao(J.X(this.a),this.b,A.E(this).i("ao<1,2>"))}, +gl(a){return J.bs(this.a)}, +C(a,b){return this.b.$1(J.e8(this.a,b))}} +A.aI.prototype={$ic:1} +A.ao.prototype={ +m(){var s=this,r=s.b +if(r.m()){s.a=s.c.$1(r.gn()) +return!0}s.a=null +return!1}, +gn(){var s=this.a +return s==null?this.$ti.y[1].a(s):s}} +A.ag.prototype={ +gl(a){return J.bs(this.a)}, +C(a,b){return this.b.$1(J.e8(this.a,b))}} +A.aK.prototype={} +A.bW.prototype={ +q(a,b,c){throw A.a(A.ai("Cannot modify an unmodifiable list"))}} +A.as.prototype={} +A.bk.prototype={} +A.cb.prototype={$r:"+item,matchPosition(1,2)",$s:1} +A.aE.prototype={ +h(a){return A.ef(this)}, +q(a,b,c){A.hx()}, +$iy:1} +A.aG.prototype={ +gl(a){return this.b.length}, +gbm(){var s=this.$keys +if(s==null){s=Object.keys(this.a) +this.$keys=s}return s}, +O(a){if("__proto__"===a)return!1 +return this.a.hasOwnProperty(a)}, +k(a,b){if(!this.O(b))return null +return this.b[this.a[b]]}, +F(a,b){var s,r,q=this.gbm(),p=this.b +for(s=q.length,r=0;r=s.b){s.d=null +return!1}s.d=s.a[r] +s.c=r+1 +return!0}} +A.aF.prototype={} +A.aH.prototype={ +gl(a){return this.b}, +gA(a){var s,r=this,q=r.$keys +if(q==null){q=Object.keys(r.a) +r.$keys=q}s=q +return new A.c8(s,s.length,r.$ti.i("c8<1>"))}, +N(a,b){if("__proto__"===b)return!1 +return this.a.hasOwnProperty(b)}} +A.cO.prototype={ +D(a){var s,r,q=this,p=new RegExp(q.a).exec(a) +if(p==null)return null +s=Object.create(null) +r=q.b +if(r!==-1)s.arguments=p[r+1] +r=q.c +if(r!==-1)s.argumentsExpr=p[r+1] +r=q.d +if(r!==-1)s.expr=p[r+1] +r=q.e +if(r!==-1)s.method=p[r+1] +r=q.f +if(r!==-1)s.receiver=p[r+1] +return s}} +A.aY.prototype={ +h(a){return"Null check operator used on a null value"}} +A.bF.prototype={ +h(a){var s,r=this,q="NoSuchMethodError: method not found: '",p=r.b +if(p==null)return"NoSuchMethodError: "+r.a +s=r.c +if(s==null)return q+p+"' ("+r.a+")" +return q+p+"' on '"+s+"' ("+r.a+")"}} +A.bV.prototype={ +h(a){var s=this.a +return s.length===0?"Error":"Error: "+s}} +A.cJ.prototype={ +h(a){return"Throw of null ('"+(this.a===null?"null":"undefined")+"' from JavaScript)"}} +A.aJ.prototype={} +A.bb.prototype={ +h(a){var s,r=this.b +if(r!=null)return r +r=this.a +s=r!==null&&typeof r==="object"?r.stack:null +return this.b=s==null?"":s}, +$ia1:1} +A.ac.prototype={ +h(a){var s=this.constructor,r=s==null?null:s.name +return"Closure '"+A.h1(r==null?"unknown":r)+"'"}, +gbR(){return this}, +$C:"$1", +$R:1, +$D:null} +A.co.prototype={$C:"$0",$R:0} +A.cp.prototype={$C:"$2",$R:2} +A.cN.prototype={} +A.cM.prototype={ +h(a){var s=this.$static_name +if(s==null)return"Closure of unknown static method" +return"Closure '"+A.h1(s)+"'"}} +A.aC.prototype={ +E(a,b){if(b==null)return!1 +if(this===b)return!0 +if(!(b instanceof A.aC))return!1 +return this.$_target===b.$_target&&this.a===b.a}, +gp(a){return(A.fY(this.a)^A.bS(this.$_target))>>>0}, +h(a){return"Closure '"+this.$_name+"' of "+("Instance of '"+A.cK(this.a)+"'")}} +A.c2.prototype={ +h(a){return"Reading static variable '"+this.a+"' during its initialization"}} +A.bT.prototype={ +h(a){return"RuntimeError: "+this.a}} +A.ae.prototype={ +gl(a){return this.a}, +gP(){return new A.N(this,A.E(this).i("N<1>"))}, +gb2(){var s=A.E(this) +return A.hP(new A.N(this,s.i("N<1>")),new A.cC(this),s.c,s.y[1])}, +O(a){var s=this.b +if(s==null)return!1 +return s[a]!=null}, +k(a,b){var s,r,q,p,o=null +if(typeof b=="string"){s=this.b +if(s==null)return o +r=s[b] +q=r==null?o:r.b +return q}else if(typeof b=="number"&&(b&0x3fffffff)===b){p=this.c +if(p==null)return o +r=p[b] +q=r==null?o:r.b +return q}else return this.bG(b)}, +bG(a){var s,r,q=this.d +if(q==null)return null +s=q[this.aT(a)] +r=this.aU(s,a) +if(r<0)return null +return s[r].b}, +q(a,b,c){var s,r,q,p,o,n,m=this +if(typeof b=="string"){s=m.b +m.au(s==null?m.b=m.a9():s,b,c)}else if(typeof b=="number"&&(b&0x3fffffff)===b){r=m.c +m.au(r==null?m.c=m.a9():r,b,c)}else{q=m.d +if(q==null)q=m.d=m.a9() +p=m.aT(b) +o=q[p] +if(o==null)q[p]=[m.aa(b,c)] +else{n=m.aU(o,b) +if(n>=0)o[n].b=c +else o.push(m.aa(b,c))}}}, +Z(a){var s=this +if(s.a>0){s.b=s.c=s.d=s.e=s.f=null +s.a=0 +s.aB()}}, +F(a,b){var s=this,r=s.e,q=s.r +for(;r!=null;){b.$2(r.a,r.b) +if(q!==s.r)throw A.a(A.aD(s)) +r=r.c}}, +au(a,b,c){var s=a[b] +if(s==null)a[b]=this.aa(b,c) +else s.b=c}, +aB(){this.r=this.r+1&1073741823}, +aa(a,b){var s=this,r=new A.cF(a,b) +if(s.e==null)s.e=s.f=r +else s.f=s.f.c=r;++s.a +s.aB() +return r}, +aT(a){return J.W(a)&1073741823}, +aU(a,b){var s,r +if(a==null)return-1 +s=a.length +for(r=0;r"]=s +delete s[""] +return s}} +A.cC.prototype={ +$1(a){var s=this.a,r=s.k(0,a) +return r==null?A.E(s).y[1].a(r):r}, +$S(){return A.E(this.a).i("2(1)")}} +A.cF.prototype={} +A.N.prototype={ +gl(a){return this.a.a}, +gA(a){var s=this.a,r=new A.bG(s,s.r) +r.c=s.e +return r}} +A.bG.prototype={ +gn(){return this.d}, +m(){var s,r=this,q=r.a +if(r.b!==q.r)throw A.a(A.aD(q)) +s=r.c +if(s==null){r.d=null +return!1}else{r.d=s.a +r.c=s.c +return!0}}} +A.dV.prototype={ +$1(a){return this.a(a)}, +$S:10} +A.dW.prototype={ +$2(a,b){return this.a(a,b)}, +$S:11} +A.dX.prototype={ +$1(a){return this.a(a)}, +$S:12} +A.ba.prototype={ +h(a){return this.aG(!1)}, +aG(a){var s,r,q,p,o,n=this.bk(),m=this.aA(),l=(a?""+"Record ":"")+"(" +for(s=n.length,r="",q=0;q0;){--q;--s +j[q]=r[s]}}j=A.hO(j,!1,k) +j.fixed$length=Array +j.immutable$list=Array +return j}} +A.ca.prototype={ +aA(){return[this.a,this.b]}, +E(a,b){if(b==null)return!1 +return b instanceof A.ca&&this.$s===b.$s&&J.F(this.a,b.a)&&J.F(this.b,b.b)}, +gp(a){return A.hS(this.$s,this.a,this.b,B.i)}} +A.cA.prototype={ +h(a){return"RegExp/"+this.a+"/"+this.b.flags}, +gbn(){var s=this,r=s.c +if(r!=null)return r +r=s.b +return s.c=A.eS(s.a,r.multiline,!r.ignoreCase,r.unicode,r.dotAll,!0)}, +bj(a,b){var s,r=this.gbn() +r.lastIndex=b +s=r.exec(a) +if(s==null)return null +return new A.c9(s)}} +A.c9.prototype={ +gbz(){var s=this.b +return s.index+s[0].length}, +k(a,b){return this.b[b]}, +$icH:1, +$ieh:1} +A.cY.prototype={ +gn(){var s=this.d +return s==null?t.F.a(s):s}, +m(){var s,r,q,p,o,n,m=this,l=m.b +if(l==null)return!1 +s=m.c +r=l.length +if(s<=r){q=m.a +p=q.bj(l,s) +if(p!=null){m.d=p +o=p.gbz() +if(p.b.index===o){s=!1 +if(q.b.unicode){q=m.c +n=q+1 +if(n=55296&&r<=56319){s=l.charCodeAt(n) +s=s>=56320&&s<=57343}}}o=(s?o+1:o)+1}m.c=o +return!0}}m.b=m.d=null +return!1}} +A.bH.prototype={ +gt(a){return B.ab}, +$ij:1} +A.aV.prototype={} +A.bI.prototype={ +gt(a){return B.ac}, +$ij:1} +A.ap.prototype={ +gl(a){return a.length}, +$iD:1} +A.aT.prototype={ +k(a,b){A.T(b,a,a.length) +return a[b]}, +q(a,b,c){A.T(b,a,a.length) +a[b]=c}, +$ic:1, +$if:1} +A.aU.prototype={ +q(a,b,c){A.T(b,a,a.length) +a[b]=c}, +$ic:1, +$if:1} +A.bJ.prototype={ +gt(a){return B.ad}, +$ij:1} +A.bK.prototype={ +gt(a){return B.ae}, +$ij:1} +A.bL.prototype={ +gt(a){return B.af}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1} +A.bM.prototype={ +gt(a){return B.ag}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1} +A.bN.prototype={ +gt(a){return B.ah}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1} +A.bO.prototype={ +gt(a){return B.aj}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1} +A.bP.prototype={ +gt(a){return B.ak}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1} +A.aW.prototype={ +gt(a){return B.al}, +gl(a){return a.length}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1} +A.aX.prototype={ +gt(a){return B.am}, +gl(a){return a.length}, +k(a,b){A.T(b,a,a.length) +return a[b]}, +$ij:1, +$iah:1} +A.b6.prototype={} +A.b7.prototype={} +A.b8.prototype={} +A.b9.prototype={} +A.I.prototype={ +i(a){return A.bg(v.typeUniverse,this,a)}, +B(a){return A.fl(v.typeUniverse,this,a)}} +A.c5.prototype={} +A.dt.prototype={ +h(a){return A.C(this.a,null)}} +A.c4.prototype={ +h(a){return this.a}} +A.bc.prototype={$iQ:1} +A.d_.prototype={ +$1(a){var s=this.a,r=s.a +s.a=null +r.$0()}, +$S:4} +A.cZ.prototype={ +$1(a){var s,r +this.a.a=a +s=this.b +r=this.c +s.firstChild?s.removeChild(r):s.appendChild(r)}, +$S:13} +A.d0.prototype={ +$0(){this.a.$0()}, +$S:5} +A.d1.prototype={ +$0(){this.a.$0()}, +$S:5} +A.dr.prototype={ +bc(a,b){if(self.setTimeout!=null)self.setTimeout(A.aA(new A.ds(this,b),0),a) +else throw A.a(A.ai("`setTimeout()` not found."))}} +A.ds.prototype={ +$0(){this.b.$0()}, +$S:0} +A.c_.prototype={ +ae(a){var s,r=this +if(a==null)a=r.$ti.c.a(a) +if(!r.b)r.a.av(a) +else{s=r.a +if(r.$ti.i("Z<1>").b(a))s.aw(a) +else s.a5(a)}}, +af(a,b){var s=this.a +if(this.b)s.K(a,b) +else s.T(a,b)}} +A.dD.prototype={ +$1(a){return this.a.$2(0,a)}, +$S:2} +A.dE.prototype={ +$2(a,b){this.a.$2(1,new A.aJ(a,b))}, +$S:14} +A.dR.prototype={ +$2(a,b){this.a(a,b)}, +$S:15} +A.bv.prototype={ +h(a){return A.i(this.a)}, +$il:1, +gS(){return this.b}} +A.c1.prototype={ +af(a,b){var s +A.ci(a,"error",t.K) +s=this.a +if((s.a&30)!==0)throw A.a(A.f2("Future already completed")) +if(b==null)b=A.eK(a) +s.T(a,b)}, +aK(a){return this.af(a,null)}} +A.b2.prototype={ +ae(a){var s=this.a +if((s.a&30)!==0)throw A.a(A.f2("Future already completed")) +s.av(a)}} +A.au.prototype={ +bH(a){if((this.c&15)!==6)return!0 +return this.b.b.ap(this.d,a.a)}, +bD(a){var s,r=this.e,q=null,p=a.a,o=this.b.b +if(t.C.b(r))q=o.bM(r,p,a.b) +else q=o.ap(r,p) +try{p=q +return p}catch(s){if(t.c.b(A.aa(s))){if((this.c&1)!==0)throw A.a(A.L("The error handler of Future.then must return a value of the returned future's type","onError")) +throw A.a(A.L("The error handler of Future.catchError must return a value of the future's type","onError"))}else throw s}}} +A.v.prototype={ +aD(a){this.a=this.a&1|4 +this.c=a}, +ar(a,b,c){var s,r,q=$.r +if(q===B.d){if(b!=null&&!t.C.b(b)&&!t.v.b(b))throw A.a(A.eJ(b,"onError",u.c))}else if(b!=null)b=A.jg(b,q) +s=new A.v(q,c.i("v<0>")) +r=b==null?1:3 +this.a4(new A.au(s,r,a,b,this.$ti.i("@<1>").B(c).i("au<1,2>"))) +return s}, +aq(a,b){return this.ar(a,null,b)}, +aF(a,b,c){var s=new A.v($.r,c.i("v<0>")) +this.a4(new A.au(s,19,a,b,this.$ti.i("@<1>").B(c).i("au<1,2>"))) +return s}, +bq(a){this.a=this.a&1|16 +this.c=a}, +U(a){this.a=a.a&30|this.a&1 +this.c=a.c}, +a4(a){var s=this,r=s.a +if(r<=3){a.a=s.c +s.c=a}else{if((r&4)!==0){r=s.c +if((r.a&24)===0){r.a4(a) +return}s.U(r)}A.ax(null,null,s.b,new A.d4(s,a))}}, +ab(a){var s,r,q,p,o,n=this,m={} +m.a=a +if(a==null)return +s=n.a +if(s<=3){r=n.c +n.c=a +if(r!=null){q=a.a +for(p=a;q!=null;p=q,q=o)o=q.a +p.a=r}}else{if((s&4)!==0){s=n.c +if((s.a&24)===0){s.ab(a) +return}n.U(s)}m.a=n.V(a) +A.ax(null,null,n.b,new A.db(m,n))}}, +ac(){var s=this.c +this.c=null +return this.V(s)}, +V(a){var s,r,q +for(s=a,r=null;s!=null;r=s,s=q){q=s.a +s.a=r}return r}, +be(a){var s,r,q,p=this +p.a^=2 +try{a.ar(new A.d8(p),new A.d9(p),t.P)}catch(q){s=A.aa(q) +r=A.a8(q) +A.jR(new A.da(p,s,r))}}, +a5(a){var s=this,r=s.ac() +s.a=8 +s.c=a +A.b5(s,r)}, +K(a,b){var s=this.ac() +this.bq(A.cl(a,b)) +A.b5(this,s)}, +av(a){if(this.$ti.i("Z<1>").b(a)){this.aw(a) +return}this.bd(a)}, +bd(a){this.a^=2 +A.ax(null,null,this.b,new A.d6(this,a))}, +aw(a){if(this.$ti.b(a)){A.i6(a,this) +return}this.be(a)}, +T(a,b){this.a^=2 +A.ax(null,null,this.b,new A.d5(this,a,b))}, +$iZ:1} +A.d4.prototype={ +$0(){A.b5(this.a,this.b)}, +$S:0} +A.db.prototype={ +$0(){A.b5(this.b,this.a.a)}, +$S:0} +A.d8.prototype={ +$1(a){var s,r,q,p=this.a +p.a^=2 +try{p.a5(p.$ti.c.a(a))}catch(q){s=A.aa(q) +r=A.a8(q) +p.K(s,r)}}, +$S:4} +A.d9.prototype={ +$2(a,b){this.a.K(a,b)}, +$S:16} +A.da.prototype={ +$0(){this.a.K(this.b,this.c)}, +$S:0} +A.d7.prototype={ +$0(){A.fb(this.a.a,this.b)}, +$S:0} +A.d6.prototype={ +$0(){this.a.a5(this.b)}, +$S:0} +A.d5.prototype={ +$0(){this.a.K(this.b,this.c)}, +$S:0} +A.de.prototype={ +$0(){var s,r,q,p,o,n,m=this,l=null +try{q=m.a.a +l=q.b.b.bK(q.d)}catch(p){s=A.aa(p) +r=A.a8(p) +q=m.c&&m.b.a.c.a===s +o=m.a +if(q)o.c=m.b.a.c +else o.c=A.cl(s,r) +o.b=!0 +return}if(l instanceof A.v&&(l.a&24)!==0){if((l.a&16)!==0){q=m.a +q.c=l.c +q.b=!0}return}if(l instanceof A.v){n=m.b.a +q=m.a +q.c=l.aq(new A.df(n),t.z) +q.b=!1}}, +$S:0} +A.df.prototype={ +$1(a){return this.a}, +$S:17} +A.dd.prototype={ +$0(){var s,r,q,p,o +try{q=this.a +p=q.a +q.c=p.b.b.ap(p.d,this.b)}catch(o){s=A.aa(o) +r=A.a8(o) +q=this.a +q.c=A.cl(s,r) +q.b=!0}}, +$S:0} +A.dc.prototype={ +$0(){var s,r,q,p,o,n,m=this +try{s=m.a.a.c +p=m.b +if(p.a.bH(s)&&p.a.e!=null){p.c=p.a.bD(s) +p.b=!1}}catch(o){r=A.aa(o) +q=A.a8(o) +p=m.a.a.c +n=m.b +if(p.a===r)n.c=p +else n.c=A.cl(r,q) +n.b=!0}}, +$S:0} +A.c0.prototype={} +A.cd.prototype={} +A.dC.prototype={} +A.dP.prototype={ +$0(){A.hz(this.a,this.b)}, +$S:0} +A.di.prototype={ +bO(a){var s,r,q +try{if(B.d===$.r){a.$0() +return}A.fL(null,null,this,a)}catch(q){s=A.aa(q) +r=A.a8(q) +A.ex(s,r)}}, +aH(a){return new A.dj(this,a)}, +bL(a){if($.r===B.d)return a.$0() +return A.fL(null,null,this,a)}, +bK(a){return this.bL(a,t.z)}, +bP(a,b){if($.r===B.d)return a.$1(b) +return A.ji(null,null,this,a,b)}, +ap(a,b){var s=t.z +return this.bP(a,b,s,s)}, +bN(a,b,c){if($.r===B.d)return a.$2(b,c) +return A.jh(null,null,this,a,b,c)}, +bM(a,b,c){var s=t.z +return this.bN(a,b,c,s,s,s)}, +bJ(a){return a}, +aZ(a){var s=t.z +return this.bJ(a,s,s,s)}} +A.dj.prototype={ +$0(){return this.a.bO(this.b)}, +$S:0} +A.e.prototype={ +gA(a){return new A.an(a,this.gl(a),A.aB(a).i("an"))}, +C(a,b){return this.k(a,b)}, +Y(a,b){return new A.M(a,A.aB(a).i("@").B(b).i("M<1,2>"))}, +bA(a,b,c,d){var s +A.b_(b,c,this.gl(a)) +for(s=b;s"))}return new A.c7(this)}, +q(a,b,c){var s,r,q=this +if(q.b==null)q.c.q(0,b,c) +else if(q.O(b)){s=q.b +s[b]=c +r=q.a +if(r==null?s!=null:r!==s)r[b]=null}else q.bu().q(0,b,c)}, +O(a){if(this.b==null)return this.c.O(a) +return Object.prototype.hasOwnProperty.call(this.a,a)}, +F(a,b){var s,r,q,p,o=this +if(o.b==null)return o.c.F(0,b) +s=o.L() +for(r=0;r"))}return s}} +A.dz.prototype={ +$0(){var s,r +try{s=new TextDecoder("utf-8",{fatal:true}) +return s}catch(r){}return null}, +$S:6} +A.dy.prototype={ +$0(){var s,r +try{s=new TextDecoder("utf-8",{fatal:false}) +return s}catch(r){}return null}, +$S:6} +A.cm.prototype={ +bI(a0,a1,a2){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a="Invalid base64 encoding length " +a2=A.b_(a1,a2,a0.length) +s=$.hc() +for(r=a1,q=r,p=null,o=-1,n=-1,m=0;r=0){g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(f) +if(g===k)continue +k=g}else{if(f===-1){if(o<0){e=p==null?null:p.a.length +if(e==null)e=0 +o=e+(r-q) +n=r}++m +if(k===61)continue}k=g}if(f!==-2){if(p==null){p=new A.z("") +e=p}else e=p +e.a+=B.a.j(a0,q,r) +d=A.P(k) +e.a+=d +q=l +continue}}throw A.a(A.x("Invalid base64 data",a0,r))}if(p!=null){e=B.a.j(a0,q,a2) +e=p.a+=e +d=e.length +if(o>=0)A.eL(a0,n,a2,o,m,d) +else{c=B.b.a2(d-1,4)+1 +if(c===1)throw A.a(A.x(a,a0,a2)) +for(;c<4;){e+="=" +p.a=e;++c}}e=p.a +return B.a.I(a0,a1,a2,e.charCodeAt(0)==0?e:e)}b=a2-a1 +if(o>=0)A.eL(a0,n,a2,o,m,b) +else{c=B.b.a2(b,4) +if(c===1)throw A.a(A.x(a,a0,a2)) +if(c>1)a0=B.a.I(a0,a2,a2,c===2?"==":"=")}return a0}} +A.cn.prototype={} +A.by.prototype={} +A.bA.prototype={} +A.cr.prototype={} +A.cv.prototype={ +h(a){return"unknown"}} +A.cu.prototype={ +H(a){var s=this.bh(a,0,a.length) +return s==null?a:s}, +bh(a,b,c){var s,r,q,p +for(s=b,r=null;s":q=">" +break +case"/":q="/" +break +default:q=null}if(q!=null){if(r==null)r=new A.z("") +if(s>b)r.a+=B.a.j(a,b,s) +r.a+=q +b=s+1}}if(r==null)return null +if(c>b){p=B.a.j(a,b,c) +r.a+=p}p=r.a +return p.charCodeAt(0)==0?p:p}} +A.cD.prototype={ +bw(a,b){var s=A.je(a,this.gby().a) +return s}, +gby(){return B.H}} +A.cE.prototype={} +A.cV.prototype={} +A.cX.prototype={ +H(a){var s,r,q,p=A.b_(0,null,a.length) +if(p===0)return new Uint8Array(0) +s=p*3 +r=new Uint8Array(s) +q=new A.dA(r) +if(q.bl(a,0,p)!==p)q.ad() +return new Uint8Array(r.subarray(0,A.iO(0,q.b,s)))}} +A.dA.prototype={ +ad(){var s=this,r=s.c,q=s.b,p=s.b=q+1 +r[q]=239 +q=s.b=p+1 +r[p]=191 +s.b=q+1 +r[q]=189}, +bv(a,b){var s,r,q,p,o=this +if((b&64512)===56320){s=65536+((a&1023)<<10)|b&1023 +r=o.c +q=o.b +p=o.b=q+1 +r[q]=s>>>18|240 +q=o.b=p+1 +r[p]=s>>>12&63|128 +p=o.b=q+1 +r[q]=s>>>6&63|128 +o.b=p+1 +r[p]=s&63|128 +return!0}else{o.ad() +return!1}}, +bl(a,b,c){var s,r,q,p,o,n,m,l=this +if(b!==c&&(a.charCodeAt(c-1)&64512)===55296)--c +for(s=l.c,r=s.length,q=b;q=r)break +l.b=o+1 +s[o]=p}else{o=p&64512 +if(o===55296){if(l.b+4>r)break +n=q+1 +if(l.bv(p,a.charCodeAt(n)))q=n}else if(o===56320){if(l.b+3>r)break +l.ad()}else if(p<=2047){o=l.b +m=o+1 +if(m>=r)break +l.b=m +s[o]=p>>>6|192 +l.b=m+1 +s[m]=p&63|128}else{o=l.b +if(o+2>=r)break +m=l.b=o+1 +s[o]=p>>>12|224 +o=l.b=m+1 +s[m]=p>>>6&63|128 +l.b=o+1 +s[o]=p&63|128}}}return q}} +A.cW.prototype={ +H(a){return new A.dx(this.a).bi(a,0,null,!0)}} +A.dx.prototype={ +bi(a,b,c,d){var s,r,q,p,o,n,m=this,l=A.b_(b,c,J.bs(a)) +if(b===l)return"" +if(a instanceof Uint8Array){s=a +r=s +q=0}else{r=A.iH(a,b,l) +l-=b +q=b +b=0}if(l-b>=15){p=m.a +o=A.iG(p,r,b,l) +if(o!=null){if(!p)return o +if(o.indexOf("\ufffd")<0)return o}}o=m.a6(r,b,l,!0) +p=m.b +if((p&1)!==0){n=A.iI(p) +m.b=0 +throw A.a(A.x(n,a,q+m.c))}return o}, +a6(a,b,c,d){var s,r,q=this +if(c-b>1000){s=B.b.bs(b+c,2) +r=q.a6(a,b,s,!1) +if((q.b&1)!==0)return r +return r+q.a6(a,s,c,d)}return q.bx(a,b,c,d)}, +bx(a,b,c,d){var s,r,q,p,o,n,m,l=this,k=65533,j=l.b,i=l.c,h=new A.z(""),g=b+1,f=a[b] +$label0$0:for(s=l.a;!0;){for(;!0;g=p){r="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE".charCodeAt(f)&31 +i=j<=32?f&61694>>>r:(f&63|i<<6)>>>0 +j=" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA".charCodeAt(j+r) +if(j===0){q=A.P(i) +h.a+=q +if(g===c)break $label0$0 +break}else if((j&1)!==0){if(s)switch(j){case 69:case 67:q=A.P(k) +h.a+=q +break +case 65:q=A.P(k) +h.a+=q;--g +break +default:q=A.P(k) +q=h.a+=q +h.a=q+A.P(k) +break}else{l.b=j +l.c=g-1 +return""}j=0}if(g===c)break $label0$0 +p=g+1 +f=a[g]}p=g+1 +f=a[g] +if(f<128){while(!0){if(!(p=128){o=n-1 +p=n +break}p=n}if(o-g<20)for(m=g;m32)if(s){s=A.P(k) +h.a+=s}else{l.b=77 +l.c=c +return""}l.b=j +l.c=i +s=h.a +return s.charCodeAt(0)==0?s:s}} +A.dw.prototype={ +$2(a,b){var s,r +if(typeof b=="string")this.a.set(a,b) +else if(b==null)this.a.set(a,"") +else for(s=J.X(b),r=this.a;s.m();){b=s.gn() +if(typeof b=="string")r.append(a,b) +else if(b==null)r.append(a,"") +else A.iK(b)}}, +$S:7} +A.d2.prototype={ +h(a){return this.az()}} +A.l.prototype={ +gS(){return A.hU(this)}} +A.bt.prototype={ +h(a){var s=this.a +if(s!=null)return"Assertion failed: "+A.cs(s) +return"Assertion failed"}} +A.Q.prototype={} +A.G.prototype={ +ga8(){return"Invalid argument"+(!this.a?"(s)":"")}, +ga7(){return""}, +h(a){var s=this,r=s.c,q=r==null?"":" ("+r+")",p=s.d,o=p==null?"":": "+p,n=s.ga8()+q+o +if(!s.a)return n +return n+s.ga7()+": "+A.cs(s.gak())}, +gak(){return this.b}} +A.aZ.prototype={ +gak(){return this.b}, +ga8(){return"RangeError"}, +ga7(){var s,r=this.e,q=this.f +if(r==null)s=q!=null?": Not less than or equal to "+A.i(q):"" +else if(q==null)s=": Not greater than or equal to "+A.i(r) +else if(q>r)s=": Not in inclusive range "+A.i(r)+".."+A.i(q) +else s=qe.length +else s=!1 +if(s)f=null +if(f==null){if(e.length>78)e=B.a.j(e,0,75)+"..." +return g+"\n"+e}for(r=1,q=0,p=!1,o=0;o1?g+(" (at line "+r+", character "+(f-q+1)+")\n"):g+(" (at character "+(f+1)+")\n") +m=e.length +for(o=f;o78){k="..." +if(f-q<75){j=q+75 +i=q}else{if(m-f<75){i=m-75 +j=m +k=""}else{i=f-36 +j=f+36}l="..."}}else{j=m +i=q +k=""}return g+l+B.a.j(e,i,j)+k+"\n"+B.a.b6(" ",f-i+l.length)+"^\n"}else return f!=null?g+(" (at offset "+A.i(f)+")"):g}} +A.n.prototype={ +Y(a,b){return A.hr(this,A.E(this).i("n.E"),b)}, +gl(a){var s,r=this.gA(this) +for(s=0;r.m();)++s +return s}, +C(a,b){var s,r +A.eg(b,"index") +s=this.gA(this) +for(r=b;s.m();){if(r===0)return s.gn();--r}throw A.a(A.e9(b,b-r,this,"index"))}, +h(a){return A.hI(this,"(",")")}} +A.u.prototype={ +gp(a){return A.k.prototype.gp.call(this,0)}, +h(a){return"null"}} +A.k.prototype={$ik:1, +E(a,b){return this===b}, +gp(a){return A.bS(this)}, +h(a){return"Instance of '"+A.cK(this)+"'"}, +gt(a){return A.jB(this)}, +toString(){return this.h(this)}} +A.ce.prototype={ +h(a){return""}, +$ia1:1} +A.z.prototype={ +gl(a){return this.a.length}, +h(a){var s=this.a +return s.charCodeAt(0)==0?s:s}} +A.cU.prototype={ +$2(a,b){var s,r,q,p=B.a.aS(b,"=") +if(p===-1){if(b!=="")a.q(0,A.es(b,0,b.length,this.a,!0),"")}else if(p!==0){s=B.a.j(b,0,p) +r=B.a.J(b,p+1) +q=this.a +a.q(0,A.es(s,0,s.length,q,!0),A.es(r,0,r.length,q,!0))}return a}, +$S:19} +A.cR.prototype={ +$2(a,b){throw A.a(A.x("Illegal IPv4 address, "+a,this.a,b))}, +$S:20} +A.cS.prototype={ +$2(a,b){throw A.a(A.x("Illegal IPv6 address, "+a,this.a,b))}, +$S:21} +A.cT.prototype={ +$2(a,b){var s +if(b-a>4)this.a.$2("an IPv6 part can only contain a maximum of 4 hex digits",a) +s=A.e1(B.a.j(this.b,a,b),16) +if(s<0||s>65535)this.a.$2("each part must be in the range of `0x0..0xFFFF`",a) +return s}, +$S:22} +A.bi.prototype={ +gX(){var s,r,q,p,o=this,n=o.w +if(n===$){s=o.a +r=s.length!==0?""+s+":":"" +q=o.c +p=q==null +if(!p||s==="file"){s=r+"//" +r=o.b +if(r.length!==0)s=s+r+"@" +if(!p)s+=q +r=o.d +if(r!=null)s=s+":"+A.i(r)}else s=r +s+=o.e +r=o.f +if(r!=null)s=s+"?"+r +r=o.r +if(r!=null)s=s+"#"+r +n!==$&&A.bq() +n=o.w=s.charCodeAt(0)==0?s:s}return n}, +gp(a){var s,r=this,q=r.y +if(q===$){s=B.a.gp(r.gX()) +r.y!==$&&A.bq() +r.y=s +q=s}return q}, +gan(){var s,r=this,q=r.z +if(q===$){s=r.f +s=A.f9(s==null?"":s) +r.z!==$&&A.bq() +q=r.z=new A.at(s,t.h)}return q}, +gb1(){return this.b}, +gai(){var s=this.c +if(s==null)return"" +if(B.a.u(s,"["))return B.a.j(s,1,s.length-1) +return s}, +ga1(){var s=this.d +return s==null?A.fm(this.a):s}, +gam(){var s=this.f +return s==null?"":s}, +gaM(){var s=this.r +return s==null?"":s}, +ao(a){var s,r,q,p,o=this,n=o.a,m=n==="file",l=o.b,k=o.d,j=o.c +if(!(j!=null))j=l.length!==0||k!=null||m?"":null +s=o.e +if(!m)r=j!=null&&s.length!==0 +else r=!0 +if(r&&!B.a.u(s,"/"))s="/"+s +q=s +p=A.eq(null,0,0,a) +return A.eo(n,l,j,k,q,p,o.r)}, +gaV(){if(this.a!==""){var s=this.r +s=(s==null?"":s)===""}else s=!1 +return s}, +gaO(){return this.c!=null}, +gaR(){return this.f!=null}, +gaP(){return this.r!=null}, +h(a){return this.gX()}, +E(a,b){var s,r,q,p=this +if(b==null)return!1 +if(p===b)return!0 +s=!1 +if(t.R.b(b))if(p.a===b.ga3())if(p.c!=null===b.gaO())if(p.b===b.gb1())if(p.gai()===b.gai())if(p.ga1()===b.ga1())if(p.e===b.gaY()){r=p.f +q=r==null +if(!q===b.gaR()){if(q)r="" +if(r===b.gam()){r=p.r +q=r==null +if(!q===b.gaP()){s=q?"":r +s=s===b.gaM()}}}}return s}, +$ibY:1, +ga3(){return this.a}, +gaY(){return this.e}} +A.dv.prototype={ +$2(a,b){var s=this.b,r=this.a +s.a+=r.a +r.a="&" +r=A.fs(B.h,a,B.e,!0) +r=s.a+=r +if(b!=null&&b.length!==0){s.a=r+"=" +r=A.fs(B.h,b,B.e,!0) +s.a+=r}}, +$S:23} +A.du.prototype={ +$2(a,b){var s,r +if(b==null||typeof b=="string")this.a.$2(a,b) +else for(s=J.X(b),r=this.a;s.m();)r.$2(a,s.gn())}, +$S:7} +A.cQ.prototype={ +gb0(){var s,r,q,p,o=this,n=null,m=o.c +if(m==null){m=o.a +s=o.b[0]+1 +r=B.a.a_(m,"?",s) +q=m.length +if(r>=0){p=A.bj(m,r+1,q,B.f,!1,!1) +q=r}else p=n +m=o.c=new A.c3("data","",n,n,A.bj(m,s,q,B.o,!1,!1),p,n)}return m}, +h(a){var s=this.a +return this.b[0]===-1?"data:"+s:s}} +A.dI.prototype={ +$2(a,b){var s=this.a[a] +B.a7.bA(s,0,96,b) +return s}, +$S:24} +A.dJ.prototype={ +$3(a,b,c){var s,r +for(s=b.length,r=0;r>>0]=c}, +$S:8} +A.cc.prototype={ +gaO(){return this.c>0}, +gaQ(){return this.c>0&&this.d+10&&this.r>=this.a.length}, +ga3(){var s=this.w +return s==null?this.w=this.bg():s}, +bg(){var s,r=this,q=r.b +if(q<=0)return"" +s=q===4 +if(s&&B.a.u(r.a,"http"))return"http" +if(q===5&&B.a.u(r.a,"https"))return"https" +if(s&&B.a.u(r.a,"file"))return"file" +if(q===7&&B.a.u(r.a,"package"))return"package" +return B.a.j(r.a,0,q)}, +gb1(){var s=this.c,r=this.b+3 +return s>r?B.a.j(this.a,r,s-1):""}, +gai(){var s=this.c +return s>0?B.a.j(this.a,s,this.d):""}, +ga1(){var s,r=this +if(r.gaQ())return A.e1(B.a.j(r.a,r.d+1,r.e),null) +s=r.b +if(s===4&&B.a.u(r.a,"http"))return 80 +if(s===5&&B.a.u(r.a,"https"))return 443 +return 0}, +gaY(){return B.a.j(this.a,this.e,this.f)}, +gam(){var s=this.f,r=this.r +return s=this.r)return B.a6 +return new A.at(A.f9(this.gam()),t.h)}, +ao(a){var s,r,q,p,o,n=this,m=null,l=n.ga3(),k=l==="file",j=n.c,i=j>0?B.a.j(n.a,n.b+3,j):"",h=n.gaQ()?n.ga1():m +j=n.c +if(j>0)s=B.a.j(n.a,j,n.d) +else s=i.length!==0||h!=null||k?"":m +j=n.a +r=B.a.j(j,n.e,n.f) +if(!k)q=s!=null&&r.length!==0 +else q=!0 +if(q&&!B.a.u(r,"/"))r="/"+r +p=A.eq(m,0,0,a) +q=n.r +o=q1,n="dart:"+s,m=0;m") +m=new A.cw(A.eV(new A.ag(o,A.jS(),n),!0,n.i("J.E"))) +n=self +l=A.bZ(J.am(n.window.location)).gan().k(0,"search") +if(l!=null){k=A.hH(m.aL(l)) +j=k==null?null:k.e +if(j!=null){n.window.location.assign($.br()+j) +s=1 +break}}n=p.b +if(n!=null)A.ek(m).aj(n) +n=p.c +if(n!=null)A.ek(m).aj(n) +n=p.d +if(n!=null)A.ek(m).aj(n) +case 1:return A.fB(q,r)}}) +return A.fC($async$$1,r)}, +$S:9} +A.dk.prototype={ +gG(){var s,r=this,q=r.c +if(q===$){s=self.document.createElement("div") +s.setAttribute("role","listbox") +s.setAttribute("aria-expanded","false") +s.style.display="none" +s.classList.add("tt-menu") +s.appendChild(r.gaX()) +s.appendChild(r.gR()) +r.c!==$&&A.bq() +r.c=s +q=s}return q}, +gaX(){var s,r=this.d +if(r===$){s=self.document.createElement("div") +s.classList.add("enter-search-message") +this.d!==$&&A.bq() +this.d=s +r=s}return r}, +gR(){var s,r=this.e +if(r===$){s=self.document.createElement("div") +s.classList.add("tt-search-results") +this.e!==$&&A.bq() +this.e=s +r=s}return r}, +aj(a){var s,r,q,p=this +a.disabled=!1 +a.setAttribute("placeholder","Search API Docs") +s=self +s.document.addEventListener("keydown",A.a6(new A.dl(a))) +r=s.document.createElement("div") +r.classList.add("tt-wrapper") +a.replaceWith(r) +a.setAttribute("autocomplete","off") +a.setAttribute("spellcheck","false") +a.classList.add("tt-input") +r.appendChild(a) +r.appendChild(p.gG()) +p.b7(a) +if(J.hn(s.window.location.href,"search.html")){q=p.b.gan().k(0,"q") +if(q==null)return +q=B.k.H(q) +$.ez=$.dQ +p.bF(q,!0) +p.b8(q) +p.ah() +$.ez=10}}, +b8(a){var s,r,q,p,o,n=self,m=n.document.getElementById("dartdoc-main-content") +if(m==null)return +m.textContent="" +s=n.document.createElement("section") +s.classList.add("search-summary") +m.appendChild(s) +s=n.document.createElement("h2") +s.innerHTML="Search Results" +m.appendChild(s) +s=n.document.createElement("div") +s.classList.add("search-summary") +s.innerHTML=""+$.dQ+' results for "'+a+'"' +m.appendChild(s) +if($.bl.a!==0)for(n=$.bl.gb2(),r=A.E(n),n=new A.ao(J.X(n.a),n.b,r.i("ao<1,2>")),r=r.y[1];n.m();){q=n.a +if(q==null)q=r.a(q) +m.appendChild(q)}else{s=n.document.createElement("div") +s.classList.add("search-summary") +s.innerHTML='There was not a match for "'+a+'". Want to try searching from additional Dart-related sites? ' +p=A.bZ("https://dart.dev/search?cx=011220921317074318178%3A_yy-tmb5t_i&ie=UTF-8&hl=en&q=").ao(A.eT(["q",a],t.N,t.z)) +o=n.document.createElement("a") +o.setAttribute("href",p.gX()) +o.textContent="Search on dart.dev." +s.appendChild(o) +m.appendChild(s)}}, +ah(){var s=this.gG() +s.style.display="none" +s.setAttribute("aria-expanded","false") +return s}, +b_(a,b,c){var s,r,q,p,o=this +o.x=A.h([],t.M) +s=o.w +B.c.Z(s) +$.bl.Z(0) +o.gR().textContent="" +r=b.length +if(r===0){o.ah() +return}for(q=0;q10?'Press "Enter" key to see all '+r+" results":"" +o.gaX().textContent=r}, +bQ(a,b){return this.b_(a,b,!1)}, +ag(a,b,c){var s,r,q,p=this +if(p.r===a&&!b)return +if(a.length===0){p.bQ("",A.h([],t.M)) +return}s=p.a.aL(a) +r=s.length +$.dQ=r +q=$.ez +if(r>q)s=B.c.ba(s,0,q) +p.r=a +p.b_(a,s,c)}, +bF(a,b){return this.ag(a,!1,b)}, +aN(a){return this.ag(a,!1,!1)}, +bE(a,b){return this.ag(a,b,!1)}, +aI(a){var s,r=this +r.y=-1 +s=r.f +if(s!=null){a.value=s +r.f=null}r.ah()}, +b7(a){var s=this +a.addEventListener("focus",A.a6(new A.dm(s,a))) +a.addEventListener("blur",A.a6(new A.dn(s,a))) +a.addEventListener("input",A.a6(new A.dp(s,a))) +a.addEventListener("keydown",A.a6(new A.dq(s,a)))}} +A.dl.prototype={ +$1(a){var s +if(!J.F(a.key,"/"))return +s=self.document.activeElement +if(s==null||!B.aa.N(0,s.nodeName.toLowerCase())){a.preventDefault() +this.a.focus()}}, +$S:1} +A.dm.prototype={ +$1(a){this.a.bE(this.b.value,!0)}, +$S:1} +A.dn.prototype={ +$1(a){this.a.aI(this.b)}, +$S:1} +A.dp.prototype={ +$1(a){this.a.aN(this.b.value)}, +$S:1} +A.dq.prototype={ +$1(a){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e=this +if(!J.F(a.type,"keydown"))return +if(J.F(a.code,"Enter")){a.preventDefault() +s=e.a +r=s.y +if(r!==-1){q=s.w[r].getAttribute("data-href") +if(q!=null)self.window.location.assign($.br()+q) +return}else{p=B.k.H(s.r) +o=A.bZ($.br()+"search.html").ao(A.eT(["q",p],t.N,t.z)) +self.window.location.assign(o.gX()) +return}}s=e.a +r=s.w +n=r.length-1 +m=s.y +if(J.F(a.code,"ArrowUp")){l=s.y +if(l===-1)s.y=n +else s.y=l-1}else if(J.F(a.code,"ArrowDown")){l=s.y +if(l===n)s.y=-1 +else s.y=l+1}else if(J.F(a.code,"Escape"))s.aI(e.b) +else{if(s.f!=null){s.f=null +s.aN(e.b.value)}return}l=m!==-1 +if(l)r[m].classList.remove("tt-cursor") +k=s.y +if(k!==-1){j=r[k] +j.classList.add("tt-cursor") +r=s.y +if(r===0)s.gG().scrollTop=0 +else if(r===n)s.gG().scrollTop=s.gG().scrollHeight +else{i=j.offsetTop +h=s.gG().offsetHeight +if(i"+A.i(a.k(0,0))+""}, +$S:29} +A.dN.prototype={ +$1(a){var s=this.a +if(s!=null)s.classList.toggle("active") +s=this.b +if(s!=null)s.classList.toggle("active")}, +$S:1} +A.dO.prototype={ +$1(a){return this.b4(a)}, +b4(a){var s=0,r=A.fK(t.P),q,p=this,o,n +var $async$$1=A.fR(function(b,c){if(b===1)return A.fA(c,r) +while(true)switch(s){case 0:if(!J.F(a.status,200)){o=self.document.createElement("a") +o.href="https://dart.dev/tools/dart-doc#troubleshoot" +o.text="Failed to load sidebar. Visit dart.dev for help troubleshooting." +p.a.appendChild(o) +s=1 +break}s=3 +return A.fz(A.e4(a.text(),t.N),$async$$1) +case 3:n=c +o=self.document.createElement("div") +o.innerHTML=n +A.fQ(p.b,o) +p.a.appendChild(o) +case 1:return A.fB(q,r)}}) +return A.fC($async$$1,r)}, +$S:9} +A.e0.prototype={ +$0(){var s=this.a,r=this.b +if(s.checked){r.setAttribute("class","dark-theme") +s.setAttribute("value","dark-theme") +self.window.localStorage.setItem("colorTheme","true")}else{r.setAttribute("class","light-theme") +s.setAttribute("value","light-theme") +self.window.localStorage.setItem("colorTheme","false")}}, +$S:0} +A.dY.prototype={ +$1(a){this.a.$0()}, +$S:1};(function aliases(){var s=J.a0.prototype +s.bb=s.h})();(function installTearOffs(){var s=hunkHelpers._static_2,r=hunkHelpers._static_1,q=hunkHelpers._static_0 +s(J,"j0","hM",30) +r(A,"jq","i3",3) +r(A,"jr","i4",3) +r(A,"js","i5",3) +q(A,"fT","jk",0) +r(A,"jS","hC",31)})();(function inheritance(){var s=hunkHelpers.mixin,r=hunkHelpers.inherit,q=hunkHelpers.inheritMany +r(A.k,null) +q(A.k,[A.ec,J.bC,J.Y,A.n,A.bw,A.l,A.e,A.cL,A.an,A.ao,A.aK,A.bW,A.ba,A.aE,A.c8,A.aq,A.cO,A.cJ,A.aJ,A.bb,A.ac,A.O,A.cF,A.bG,A.cA,A.c9,A.cY,A.I,A.c5,A.dt,A.dr,A.c_,A.bv,A.c1,A.au,A.v,A.c0,A.cd,A.dC,A.cg,A.aS,A.by,A.bA,A.cv,A.dA,A.dx,A.d2,A.bQ,A.b0,A.d3,A.ct,A.u,A.ce,A.z,A.bi,A.cQ,A.cc,A.cI,A.cw,A.w,A.cq,A.dk]) +q(J.bC,[J.bD,J.aM,J.aP,J.aO,J.aQ,J.aN,J.ad]) +q(J.aP,[J.a0,J.o,A.bH,A.aV]) +q(J.a0,[J.bR,J.ar,J.a_]) +r(J.cB,J.o) +q(J.aN,[J.aL,J.bE]) +q(A.n,[A.a3,A.c,A.af]) +q(A.a3,[A.ab,A.bk]) +r(A.b4,A.ab) +r(A.b3,A.bk) +r(A.M,A.b3) +q(A.l,[A.aR,A.Q,A.bF,A.bV,A.c2,A.bT,A.c4,A.bt,A.G,A.bX,A.bU,A.b1,A.bz]) +r(A.as,A.e) +r(A.bx,A.as) +q(A.c,[A.J,A.N]) +r(A.aI,A.af) +q(A.J,[A.ag,A.c7]) +r(A.ca,A.ba) +r(A.cb,A.ca) +r(A.aG,A.aE) +r(A.aF,A.aq) +r(A.aH,A.aF) +r(A.aY,A.Q) +q(A.ac,[A.co,A.cp,A.cN,A.cC,A.dV,A.dX,A.d_,A.cZ,A.dD,A.d8,A.df,A.dJ,A.dK,A.e5,A.e6,A.cz,A.cy,A.dZ,A.dl,A.dm,A.dn,A.dp,A.dq,A.dG,A.dH,A.dL,A.dN,A.dO,A.dY]) +q(A.cN,[A.cM,A.aC]) +q(A.O,[A.ae,A.c6]) +q(A.cp,[A.dW,A.dE,A.dR,A.d9,A.cG,A.dw,A.cU,A.cR,A.cS,A.cT,A.dv,A.du,A.dI,A.cx]) +q(A.aV,[A.bI,A.ap]) +q(A.ap,[A.b6,A.b8]) +r(A.b7,A.b6) +r(A.aT,A.b7) +r(A.b9,A.b8) +r(A.aU,A.b9) +q(A.aT,[A.bJ,A.bK]) +q(A.aU,[A.bL,A.bM,A.bN,A.bO,A.bP,A.aW,A.aX]) +r(A.bc,A.c4) +q(A.co,[A.d0,A.d1,A.ds,A.d4,A.db,A.da,A.d7,A.d6,A.d5,A.de,A.dd,A.dc,A.dP,A.dj,A.dz,A.dy,A.dM,A.e_,A.e0]) +r(A.b2,A.c1) +r(A.di,A.dC) +r(A.bh,A.aS) +r(A.at,A.bh) +q(A.by,[A.cm,A.cr,A.cD]) +q(A.bA,[A.cn,A.cu,A.cE,A.cX,A.cW]) +r(A.cV,A.cr) +q(A.G,[A.aZ,A.bB]) +r(A.c3,A.bi) +q(A.d2,[A.m,A.A]) +s(A.as,A.bW) +s(A.bk,A.e) +s(A.b6,A.e) +s(A.b7,A.aK) +s(A.b8,A.e) +s(A.b9,A.aK) +s(A.bh,A.cg)})() +var v={typeUniverse:{eC:new Map(),tR:{},eT:{},tPV:{},sEA:[]},mangledGlobalNames:{b:"int",t:"double",jO:"num",d:"String",jt:"bool",u:"Null",f:"List",k:"Object",y:"Map"},mangledNames:{},types:["~()","u(p)","~(@)","~(~())","u(@)","u()","@()","~(d,@)","~(ah,d,b)","Z(p)","@(@)","@(@,d)","@(d)","u(~())","u(@,a1)","~(b,@)","u(k,a1)","v<@>(@)","~(k?,k?)","y(y,d)","~(d,b)","~(d,b?)","b(b,b)","~(d,d?)","ah(@,@)","~(A)","b(+item,matchPosition(w,A),+item,matchPosition(w,A))","w(+item,matchPosition(w,A))","d()","d(cH)","b(@,@)","w(y)"],interceptorsByTag:null,leafTags:null,arrayRti:Symbol("$ti"),rttc:{"2;item,matchPosition":(a,b)=>c=>c instanceof A.cb&&a.b(c.a)&&b.b(c.b)}} +A.io(v.typeUniverse,JSON.parse('{"bR":"a0","ar":"a0","a_":"a0","bD":{"j":[]},"aM":{"u":[],"j":[]},"aP":{"p":[]},"a0":{"p":[]},"o":{"f":["1"],"c":["1"],"p":[]},"cB":{"o":["1"],"f":["1"],"c":["1"],"p":[]},"aN":{"t":[]},"aL":{"t":[],"b":[],"j":[]},"bE":{"t":[],"j":[]},"ad":{"d":[],"j":[]},"a3":{"n":["2"]},"ab":{"a3":["1","2"],"n":["2"],"n.E":"2"},"b4":{"ab":["1","2"],"a3":["1","2"],"c":["2"],"n":["2"],"n.E":"2"},"b3":{"e":["2"],"f":["2"],"a3":["1","2"],"c":["2"],"n":["2"]},"M":{"b3":["1","2"],"e":["2"],"f":["2"],"a3":["1","2"],"c":["2"],"n":["2"],"e.E":"2","n.E":"2"},"aR":{"l":[]},"bx":{"e":["b"],"f":["b"],"c":["b"],"e.E":"b"},"c":{"n":["1"]},"J":{"c":["1"],"n":["1"]},"af":{"n":["2"],"n.E":"2"},"aI":{"af":["1","2"],"c":["2"],"n":["2"],"n.E":"2"},"ag":{"J":["2"],"c":["2"],"n":["2"],"J.E":"2","n.E":"2"},"as":{"e":["1"],"f":["1"],"c":["1"]},"aE":{"y":["1","2"]},"aG":{"y":["1","2"]},"aF":{"aq":["1"],"c":["1"]},"aH":{"aq":["1"],"c":["1"]},"aY":{"Q":[],"l":[]},"bF":{"l":[]},"bV":{"l":[]},"bb":{"a1":[]},"c2":{"l":[]},"bT":{"l":[]},"ae":{"O":["1","2"],"y":["1","2"],"O.V":"2"},"N":{"c":["1"],"n":["1"],"n.E":"1"},"c9":{"eh":[],"cH":[]},"bH":{"p":[],"j":[]},"aV":{"p":[]},"bI":{"p":[],"j":[]},"ap":{"D":["1"],"p":[]},"aT":{"e":["t"],"f":["t"],"D":["t"],"c":["t"],"p":[]},"aU":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[]},"bJ":{"e":["t"],"f":["t"],"D":["t"],"c":["t"],"p":[],"j":[],"e.E":"t"},"bK":{"e":["t"],"f":["t"],"D":["t"],"c":["t"],"p":[],"j":[],"e.E":"t"},"bL":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"bM":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"bN":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"bO":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"bP":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"aW":{"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"aX":{"ah":[],"e":["b"],"f":["b"],"D":["b"],"c":["b"],"p":[],"j":[],"e.E":"b"},"c4":{"l":[]},"bc":{"Q":[],"l":[]},"v":{"Z":["1"]},"bv":{"l":[]},"b2":{"c1":["1"]},"e":{"f":["1"],"c":["1"]},"O":{"y":["1","2"]},"aS":{"y":["1","2"]},"at":{"y":["1","2"]},"aq":{"c":["1"]},"c6":{"O":["d","@"],"y":["d","@"],"O.V":"@"},"c7":{"J":["d"],"c":["d"],"n":["d"],"J.E":"d","n.E":"d"},"f":{"c":["1"]},"eh":{"cH":[]},"bt":{"l":[]},"Q":{"l":[]},"G":{"l":[]},"aZ":{"l":[]},"bB":{"l":[]},"bX":{"l":[]},"bU":{"l":[]},"b1":{"l":[]},"bz":{"l":[]},"bQ":{"l":[]},"b0":{"l":[]},"ce":{"a1":[]},"bi":{"bY":[]},"cc":{"bY":[]},"c3":{"bY":[]},"hF":{"f":["b"],"c":["b"]},"ah":{"f":["b"],"c":["b"]},"i0":{"f":["b"],"c":["b"]},"hD":{"f":["b"],"c":["b"]},"hZ":{"f":["b"],"c":["b"]},"hE":{"f":["b"],"c":["b"]},"i_":{"f":["b"],"c":["b"]},"hA":{"f":["t"],"c":["t"]},"hB":{"f":["t"],"c":["t"]}}')) +A.im(v.typeUniverse,JSON.parse('{"aK":1,"bW":1,"as":1,"bk":2,"aE":2,"aF":1,"bG":1,"ap":1,"cd":1,"cg":2,"aS":2,"bh":2,"by":2,"bA":2}')) +var u={c:"Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type"} +var t=(function rtii(){var s=A.bo +return{U:s("c<@>"),Q:s("l"),Z:s("k_"),M:s("o"),O:s("o

"),r:s("o<+item,matchPosition(w,A)>"),s:s("o"),b:s("o<@>"),t:s("o"),T:s("aM"),m:s("p"),g:s("a_"),p:s("D<@>"),j:s("f<@>"),a:s("y"),V:s("ag<+item,matchPosition(w,A),w>"),P:s("u"),K:s("k"),L:s("k0"),d:s("+()"),F:s("eh"),l:s("a1"),N:s("d"),k:s("j"),c:s("Q"),D:s("ah"),o:s("ar"),h:s("at"),R:s("bY"),e:s("v<@>"),y:s("jt"),i:s("t"),z:s("@"),v:s("@(k)"),C:s("@(k,a1)"),S:s("b"),A:s("0&*"),_:s("k*"),W:s("Z?"),X:s("k?"),H:s("jO")}})();(function constants(){var s=hunkHelpers.makeConstList +B.E=J.bC.prototype +B.c=J.o.prototype +B.b=J.aL.prototype +B.a=J.ad.prototype +B.F=J.a_.prototype +B.G=J.aP.prototype +B.a7=A.aX.prototype +B.r=J.bR.prototype +B.j=J.ar.prototype +B.ar=new A.cn() +B.t=new A.cm() +B.as=new A.cv() +B.k=new A.cu() +B.l=function getTagFallback(o) { + var s = Object.prototype.toString.call(o); + return s.substring(8, s.length - 1); +} +B.u=function() { + var toStringFunction = Object.prototype.toString; + function getTag(o) { + var s = toStringFunction.call(o); + return s.substring(8, s.length - 1); + } + function getUnknownTag(object, tag) { + if (/^HTML[A-Z].*Element$/.test(tag)) { + var name = toStringFunction.call(object); + if (name == "[object Object]") return null; + return "HTMLElement"; + } + } + function getUnknownTagGenericBrowser(object, tag) { + if (object instanceof HTMLElement) return "HTMLElement"; + return getUnknownTag(object, tag); + } + function prototypeForTag(tag) { + if (typeof window == "undefined") return null; + if (typeof window[tag] == "undefined") return null; + var constructor = window[tag]; + if (typeof constructor != "function") return null; + return constructor.prototype; + } + function discriminator(tag) { return null; } + var isBrowser = typeof HTMLElement == "function"; + return { + getTag: getTag, + getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, + prototypeForTag: prototypeForTag, + discriminator: discriminator }; +} +B.z=function(getTagFallback) { + return function(hooks) { + if (typeof navigator != "object") return hooks; + var userAgent = navigator.userAgent; + if (typeof userAgent != "string") return hooks; + if (userAgent.indexOf("DumpRenderTree") >= 0) return hooks; + if (userAgent.indexOf("Chrome") >= 0) { + function confirm(p) { + return typeof window == "object" && window[p] && window[p].name == p; + } + if (confirm("Window") && confirm("HTMLElement")) return hooks; + } + hooks.getTag = getTagFallback; + }; +} +B.v=function(hooks) { + if (typeof dartExperimentalFixupGetTag != "function") return hooks; + hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); +} +B.y=function(hooks) { + if (typeof navigator != "object") return hooks; + var userAgent = navigator.userAgent; + if (typeof userAgent != "string") return hooks; + if (userAgent.indexOf("Firefox") == -1) return hooks; + var getTag = hooks.getTag; + var quickMap = { + "BeforeUnloadEvent": "Event", + "DataTransfer": "Clipboard", + "GeoGeolocation": "Geolocation", + "Location": "!Location", + "WorkerMessageEvent": "MessageEvent", + "XMLDocument": "!Document"}; + function getTagFirefox(o) { + var tag = getTag(o); + return quickMap[tag] || tag; + } + hooks.getTag = getTagFirefox; +} +B.x=function(hooks) { + if (typeof navigator != "object") return hooks; + var userAgent = navigator.userAgent; + if (typeof userAgent != "string") return hooks; + if (userAgent.indexOf("Trident/") == -1) return hooks; + var getTag = hooks.getTag; + var quickMap = { + "BeforeUnloadEvent": "Event", + "DataTransfer": "Clipboard", + "HTMLDDElement": "HTMLElement", + "HTMLDTElement": "HTMLElement", + "HTMLPhraseElement": "HTMLElement", + "Position": "Geoposition" + }; + function getTagIE(o) { + var tag = getTag(o); + var newTag = quickMap[tag]; + if (newTag) return newTag; + if (tag == "Object") { + if (window.DataView && (o instanceof window.DataView)) return "DataView"; + } + return tag; + } + function prototypeForTagIE(tag) { + var constructor = window[tag]; + if (constructor == null) return null; + return constructor.prototype; + } + hooks.getTag = getTagIE; + hooks.prototypeForTag = prototypeForTagIE; +} +B.w=function(hooks) { + var getTag = hooks.getTag; + var prototypeForTag = hooks.prototypeForTag; + function getTagFixed(o) { + var tag = getTag(o); + if (tag == "Document") { + if (!!o.xmlVersion) return "!Document"; + return "!HTMLDocument"; + } + return tag; + } + function prototypeForTagFixed(tag) { + if (tag == "Document") return null; + return prototypeForTag(tag); + } + hooks.getTag = getTagFixed; + hooks.prototypeForTag = prototypeForTagFixed; +} +B.m=function(hooks) { return hooks; } + +B.A=new A.cD() +B.B=new A.bQ() +B.i=new A.cL() +B.e=new A.cV() +B.C=new A.cX() +B.d=new A.di() +B.D=new A.ce() +B.H=new A.cE(null) +B.a4=A.h(s([0,0,32722,12287,65534,34815,65534,18431]),t.t) +B.f=A.h(s([0,0,65490,45055,65535,34815,65534,18431]),t.t) +B.a5=A.h(s([0,0,32754,11263,65534,34815,65534,18431]),t.t) +B.n=A.h(s([0,0,26624,1023,65534,2047,65534,2047]),t.t) +B.o=A.h(s([0,0,65490,12287,65535,34815,65534,18431]),t.t) +B.I=new A.m(0,"accessor") +B.J=new A.m(1,"constant") +B.U=new A.m(2,"constructor") +B.Y=new A.m(3,"class_") +B.Z=new A.m(4,"dynamic") +B.a_=new A.m(5,"enum_") +B.a0=new A.m(6,"extension") +B.a1=new A.m(7,"extensionType") +B.a2=new A.m(8,"function") +B.a3=new A.m(9,"library") +B.K=new A.m(10,"method") +B.L=new A.m(11,"mixin") +B.M=new A.m(12,"never") +B.N=new A.m(13,"package") +B.O=new A.m(14,"parameter") +B.P=new A.m(15,"prefix") +B.Q=new A.m(16,"property") +B.R=new A.m(17,"sdk") +B.S=new A.m(18,"topic") +B.T=new A.m(19,"topLevelConstant") +B.V=new A.m(20,"topLevelProperty") +B.W=new A.m(21,"typedef") +B.X=new A.m(22,"typeParameter") +B.p=A.h(s([B.I,B.J,B.U,B.Y,B.Z,B.a_,B.a0,B.a1,B.a2,B.a3,B.K,B.L,B.M,B.N,B.O,B.P,B.Q,B.R,B.S,B.T,B.V,B.W,B.X]),A.bo("o")) +B.q=A.h(s([0,0,32776,33792,1,10240,0,0]),t.t) +B.h=A.h(s([0,0,24576,1023,65534,34815,65534,18431]),t.t) +B.a8={} +B.a6=new A.aG(B.a8,[],A.bo("aG")) +B.a9={input:0,textarea:1} +B.aa=new A.aH(B.a9,2,A.bo("aH")) +B.ab=A.K("jX") +B.ac=A.K("jY") +B.ad=A.K("hA") +B.ae=A.K("hB") +B.af=A.K("hD") +B.ag=A.K("hE") +B.ah=A.K("hF") +B.ai=A.K("k") +B.aj=A.K("hZ") +B.ak=A.K("i_") +B.al=A.K("i0") +B.am=A.K("ah") +B.an=new A.cW(!1) +B.ao=new A.A(0,"isExactly") +B.ap=new A.A(1,"startsWith") +B.aq=new A.A(2,"contains")})();(function staticFields(){$.dg=null +$.al=A.h([],A.bo("o")) +$.eW=null +$.eO=null +$.eN=null +$.fV=null +$.fS=null +$.h_=null +$.dS=null +$.e2=null +$.eD=null +$.dh=A.h([],A.bo("o?>")) +$.aw=null +$.bm=null +$.bn=null +$.ew=!1 +$.r=B.d +$.ez=10 +$.dQ=0 +$.bl=A.ee(t.N,t.m)})();(function lazyInitializers(){var s=hunkHelpers.lazyFinal +s($,"jZ","eH",()=>A.jA("_$dart_dartClosure")) +s($,"k2","h2",()=>A.R(A.cP({ +toString:function(){return"$receiver$"}}))) +s($,"k3","h3",()=>A.R(A.cP({$method$:null, +toString:function(){return"$receiver$"}}))) +s($,"k4","h4",()=>A.R(A.cP(null))) +s($,"k5","h5",()=>A.R(function(){var $argumentsExpr$="$arguments$" +try{null.$method$($argumentsExpr$)}catch(r){return r.message}}())) +s($,"k8","h8",()=>A.R(A.cP(void 0))) +s($,"k9","h9",()=>A.R(function(){var $argumentsExpr$="$arguments$" +try{(void 0).$method$($argumentsExpr$)}catch(r){return r.message}}())) +s($,"k7","h7",()=>A.R(A.f5(null))) +s($,"k6","h6",()=>A.R(function(){try{null.$method$}catch(r){return r.message}}())) +s($,"kb","hb",()=>A.R(A.f5(void 0))) +s($,"ka","ha",()=>A.R(function(){try{(void 0).$method$}catch(r){return r.message}}())) +s($,"kc","eI",()=>A.i2()) +s($,"ki","hh",()=>A.hR(4096)) +s($,"kg","hf",()=>new A.dz().$0()) +s($,"kh","hg",()=>new A.dy().$0()) +s($,"kd","hc",()=>A.hQ(A.iR(A.h([-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-1,-2,-2,-2,-2,-2,62,-2,62,-2,63,52,53,54,55,56,57,58,59,60,61,-2,-2,-2,-1,-2,-2,-2,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-2,-2,-2,-2,63,-2,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-2,-2,-2,-2,-2],t.t)))) +s($,"ke","hd",()=>A.eZ("^[\\-\\.0-9A-Z_a-z~]*$",!0)) +s($,"kf","he",()=>typeof URLSearchParams=="function") +s($,"ku","e7",()=>A.fY(B.ai)) +s($,"kw","hi",()=>A.iQ()) +s($,"kv","br",()=>new A.dM().$0())})();(function nativeSupport(){!function(){var s=function(a){var m={} +m[a]=1 +return Object.keys(hunkHelpers.convertToFastObject(m))[0]} +v.getIsolateTag=function(a){return s("___dart_"+a+v.isolateTag)} +var r="___dart_isolate_tags_" +var q=Object[r]||(Object[r]=Object.create(null)) +var p="_ZxYxX" +for(var o=0;;o++){var n=s(p+"_"+o+"_") +if(!(n in q)){q[n]=1 +v.isolateTag=n +break}}v.dispatchPropertyName=v.getIsolateTag("dispatch_record")}() +hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer:A.bH,ArrayBufferView:A.aV,DataView:A.bI,Float32Array:A.bJ,Float64Array:A.bK,Int16Array:A.bL,Int32Array:A.bM,Int8Array:A.bN,Uint16Array:A.bO,Uint32Array:A.bP,Uint8ClampedArray:A.aW,CanvasPixelArray:A.aW,Uint8Array:A.aX}) +hunkHelpers.setOrUpdateLeafTags({ArrayBuffer:true,ArrayBufferView:false,DataView:true,Float32Array:true,Float64Array:true,Int16Array:true,Int32Array:true,Int8Array:true,Uint16Array:true,Uint32Array:true,Uint8ClampedArray:true,CanvasPixelArray:true,Uint8Array:false}) +A.ap.$nativeSuperclassTag="ArrayBufferView" +A.b6.$nativeSuperclassTag="ArrayBufferView" +A.b7.$nativeSuperclassTag="ArrayBufferView" +A.aT.$nativeSuperclassTag="ArrayBufferView" +A.b8.$nativeSuperclassTag="ArrayBufferView" +A.b9.$nativeSuperclassTag="ArrayBufferView" +A.aU.$nativeSuperclassTag="ArrayBufferView"})() +Function.prototype.$0=function(){return this()} +Function.prototype.$1=function(a){return this(a)} +Function.prototype.$2=function(a,b){return this(a,b)} +Function.prototype.$1$1=function(a){return this(a)} +Function.prototype.$3=function(a,b,c){return this(a,b,c)} +Function.prototype.$4=function(a,b,c,d){return this(a,b,c,d)} +Function.prototype.$1$0=function(){return this()} +convertAllToFastObject(w) +convertToFastObject($);(function(a){if(typeof document==="undefined"){a(null) +return}if(typeof document.currentScript!="undefined"){a(document.currentScript) +return}var s=document.scripts +function onLoad(b){for(var q=0;q","JsLinkedHashMap_values_closure","LinkedHashMapKeyIterable.length","LinkedHashMapKeyIterable.iterator","LinkedHashMapKeyIterator","LinkedHashMapKeyIterator.current","LinkedHashMapKeyIterator.moveNext","initHooks.","_Record.toString","_Record._toString","StringBuffer._writeString","_Record._fieldKeys","_Record._computeFieldKeys","_Record2._getFieldValues","_Record2.==","_Record._sameShape","_Record2.hashCode","JSSyntaxRegExp.toString","JSSyntaxRegExp._nativeGlobalVersion","JSSyntaxRegExp._execGlobal","_MatchImplementation.end","_MatchImplementation.[]","_AllMatchesIterator.current","_AllMatchesIterator.moveNext","JSSyntaxRegExp.isUnicode","NativeByteBuffer.runtimeType","NativeByteData.runtimeType","NativeTypedArray.length","NativeTypedArrayOfDouble.[]","NativeTypedArrayOfDouble.[]=","NativeTypedArrayOfInt.[]=","NativeFloat32List.runtimeType","NativeFloat64List.runtimeType","NativeInt16List.runtimeType","NativeInt16List.[]","NativeInt32List.runtimeType","NativeInt32List.[]","NativeInt8List.runtimeType","NativeInt8List.[]","NativeUint16List.runtimeType","NativeUint16List.[]","NativeUint32List.runtimeType","NativeUint32List.[]","NativeUint8ClampedList.runtimeType","NativeUint8ClampedList.length","NativeUint8ClampedList.[]","NativeUint8List.runtimeType","NativeUint8List.length","NativeUint8List.[]","Rti._eval","Rti._bind","_Type.toString","_Error.toString","_AsyncRun._initializeScheduleImmediate.internalCallback","_AsyncRun._initializeScheduleImmediate.","_AsyncRun._scheduleImmediateJsOverride.internalCallback","_AsyncRun._scheduleImmediateWithSetImmediate.internalCallback","_TimerImpl.internalCallback","_AsyncAwaitCompleter.complete","_AsyncAwaitCompleter.completeError","_awaitOnObject.","_wrapJsFunctionForAsync.","AsyncError.toString","_Completer.completeError","_Completer.completeError[function-entry$1]","_AsyncCompleter.complete","_FutureListener.matchesErrorTest","_FutureListener.handleError","_Future._setChained","_Future.then","_Future.then[function-entry$1]","_Future._thenAwait","_Future._setErrorObject","_Future._cloneResult","_Future._addListener","_Future._prependListeners","_Future._removeListeners","_Future._reverseListeners","_Future._chainForeignFuture","_Future._completeWithValue","_Future._completeError","_Future._asyncComplete","_Future._asyncCompleteWithValue","_Future._chainFuture","_Future._asyncCompleteError","_Future._addListener.","_Future._prependListeners.","_Future._chainForeignFuture.","_Future._chainCoreFutureAsync.","_Future._asyncCompleteWithValue.","_Future._asyncCompleteError.","_Future._propagateToListeners.handleWhenCompleteCallback","_FutureListener.handleWhenComplete","_Future._propagateToListeners.handleWhenCompleteCallback.","_Future._propagateToListeners.handleValueCallback","_FutureListener.handleValue","_Future._propagateToListeners.handleError","_FutureListener.hasErrorCallback","_rootHandleError.","_RootZone.runGuarded","_RootZone.bindCallbackGuarded","_RootZone.run","_RootZone.run[function-entry$1]","_RootZone.runUnary","_RootZone.runUnary[function-entry$2]","_RootZone.runBinary","_RootZone.runBinary[function-entry$3]","_RootZone.registerBinaryCallback","_RootZone.registerBinaryCallback[function-entry$1]","_RootZone.bindCallbackGuarded.","ListBase.iterator","ListBase.elementAt","ListBase.cast","ListBase.fillRange","ListBase.toString","MapBase.forEach","MapBase.length","MapBase.toString","MapBase.mapToString.","_UnmodifiableMapMixin.[]=","MapView.[]","MapView.[]=","MapView.length","MapView.toString","SetBase.toString","SetBase.elementAt","_JsonMap.[]","_JsonMap.length","_JsonMap.keys","_JsonMap.[]=","_JsonMap.containsKey","_JsonMap.forEach","_JsonMap._computeKeys","_JsonMap._upgrade","_JsonMap._process","_JsonMapKeyIterable.length","_JsonMapKeyIterable.elementAt","_JsonMapKeyIterable.iterator","_Utf8Decoder._decoder.","_Utf8Decoder._decoderNonfatal.","Base64Codec.normalize","HtmlEscapeMode.toString","HtmlEscape.convert","HtmlEscape._convert","JsonCodec.decode","JsonCodec.decoder","Utf8Encoder.convert","NativeUint8List.sublist","_Utf8Encoder._writeReplacementCharacter","_Utf8Encoder._writeSurrogate","_Utf8Encoder._fillBuffer","Utf8Decoder.convert","_Utf8Decoder._convertGeneral","_Utf8Decoder._decodeRecursive","_Utf8Decoder.decodeGeneral","_Uri._makeQueryFromParameters.","_Enum.toString","Error.stackTrace","AssertionError.toString","ArgumentError._errorName","ArgumentError._errorExplanation","ArgumentError.toString","RangeError.invalidValue","RangeError._errorName","RangeError._errorExplanation","IndexError.invalidValue","IndexError._errorName","IndexError._errorExplanation","UnsupportedError.toString","UnimplementedError.toString","StateError.toString","ConcurrentModificationError.toString","OutOfMemoryError.toString","OutOfMemoryError.stackTrace","StackOverflowError.toString","StackOverflowError.stackTrace","_Exception.toString","FormatException.toString","Iterable.cast","Iterable.length","Iterable.elementAt","Iterable.toString","Null.hashCode","Null.toString","Object.hashCode","Object.==","Object.toString","Object.runtimeType","_StringStackTrace.toString","StringBuffer.length","StringBuffer.toString","Uri.splitQueryString.","Uri._parseIPv4Address.error","Uri.parseIPv6Address.error","Uri.parseIPv6Address.parseHex","_Uri._text","_Uri._initializeText","_Uri._writeAuthority","_Uri.hashCode","_Uri.queryParameters","_Uri.userInfo","_Uri.host","_Uri.port","_Uri.query","_Uri.fragment","_Uri.replace","_Uri.isAbsolute","_Uri.hasAuthority","_Uri.hasQuery","_Uri.hasFragment","_Uri.toString","_Uri.==","_Uri._makeQueryFromParametersDefault.writeParameter","_Uri._makeQueryFromParametersDefault.","UriData.uri","UriData._computeUri","UriData.toString","_createTables.build","_createTables.setChars","_createTables.setRange","_SimpleUri.hasAuthority","_SimpleUri.hasPort","_SimpleUri.hasQuery","_SimpleUri.hasFragment","_SimpleUri.isAbsolute","_SimpleUri.scheme","_SimpleUri._computeScheme","_SimpleUri.userInfo","_SimpleUri.host","_SimpleUri.port","_SimpleUri.path","_SimpleUri.query","_SimpleUri.fragment","_SimpleUri.queryParameters","_SimpleUri.replace","_SimpleUri.hashCode","_SimpleUri.==","_SimpleUri.toString","promiseToFuture.","NullRejectionException.toString","Kind._enumToString","Kind.toString","_MatchPosition._enumToString","Index.find","JSArray.map","Index.find.score","Index.find.","IndexItem._scope","_htmlBase.","init.disableSearch","print","init.","init_closure","Index.fromJson","ListBase.map","_Search.listBox","_Search.moreResults","_Search.searchResults","_Search.initialize","_Search.showSearchResultPage","HTMLElement|constructor#section","HTMLHeadingElement|constructor#h2","JsLinkedHashMap.isNotEmpty","_Search.hideSuggestions","_Search.updateSuggestions","_Search.showSuggestions","_Search.showEnterMessage","_Search.updateSuggestions[function-entry$2]","_Search.handleSearch","_Search.handleSearch[function-entry$1$isSearchPage]","_Search.handleSearch[function-entry$1]","_Search.handleSearch[function-entry$1$forceUpdate]","_Search.clearSearch","_Search.setEventListeners","_Search.initialize.","ElementExtension.acceptsInput","_Search.setEventListeners.","_createSuggestion.","_highlight.","_initializeToggles.","_loadSidebar.","_loadSidebar_closure","init.switchThemes","DART_CLOSURE_PROPERTY_NAME","TypeErrorDecoder.noSuchMethodPattern","TypeErrorDecoder.notClosurePattern","TypeErrorDecoder.nullCallPattern","TypeErrorDecoder.nullLiteralCallPattern","TypeErrorDecoder.undefinedCallPattern","TypeErrorDecoder.undefinedLiteralCallPattern","TypeErrorDecoder.nullPropertyPattern","TypeErrorDecoder.nullLiteralPropertyPattern","TypeErrorDecoder.undefinedPropertyPattern","TypeErrorDecoder.undefinedLiteralPropertyPattern","_AsyncRun._scheduleImmediateClosure","_Utf8Decoder._reusableBuffer","_Utf8Decoder._decoder","_Utf8Decoder._decoderNonfatal","_Base64Decoder._inverseAlphabet","_Uri._needsNoEncoding","_Uri._useURLSearchParams","_hashSeed","_scannerTables","_htmlBase","","$intercepted$$eq$Iu","$intercepted$__$asx","$intercepted$___$ax","$intercepted$cast10$ax","$intercepted$compareTo1$ns","$intercepted$contains1$asx","$intercepted$elementAt1$ax","$intercepted$get$hashCode$IJavaScriptBigIntJavaScriptSymbolLegacyJavaScriptObjectabnsu","$intercepted$get$iterator$ax","$intercepted$get$length$asx","$intercepted$get$runtimeType$Ibdinsux","$intercepted$toString0$IJavaScriptBigIntJavaScriptFunctionJavaScriptSymbolLegacyJavaScriptObjectabnsux","ArrayIterator","Base64Codec","Base64Encoder","BoundClosure","ByteBuffer","ByteData","CastIterator","CastList","Closure","Closure0Args","Closure2Args","CodeUnits","Codec","ConstantMap","ConstantSet","ConstantStringMap","ConstantStringSet","Converter","EfficientLengthIterable","EfficientLengthMappedIterable","EnclosedBy","Encoding","Error","ExceptionAndStackTrace","FixedLengthListMixin","Float32List","Float64List","Function","Future","HtmlEscape","HtmlEscapeMode","Index","IndexError","IndexItem","Index_find_closure","Index_find_score","Int16List","Int32List","Int8List","Interceptor","Iterable","IterableExtensions|get#firstOrNull","JSArray","JSBool","JSInt","JSNull","JSNumNotInt","JSNumber","JSObject","JSString","JSSyntaxRegExp","JSUnmodifiableArray","JS_CONST","JavaScriptBigInt","JavaScriptFunction","JavaScriptIndexingBehavior","JavaScriptObject","JavaScriptSymbol","JsLinkedHashMap","JsonCodec","JsonDecoder","Kind","LateError","LegacyJavaScriptObject","LinkedHashMapCell","LinkedHashMapKeyIterable","List","ListBase","ListIterable","ListIterator","Map","MapBase","MapBase_mapToString_closure","MapView","MappedIterator","MappedListIterable","Match","NativeByteBuffer","NativeByteData","NativeFloat32List","NativeFloat64List","NativeInt16List","NativeInt32List","NativeInt8List","NativeTypedArray","NativeTypedArrayOfDouble","NativeTypedArrayOfInt","NativeTypedData","NativeUint16List","NativeUint32List","NativeUint8ClampedList","Null","NullError","NullRejectionException","NullThrownFromJavaScriptException","Object","OutOfMemoryError","PlainJavaScriptObject","RangeError","Record","RegExpMatch","Rti","RuntimeError","SentinelValue","SetBase","StackOverflowError","StackTrace","StaticClosure","String","StringBuffer","TearOffClosure","TrustedGetRuntimeType","TypeError","TypeErrorDecoder","Uint16List","Uint32List","Uint8ClampedList","Uint8List","UnknownJavaScriptObject","UnknownJsTypeError","UnmodifiableListBase","UnmodifiableListMixin","UnmodifiableMapView","Uri","UriData","Uri__parseIPv4Address_error","Uri_parseIPv6Address_error","Uri_parseIPv6Address_parseHex","Uri_splitQueryString_closure","Utf8Codec","Utf8Decoder","Utf8Encoder","_#fromMap#tearOff","_AllMatchesIterator","_AsyncAwaitCompleter","_AsyncCallbackEntry","_AsyncCompleter","_AsyncRun__initializeScheduleImmediate_closure","_AsyncRun__initializeScheduleImmediate_internalCallback","_AsyncRun__scheduleImmediateJsOverride_internalCallback","_AsyncRun__scheduleImmediateWithSetImmediate_internalCallback","_CastIterableBase","_CastListBase","_Completer","_CyclicInitializationError","_DataUri","_EfficientLengthCastIterable","_Enum","_Error","_Exception","_FunctionParameters","_Future","_FutureListener","_Future__addListener_closure","_Future__asyncCompleteError_closure","_Future__asyncCompleteWithValue_closure","_Future__chainCoreFutureAsync_closure","_Future__chainForeignFuture_closure","_Future__prependListeners_closure","_Future__propagateToListeners_handleError","_Future__propagateToListeners_handleValueCallback","_Future__propagateToListeners_handleWhenCompleteCallback","_Future__propagateToListeners_handleWhenCompleteCallback_closure","_JS_INTEROP_INTERCEPTOR_TAG","_JsonMap","_JsonMapKeyIterable","_KeysOrValuesOrElementsIterator","_MatchImplementation","_MatchPosition","_NativeTypedArrayOfDouble&NativeTypedArray&ListMixin","_NativeTypedArrayOfDouble&NativeTypedArray&ListMixin&FixedLengthListMixin","_NativeTypedArrayOfInt&NativeTypedArray&ListMixin","_NativeTypedArrayOfInt&NativeTypedArray&ListMixin&FixedLengthListMixin","_Record","_Record2","_Record_2_item_matchPosition","_RootZone","_RootZone_bindCallbackGuarded_closure","_Search_initialize_closure","_Search_setEventListeners_closure","_SimpleUri","_StackTrace","_StreamIterator","_StringStackTrace","_TimerImpl_internalCallback","_TypeError","_UnmodifiableMapMixin","_UnmodifiableMapView&MapView&_UnmodifiableMapMixin","_Uri","_Uri__makeQueryFromParametersDefault_closure","_Uri__makeQueryFromParametersDefault_writeParameter","_Uri__makeQueryFromParameters_closure","_Utf8Decoder","_Utf8Decoder__decoderNonfatal_closure","_Utf8Decoder__decoder_closure","_Utf8Encoder","_Zone","__CastListBase&_CastIterableBase&ListMixin","_awaitOnObject_closure","_canonicalRecipeJoin","_canonicalRecipeJoinNamed","_canonicalizeScheme","_chainCoreFutureAsync","_chainCoreFutureSync","_checkPadding","_checkZoneID","_compareAny","_computeFieldNamed","_computeSignatureFunctionNewRti","_computedFieldKeys","_containerMap","_convertInterceptedUint8List","_create1","_createFutureOrRti","_createGenericFunctionRti","_createQuestionRti","_createStarRti","_createSuggestion_closure","_createTables_build","_createTables_setChars","_createTables_setRange","_current","_decoder","_decoderNonfatal","_defaultPort","_empty","_escapeChar","_escapeScheme","_fail","_getCanonicalRecipe","_getFutureFromFutureOr","_getQuestionFromStar","_hexCharPairToByte","_highlight_closure","_htmlBase_closure","_identityHashCodeProperty","_initializeScheduleImmediate","_initializeToggles_closure","_installTypeTests","_interceptorFieldNameCache","_interceptors_JSArray__compareAny$closure","_internal","_inverseAlphabet","_isAlphabeticCharacter","_isInCallbackLoop","_isUnionOfFunctionType","_lastCallback","_lastPriorityCallback","_literal","_lookupBindingRti","_lookupFunctionRti","_lookupFutureOrRti","_lookupGenericFunctionParameterRti","_lookupGenericFunctionRti","_lookupInterfaceRti","_lookupQuestionRti","_lookupRecordRti","_lookupStarRti","_lookupTerminalRti","_makeFragment","_makeHost","_makeNativeUint8List","_makePath","_makePort","_makeQuery","_makeQueryFromParameters","_makeQueryFromParametersDefault","_makeScheme","_makeUserInfo","_mayContainDotSegments","_needsNoEncoding","_nextCallback","_normalize","_normalizeEscape","_normalizeOrSubstring","_normalizePath","_normalizeRegName","_normalizeRelativePath","_normalizeZoneID","_objectTypeNameNewRti","_of","_parse","_parseIPv4Address","_propagateToListeners","_receiverFieldNameCache","_removeDotSegments","_reusableBuffer","_rootHandleError_closure","_scheduleImmediateClosure","_scheduleImmediateJsOverride","_scheduleImmediateWithSetImmediate","_scheduleImmediateWithTimer","_stringFromUint8List","_suggestionLength","_suggestionLimit","_throw","_throwUnmodifiable","_uriDecode","_uriEncode","_useTextDecoder","_useURLSearchParams","_wrapJsFunctionForAsync_closure","_writeAll","addErasedTypes","addRules","allocateGrowable","alternateTagFunction","async__AsyncRun__scheduleImmediateJsOverride$closure","async__AsyncRun__scheduleImmediateWithSetImmediate$closure","async__AsyncRun__scheduleImmediateWithTimer$closure","async___startMicrotaskLoop$closure","bind","bool","checkNotNegative","checkValidRange","collectArray","combine","compose","create","cspForwardCall","cspForwardInterceptedCall","current","defaultStackTrace","dispatchRecordsForInstanceTags","double","errorDescription","eval","evalInEnvironment","evalRecipe","extractPattern","extractStackTrace","filled","findErasedType","findRule","finish","fixed","forType","forwardCallTo","forwardInterceptedCallTo","from","fromCharCodes","fromMessage","fromTearOff","getInterceptor$","getInterceptor$asx","getInterceptor$ax","getInterceptor$ns","getTagFunction","growable","handleArguments","handleDigit","handleExtendedOperations","handleIdentifier","handleTypeArguments","hash","indexToType","initHooks_closure","initNativeDispatchFlag","init_disableSearch","init_switchThemes","int","interceptorOf","interceptorsForUncacheableTags","iterableToFullString","iterableToShortString","makeNative","mapToString","markFixed","markFixedList","newArrayOrEmpty","noElement","noSuchMethodPattern","notClosurePattern","nullCallPattern","nullLiteralCallPattern","nullLiteralPropertyPattern","nullPropertyPattern","num","objectAssign","objectTypeName","of","parse","parseIPv6Address","parseInt","promiseToFuture_closure","prototypeForTagFunction","provokeCallErrorOn","provokePropertyErrorOn","range","receiverOf","safeToString","search_IndexItem___fromMap_tearOff$closure","splitQueryString","stringFromCharCode","stringFromNativeUint8List","throwWithStackTrace","toStringVisiting","toType","toTypes","toTypesNamed","undefinedCallPattern","undefinedLiteralCallPattern","undefinedLiteralPropertyPattern","undefinedPropertyPattern","value","withLength","$add","$eq","$index","$indexSet","$mod","$mul","bindCallbackGuarded","call","cast","clear","clearSearch","compareTo","complete","completeError","contains","containsKey","convert","dart:_interceptors#_replaceSomeNullsWithUndefined","dart:_interceptors#_shrBothPositive","dart:_interceptors#_shrOtherPositive","dart:_interceptors#_shrReceiverPositive","dart:_interceptors#_tdivFast","dart:_interceptors#_tdivSlow","dart:_internal#_source","dart:_js_helper#_addHashTableEntry","dart:_js_helper#_computeFieldKeys","dart:_js_helper#_execGlobal","dart:_js_helper#_fieldKeys","dart:_js_helper#_getFieldValues","dart:_js_helper#_keys","dart:_js_helper#_modified","dart:_js_helper#_nativeGlobalVersion","dart:_js_helper#_newHashTable","dart:_js_helper#_newLinkedCell","dart:_js_helper#_toString","dart:_rti#_bind","dart:_rti#_eval","dart:async#_addListener","dart:async#_asyncComplete","dart:async#_asyncCompleteError","dart:async#_asyncCompleteWithValue","dart:async#_chainForeignFuture","dart:async#_chainFuture","dart:async#_cloneResult","dart:async#_completeError","dart:async#_completeWithValue","dart:async#_prependListeners","dart:async#_removeListeners","dart:async#_reverseListeners","dart:async#_setChained","dart:async#_setErrorObject","dart:async#_thenAwait","dart:convert#_computeKeys","dart:convert#_convert","dart:convert#_convertGeneral","dart:convert#_decodeRecursive","dart:convert#_fillBuffer","dart:convert#_process","dart:convert#_upgrade","dart:convert#_writeReplacementCharacter","dart:convert#_writeSurrogate","dart:core#_computeScheme","dart:core#_enumToString","dart:core#_errorExplanation","dart:core#_errorName","dart:core#_text","decode","decodeGeneral","decoder","elementAt","end","fillRange","find","fold","forEach","fragment","handleError","handleSearch","hasAuthority","hasFragment","hasPort","hasQuery","hashCode","hideSuggestions","host","indexOf","initialize","internalComputeHashCode","internalFindBucketIndex","internalGet","invalidValue","isAbsolute","isNegative","iterator","join","keys","last","length","listBox","matchTypeError","matchesErrorTest","moreResults","moveNext","normalize","package:dartdoc/src/search.dart#_scope","path","port","query","queryParameters","registerBinaryCallback","replace","replaceRange","run","runBinary","runGuarded","runUnary","runtimeType","scheme","searchResults","setEventListeners","showSearchResultPage","sort","stackTrace","startsWith","sublist","substring","then","toString","updateSuggestions","uri","userInfo","values","Rti._unstar","isTopType","_Universe._canonicalRecipeOfStar","_Universe._canonicalRecipeOfQuestion","_Universe._canonicalRecipeOfFutureOr","_Universe._canonicalRecipeOfBinding","_Universe._canonicalRecipeOfGenericFunction","Error._stringToSafeString","_Utf8Encoder.withBufferSize","_Utf8Encoder._createBuffer","-","ElementExtension|get#acceptsInput","JSPromiseToFuture|get#toDart","_","_asCheck","_callMethodUnchecked0","_callMethodUnchecked1","_callMethodUnchecked2","_canonicalRecipeOfBinding","_canonicalRecipeOfFunction","_canonicalRecipeOfFunctionParameters","_canonicalRecipeOfFutureOr","_canonicalRecipeOfGenericFunction","_canonicalRecipeOfInterface","_canonicalRecipeOfQuestion","_canonicalRecipeOfRecord","_canonicalRecipeOfStar","_chainSource","_cloneResult","_combineSurrogatePair","_completeError","_computeIdentityHashCodeProperty","_computeUri","_containsTableEntry","_createBindingRti","_createBuffer","_createFunctionRti","_createGenericFunctionParameterRti","_createInterfaceRti","_createLength","_createRecordRti","_createTerminalRti","_createTimer","_equalFields","_error","_errorTest","_failedAsCheckError","_findRule","_future","_getBindCache","_getBindingArguments","_getBindingBase","_getBucket","_getCachedRuntimeType","_getEvalCache","_getFunctionParameters","_getFutureOrArgument","_getGenericFunctionBase","_getGenericFunctionBounds","_getGenericFunctionParameterIndex","_getInterfaceName","_getInterfaceTypeArguments","_getIsSubtypeCache","_getKind","_getNamed","_getOptionalPositional","_getPrimary","_getProperty","_getQuestionArgument","_getRecordFields","_getRecordPartialShapeTag","_getRequiredPositional","_getReturnType","_getRti","_getRuntimeTypeOfArrayAsRti","_getSpecializedTestResource","_getStarArgument","_getTableBucket","_getTableCell","_hasError","_hasProperty","_hasTimer","_initializeText","_installRti","_isChained","_isCheck","_isClosure","_isComplete","_isDartObject","_isDotAll","_isFile","_isGeneralDelimiter","_isHttp","_isHttps","_isLeadSurrogate","_isMultiLine","_isPackage","_isRegNameChar","_isSchemeCharacter","_isSubtypeUncached","_isTrailSurrogate","_isUnicode","_isUnreservedChar","_isUpgraded","_isZoneIDChar","_keys","_keysFromIndex","_lookupAnyRti","_lookupDynamicRti","_lookupErasedRti","_lookupFutureRti","_lookupNeverRti","_lookupVoidRti","_mayAddListener","_mayComplete","_name","_newJavaScriptObject","_objectToString","_ofArray","_onError","_onValue","_parseRecipe","_processed","_recipeJoin","_removeListeners","_sameShape","_scheduleImmediate","_setAsCheckFunction","_setBindCache","_setCachedRuntimeType","_setCanonicalRecipe","_setError","_setErrorObject","_setEvalCache","_setIsTestFunction","_setKind","_setNamed","_setOptionalPositional","_setPrecomputed1","_setPrimary","_setPropertyUnchecked","_setRequiredPositional","_setRest","_setSpecializedTestResource","_setValue","_shapeTag","_startsWithData","_stringToSafeString","_target","_theUniverse","_unstar","_upgradedMap","_whenCompleteAction","_writeAuthority","_writeOne","_writeString","_zone","allocate","arrayAt","arrayConcat","arrayLength","arraySplice","asBool","asInt","asRti","asRtiOrNull","asString","as_Type","castFrom","charCodeAt","checkGrowable","checkMutable","checkString","codeUnits","collectNamed","compare","constructorNameFallback","convertSingle","decodeQueryComponent","defineProperty","dispatchRecordExtension","dispatchRecordIndexability","dispatchRecordInterceptor","dispatchRecordProto","encode","encodeQueryComponent","environment","erasedTypes","evalCache","evalTypeVariable","fieldADI","fromCharCode","fromJson","fromList","fromMap","future","getDispatchProperty","getIndex","getLegacyErasedRecipe","getLength","getProperty","getRuntimeTypeOfInterceptorNotArray","group","handleNamedGroup","handleOptionalGroup","handleStartRecord","handleUncaughtError","handleValue","handleWhenComplete","handlesComplete","handlesValue","hasErrorCallback","hasErrorTest","hasMatch","hasScheme","hash2","hash3","hash4","identityHashCode","instanceTypeName","interceptorFieldName","interceptorsByTag","internalSet","isArray","isDigit","isEmpty","isIdentical","isNaN","isNotEmpty","isUnicode","jsHasOwnProperty","jsonDecode","jsonEncodeNative","leafTags","listToString","lookupSupertype","lookupTypeVariable","makeListFixedLength","map","mapGet","mapSet","markGrowable","notSimple","objectKeys","objectToHumanReadableString","parseHexByte","pop","position","printToConsole","propertyGet","provokeCallErrorOnNull","provokeCallErrorOnUndefined","provokePropertyErrorOnNull","provokePropertyErrorOnUndefined","push","pushStackFrame","receiverFieldName","recipe","removeSelectedElement","replaceAllMapped","setToString","sharedEmptyArray","shouldChain","showEnterMessage","showSuggestions","splitMapJoin","stack","start","staticInteropGlobalContext","stringConcatUnchecked","stringIndexOf","stringIndexOfStringUnchecked","stringReplaceRangeUnchecked","stringSafeToString","stringSplit","suggestionElements","suggestionsInfo","thenAwait","toGenericFunctionParameter","toList","toLowerCase","toUpperCase","tryParse","tryStringifyException","typeRules","typed","universe","unmangleGlobalNameIfPreservedAnyways","unmodifiable","withBufferSize","write","writeAll","writeCharCode"], + "mappings": "A;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoFAA,UA6BEA,uBAEFA,C;EASAC,qBApDSA,EACiBA;AAsDxBA,eACMA,WACFA;GAzDGA,EACiBA,uBA6DxBA,eAhB6BA;AAkB3BA,UAAoBA,QAnBaA,EA0ErCA;AAtDIA,UAAmBA,QAsDvBA;AArDsBA;AAClBA,SACEA,QAvB+BA,EA0ErCA;IAxEmCA,OA8B7BA,UAAMA,+BAA4CA,IAD3BA,aAOTA;WAEdA;QAuCGC;WCwkFAC,QADgBA;GDjkFjBF,IA7CNA,WAAyBA,QAkC3BA;AA9BgBA;AACdA,WAAyBA,QA6B3BA;AAvBEA,wBAIEA,QAHcA,EAsBlBA;AAjBcA;AACZA,WAEEA,QAIcA,EAUlBA;wBAPIA,QAHcA,EAUlBA;AALEA,4BAUOG;WCwkFAD,QADgBA;ACpsFvBC,kCFuHOH;AAFLA,QAEKA,EACTA,CADEA,QAAOA,EACTA,C;EGvKUI,MAWNA,qBACEA,UAAiBA;AAEnBA,OAAOA,KAAqBA,eAC9BA,C;EAmCQC,MAGNA,OACEA,UAAMA;AAERA,OAsCEA,IANiCC,yBA/BrCD,C;EAUQE,MAGNA,OACEA,UAAMA;AAERA,OAqBEA,IANiCD,yBAdrCC,C;EAgBQC,MACJA,YAAsCA,mBAA8BA,C;EAKzDC,ICjCmCC;ADsChDD,QACFA,C;EA2gBWC,MACTA,gBACFA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EEtkBQC,uBACKA,KACTA,OAUJA,yCAPAA;AADEA,OANFA,yCAOAA,C;EC2CEC,IAKEA;AACJA,QAAgBA,QAIlBA;AAHgBA;AACdA,iBAAgCA,WAElCA;AADEA,QACFA,C;EAuDaC,MACFA;AACAA;AACPA,cACFA,C;EAEWC,IACFA;AACAA;AACPA,kCACFA,C;EA6iBAC,QAIAA,QACFA,C;EAwSKC,IACHA;OAAoBA,GAAiBA,YAArCA,gBAAoBA,GACIA,IAAsBA,QAGhDA;AADEA,QACFA,C;EClrBUC,UACOA,YACXA,OAsBJA,2CAnBAA;AADEA,OAGFA,2CAFAA,C;EAsqBkBC,GAAeA,OC1djCA,sBD0dyDA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EEx+B5CC,GACXA,UAAMA,uCACRA,C;ERmDKC,WShFOA,mBACLA;ATiFPA,WAAuBA,QAGzBA;AAF+BA,mBAE/BA,C;EAuBKC,MACHA;eDV0CA;ACYxCA,WAAoBA,QAGxBA,CADEA,OAAcA,QAChBA,C;CAEOC,IACLA;sBAAqBA,QAmBvBA;AAlBEA,uBACEA,SAEEA,UAeNA,MAbSA,UACLA,YAYJA;KAXSA,UACLA,aAUJA;KATSA,WACLA,YAQJA;AANeA;AAKbA,QACFA,C;EA2HaC,aAELA;WAUFA;GATUA;AACZA;OAIAA,QACFA,C;EAKYC,+EAGIA;AAIdA,WAIEA,QA0DJA;GAxDyBA;AACvBA,YACEA,WAEEA,OAAOA,cAoDbA;AAhDaA,IAFLA,UAEFA,qBAgDNA;AA9CIA,QA8CJA,CAxCEA,aACEA,UAAiBA;AAEnBA,mBAEEA,OAAOA,cAmCXA;AA/BEA;GAoBsBA;OACWA,YAA/BA,QACsBA,0BAElBA,QAORA,CADEA,OAAOA,aACTA,C;EAgEcC,IACZA,OAAOA,OACTA,C;EAOcC,IACRA;AUmeCA,iBVneuBA,GAG1BA,WU+dMA,aV3bVA;AAjCoBA;AAGPA,QAFgBA,SACAA,cCvLtBA,GACHA;ADyMAA,wBAAwCA,QAY5CA;GAXsBA;AAClBA,4BACwBA;AACtBA,4CAEEA,QAMRA,EADEA,OU6bKA,IADGA,aV3bVA,C;EAecC,IACkCA,wCAC5CA,OAAOA,OAcXA;AAZEA,sBACEA,OAixEGC,iBAtwEPD;AAPWA,qBAAPA,aAOJA;AAJWA,qBAAPA,eAIJA;AADEA,sBAvBcA,WAwBhBA,C;EAyFcE,QAGZA;AACSA,uBAD8CA,QACrDA,wCAcJA;AAXEA,sBACkBA;AAOZA;mDAENA,QACFA,C;CAEcC,IACZA;SACEA,YACEA,OAAOA,sBAYbA;AATIA,eACaA;AAGXA,OAAOA,qBADcA,oCAM3BA,EADEA,UAAiBA,2BACnBA,C;EA4cmBC,WACHA;AACdA,WAAqBA,WAEvBA;AADEA,OAAOA,OACTA,C;EAyBIC,MACJA;YAAmBA,OOv5BnBA,oBPk6BFA;AAVyBA;AAIvBA,aACEA,OAAkBA,aAKtBA;AADEA,OAAkBA,SACpBA,C;EAKMC,QAIJA,OACEA,OAAkBA,uBAYtBA;AAVEA,WAIEA,YACEA,OAAkBA,qBAKxBA;AADEA,OOv7BAA,wBPw7BFA,C;EAOcC,IACZA,OOh8BAA,uBPi8BFA,C;CAiCAC,IAEEA,OAAOA,KADSA,cAElBA,C;EAGAC,MACEA;WOpiCIA;;;APwiCJA,+BAKEA;eAgBKC;AAPPD,QACFA,C;EAGAC,GAGEA,gBAAOA,eACTA,C;EAOMC,IAEJA,MAAyBA,MAC3BA,C;EAEMC,MACJA,MAAyBA,SAC3BA,C;EA2BAC,IACEA,UAAMA,QACRA,C;CAqJSC,IAULA;AAIUA,OAJAA;AAUNA;AACJA,WAA2BA;AAKXA;AACIA;AACTA;AACEA;AACEA;AAiBfA,OArHFA,mRAyGmBA,4EAcnBA,C;EAMcC,IAmDZA,OAReA;gEAQRA,GACTA,C;EAkCcC,IASZA,OAPeA,gEAORA,GACTA,C;EA8CAC,8BACuCA;AADvCA,4BAGiCA,UAHjCA,AAGuEA,C;EA+ClEC,IAGLA,WACEA,OA7BFA,WA2CFA;AAVWA,qBAAPA,eAA6BA,GAUjCA;AANEA,uBAA6CA,QAM/CA;AAJEA,wBACEA,OAAOA,QAAmBA,eAG9BA;AADEA,OAAOA,OACTA,C;EAKOC,MACKA,gBACeA;AAKzBA,QACFA,C;EAEOC,IACLA;qBACEA,QAqGJA;GAjGgBA;gDAMCA;AAKKA;AACMA,2BAKtBA,mBAEIA,OAAOA,OACCA,KAAsBA,8BA6ExCA;mBA1EgDA;AAAtCA,OAAOA,OA5HfA,WAsMFA,EArEEA,2BAE8BA;AACMA;AACFA;AACOA;AACNA;AACOA;AACJA;AACOA;AACNA;AACOA;AAC/BA;AAAbA,WACEA,OAAOA,OAAmBA,UAwDhCA;KAvDwBA;AAAbA,YAMEA;AAAPA,cAA0BA,UAiDhCA,MAhDwBA,iBACPA,cACAA,cACAA,cACAA,cACAA,cACAA,cACAA,aACXA,OAAOA,OA9JXA,WAsMFA,CAlCIA,OAAOA,OAtITA,kCAwKFA,CA9BEA,4BCruDOA,oDDuuDHA,OO9oCEA,UP0qCRA;yDAMSA;AAvBLA,OAAOA,OOjkDTA,wCP+jDcA,mCAmBhBA,CAbEA,gEAIEA,gDACEA,OOlqCEA,UP0qCRA;AADEA,QACFA,C;EAqBWC,IACTA;qBACEA,QAAiBA,EAiBrBA;AAfEA,WAAuBA,OAoBvBA,WALFA;GAduBA;AACrBA,WAAmBA,QAarBA;AAKEA;AAVAA;AAIAA,QACFA,C;EAwBIC,IAEFA,WAAoBA,OAAcA,MAMpCA;AALEA,sBACEA,OAAkBA,OAItBA;AADEA,OAAcA,MAChBA,C;EAsBAC,mBA+CSA;AA1CPA,iBACoCA;AACEA;AACpCA,OAkCKA,UAhCPA,QACFA,C;EAuCAC,cAEEA,iBAEIA,OAAOA,MAWbA;OATMA,OAAOA,OASbA;OAPMA,OAAOA,SAObA;OALMA,OAAOA,WAKbA;OAHMA,OAAOA,aAGbA,CADEA,UW54DAC,gEX64DFD,C;EAIAE,aAEiBA;AACfA,OAAkCA,QAIpCA;AAHaA;;AAEXA,QACFA,C;EAEAC,MAOUA;AACRA,oBAEYA;AADVA;UAGUA;AADVA;UAGUA;AADVA;UAGUA;AADVA;UAGUA;AAVZA;QAYIA,OAAJA,WACEA,OAAOA,SA0BXA;AAXEA,uEAAOA,UAWTA,C;EA4BSC,iCAcDA,QAGAA,QAEAA,QACqBA,SAGrBA,QAGAA,QAEAA,OAKUA,OACKA,QACAA,SAOfA;EAAiEA;AA6B/DA,kBAoZEA,kCAlZFA,cAkbRA;eA/a0CA;AAkBDA,IAZjCA,+CAEIA;;;;;AAmBNA;AAAJA,KAEMA;;AAWgBA,KAJlBA;;AAOJA,eAAgCA,QAAhCA,QACiBA;AAGfA,0BAESA;AASaA;AAAUA,SAZdA;GAMKA;AAGvBA,YACEA,KAEMA;OAIRA;OAS+BA;OAKQA;AAKzCA,QACFA,C;EAEOC,QAELA,sBAEEA,QAoBJA;AAlBEA,uBAEEA,KAEEA;AAGFA,yDAAOA,QAWXA,CADEA,6CACFA,C;EAEOC;AAiBLA,sBAEIA,4DAAOA,KAuEbA;OA7DMA,8DAAOA,KA6DbA;OAnDMA,kEAAOA,KAmDbA;OAzCMA,sEAAOA,KAyCbA;OA/BMA,0EAAOA,KA+BbA;OArBMA,8EAAOA,KAqBbA;QAVMA,0EAAOA,KAUbA,E;EAIOC,UAELA,KACEA,OAAOA,WA4BXA;AAxBIA,OAAOA,MAHGA,cA2BdA,C;EAEOC;AAMLA,sBAIIA,UAwZNA;OAtZMA,qEAAOA,OA+EbA;OApEMA,wEAAOA,OAoEbA;OAzDMA,4EAAOA,OAyDbA;OA9CMA,gFAAOA,OA8CbA;OAnCMA,oFAAOA,OAmCbA;OAxBMA,wFAAOA,OAwBbA;QAbMA;;2BAAOA,OAabA,E;EAEOC,QAEEA;IA8ILA,UAA+BA;IAJ/BA,UAA4BA;GAxIlBA;AAIHA;AAAPA,QAwBJA,C;EAwBFC,IACEA,OAAeA,OACjBA,C;EAoESC,MACLA,OU1/DeC,MAHOC,cA8BRF,MV+9DuBA,MACvCA,C;EAIOG,IAAoCA,QAAQA,EAASA,C;EAIrDC,IAAuCA,QAAQA,EAAYA,C;EAYpDC,IA/CdA,iDAiDsBA,KAChBA;OACsBA,YAA1BA,YACaA;YAETA,QAINA,CADEA,UAAMA,wCACRA,C;EA4IGC,IACHA,UAaAA,YAZFA,C;EAoEOC,IAELA,OAAOA,CADgBA,iBAEzBA,C;EC3nFAC,IAE6BA,iBAAdA,aAIYA,GA/HlBA;AAgIPA,YAlFAC,yBFOYC;AE2EQF,QFpCeE,EEuGrCF,IAlEgCA,GAjIvBA;AAkIPA,WAAyBA,QAiE3BA;GA7HyBG,kBAtEhBA;AAuIPH,YACuCA,GAApBA;AACjBA,eAGuBA,GA5IlBA;AA6IHA,YA/FJC,yBFOYC;AEwFYF,QFjDWE,EEuGrCF,IArDgCA,GA9IvBA;AA+IHA,WAAyBA,QAoD/BA;GA7HyBG,kBAtEhBA;KAqJPH,WAQEA,WAsCJA;GAnCgBA;GAEHA;AAEXA,YACWA;CACGA;AAxHdC,yBFOYC;AEkHVF,QF3EiCE,EEuGrCF,CAzBEA,aACcA;AACZA,QAuBJA,CApBEA,YACyBA;AAlIzBC,sBA6JoBD,0BFtJRI;AE2HVJ,QFpFiCI,EEuGrCJ,CAhBEA,WACEA,OAAOA,SAeXA;AAZEA,WAEEA,UAAMA;IA7GMA,qBAmHWA;AAjJzBC,sBA6JoBD,0BFtJRI;AE0IVJ,QFnGiCI,EEuGrCJ,MAFIA,OAAOA,SAEXA,C;EAYAK,MACcA;AAlKZJ,yBFOYI,6BE4JCA;AAEbA,QACFA,C;EAEAC,IAGEA,OAAOA,uBACTA,C;EAEAC,eACoBA;AAGTA,IApJKA,oBAoJZA,cAIJA;KAFIA,OAAOA,mBAEXA,C;EAgBKC,YACSA,IAAwBA,MAGtCA;;AADEA,MACFA,C;EAGKC,GACHA;AAAiCA;AACAA;AAEjCA;GAzLuBA;AA+LRA;AAEfA,+BACgBA;AACJA;AACVA,WAAyBA,QAAzBA,QACYA;AACyBA,GAAvBA;AACZA,YAEeA,UADUA;AAEvBA,YAlONR,yBFOYQ;iBEuOZA,WAAyBA,QAAzBA,QACYA;gBACNA,YA9RCA;;;;;YAuSTA,C;EAmCKC,GAESA,mBAAcA;AAiBlBA,QACJA,GALIA,MAAsBA,GAFtBA,MADsBA,GAAtBA,MAAsBA,GADtBA,MAAsBA,GADtBA,MAAsBA,GAHtBA,KAFmCA,CACvCA,IAA+CA;AAqBnDA,2DACqBA;AACnBA,wBAGmCA;AAA/BA,oBACFA,WAAoBA,QAApBA,QACoBA;AAClBA,wBAmBSA,cAZFA;GACOA;GACEA;AAELA;AAEbA;AAEAA,gBACNA,C;EAEAC,MAEEA,OADeA,OAEjBA,C;EWhJQC,aAGeA,WAEPA,KAGGA;AAEjBA,WAGEA,WAsBJA;AAnBEA,SACEA,QAkBJA;AANWA,QAFWA,QAElBA,sBAMJA;AADEA,OAAOA,IACTA,C;EChOSC,uIAUQA;AAgBbA,uBAA+CA,QAKjDA;AADEA,UAAMA,+BADgBA,sBAExBA,C;ECIGC,QAzGIC;AA2GLD,WAOJA,C;EAgCAE,4BAGMA,QACFA,OAAOA,uCAGXA;AADEA,QACFA,C;EA8EOC,IAAkCA,QAAMA,C;EAExCC,UDQLC;KCQAD,WDN2BA;WAASA;GA/DgCA;GAAhEA;AE6UaA,QDvQFA,KAAWA,eCuQTA,IDtQFA;QDpEXA,QE0UaA,QDnQJA,KAAWA;AACxBA,6BACFA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AE+qBME;EAvjBDC,IACsBA,QAM3BA,C;EA+iBwBD,IAClBA,uBAA6CA,C;EA6JzCE,IAA+BA,OA8BUA,iBA9ByBA,C;CAuvBvEC,QACHA,mBACEA,UAAMA,UAEVA,C;EASIC,QACFA;AAAgCA,gBAGoBA;KAHpBA;AAAhCA,KAIEA,UAAMA;AAGRA,QACFA,C;;;;;;;;;;;;;;;;;;;;ENrrDaC,MAKOA,OAwiHoBA;AAriHpCA,gBAdIA,WAkjHyBC,QAniH/BD,C;EAEWE,MA2xEPA,OAuwCkCA;AA3hHpCA,gBAxBIA,gBAkjHyBC,MAzhH/BD,C;EAuEYE,WA+8GmBC;AA78G7BD,uBACEA,OAAOA,MA+8GoBA,GA58G/BA;AADEA,qBACFA,C;EAqJcE,IAGZA,QAmzGmCA,GAlzGrCA,C;EAsIEC,IASFA,OAAiBA,MAzBOA,mBA0B1BA,C;EAuEIC,6DAylG6BH;AAvlG/BG,8CAMIA,SAoFNA;WAggGiCA;AAhlGvBA;AACJA,SAAuDA,SA+E7DA;AA9EMA,OAAiBA,aA8EvBA;WAggGiCA;AA1kGvBA;AACJA,SAAuDA,SAyE7DA;AAxEMA,OAAiBA,aAwEvBA;WAggGiCA;AApkGvBA;AACJA,SAAuDA,SAmE7DA;AAlEMA,OAAiBA,aAkEvBA;WAhaWA;AAiWmCA;AAExCA,SAEEA,SA2DRA;AA1DMA,OAAiBA,UAyjGgBC,KA//FvCD;YAggGiCE;AAtjGLF;IAhWjBA;AAmWDA;AACJA,gBACyDA,SAiD/DA;AAhDMA,OAAiBA,YAgDvBA;YA7b6CG;IAiDlCH;AAkWDA;AACJA,SAAmDA,SAyCzDA;AAxCMA,OAAiBA,YAwCvBA;YAggGiCI;AApiGvBJ;IA/UCA;AAkVDA;AAEJA,gBAEEA,SA6BRA;AA5BMA,OAAiBA,YA4BvBA;YAzWWA;KA44GgCA;AAzjGjCA;IAshGuBK;AAphGLL;AACtBA,gBAC+CA,SAkBrDA;AAjBMA,OAAiBA,eAiBvBA;YA6/FiCM;AAxgG3BN,QAAmBA,SAWzBA;IAqiGkDA;AA1iG5CA,WAAsBA,SAK5BA;AAJMA,QAINA;QAFMA,UAAMA,yDAEZA,C;EAEQO,UAIkBA,eA6hGiBA;AA5hGzCA,yBAy/F+BA;AAv/FRA;AACrBA,SACYA;OAIdA,YACFA,C;EAEQC,UAKkBA,mBA4gGiBA;AA3gGzCA,0BA6gGgDA;;GArCjBA;AAp+FRA;AACrBA,SACYA;AAEZA,oBAGFA,YACFA,C;EAEoBC,UAKdA,SAzQAA,sBAQAA,KAqQAA,iBAnPAA,KAsPAA;AACJA,uBAEiDA,QAQnDA;AAhSMC;CAQSD;CAQAA;CAiBAA;AA8PbA,QACFA,C;CAcQE,SAEYA;AAElBA,QACFA,C;EAKKC,WAEaA;AAChBA,YACEA,sBACEA,OAAOA,OAabA;AAJMA,OA65F2BA,MAz5FjCA,CADEA,WACFA,C;EAOIC,MACFA;AAAQA,4BA5CNA,KAiDaA;AACXA,WAAiBA,QAIvBA,CADEA,OAAOA,OACTA,C;EAKIC,IAUOA,iBAxEPA,GAwEAA,aASJA;AAg5FoCA,oBAr5FhCA,OAAOA,OAKXA;AADEA,OAAOA,KADWA,QAEpBA,C;EAIIC,WAiBQA,EAAwBA;AAIlCA,WAAiBA,QAUnBA;iCALIA,QAKJA;AADEA,QACFA,C;CAKIC,IAEuCA,OAD/BA;AACVA,wBACFA,C;EAOIC,WACgBA,gBACNA;AACZA,WAAmBA,QAErBA;AADEA,OAAOA,SACTA,C;EAGIC,0BAxIAA,mDA2JMA,iBAGUA,MA9ZMA,eA+ZFA;;AAGtBA,QACFA,C;EASIC,aACUA,UAqzFoCA;AAnzFhDA,uBAtZiBA,QAzBOpB;AA8bjBqB;AAZLD,QAGJA,CADEA,QACFA,C;EAOKC,IAEHA,YADUA,OAEZA,C;EAyDIC,IACFA;AEz/BgBC,qBFy/BMD,aE1/BhBC,IACuCA,OFkgC/CD;AA1FyBA,gBAxKrBE;AA2PFF,WAAyBA,QAO3BA;AANaA,YAETA,OAisFiCA,OAjsFLA,EAIhCA;AA4tFoCA,oBA9tFNA,OAxDlBA,OA0DZA;AADEA,OAAOA,OACTA,C;EAIKG,IAKUA,OAr0BTA;AAi0BJA,gBA/zBMC,YAg0BRD,C;EAQME,IA5nBKA,WAbKA;AA+oBdA,SACEA,QA/0BIC,GAk3BND,WA9BFA;AAHgCA,QAzhBNA;AA2gBXA,GAr0BTA;AAo1BJA,gBAl1BMD,YAo1BRC,C;EAEIE,qBAEoBA;AACtBA,SAAiBA,UAcnBA;AA5iBmBA,QAHOnE,cAoiBpBmE,MAAkBA;AAMtBA,gBA/hBiBA,QAXOC,gBA2iBQD,MAAkBA;AAGlDA,OA3iBiBA,MAHOnE,kBA+iB1BmE,C;CAGKE,IACHA,OAAOA,KA1hBUA,MAzBO/B,oBAojB1B+B,C;EAuDKC,IAGCA;AAGKA,WAAPA,oBA4DJA;AA++EIC;KAA2CA;AAziF7CD,KACEA,OAAOA,aAyDXA;GA19BmDA;AAm6BjDA,SACEA,OAAOA,aAsDXA;AA7CEA,SACEA,OAAOA,aA4CXA;SAghFiCtC;GAHAI;AAnjF/BkC,SACEA,OAAOA,aAqCXA;;;;;AAjCEA,WACEA,OAAOA,UAgCXA;AA7BEA,aA4iFqC9B;AAriF/B8B,IA13BGA,iBA7FHA;AA+9BFA,WACEA,OAAOA,aAafA;AAVMA,OAAOA,aAUbA,OANSA,WAkCKA,QAm/EyB5B,IA34G5B8B;AAw3BPF,OAAOA,uBAIXA,CAFEA,OAAOA,aAETA,C;CAGKG,QAzkCMA,CAVHA;AAqlCNA,aACFA,C;EA8BQC;AA28EJH;KAh8E+CG;AALjDA;;KAMIA;AAFGA,YAznCEA,CATHA;AAyoCNA,aACFA,C;EAEKC,WAq9E4BvC;AAn9ExBuC,uCAGEA,SACmBA,kBAk9EG3C,KAj9EC2C,eAi9EDzC;AAt9E/ByC,QAOFA,C;EAGKC,IAGCA;AACJA,WAAoBA,OAAOA,OAG7BA;AADEA,OAAOA,MAvvBiBA,cAsvBRA,YAElBA,C;EAQKC,IACHA,WAAoBA,QAMtBA;AADEA,OA/pCSA,IAslHsBC,OAt7EjCD,C;EAGKE,IAGCA;AACJA,WAAoBA,OAAOA,OAY7BA;GA9lCeA;AA4lCKA,iBA3hBhBA,GAwhBAA,YAKJA;AADEA,kBACFA,C;EAIKC,IAGCA;AACJA,WAAoBA,OAAOA,OAoB7BA;AAdEA,sBAAgDA,QAclDA;AAw6EoCA,oBAp7ENA,QAY9BA;GA1nCeA;AAwnCKA,iBAvjBhBA,GAojBAA,YAKJA;AADEA,kBACFA,C;EAIQC,IAGFA;AACJA,YAEMA,WACFA,QAWNA,MAruCWA,UAmuCiCA,QAE5CA;AADEA,SACFA,C;EAIQC,IAGFA;AACJA,WACEA,QAGJA;KAjvCWA,UA+uCiCA,QAE5CA;AADEA,SACFA,C;EAQMC,MACJA,UALkBA,KADMA,OAAgBA,cAO1CA,C;EAqBgBC,MAIZA,OAHiCA,mBAEFA,IADfA,kDAKlBA,C;EAOAC,oCAAqEA,C;CAE7DC,MACNA,OAHFA,uBAGuCA,UACvCA,C;EAaGC,IA/yCMA,cAmlHsBnD,QAGAJ;AApyE/BuD,QAoyE+BrD,SAlyEnBqD,MA35BYA,iBAzZfA,IAqzCXA,C;EAIKC,IACHA,cACFA,C;EAIQC,IACNA,WAAoBA,QAStBA;AADEA,UAAiBA,gBACnBA,C;EAIKC,IACHA,QACFA,C;EAIQC,IACNA,QACFA,C;EAIKC,IACHA,QACFA,C;EAIKC,IACHA,oBACFA,C;EAMKC,IACHA,UAAoBA,QAGtBA;AAFEA,UAAqBA,QAEvBA;AADEA,UAAiBA,cACnBA,C;EAIMC,IACJA,UAAoBA,QAUtBA;AATEA,UAAqBA,QASvBA;AAREA,WAKEA,QAGJA;AADEA,UAAiBA,cACnBA,C;EAIMC,IACJA,UAAoBA,QAItBA;AAHEA,UAAqBA,QAGvBA;AAFEA,WAAoBA,QAEtBA;AADEA,UAAiBA,eACnBA,C;EAIOC,IACLA,sBAAoBA,QAEtBA;AADEA,UAAiBA,gBACnBA,C;EAIQC,IACNA,sBAAoBA,QAStBA;AAREA,WAKEA,QAGJA;AADEA,UAAiBA,gBACnBA,C;EAIQC,IACNA,sBAAoBA,QAGtBA;AAFEA,WAAoBA,QAEtBA;AADEA,UAAiBA,iBACnBA,C;EAIKC,IACHA,4CAEFA,C;EAIIC,6CACkBA,QAEtBA;AADEA,UAAiBA,aACnBA,C;EAIKC,6CACiBA,QAStBA;AAREA,WAKEA,QAGJA;AADEA,UAAiBA,aACnBA,C;EAIKC,6CACiBA,QAGtBA;AAFEA,WAAoBA,QAEtBA;AADEA,UAAiBA,cACnBA,C;EAIKC,IACHA,yBACFA,C;EAIIC,IACFA,sBAAoBA,QAEtBA;AADEA,UAAiBA,aACnBA,C;EAIKC,IACHA,sBAAoBA,QAStBA;AAREA,WAKEA,QAGJA;AADEA,UAAiBA,aACnBA,C;EAIKC,IACHA,sBAAoBA,QAGtBA;AAFEA,WAAoBA,QAEtBA;AADEA,UAAiBA,cACnBA,C;EAIKC,IACHA,yBACFA,C;EAIOC,IACLA,sBAAuBA,QAEzBA;AADEA,UAAiBA,gBACnBA,C;EAIQC,IACNA,sBAAuBA,QASzBA;AAREA,WAKEA,QAGJA;AADEA,UAAiBA,gBACnBA,C;EAIQC,IACNA,sBAAuBA,QAGzBA;AAFEA,WAAoBA,QAEtBA;AADEA,UAAiBA,iBACnBA,C;EAEOC,MACEA;AACPA,qBA2mEyCA,QA3mEzCA,WAEMA,UAskEyBA;AAnkE/BA,QACFA,C;EAEOC,yBA+jEgCvE,MA34G5BuE;AAo1CTA,UAEEA,UAAaA,aAmBjBA;GAskE2CA;AAkBrCA;GAlBqCA;AAjlEzCA,mCACEA;AAEAA,SAAqBA;AAChBA,QA0iEwBA;AAziE7BA,gBAwiEmCA,IAriEnCA,IAEFA,aACFA,C;EAEOC,WAEEA;AAGPA,iBA+jEyCA;AA7jEvCA,YAC2BA;UAEWA;IAEVA;AAC5BA,gBACEA;+BAKFA,cAEEA,eAAsBA,GAA8BA;IA4gEzBA;GAHA9E;AA9BcmC,wCA2CI4C;KA3CJ5C;AAz+DzC2C,MAEoBA,yBAItBA,YA3B0BA;IA95CevE;IA0ElCuE;GAqJLA;GAiwGqCA;GAzvGrCA;GAyvGqCA;GAvuGrCA;GAuuGqCA;AAxhEjBA;AAIxBA,iCAEMA,WA++DyBA;AA1+D/BA,QACEA;AAEAA,4BAEMA,WAq+DuBA;AAj+D7BA,OAGFA,QACEA;AAEAA,8BACEA;IAq9D6BA,MAn9D3BA;AAEeA,QAs9DUA,eADMA,IA/8DnCA,OAGFA,eAEuCA;aAOvCA,wBACFA,C;CAYOE,yBAo7D0BhF;AAj7D/BgF,SAA4BA,cA4E9BA;AA3EEA,SAA6BA,eA2E/BA;AA1EEA,SAA0BA,YA0E5BA;AAzEEA,SAA2BA,aAyE7BA;AAxEEA,SAAyBA,WAwE3BA;AAtEEA,SAWIA,OATSA,KA46DkBpF,KAx2DjCoF;AAvDEA,aA+5D+BtC;AA75DlBsC;GA05DkBhF;AAp5D7BgF,sCA+CJA,CA5CEA,SAEEA,kBAAmBA,KAk5DUlF,SAx2DjCkF;AAvCEA,UAESA,QA44D4B5E;AAl4DnB4E,GA7hDTA;AA+hDPA,QAHcA,iCA4BlBA,CAtBEA,UACEA,OAAOA,SAqBXA;AAlBEA,UACEA,OAAOA,cAiBXA;AAdEA,UAGEA,OAAOA,MAm3DsBxE,MAz2GtBwE,GAigDXA;AAPEA,cA9kD2CvE;AAilDzCuE,QAAOA,EAFqBA,YAMhCA,CADEA,SACFA,C;EAEOC,WD71DOA,mBACLA;AC81DPA,WAAuBA,QAEzBA;AADEA,mBACFA,C;EAgLiBC,aAXXC,GASAD;KAIFA,uBAbEC,GASAD;AAOFA,QACFA,C;EAEWE,uBAhBPA,OAkBUA;AACZA,WACEA,OAAOA,YAcXA;KAbSA,uBAkqDsBA;AA99CtBA;AAjMsBA;AAC3BA;AAGgBA;AAYTC;AAVPD,QAIJA,MAFIA,QAEJA,C;EAKYC,MACRA,aA3CAA,MA2C+CA,C;EA2BvCC,MACRA,OAAOA,MApEPA,MAoEiDA,C;EAS1CC,QA8qDPA,SAlwDAA;AAuFFA,WAAmBA,QAIrBA;AA2DoBA,OADGA;AAgnDrBA;AA3qDAA,QACFA,C;EAEWC,mBAlvDkCA;AAqvD3CA,WACUA,GApvDNA;AAq5GFA;AA7pDFA,WAAmBA,QAIrBA;AA6CoBA,OADGA;AAgnDrBA;AA7pDAA,QACFA,C;EAEWC,qBA5uDkCA;AA8uD3CA,WACUA,GA7uDNA;GA+zG+BxF;AAkEjCwF;AA/oDFA,WAAmBA,QAUrBA;AAHYA,YAokDmBzF,SAn5GtByF;AA09GPA;AAzoDAA,QACFA,C;CA6BWC,OA7jELA;CAIAA;AAikEJA,QACFA,C;EAmFWC,QA4gDPA,WAlwDAA;AAyPFA,WAAmBA,QAErBA;AA1qEIC;CAwIEC;CAwLAA;AAg3DGF;AAogDPG,CArwDEA;AA0PFH,QACFA,C;EASWI,QA8/CPA,SAlEiC9F,WAhsDjC8F;AAwQFA,WAAmBA,QAGrBA;AADqBA;AA2/CnBD,CArwDEA;AAyQFC,QAEFA,C;EAEWC,UAETA;SA+6C6BhG;AA76CvBgG;KAE6BA;AAFjCA,KAIEA,QAQNA,CA5sEIJ;CAwIEI;CA6CAA;AAshEGA,CA34DHA;AA24DJA,eACFA,C;EAEWC,QAm+CPA,SAlEiChG,WAhsDjCgG;AAoSFA,WAAmBA,QAGrBA;AADqBA;AA+9CnBH,CArwDEA;AAqSFG,QAEFA,C;EAEWC,UAETA;SAm5C6BlG;;AAj5CvBkG,kCAESA,SAELA,eAg5CmBpG;AAp5C3BoG,KAKEA,QAoBNA;uBAjBMA,UAiBNA;KAhBWA,aA24CoBtG;AAv4CrBsG,IAo4CqBlG,cAGAF,IAt4CvBoG,QAWRA;KATQA,OAAWA,SASnBA,EArvEIN;CAwIEM;CA6CAA;AA+jEGA,CAp7DHA;AAo7DJA,eACFA,C;EAEWC,QA07CPA,SAlEiClG,WAhsDjCkG;AA6UFA,WAAmBA,QAGrBA;AADqBA;AAs7CnBL,CArwDEA;AA8UFK,QAEFA,C;EAEWC,UAETA;SA7nE+CA;AA+nEzCA,4BAGFA,QAYNA;KAXWA,SACLA,OAgGFA,eAtFJA;yBARMA,UAQNA,CApxEIR;CAwIEQ;CA6CAA;AA8lEGA,CAn9DHA;AAm9DJA,eACFA,C;EAEWC,MA25CPA,sBAlwDAA;AA2WFA,WAAmBA,QAGrBA;AA7xEIT;CAwIEU;CA6CAA;CA2IAA;AAq+DGD;AA+4CPP,CArwDEA;AA4WFO,QAEFA,C;EAWcE,iBA22C2BA;AAx2CvCA,sCAq0C6BA,GADMtG;AA9zCnCsG,QACFA,C;EAEcC,qBA+1C2BA;AA31CvCA,qCA61C8CA;GA1CfA;UAKFA,KADMvG,IA5yCnCuG,QACFA,C;EAaWC,QAEFA;IAg0CgCC,UAv0CjCD;AAq2CJA,GAlwDAA;AAuaFA,WAAmBA,QAGrBA;AAz1EIb;CAwIEe;CA6CAA;CAeAA;IA+8GmCA,WArlHnCA,IAulH0CA;CAr1G1CA;AAsiEGF;AA80CPX,CArwDEA;AAwaFW,QAEFA,C;EA+BWG,QACLA;IAovCyB5G,YAGAK;AAkD3BuG,GAx8GKA,kBAsqEyCA;AAATA,IAbnCA,GA4vC+B3G;AAkEjC2G,GAlwDAA;AAodFA,WAAmBA,QAGrBA;AAt4EIhB;CAwIEiB;CA6CAA;CAeAA;CA4HAA;AA+kEGD;AAqyCPd,CArwDEA;AAqdFc,QAEFA,C;EAsBWE,QAJLA,oCAyxCFA,CAlwDAA;AAkfFA,WAAmBA,QAGrBA;AAp6EIlB;CAwIEmB;CA6CAA;CAeAA;CA4HAA;AA6mEGD;AAuwCPhB,CArwDEA;AAmfFgB,QAEFA,C;EAmDWE,QArBLC,iBAxoEQA,OAwFVC,MAiwGqCA,WAzvGrCA,MAyvGqCA,WAvuGrCA,MAuuGqCA;AA/sCvCD,QAIMA;AAEAA,qBAINA,QAEgCA;AAC1BA,qBA7W2CA;AA6kD/CD,GAlwDAA;AA6iBFA,WAAmBA,QAGrBA;AA/9EIpB;CAwIEuB;CA6CAA;CAeAA;CA4HAA;AAwqEGH;AA4sCPlB,CArwDEA;AA8iBFkB,QAEFA,C;EAoBWI,UAHHA,SA+nC6BnH,wBAkEjCmH,CAlwDAA;AAykBFA,WAAmBA,QAMrBA;AAFMA;AAwrCJtB,CArwDEA;AA0kBFsB,QAKFA,C;EAEWC,YAETA;SAipCuCA;AA9oCNA;AAC/BA,wBA0mC2BA;IAHArH,eAnmCvBqH,KAGJA,QAEMA;AAEAA;AACJA,OAAOA,iBAabA,EA/hFIzB;CAwIEyB;CA6CAA;CAeAA;AA01EGA,CA9tEHA;AA8tEJA,eACFA,C;EA6HcC,UAEZA,gCAcFA,C;EAqBWC,yBAhB6BA,MACDA;OAmBnBA,YAAlBA,MAXwCA;AAatCA,gBACMA;KACCA,uDACDA;KACCA,UACDA;KAEJA;AACAA,kBAEIA;QArBRA;AAyBQA;QAzBRA;AA6BQA;QA7BRA,OAiCYA,MA9C4BA,IACCA,GAeNA;AA+B3BA;QAlCRA,OAuYiBA,MApZuBA,GA87BXC;AA14BrBD;QAvCRA,OA7iBOA,MAgiBiCA;AAwDhCA;QA3CRA,OAxiBOA,MA2hBiCA;AA4DhCA;SA/CRA,OAniBOA,MAshBiCA;AAgEhCA;QAnDRE,QATqCA;KAg+BEA;AAh6B/BF;QAGAA;AACAA;QAGAA;AACAA;WA5EgCA;AAaxCA,OAqEsBA,OAENA,QAnFyBA,GAeNA,UAPIA;AA6E/BA;WAtFgCA;AAaxCA,OA+EsBA,OAENA,QA7FyBA,GAeNA,UAPIA;AAuF/BA;WAhGgCA;AAaxCA,OAyFsBA,OAENA,QAvGyBA,GAeNA,UAPIA;AAiG/BA;QA7FRA;AAAAE,QATqCA;KAg+BEA;AAr3B/BF;QAGAA;AACAA;QAtGRE,QATqCA;KAg+BEA;AA72B/BF;QAy3BNG,YA5+BmCA;AAsUrCC,MA1UwCD,IACCA;AA67BZA;AAj7B7BC;;AA8GQJ;SA9GRE,QATqCA;KAg+BEA;AAr2B/BF;SAi3BNK,YA5+BmCA;AA6UrCC,MAjVwCD,IACCA;AA67BZA;AAj7B7BC;;AAsHQN;QAy3BNO;AA/+BFA,OA4+BEA;AA5+BFA;AAAAL,QATqCA;KAg+BEA;AA5qBhCF;AAjLCA;QAGAA,0BA1H2BA;AA+HnCA,OAAOA,MA/IiCA,IACCA,KA+I3CA,C;EAOWQ,UACLA;OACcA,QAAlBA,SA9IwCA;AAgJtCA,mBAAyBA;AACXA,cA/IhBA;AAkJAA,QACFA,C;EAEWC,YAELA;OACcA,QAAlBA,SA1JwCA;AA4JtCA,WACEA,KAAeA;AACHA,UAC0BA,0DOp3FKA;KPm3F/BA;AACPA,MAGLA,OA40BFA;AAx0BFA,SAjLwCA;GACCA;IA67BZhI,WAGAK;AAvjDR2H,UAsjDc5H,GA/hBjC6H;AAphCFD,WACEA,uBAA4BA;AA+nB9BA,OA7nBiBA,kBA6nBjBA;AA4KAA,QACFA,C;EAEYE,MAEMA,SA9LwBA,iBAgBLA;AAgLnCA,sBAnLAA,OAqLwBA;KAEXA,UAnM4BA;QA67BZlI,YAj7B7BkI,OA4LoBA,YAhMmBA;AAkMjCA;QA9LNA,OAiM4BA;AACtBA,OAGRA,C;EAOYC,MAzMyBA,aAhBKA;AA8OxCA,sBAEEA,iBAhOiCA;AAmO7BA;OAnO6BA;AAuO7BA;QA1ONA;AA8OMA,WA9ONA;AAoP6BA;AAjPMA;AAoPnCA,iBApPmCA;cAhsBgBA;;AAy7B9BA,UAxQoBA;AAnyEvCtH;CAQSsH;CAQAA;CAiBAA;AA8wEXA,OAoQkBA;AACdA,MAgBNA;OArREA,OA8QkBA,OAqqBiBA;AAnqB/BA,MAKNA;QAFMA,UAAMA,qCAA8CA,SAE1DA,C;EAyBYC,MA3SyBA;AA6SnCA,UAhTAA,OA/hBOA,MAkhBiCA;AA+TtCA,MAOJA,CALEA,UApTAA,OA1hBOA,MA6gBiCA;AAmUtCA,MAGJA,CADEA,UAAMA,sCAA+CA,QACvDA,C;EAEeV,MAwqBXA,gBA5+BmCA;AAsUrCA,MA1UwCA,IACCA;AA67BZA;AAlnB7BA,QACFA,C;EAWWW,QACTA,sBAEEA,OAAiBA,UA3gCgCA,KAkhCrDA;KALSA,uBACUA,CAAiCA;AAAhDA,kBAIJA,MAFIA,QAEJA,C;EAEYC,iBAgoB6BA;AA9nBvCA,gBAEaA,eA8nBiCA,IA3nBhDA,C;EAEYC,iBAunB6BA;AApnBvCA,iBAEaA,eAonBiCA,IAjnBhDA,C;EAEWC,mBAukBoBxI;AArkB7BwI,WACEA,SAAgBA,QAukBWnI,EAjjB/BmI;GAr2FSA;GAy7GgCA;AAvmBrCA,QACEA,QAmkByBA,KAjjB/BA;AAfIA;GAgkB2BnI;GAHAL,QAzjB3BwI,SAAgBA,QAWpBA;AATEA,SACEA,UAAMA;GAv2FDA;OAm8GgCA,QAvlBrCA,QAojB2BA,KAjjB/BA;AADEA,UAAMA,4BAAsCA,QAC9CA,C;EAoDGC,iBAvhGKA;WAAoBA,GAApBA;AAqlHJA;AA3jBJA,YAqBSA;AAyiBPA,WA1jBFA,SAAmCA,QAOrCA;AANEA,SAAkCA,QAMpCA;AADEA,QACFA,C;CAuCKC,cAWHA;SAA8BA,QAwKhCA;AAoPIA;KA5ZmCA;AAGrCA,KAA4BA,QAqK9BA;GAkRiC1I;AApb/B0I,SAA0BA,QAkK5BA;AA/JMA,UAAmBA,QA+JzBA;GArtGmDC;AAyjGjDD,SAA+BA,QA4JjCA;AAzJ0BA;AACxBA,KAGMA,UA0ayBA,EAHAjI,cAva6BiI,QAqJ9DA;GAkRiC1I;;AA/Z/B0I,MACEA,SACEA,OAAOA,WAgaoB5I,QArRjC4I;AAxIIA,qCAwIJA,aAnIIA,SACEA,OAAOA,OAuZoB5I,YArRjC4I;AA/HIA,SACEA,OAAOA,OAmZoB9I,YArRjC8I;AA3HIA,YA2HJA,CAvHEA,SACEA,OAAOA,OA2YsB9I,YArRjC8I;AAjHEA,UAOgBA;AANdA,OAAOA,iBAgHXA,CApGEA,UACOA,WAwXwB5I,aAtX3B4I,QAiGNA;AA/FIA,OAAOA,MAAyBA,mBA+FpCA,CA1FEA,UAEUA;AADRA,UAEIA,OA4WyBhG,YArRjCgG,CA7EEA,UACMA,cAiWyB5I,SA/V3B4I,QA0ENA;AAxEIA,OAAOA,UACCA,eAuEZA,CAnEEA,UAEUA;AADRA,UAEIA,WAqVyBhG,QArRjCgG,CAzDEA,KAAsBA,QAyDxBA;AAtDiCA;yBAE7BA,QAoDJA;AAhDMA;cAAqDA,QAgD3DA;AA3CEA,sBAC2BA,QA0C7BA;AAzCIA,UAAsCA,QAyC1CA;GAplGWA;;GA44GgCA;gBA3VfA,QAmC5BA;AAuUMA;;AArWFA,oBAmT6BA;;AAhTtBA,wBACAA,kBACHA,QAyBRA,CArBIA,OAAOA,QA0SsBlI,cArRjCkI,CAlBEA,sBAC2BA,QAiB7BA;AAhBIA,KAA+BA,QAgBnCA;AAfIA,OAAOA,kBAeXA,CAXEA,UACEA,SAAgCA,QAUpCA;AATIA,OAAOA,kBASXA,CALEA,aACEA,OAAOA,kBAIXA;AADEA,QACFA,C;EAEKE,oBAKCA;AAECA,aA4Q0BrI,kBA3Q7BqI,QAuFJA;IA/rGWA;;GAqJLA;;GAiwGqCA;;AAlSzCA,OAA2DA,QA2E7DA;AAzEMA;GAz9FAA;;GAyvGqCA;;AAxRzCA,WAC2DA,QAgE7DA;AA9DEA,oBAuRgDA;AApRzCA,YA+OwBA,gBA9O3BA,QA0DNA,CAtDEA,oBA+QgDA;AA3QzCA,YAsOwBA,kBArO3BA,QAiDNA,CA7CEA,oBAsQgDA;AAlQzCA,YA6NwBA,gBA5N3BA,QAwCNA,IAhhGMA;;GAuuGqCA;;AArPzCA,0BAiNqCA;KA/MnCA,KACEA,QAA4BA,QA2BlCA;IAmLuCA;AA5MjCA;AACAA,SAAyCA,QAwB/CA;IA+KmCA;AApM7BA,UACEA,MAAiBA,QAoBzBA;AAnBQA,YA4O0CA;AAxO5CA,UAAiCA,QAevCA;GAyNkDA;AArOvCA,YAgMsBA,kBA/LzBA,QAWRA;AAVMA,YAIFA,UAqL+BA,MApL0BA,QAK7DA;AAJMA,KAGJA,QACFA,C;EAEKC,+BAiLkCzI;KA5KrCyI,WAhhDI1D,GASA0D;AAohDFA,WAAkBA,QA8BtBA;AA7BIA,uBA8JmCA;AA5JjCA,YAhYAA;AAoYFA,WAAqBA,QAuBzBA;GAqK2CA;AALnCA,oBA3tGkBC,aA4kD6BA;AA29CnDD,gBAE+BA,eAmJIA;AA/InCA,OAAOA,iBAhxGAA,QA8xGXA,CAFEA,OAAOA,QA5xGEA,mBA8xGXA,C;EAEKE,yBAmKsCA;AAxJzCA,gBA8BSA,WAuFsBA,iBAtFzBA,QAKRA;AADEA,QACFA,C;EAEKC,uBA7zGMA,YA+6GgCA;gBA1GnBA,QAaxBA;IAyDuC1I,SAnEnB0I,QAUpBA;AAREA,gBAGOA,WA+DwBA,iBA9D3BA,QAINA;AADEA,QACFA,C;EAEKC,WAqD4BjJ;uBAlD3BiJ,WACKA,SACmBA,kBAmDGrJ,KAlDCqJ,eAkDDnJ;AAtD/BmJ,QAKFA,C;EAWK9G,IAA8BA;AAK/BA;KAA2CA;AALZA,QACsCA,C;CAMpE+G,WA4B4BlJ;AA1B/BkJ,0CAKFA,C;EA2CcC,MAFRA,4BAkBqCA;AAZvCA,oBAxBmCA;AA+B/BL,UAHNK,C;EAEeL,IAA+BA,yBA1tGtBA,aA4kD6BA,IAgpDLA,C;;;;;;;;;;;EQvtHhCM,GACdA;AAESA,OADLA,yBACFA,aAgCJA;OA9BMA,6BACAA,iBAEQA;AACCA;;AASIA,0BACXA,KAPYA,gBAQhBA;AAEAA,OAAOA,eAaXA,MAJWA,OADEA,oBACTA,aAIJA;AADEA,OAAOA,MACTA,C;EAEYC,IAKVA,uBACIA,KALYA,eAMlBA,C;EAEYC,IAKVA,kBACIA,KALYA,eAMlBA,C;EAEYC,IAWHA,SATTA,C;EA0BAC;;QAaAA,C;EA0FWC,IACXA,OAjCAA,SCoGAC,SAAyBA,GAAzBA,aDpGAD,aAkCFA,C;EAUQE,MAENA;CACUA;AACVA,QAxBwBA,EAyB1BA,C;EASQC,MACNA,SACFA,C;EAQQC,MACNA,OACFA,C;EAOQC,MAENA,KACIA,QAAyBA,QAC/BA,C;EASKC,MAECA,wBAEqBA;oBASvBA;;oBAEAA;KCLFA,WAAyBA;CA4IvBA;CACAA;ADnIAA,aAEJA,C;EAIkBC;;OACAA;AAuBhBA,OAAYA,CE6QeA,MF7QgBA,YAG7CA,C;EG3TEC,MACcA;AADdA,0BAEiCA,UAFjCA,AAEyDA,C;EAOvCC,IAChBA;AAAUA,aACeA;AACvBA,WAAwBA,QAG5BA,CADEA,QAAkBA,EACpBA,C;EFiiBYC,MAEVA;QA1QsBA,iBA8GfA;AA+JPA,UACEA,IZ1XJA,0DY6XmBA;AACfA,MAYJA,KAV0BA;CAAjBA;AACPA,eAC+BA;AAC7BA;AACAA,kBAEoCA;AACpCA;AACAA,QAEJA,C;EAQYC;QAtSYA,kBA8GfA;CA2LLA,KAEFA,UACEA,IZxZJA,0DY2ZmBA;AACfA,MAuBJA,CArBEA,kBAGsCA;AACpCA;AACAA;AACAA,MAeJA,iBAVkCA,UAC9BA;AACAA,MAQJA;ACmhCEA,gBDthCOA,GAAwBA,cAGjCA,C;EAgIYC;KAEVA;GAvcqBA;AAAOA;AAAeA;AA0czCA,YACEA,oBApWGA;AC8sCPA,MDv2B0CA,IAAkBA,IAExDA,MA+JNA,EA1JoBA;GACyBA;AACzCA,0BACWA;AACTA,MAAsBA;CACtBA;GACwBA,MAGGA;GAAOA;CAQ/BA;CACDA;AAKkCA,SAnqBhBA;AAmqBGA,6BArCpBA;AAqCLA,SArqBeA,EAAOA;AAuqBPA,SAAWA;AAARA,eAAHA;AAAbA,MCu0BJA,MDn0B0CA,IAAkBA;AACtDA,MA4HRA,IAxH0BA;AAApBA;KAmFIA;GA9vBmBA;AAivBvBA,cA/D+BA,gBAgE7BA;KACKA,MACLA,aA9BsBA,cA+BpBA,UAGFA,aAzBcA,cA0BZA;AAKJA;GAIIA;wBACAA;cAprBuCA,OAAsBA,iBAmrB9BA;AAAnCA,SAKmBA,EAASA;KAplBTA,eA2MIA;CAC3BA;AACOA;CAtEPA,IACYA,OAAkCA;CAC9CA,IAA4BA;CAgdlBA;AACAA,cAEAA;AAKJA,MAeRA,KAXqBA,EAASA;GA1ZDA;CAC3BA;AACOA;GA0ZAA;GACcA;AADnBA,QApfFA;CACAA,WAKAA,IAAwBA;CACxBA,MAofEA;IAEJA,C;EAqDOC,MACUA,YACfA,OAAOA,OAWXA;AARmBA,YACfA,QAOJA;AALEA,UAAoBA,sBAKtBA,C;EGx8BKC,GACHA;OAAiBA,IAAjBA,WAAuDA;GAEpCA;;AAEjBA;AACOA,SAEXA,C;EAEKC;IAKDA;;IAIIA,UJ3BJA,OAAyBA,GI4BMA,QAGnCA,C;EAMKC,IAnDHA,qBAqDoCA;AACpCA;KAEOA,IJ1CLA,OAAyBA,GI2CMA,mBAGlBA,IAGjBA,C;EAQKC,iBACCA;AAAJA,YACEA;MACwBA;AACxBA,MAgBJA,CA3FEA;GA8E4CA;AAC5CA,aACQA;oBAG0BA;CAC1BA;MACeA;AAErBA,kBAIJA,C;EA0BKC,kBACsBA;IACXA,QAGZA,UAHYA;AAIZA,MAUJA,CFggDIA,WEjgDkCA,QACtCA,C;EC64EUC,ICxkDWA;AD2kDfA,OC5kDJA,UD4kDkCA,C;EHzrC/BC,MACHA,KAA+BA,cAGjCA,C;EAEEC,mBACmBA;AAAnBA,SAAoCA,OAAOA,MAY7CA;;AANQA;IAEGA;AAAPA,QAIJA,gB;EAEEC,qBAEmBA;AAAnBA,SAAoCA,OAAOA,OAY7CA;;AANQA;IAEGA;AAAPA,QAIJA,gB;EAEEC,uBAEmBA;AAAnBA,SAAoCA,OAAOA,SAY7CA;;AANQA;IAEGA;AAAPA,QAIJA,gB;EAqBKC,cAEYA,OAGPA;AAKRA,OACFA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AK75BWC;EADDA,QACNA,cCrfFA,wCDsfAA,C;EAMQC,MACNA,OC7fFA,uCD8fAA,C;EE9fOC,IzB8rBqBA,kBA8H5BC,WAEyBA,QAFzBA;AyB1zBMD,UzB+zBoBA,GAATA;AyB/zBUA,gBzB+zBDA,SyB7zB1BA,CADEA,WACFA,C;ECkEcE,IAEZA;AAAIA,WACFA,aAwBJA;AbyXAA;Ia5YIA;;CAEKA;AACLA,MAAUA;iBAYVA,cb4Z0CA;AazZ5CA,6BACFA,C;;;;;;;;;;;EC9GFC,MACEA;IAIWA,yBADXA;AAIQA,MAAgBA;AAAtBA,aAIOA;AAAPA,QAIJA,C;EA8CAC,IAEEA;WAAoBA,WAsBtBA;AAnBEA,sBACEA,QAkBJA;qBAdIA,OA8BFA,WA6LiCC,oBA7MnCD;AAVEA,WAAoBA,QAApBA,IAO8BA,WADjBA;AAGbA,QACFA,C;ECPmBE,QAELA;WAI0BA;KdkgCWlM;Ac//BrCkM,kBADVA,SACUA;AACRA,eAASA;OAOXA,QACFA,C;EAKeC,UAEoBA,eAAmBA;AACpDA,WAAqBA,WASvBA;AAPWA,eAD0BA,QACjCA,gBAOJA;AAJEA,OAAOA,OAEHA,gBAENA,C;EAEeC,MAIbA;IACSA;AAAPA,QAGJA,WADEA,WACFA,C;EC2CYC,cAENA,mBACFA,UAAMA;AAMRA,WACEA,UAAMA;AAGRA,OACEA,UAAMA,gEAKVA,C;ECsTcC,IACZA,kBAEIA,8BAgBNA;QAdMA,iCAcNA;QAZMA,0BAYNA;QAVMA,yBAUNA;QARMA,4BAQNA;QANMA,yBAMNA;QAJMA,uCAINA;QAFMA,QAENA,E;;;;;;;;;;;;;;;;;;;;;;;;EjB1TWC,MAUSA;AAPlBA,WAAmBA,QAGrBA;AADEA,UAAMA,iBACRA,C;EAyCaC,MACHA;AACyBA;AACjCA;AACAA,wBACFA,C;EAoCQC,UAESA,oBAA8BA;AAC7CA,kBAEEA,WAA2BA,QAA3BA;AAMFA,QACFA,C;EAQQC,QACYA;AAClBA,oBACEA,OADFA;AAGAA,KAAcA,QAEhBA;AADEA,OkBpSaA,OlBqSfA,C;EAGQC,QAC4BA;AAAZA,QAOxBA,C;EAOQC,MACNA;AAAaA,oBAAYA,ObpPvBC,IANiCnS,uBakQrCkS;AALoBA;AAClBA,oBACEA,OADFA;AAGAA,QACFA,C;EAoCQE,QAEKA;;AACXA,YACkBA;AAChBA,OACEA,UAAiBA;AAEnBA,SACEA,QAcNA,CAHWA;AAAPA,QAGJA,C;EAqBcC,eAEQA;AACpBA,QAAkBA,QAGpBA;AADEA,OAAkBA,0BACpBA,C;EA8BQC,MAKJA,OF5bJA,WAM2BA,sBE0bJA,C;EAwDTC,QACgBA;AACvBA,UAAqBA,QAa5BA;ImBpKoBA,gBnBuKgCA,OAbVA;MAC7BA,YAYuCA,OAVZA;KAC7BA,OASyCA,UAPVA,QAGxCA,QACFA,C;EAgIcC,UAEZA;QAAwBA,IAASA;AFjkB1BA,GAAyBA,gBb4iCtBC;Ae3eVD,KACEA,QAsBJA;AiB5oBeA;OjB6nBaA,iBAA1BA,YACaA;YAELA,uBAlRUE;8BAyRDF,YACAA,OAGjBA,6BACFA,C;EAGcG,IAEZA;AAAKA,WACHA,OAAOA,OAoDXA;AA/CiBA;AACfA,MAAwBA;AAwBPA;GAUMA;SACLA,YACNA;AASZA,OALUA,yDAMZA,C;EAUsBC,GAAWA,YAAsBA,YAAsBA,C;ERrsB/DC,IACgBA,wCAC1BA,OAAOA,OAMXA;AAJEA,sBACEA,OP8qFGvR,iBO3qFPuR;AADEA,OQkLkBA,ORjLpBA,C;EA8BaC,MACXA;AACAA;AACAA,SACFA,C;EAYAC,sBAA8BA,C;CAsD9BC,iCAEuBA,C;EAcvBC,gCAEsBA,C;EA4DtBC,4DAG+DA,C;CAe/DC,uDAIiEA,C;EAmEtDC,QAITA,YAEEA,UAAiBA;AAEnBA,YACEA,YAEEA,UAAiBA;AAEnBA,QAGJA,CADEA,QACFA,C;EAWWC,MACTA,OACEA,UAAiBA;AAEnBA,QACFA,C;EAkEAC,wDAEsEA,C;EAkFtEC,sBAAqCA,C;EAcrCC,sBAAkCA,C;EAyBlCC,sBAAwBA,C;EAaxBC,sBAAkDA,C;CIpgB5CC,8BAA8DA,C;EwB0vBtDC,QAEZA;AAAIA,YACFA,oBAEEA,aAgBNA;AAdIA,gBAcJA,CAZ+BA;AAC7BA;IAEEA,kBAGAA,CALFA,UpBxTYA;AoB+TZA,6BAIFA,C;EAYcC,QAEZA;AAAIA,WACFA,gBAYJA;ApB/WAA;AoBsWEA;IAEEA;ApBvVUA,CAAZA,SAAsBA,mBoB0VpBA,CALFA;GpBvU4CA;AoB+U5CA,6BACFA,C;EA0BGC,MAwB6BA;AAGhCA;AACOA,UAAeA,MAkFxBA;AAjFwBA;AACpBA;IACeA,UACfA,IAQGA,WACHA,QAAoCA,MAqExCA;AApEqBA;AACGA,eAEKA,SACzBA;AACKA,WACHA,SACEA,OAAYA;AACZA,MA4DRA,CA1DyBA;AACCA;IACKA,eAEHA,SACtBA;KAGOA,MAAPA,SAEgBA,SACdA;AACAA,UAQEA;AAEYA,UAAmBA,UAC7BA,IAEFA;AACAA,MAgCVA,EA7B4BA;AACHA;IACMA,SAA2BA,iBAOtCA,WAEhBA;AAfgBA;AAqBlBA,sBAAqCA;AACzBA,UAAmBA;AAC7BA,YAEEA;AAzBcA,SA4BlBA,WACEA;AAEFA;AACAA,SACFA,C;ECn0BaC,UAmBTA;IAOqBA,QANaA;AAAkBA;AAAlDA,O/BJKA,KADAA,KADAA,K+BMuDA,aA2QhEA,KArQuBA,QAFPA;AAAkBA;AAAkBA;AADhDA,O/BCKA,KADAA,KADAA,KADAA,K+BGqDA,gBAuQ9DA,CApQoCA;AAAkBA;AACtCA;AAAkBA;A/BKzBA,OADAA,KADAA,KADAA,KADAA,K+BDmCA;AADxCA,QAoQJA,C;ECqXWC,qEAyDGA;AAGZA,UAy+HWA,2BACJA,qBACAA,oBACAA,qBACAA;AA3+HLA,SAGEA,OAAeA,WAD0BA,wBACLA,KAwO1CA;KAvOWA,UACLA,OAAeA,KAAOA,qBAAwCA,KAsOpEA,CA9NgBA;;;;;;;;;AAcFA;GAMIA;AAChBA,QAEUA;GAaMA;GACAA;GACAA;GACCA;GACGA;AAMpBA,OAOcA;AAHdA,OAYuCA;KARhCA,QAEOA;AAMdA,OAoBaA;GAXGA;;AAEhBA,MAzE+CA;AA6E7CA,aAKWA;AAAJA,kBAIIA,qBACWA,OACbA,sBACGA;KAzFiCA;KAlB/CA;AAwGSA,OAUKA,sCAEJA;KApHVA;AAgHSA,MAeLA,UAEMA,uBAEFA,SAKOA,qBACUA;AAm2HyBA,SAt2HpBA;AAy2HCA,IAn2HFA;AAKnBA;AACAA;KAEUA;AAzHfA;;SA0HUA,UAeHA;AADAA;AAXMA,qBAGNA;IA1BaA,cAwCRA,uBAKLA,mCAeAA;AAFAA;AACAA;AAZMA;AAINA;IAXoBA,eA0BSA,+BAK/BA,oCAeAA;AAFAA;AACAA;AAZMA;AAINA;IAX8CA,kBA6BxDA,KAUEA,OAgxGJA,cAzxG+BA,QACnBA,gCAcZA;AAwcEA,WAEEA,OACWA;KACJA,SACLA;AA7gBqDA;AAmhBzDA,QACsBA;AAEPA;AAENA;AACHA;AAAJA,QtB91CgBC,QsBg2CGD;AAEVA,gBADEA,KAAMA,sCAKqCA;AAjiBCA,KAiiBrDA;AAGMA;AAteVA,OA4eYA,wBAFCA,mBAxefA,C;EAuL2BE,IAEZA;AAAbA,cAAOA,sBAAsBA,UAAIA,cAcnCA,C;EAWiBC,QACLA,0HrBpNqC7O;AqB2N/C6O,yBACaA;AACXA,WACEA,YAEEA,iCAGFA,SACEA;AAEaA,OAAMA;AACrBA,SACEA;AAEKA;;AACKA;KAIhBA,SACEA;AAGaA,OAAMA;AACrBA,SACEA;;AAIFA,QACFA,C;EAmBiBC,SAULA,uDAKEA;IAWHA,UAAYA;AACHA;AAMlBA,gCACaA;AACXA,WACEA,UAEEA;AACIA,wBACFA;AAIAA,IAAJA,UAEEA,KACEA;AAGFA;AADeA,UAIfA,OAAUA;AAEAA,WACPA,UAPYA,SAWXA,YAAaA;AACTA;AACeA;AAC7BA,aACEA;AAEFA,MACEA,MACEA,OAAUA;KAEOA;AACjBA,SAAUA,QAAeA;AACzBA,SAAUA,QAAeA,UAG7BA,UACYA,UACRA,0EAEaA,YACfA;ArB7V6C9O;OqBgWV8O,sBAArCA,YACcA;AACZA,UAEEA;;AAGEA,UAGaA;;AAEfA,MAGJA,QACFA,C;EAsEAC,8CACgCA,C;EA4IrBC,IACTA,cAAsBA,SAGxBA;AAFEA,eAAuBA,UAEzBA;AADEA,QACFA,C;EAcaC,QACXA,UAAMA,WACRA,C;EAoTYC,MAEkBA,wBAAsBA,WAEpDA;AADEA,QACFA,C;EAWeC,UAEbA;AACAA,SAAkBA,QAkCpBA;AAhCMA,yBACkBA;AAAhBA,wBACFA;AAG6BA;AAAnBA;AACZA,QAE6BA;AAClBA,SADJA,oCAVgBA;AAanBA;AAEJA,OAAOA,aH93DFA,mBGi5DTA,CAfIA,gBACMA,yBAmBIA;AAELA;AAlBDA,QAE6BA;AAClBA,SADJA,oCAzBYA;AA4BfA;AACJA,UAAWA,kBAKnBA,CADEA,OAAOA,WACTA,C;EAIWC,QACGA;AAEZA,oBACFA,C;EAYcC,UtBnkDdA;AsB8kDEA,uBACaA;AACXA,WACwBA;AAClBA;AAAJA,SACEA;AACAA,oBtBplDRA;AsBulDqBA;AAGfA,KACgBA;KACTA,WACLA;CtB3jDNC;AsB8jDID;;AApBgBA,sBAlBEA,0BA0ClBA,+BtBpmDNA;AsBumDQA,QACeA;SAKjBA,SAnD6CA;AAsD7CA,6BACaA;AACXA,sBACiBA;AACAA,KAGJA;YtBvnDrBA;AAOEA;;AsBmnDcA;;AACVA;KAIJA,WAAoBA,OAAOA,YAM7BA;AALEA,QACiBA;UtBlmD2BA;AsBqmD5CA,6BACFA,C;EAWcE,QACEA;AAMdA,8BACaA;AACXA,WAEwBA;AAClBA;AAAJA,SACEA;AACAA,oBtB9pDRA;AsBiqDqBA;AACfA,MHpgEGA;;AG+/DQA;AAQXA,KACgBA;KACTA,YACSA;AACCA,KtBvoDrBD;AsB0oDIC;;AAvBgBA,sBAbEA,2BAwClBA,+BtBhrDNA;AsBmrDQA,QACeA;SAKjBA,qBA2UEA,yBAzUFA;KAlBiBA;AAqBjBA,6BACaA;AACXA,sBACiBA;AACAA,KAGJA;AACfA,MHxiEGA;YnBkWTA;AAOEA;;AsBksDcA;;AACVA;KAIJA,WAAoBA,OAAOA,YAO7BA;AANEA,QACiBA;AACfA,MHnjEKA;UnBiYqCA;AsBqrD5CA,6BACFA,C;EAKcC,QACZA;SAAkBA,QAkBpBA;AAhBOA,SADqBA,iBAExBA;AAGFA,sBACuBA;cA6RFA,0BA3RjBA;AAEFA,gBACsBA,KAGfA;AAETA,OAAOA,OH9kEAA,kBG+kETA,C;EAKcC,IACZA,cAAsBA,YAKxBA;AAJEA,cAAsBA,YAIxBA;AAHEA,eAAuBA,aAGzBA;AAFEA,iBAAyBA,eAE3BA;AADEA,QACFA,C;EAEcC,QAEZA,OAAOA,YAA4CA,UACrDA,C;EAEcC,cAEPA;AAGLA,WAC4BA,eAiB9BA;KAVaA,cAAwCA;IH53DjCA,aGg4DhBA,KAAYA,SAMhBA,MALoCA,oBACvBA;AAGXA,OADSA,WAEXA,C;EAOcC,eH74DMA;AGg5DbA,0BACAA,cACHA,OAAOA,aAGXA;AADEA,OAAOA,OACTA,C;EAEeC,UAEbA,YACEA,WACEA,UAAMA;AAERA,OAAOA,YAAyCA,SAKpDA,CAFEA,WAA6BA,WAE/BA;AADEA,OAAOA,OACTA,C;EAScC,ItB3zDdA;CsB8zDMA;AAYJA,MAAwBA,SAVLA;GtBjyDyBA;AsBqzD5CA,6BACFA,C;EAEeC,QAEbA,OAAOA,YAA4CA,SAErDA,C;EAaeC,QAEbA;OAAwBA,QACtBA,SAuBJA;AArBmBA;AACCA;AACIA;AACCA;AACvBA,YACEA,SAgBJA;AAd8BA;AAutBLA,YAAjBA,8BAltBJA,OtB18DgBA,iCsBm9DpBA;AAPEA,gBAEEA,OAAOA,eH1tEFA,aG+tETA;AADEA,WACFA,C;EAEcC,IAEFA;AACVA,UrBvxC+CjQ;;AqB2xC9BiQ;AACAA,6BAKfA,UAGEA,YAESA;AAXkCA,SAOpCA;AATaA,SAMXA;AAHDA,IrB5xCmCjQ;AqB2yC7CiQ,wBACeA;;AAEUA;AACAA;AACvBA,MAIJA,OAAcA,cAChBA,C;EAMcC,cAGLA;AAAPA,eAGIA,cACNA,C;EAWeC,cAGCA;AAIdA,2BACaA;YACQA,uBACjBA;KADyCA;AAKzCA,WACgBA;AAEdA,YACEA;AACAA,SAGFA,WACgBA;KALLA,SAUNA,aACSA;oBA0CdA,0BAvCAA;;SAIAA,sBAEMA;AAAJA,QACaA;AACXA,sBAGiBA;AADAA,MAKPA,sBtB5+DtBA;AAOEA;AsBw+DcA;AtBx+DCA,CA2Bfb;AsB+8DIa;KAIJA,WACEA,QAMJA;AAJEA,QACeA;UtB19D6BA;AsB49D5CA,6BACFA,C;EAoDYC,IACNA,gBAAsBA,QAG5BA;AADEA,OADYA,mBAEdA,C;EAOcC,IACZA;AAAKA,YAA8BA,QAsBrCA;AApBwBA;AAECA,sBAAvBA;AAEMA,oBnC/2DYC,amCi3DZD;InCj3DYA,YmCm3DVA,WAGUA,UACLA;AAAJA,MAGLA,WAGJA,KAAiBA;AACjBA,OAAOA,aACTA,C;EAacE,MAEZA;AAAKA,YAEHA,SADyBA,SA2B7BA;AAvBwBA;AAECA,sBAAvBA;AAEEA,aACgCA,GnCx5DhBA;AmCw5DdA,KACEA;KAGAA,kBAEOA;AAAJA,MAGLA,cnCj6DcA;AmCo6DCA,mBAA0BA,GHvuE3BA;KG6tEEA;AAUpBA,KACEA,UAKJA;AAH4BA,wBAAcA;AACxCA,MAA8BA,WAAcA;AAC5CA,OAAOA,aACTA,C;EAGcC,eACHA;AAAeA,cAAuBA,iBAC7CA,iBACaA;AACXA,UACEA,OAAUA,mBAA0BA,YAS5CA;YANYA,yBACJA,MAINA,QACFA,C;EA2WWC,MACLA;AACJA,qBACiBA;AACfA,gBACmBA;KAGjBA;AACAA,iBACmBA;KAEjBA,UAAMA,mCAIZA,QACFA,C;EAYcC,YAMPA;AACLA,qBADcA;MAEGA;AAFHA;AAIaA,UAAZA,UACOA;AAFpBA,MLt+FsCA;AK0+FpCA,MANyBA,IAU7BA,KAEWA,IADLA,OACFA,mBAyBNA;KhCx+FAC,WgCi9FcD;KAGGA;OAOQA,YANrBA,SACiBA;AACfA,SACEA,UAAMA;AAERA,WACEA,SACEA,UAAMA;AAERA,OAAUA;AACVA,UACKA,UACLA;KAEAA,WAINA,OLrgGOA,CADKA,QKugGdA,C;EAEYE,IACNA;AACJA,oBACFA,C;EAqwBeC,QASOA;OAIJA,wBAAhBA,SACSA;AACPA,kBAAwCA;AACxCA,WACEA;AAEEA,SAEFA,UAAMA,aAGVA,YAGEA,UAAMA;KAERA,SAEEA,UACAA;AAEAA,kBACSA;AACPA,WACEA,gBACKA,kBACLA,MAGJA,QACEA;KAG4BA;AAGvBA,2CACHA,UAAMA;AAERA,OAGJA;AAGgCA;KAFRA,eAEfA;KAKSA,cAAqCA;AAErDA,WACSA,iBAGXA,OAxiBFA,eAyiBAA,C;EA2McC,GAmDDA;iBrBhiGoC9Q;AqBoiGlC8Q;AAOFA;AAaAA;AAUTA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAGAA,KADIA;AAGAA;AACJA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AACAA;AACAA;AAEIA;AACJA;AACAA;AACAA;AAEIA;AACJA;AACAA;AAKAA,KADIA;AAGAA;AACJA;AACAA;AACAA;AAEAA,QACFA,C;EAWIC,YACWA;AAEbA,oBACcA;AAEDA;GAGMA;AACTA;WAGVA,QACFA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECnwImBC,IACjBA;wBACEA,UAAMA;mEAEOA;AAWWA;AAC1BA,QACFA,C;EAqGAC,QACEA,QAAiBA,OAAOA,OAE1BA;AADEA,OAAOA,MACTA,C;EC6PUC,MpBjMRC,eAAyBA,GAAzBA,eAvPIC;AoBucJF,OAZgBA,KAAuBA,eACzBA,KAAuBA;AAYrCA,QACFA,C;;;;;;EChXUG;AAEFA,mBAC6BA,QAAnBA;AAgEhBC,WA9D0BD,KAAZA,gBACKA,GAAmBA,KAAZA,gBACAA,KAAZA,qBAWEA;AAPNA;AACSA;AACmBA,OAApBA;WAAgCA;AACxCA;AACyBA,GAThBA,EASJA,MAAOA;AACwBA,OAAxBA;WAH4BA;AAb1CA,OAxBRC,oBAyCUD,gBAjBFA,C;;;;;;;;;;;;;;;;;;;;ECxGLE,GF0HIA,cAlELA,yCAkEKA,CAlELA,0CAkEKA,CAlELA;AGgE8BA,KHEzBA,CAlELA,cEzCYA,0BAETA,GAAKA,SAXQA,2BA2CpBA,C;EAyCEC,IAJ0DA,oBACbA;AAG7CA,kBAAgCA,SFlC9BA,2BEkCFA,AAA2DA,C;EA0SjDC,MF1QHC,4BAlELA,kCE8UkCD;WAAQA;AFtPrCA;AAtBAA,CAlELA;AAkEKE,GAlELA;AAkEKF,CAlELA;AEmVcA,kBACDA,OAAcA,SPpQpBA;AKdFA;GEqRwBA;AACVA;AAArBA,MFtROE,GAlELA;AAkEKF,CAlELA;AE2VuBA,yBAA4BA;AFzR9CA,oBE6RwBA;aP7BXG,aKhQbC,GAlELA;AAkEKJ,CAlELA;AAkEKK,GAlELA;;AAwFKL,wBAxFLM;AEoWgBN;AFlSXA,iBAsBAA,+BEoRHA,KAFFA;AFlRKA,2BE8RHA,KALFA;AAQFA,SAG0BA;AAAyBA;GAC5BA;AF3ThBC,GAlELA;AAkEKM,CAlELA;AAkEKC,GAlELA;;AAkEKD,CAlELA;AAkEKE,GAlELA;AAwFKF;;AAtBAA;;AEwTLP,UAQFA,QACFA,C;EAGKU,eFtYDA;ILkUkBA,YOwElBA,MAUJA;AAPkBA;AAChBA,WF5UOA;;AEgVLA,CALcA,aAOlBA,C;EAcOC,MAAyCA,OP3arCC,OO4aLD,WACAA,gBACDA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EEreAE,GJkIIA,cAlELA,kDAkEKA,CAlELA,qDAkEKA,CAlELA,mDIxDAA,KAH6BA;WJmJxBA;wCI5ITA,C;EAEKC,yBJkDDA;AIhDFA,WACEA,MAiCJA;AJgFSA;AI7GPA,WAGEA,MA0BJA;AAtBEA,eJsGOA;AIpGLA,WACEA,MAmBNA;AALeA,SAVAA;AJ+FNA,GAlELA;AIzBFA,WACEA,MAUJA;AALEA,OJqFOA,sCAlELA;AIfFA,OJiFOA,sCAlELA,kDIdJA,C;EAEKC,qBT8UiBA,qBSxUlBA,MAmBJA;ADmDkCA,KHEzBA,IAlELA,gBIHsBA,aAA0BA,GAAKA,kBAgBzDA,C;EAIKC,MAEHA;AT6DSA,IKhFPA,+BAkEKA;AI7CLA,WACmBA,YACPA,oBJvBZA;AI8BFA,WJ9BEA,QI8BFA,KJoCOA;AInCLA,WACEA,UAGNA,C;;;;;EC3GKlB,uBLwEDA;AKrEFA,WACEA,MA4BJA;AL0GSA,GAlELA;WKjE2CA;AAE5BA;ALuJVA,4BKvIHA,KAFFA;ALmHKA,GAlELA;AK5CFA;AAEEA,OAEJA,C;;;;ECvBKmB,IACHA,iCAEEA;AACAA,MAoBJA,+DAdIA;AACAA,MAaJA,CATEA,6BACEA;AACAA,MAOJA,CADEA,0CACFA,C;EClBKC,IAEHA,KCRAA,mEDOgBA,YAElBA,C;EAeKC,GAEHA,KC1BAA,8DDyBgBA,YAElBA,C;EEnCKC,GLGHA;AACAA;AKFOA;UTqELtB;WA6CKA;AShHDsB,MACRA,C;;;;AjDsTiCC;CAFjBC,MAAoBA,YAAsBA,C;EAEhDD,IAAYA,cAA+BA,C;CAE5CE,IAAcA,sBC6JLA,WD7JiDA,C;EAoBxDC,IACLA,OW6qBGA,KADGA,WX5qByDA,C;AAQ9CC;CAAdA,IAAcA,gBAAgCA,C;EAU7CC,IAAYA,sBAAwCA,C;EAGnDC,IAAeA,gBAAmCA,C;;;CAWpCC,MAAEA,cAAcA,C;CAGhCC,IAAcA,YAAMA,C;EAEnBC,IAAYA,QAACA,C;;;;AAmDAC;EALbC,IAAYA,QAACA,C;CAKdD,IAAcA,gBAA+BA,C;;;;CAyB7CE,IACiCA,OAApBA;AAClBA,WAAyBA,OAAaA,UAExCA;AADEA,iCAAkCA,OACpCA,C;AAiBqBC;EAHbC,IAAYA,QAACA,C;CAGdD,IAAcA,gBAA+BA,C;AAqB/BE;EAHbC,IAAYA,QAACA,C;CAGdD,IAAcA,gBAA+BA,C;AKzUpDE;CFRQC,MAAaA,iBAAKA,QEQ1BD,2BFR8CC,C;CAoIzCC,wBAxIDA,KAAMA;UA2IVA,C;EAqBOC,MACWA,cAAYA;AAC5BA,WAAyBA,QAAzBA,IACmBA;AAEnBA,OAAOA,SACTA,C;EAgCEC,mBAEkBA;AAClBA,qBAIUA,UADMA;IAELA,YAAkBA,UAAMA,SAEnCA,QACFA,C;EAXEC,kC;CAiEAC,MACAA,QAAWA,GACbA,C;EAEQC,eAGmBA;AAAzBA,OACEA,UAAiBA;AAMjBA,YACEA,UAAiBA;AAGrBA,SAAkBA,OAAUA,eAE9BA;AADEA,OArUEA,IANiC5Z,aA2U5B4Z,QACTA,C;GAYMC,WACAA;AAAJA,OAAgBA,QAAWA,KAE7BA;AADEA,UAA2BA,OAC7BA,C;EAuHKC,MACHA;sBAxaEA,KAAMA;GAyaIA;AACZA,OAAaA,MAkEfA;WAjEcA;AACZA,aACgBA;GACAA;AACVA;OAMJA,MAuDJA,CA/DmBA;aAiDiBA,QAChCA,WAAoBA,QAApBA,QACoBA,wBAKhBA,IAINA,OAA0BA;AAE1BA,OAAoBA,YACtBA,C;EAUKC,eAEKA;KAIRA,kBACoBA,wBAGVA;AAANA,SAAkBA,MAGxBA,C;CA2DOC,IAAcA,O+C9KJA,e/C8K+BA,C;EAahC7I,IAAYA,OA8H5BA,WAEyBA,QAhIGA,QA8H5BA,UA9HkDA,C;EAE1C8I,IAAYA,OAAWA,OAAoBA,C;EAE3CC,IAAUA,eAAiCA,C;CAsCxCC,oBAGmBA,SAASA,UAAMA;AAC3CA,QAAOA,GACTA,C;CAEcC,8BA5nBVA,KAAMA;cAgoBoBA,SAASA,UAAMA;MAE7CA,C;;;;;EA4EMC,GAAoBA,UAATA;uBAASA,SAAIA,C;CAEzBC,mBACUA,MAAUA;IAKnBA,OACFA,UAAMA;GAGJA;AAAJA,UACEA;AACAA,QAKJA,EAHEA,IAAWA;CACXA;AACAA,QACFA,C;;EgD51BIC,MACFA;AACAA,OACEA,QAmBJA;KAlBSA,OACLA,QAiBJA;KAhBSA,UACLA,UACuBA;AACjBA,mBAA2BA,QAarCA;AAZUA,eAAYA,QAYtBA;AAXMA,QAWNA,CATIA,QASJA,MARSA,AAYSA,aAXdA,AAWcA,YAVZA,QAMNA;AAJIA,QAIJA,MAFIA,QAEJA,C;GAESC,IAAcA,sBAAuCA,C;CA4MvDC,IACLA,gBACEA,YAIJA;KAFIA,UAEJA,C;EAEQC,IACFA;AAGJA,SAAsBA,kBA6BxBA;AAxBiBA;AACEA;AAIJA;AAWGA;AAOhBA,6EACFA,C;EAwBkBC,MAChBA;AAGAA,SAAiBA,QAOnBA;AANEA,OAAgBA,QAMlBA;AAFIA,UAEJA,C;EAeIC,MAEFA,sBAEMA,YACRA,C;EAEIC,MACEA;AACJA,iCAEEA,UAgBJA;AAdEA,QAGEA,WACEA,OAAOA,aAUbA,MARSA,UAELA,OAAOA,YAMXA;AAFEA,UAAMA,yCACiCA,YAAWA,iBACpDA,C;CA4BIC,MACFA;OACMA;;AAKAA,WANNA,QAOFA,C;EAEIC,MACFA,OAAeA,UAAMA;AACrBA,OAAOA,YACTA,C;EAEIC,MACFA,mBASFA,C;EAiDSC,IAAeA,gBAAkCA,C;;AA+MlCC;EAAfA,IAAeA,gBAAkCA,C;;;AAWlCC;EAAfA,IAAeA,gBAAqCA,C;;;EhBzoB7CC,MAEdA,UACFA,C;CAiDOC,UAGcA,gBAAiCA;AAEpDA,OpBkPWA,mBACAA,coBlPbA,C;CA8BKC,QACHA;WAC8BA,QAC5BA,UAAiBA,SAAqBA;KAIdA;AAGRA,MADDA,QAAQA,QAI3BA;AAHIA,2BAGJA,C;CAbKC,2B;CAgBEC,QAGLA,OAAOA,cADUA,UAAiCA,SAEpDA,C;CAJOC,8B;EAqKSC,MACdA;QAAgBA,QAelBA;WAdyBA,YAAaA,QActCA;AAbEA,aAEEA,WAAYA;AAIdA,kBACEA,aAA6BA;AACrBA;AACRA,SAAgBA;AAChBA,KAEFA,QACFA,C;EAkBIC,QACFA;WAE8BA,QAC5BA,UAAiBA,SAAqBA;ApB5VnCA;AoB+VHA,QAWJA,C;EAlBIC,4B;CA0CCC,MAKHA,OAAOA,WACTA,C;EAMIC,MACFA;SAEMA;;AADNA,QAKFA,C;CAGOC,IAAcA,QAAIA,C;EAMjBC,IAGFA;OACgBA,gBAApBA,SAC8BA;AACrBA;AACAA,QAEFA;AACAA;AACPA,kCACFA,C;EAGSC,IAAeA,gBAAqCA,C;EAErDC,IAAUA,eAA4BA,C;;;A9B5X9CC;EAhDgBA,IAAYA,gBAA+BA,IAARA,WAAnBA,UAgDhCA,aAhDoEA,C;EAuB5DC,IAAUA,OAAQA,KAARA,UAAcA,C;CAO9BC,MAAwBA,OAAyBA,iBAAzBA,kBAA6BA,C;CAahDC,IAAcA,sBAAkBA,C;AAMpBC;CAAdA,GAAcA,iBAAkBA,C;EAC/BC,GAAWA,OAAgBA,gBAARA,IAARA,QAAoBA,C;;;;AAqCMC;CAAhCA,MAAiBA,eAAeA,QAAfA,eAAmBA,C;CAEjCC,QACZA,cAAuBA,gBACzBA,C;;;AAuEAC;CAEQA,MAAaA,mBAAmBA,GAFxCA,oCAEgDA,C;;;C2CpIzCC,IAELA,sCADcA,EAIhBA,C;A1C+C0BC;EADlBC,IAAUA,aAAQA,OAAMA,C;CACnBD,MAAaA,2BAAqBA,C;;;;ECpD/BE,IAAYA;OAqS5BA,WAEyBA,QAvSGA,OAqS5BA,aArSiDA,C;;EA0S3CC,GAAoBA,UAATA;uBAASA,SAAIA,C;CAGzBC,GACoBA,gBAAVA,eAAUA;IACnBA,OACFA,UAAMA;GAEJA;AAAJA,UACEA;AACAA,QAKJA,CAHaA,CAAXA;AAEAA,QACFA,C;AA0CAC;EAxBgBA,IAAYA,gBAA+BA,QAAVA,QAAoBA,GAAzCA,UAwB5BA,aAxBwEA,C;EAGhEC,IAAUA,OAAUA,SAAVA,GAAgBA,C;CAOhCC,MAAwBA,iBAAGA,eAA2BA,C;;;CAgBnDC,iBACCA;UACSA,CAAXA,IAAWA,MAAaA;AACxBA,QAIJA,EAFEA;AACAA,QACFA,C;EAEMC,GAAoBA,UAATA;uBAASA,YAAIA,C;AAcJC;EAAlBA,IAAUA,mBAAcA,C;CAC9BC,MAAwBA,iBAAGA,eAAyBA,C;;;C6ChVxCC,QACZA,UAAUA,2CACZA,C;;;;A3C5C6BC;CAAtBA,IAAcA,iBAAyBA,C;CAMhCC,QACZA,MACFA,C;;;EA6DQC,IAAUA,aAAQA,OAAMA,C;GAEpBC,aACCA;AACXA,YAuDKA,kBAtDmBA;aAGxBA,QACFA,C;CAWKC,IAEHA,mBAAwBA,QAE1BA;AADEA,ORk7EKA,IQl7EmBA,oBAC1BA,C;CAEYC,MACLA,cAAkBA,WAGzBA;AADEA,WAAsBA,EAAfA,KADoBA,EAAfA,IAEdA,C;CAEKC,MACUA,2BACEA;OACUA,YAAzBA,QAGEA,MAFQA,KACEA,IAGdA,C;;EAsDMC,GAAoBA,UAATA;uBAASA,SAAIA,C;CAEzBC,iBACCA;OAAUA,KACZA;AACAA,QAKJA,EAHEA,IAA6BA,EAAlBA;CACXA;AACAA,QACFA,C;;;EA6GQC,IAAUA,aAA4BA,C;EAkB9BC,oBAbHA;AACXA,YAhKKC,eAiKmBD;UAGjBA;AAQmBA,OA3I5BA,YAAsEA,QAAtEA,iBA2IqEA,C;CAEhEE,MAEHA,mBAAwBA,QAE1BA;AADEA,OR6tEKA,IQ7tEmBA,oBAC1BA,C;;CR+/BAC,iCAEyDA,IAD3CA;AAEZA,WAAmBA,WAmBrBA;AAlBeA;GACTA;AAAJA;GAGIA;AAAJA;GAGIA;AAAJA;GAGIA;AAAJA;GAGIA;AAAJA;AAIAA,QACFA,C;;CAmNOC,IACLA,gDACFA,C;;CAaOC,+DACDA;AAAJA,WAAqBA,6BAA4BA,EAMnDA;GALMA;AAAJA,WACEA,kBAA0DA,MAI9DA;AAFEA,6BACoDA,MACtDA,C;;CAQOC,cAAcA;QkCptCDA,+BlCotCgDA,C;;CAQ7DC,IAGLA,8BAD6BA,kDAE/BA,C;;;CAyMOC,gBACDA;AAAJA,WAAoBA,QAQtBA;MAL+BA;iCAEnBA;AAEVA,WAAOA,eACTA,C;;;CA+nBOC,IAMcA,UAJDA,6BAEeA;AAEjCA,+CACFA,C;;;;;;;;;CAqBOC,cAEDA;AACJA,WAAkBA,wCAEpBA;AADEA,kBAAmBA,WACrBA,C;;CA6BcC,MAAEA,mBAKhBA;AAJEA,YAA4BA,QAI9BA;AAIyBC,wBAPKD,QAG9BA;AAFEA,WARoBA,4BASMA,MAAiBA,EAC7CA,C;EAGQC,IAENA,gBADsCA,IACDA,SAfjBA,eAgBtBA,C;CAGOC,IAGLA,sBAzBkBA,iCAthEJA,SAgjEgCA,QAChDA,C;;CA+LOC,IAELA,sCADwBA,gCAI1BA,C;;CAOOC,IAAcA,2BAAgBA,EAAQA,C;A0Bv4E7CC;EA9SQC,IAAUA,aAAOA,C;EAITD,GACdA,oBAAOA,UAySTA,UAxSAA,C;GAEgBE,GAHPA;AAIPA,OAAOA,KAqSTF,0BArSoCE,gBAA3BA,UACTA,C;CAEKC,cAEaA;AACdA,WAAqBA,QASzBA;AARIA,QA8OKC,SAtOTD,C;CAmBYE,MACVA;6BACgBA;AACdA,WAAqBA,QAWzBA;GAqMSA;aA9MyCA;AAA9CA,QASJA,MARSA,iDACMA;AACXA,WAAkBA,QAMtBA;GAqMSA;AAvMEA,aAFuCA;AAA9CA,QAIJA,MAFIA,iBAEJA,C;EAEGC,kBACUA;AACXA,WAAkBA,WAMpBA;AA0KaA,GAqBJC;AAnMKD;AACZA,OAAeA,WAGjBA;AADEA,QADyBA,GAClBA,EACTA,C;CAEcE,QACZA;0BACgBA;AAEdA,cADqBA,GAAqBA,mBAErCA,8CACMA;AAEXA,cADkBA,GAAeA,sBAQxBA;AACXA,WAAiCA,GAAfA;AACPA;GA4KJC;AA1KPD,WAC2BA;KAGbA;AACZA,SAC2BA,GACpBA;KAGLA,OADyBA,YAhB/BA,C;CAyDKE,IACHA;IAAIA,OACFA,IAAWA,IAAQA,IAAQA,IAASA;CACpCA;AACAA,OAEJA,C;CAEKC,oBACuBA,MACNA;KACpBA,UAGEA,MAFQA,IACEA;QAEWA,GACnBA,UAAMA;GAEIA,GAEhBA,C;EAEKC,eA8FIA;AA5FPA,WAC6BA;MAEtBA,IAETA,C;EAWKC,OAKHA,OAAkBA,eACpBA,C;EAGkBC,MA6GlBA;IA3GMA,UACFA,IAASA;MAITA,IAFyBA,EAAKA;AAKhCA;AACAA,QACFA,C;EAiCIC,IACFA,OAA4BA,iBAC9BA,C;EAOIC,MACFA;WAAoBA,QAOtBA;GANeA;AACbA,gBAEWA,QADgBA,GAChBA,MAAuBA,QAGpCA;AADEA,QACFA,C;CAEOC,IAAcA,OAAQA,UAAiBA,C;EAwB9CC,GAIcA;;;AAMZA,QACFA,C;;EArRoCC,IAAcA;AAAJA,eAAWA,kBAAIA,C;EAAzBC,gC;;;EAuS5BC,IAAUA,aAAKA,EAAOA,C;EAGdC,IA2BhBA,UA1BqCA,iBAAWA;CA2B9CC,IAAaA;AA3BbD,QACFA,C;;EA8BME,GAAWA,aAAaA,C;CAEzBC,mBACmBA;IAAlBA,MAAuBA,GACzBA,UAAMA;GAEGA;AACXA,aACEA;AACAA,QAMJA,OAJIA,IAAWA;CACXA,IAAaA;AACbA,QAEJA,E;AzBKwBC;EAAPA,IAAOA,WAA0BA,KAAUA,C;;AAErCA;EAAnBA,MAAmBA,WAA6BA,OAAsBA,C;;AAEtDA;EAAhBA,IAAgBA,WAAeA,KAAqBA,C;;AWtXnCC;CAAdA,IAAcA,kBAAgBA,C;EAE9BC,IACQA,4BACEA;OAMUA,iBAAzBA,gBZilBOC;GY/kBQD;AACbA,sBZ8kBKC;GY1kBSD;AAEQA,gBGudTA,OfiHRC;AYjkBPD,6BACFA,C;EAIaE,eApDQA;MAsDZA,GAAmBA,YAAoBA,CAAvCA;MACAA;YAAiCA;CADjCA,SACPA,QACFA,C;EAEaC,GASIA,gBAPXA,uBAQiBA,mBACLA,4BAKEA,qBACDA,kBAGUA;;AAC3BA,WACuBA;GAEPA;AACdA,cAAuBA,IAAgBA;MAARA,KGwSpBA;;;AHrSbA,QACFA,C;;EAsCcC,GAAqBA,WAACA,OAAIA,GAAGA,C;CAY7BC,MAAEA,mBAEhBA;AADEA,8BA1ImBC,YAgIZD,YAAYA,KAAMA,YAAYA,GAWvCA,C;EAGQE,IAAYA,OAAOA,SA9INA,QA8IsBA,OAAIA,OAAGA,C;;CC5G3CC,IACHA,oBAASA,WAAoCA,EAAxBA,MAAsCA,C;GAW3DC,iBACEA;AAAJA,WAAiCA,QAGnCA;AAF+BA,GAeoBA;AAfjDA,QAAOA,SACHA,IAcmBA,0BAEFA,UACDA,WAhBtBA,C;EA6EaC,MACKA;;AAECA;AACjBA,WAAmBA,WAErBA;AADEA,OAsCFA,WArCAA,C;;GA+CQC,aAF4DA;AAErDA,QAFXA,WAGAA,OACmBA,C;CAMNC,MAAiBA,WAFiBA,EAAvBA,GAEkBA,C;;;;EAqD9BC,GAAoBA,UAATA;yBAAuBA,C;CAU7CC,6BACUA;AACbA,WAAoBA,QAyBtBA;GAxBMA;GAAqBA;AAAzBA,YACuBA;;AACrBA,aACEA;AACsBA;IAhFwCA,EAAhEA,YA2EyBA;IA5LkBC,EAAxBA,aAuMXD;;AAAeA,QACEA;AAAjBA,uBACkBA;AAlBTA,uBAqBbA,eAEFA;AACAA,QAMNA,GAFEA,IADAA;AAEAA,QACFA,C;;EG5PSE,IAAeA,WAAUA,C;;;;EA8XzBC,IAAeA,WAAQA,C;;;EA0QxBC,IAAUA,eAAgCA,C;;;CA2BlCC,MACdA,SAAmCA;AACnCA,QAAOA,GACTA,C;CAEcC,QACZA,SAAmCA;MAErCA,C;;;;CAkBcC,QACZA,SAAmCA;MAErCA,C;;;;EA4BSC,IAAeA,WAAWA,C;;;EAsC1BC,IAAeA,WAAWA,C;;;EAsC1BC,IAAeA,WAASA,C;CAEpBC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;EAsCSC,IAAeA,WAASA,C;CAEpBC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;EAsCSC,IAAeA,WAAQA,C;CAEnBC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;EAyCSC,IAAeA,WAAUA,C;CAErBC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;EAsCSC,IAAeA,WAAUA,C;CAErBC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;EAuCSC,IAAeA,WAAgBA,C;EAEhCC,IAAUA,eAAgCA,C;CAErCC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;EAmDSC,IAAeA,WAASA,C;EAEzBC,IAAUA,eAAgCA,C;CAErCC,MACXA,SAAmCA;AACnCA,QAAOA,GACTA,C;;;;;;;AN1kBiBC;CAtZbA,IAEFA,aAiZsB9f,qBAhZxB8f,C;CAKIC,IAA8BA,OAsZjBA,MAXO3b,qBA3YmD2b,C;;AA08BtDC;CAAdA,IAAcA,eAAaA,QAAWA,C;;CAkUtCC,IAAcA,aAAQA,C;;;EQh3CzBC,oBACUA;CACRA;AACCA,MACHA,C;;;EAMOC,IAELA;;MAG4DA;MACxDA;8CACLA,C;;;EASHC,GACEA,WACFA,C;;;EAOAC,GACEA,WACFA,C;;;EAkCFzU,aAgEOA,kBAxDOA,gBACNA,KAPiBA;KASrBA,UAAMA,kCAEVA,C;;EAXI0U,GAGEA,WACFA,C;;;EAmECC,IAEHA;WAAgCA;KAC3BA,GACHA;QAGAA;mBAFeA,KAEfA;KAEAA,QAEJA,C;EAEKC,gBAGDA;OADEA,GACFA;KAEAA,QAEJA,C;AAsEgBC;EAAZA,IAAYA,qBAAgDA,C;;;EAEvCA,MAGvBA,YlBg2CFA,ckB/1CCA,C;;;EA0C0CC,MACzCA,IAAkBA,OACnBA,C;;AGzSsBC;CAAhBA,IAAcA,eAAEA,GAAMA,C;;;;EFhBxBC,MAEHA;;MACKA;KAgSmBA,WAhSEA,UAAUA;WAMRA;AAuB5BA,QApBFA,C;EAZKC,2B;;EA0BAC,cACEA;KAwQmBA,WAxQEA,UAAUA;AACpCA,OACFA,C;;EAyHKC,IAEIA,QApCiBA,WAmCLA,QAErBA;AADEA,WAxCiBA,EAAOA,UAgBiBA,IAwBkBA,GAC7DA,C;EAEYC,gBAEeA,aASkBA,SAtD1BA,EAAOA;AAiDNA,YACPA,YACuCA;KAEvCA;IAMFA;AAAPA,QAeJA,UAdIA,SAFFA,kBAxDwBA,UA6DpBA,UAAMA;AAMRA,UAAMA,uGAXRA,QAgBFA,C;;EAkHKC,QAEHA,OAA0BA;IAC1BA,IACFA,C;EAEUC,mBCkRiBA;QDhREA,IAEbA,wBACAA,SACVA,UAAoBA,4BAQtBA,WAIYA;AArDhBA;;AAyDEA,QA3OFA;AA4OEA,QACFA,C;EAxBUC,+B;EA8BAC,QAjEVA,eAAyBA,GAAzBA;AAmEEA,QA/OFA;AAgPEA,QACFA,C;EA2EKC,QAEHA,OAAwBA;IACxBA,IACFA,C;CASKC,QAGHA,IACYA,UAAkCA;IAC9CA,IAA4BA,EAC9BA,C;EAEKC,kBA9IDA;AAgJFA,UACWA,IAAgBA;CACzBA,UAEAA,iBArCKA;KA7GgBA,YAwJjBA;AACAA,MAURA,CARMA,OC8rCJA,gBD1rCEA,GAAwBA,eAI5BA,C;EAEKC,IACHA;;WAAuBA,MA+BzBA;GAvMIA;AAyKFA,YACuCA;CACrCA;AACAA,eAEiCA;AAC/BA,2BAEgBA;CAETA,WAGTA,iBAvEKA;KA7GgBA,YA0LjBA;AACAA,MAURA,CARMA,OAGUA,CAAZA;ACypCFA,gBDxpCEA,GAAwBA,eAI5BA,C;EAEiBC,aAIYA;AAEpBA,IADPA;AACAA,gBACFA,C;CAEiBC,IACEA;AAEjBA,mCACkCA;CACxBA,KAIVA,QACFA,C;EASKC,IAKHA;;IAEEA,KAAYA,YAQAA,0BATdA;AAaEA;AAKAA,KAAkBA,iBAItBA,C;EA8FKC,IAG0BA;CA7O7BA;CACAA;AA8OAA,SACFA,C;CAEKC,MAG0BA;AA1O7BA,QAAoBA;AA4OpBA,YACFA,C;EAGKC,0BAaOA,MACRA;AACAA,MAGJA,CADEA,UACFA,C;EAqCKC;ACo7BHA,mBDl7BAA,GAAwBA,iBAG1BA,C;EAMKC,IAEOA,kBAERA;AACAA,MAIJA,CADEA,UACFA,C;CAEKC;AC85BHA,mBD15BAA,GAAwBA,mBAG1BA,C;;;EAnS4BC,GACtBA,SAAsBA,OAAMA,GAC7BA,C;;;EAgCuBC,GACtBA,SAAsBA,SAAMA,GAC7BA,C;;;EAuCWC,oBAEVA;;IAEEA,KAAyBA,uBAD3BA;AAEEA;AACAA,SAEHA,C;;;EAAWA,MAEVA,aACDA,C;;;EAMiBA,GAChBA,aAAeA,OAAGA,GACnBA,C;;;EAsE4BC,GAC7BA,WAAqBA,OAAQA,GAC9BA,C;;;EAkGuBC,GACtBA,cAAmBA,GACpBA,C;;;EAsBuBC,GACtBA,aAAeA,OAAOA,GACvBA,C;;;EA8DGC,GAMMA;SAEeA;AAjnBlBA,GA9EUC,EAAOA,OAqBcA,aAyqBhCD;AAEEA;GACIA,OAAsBA,EAja3BA,EAiayCA;;AAAxCA,MACEA,MAAuBA,EAla1BA;KAoa8BA,CAA3BA;CAEFA;AACAA,MAkBJA,wBAjiBmBA,iBACFA;CAkhBXA,IA3aHA;CA4aGA,MAGFA,MAUJA,2BAJyBA;;AACEA,CAAvBA,QAA2CA;CAC3CA,MAEJA,C;;;EAH+CE,IAAOA,aAAcA,C;;;EAKpEC,GACEA;;GACyBA;AA1rBxBA,CA0rBCA,IA7tBSC,EAAOA,OASmBA,OAotBSD,aAD9CA;AAEEA;;AAC2BA,CAA3BA;CACAA,MAEJA,C;;;EAEAE,GACEA;SAC0BA,EAtczBA;;AAucKA,eACAA,EA5tBYC,UA6tBSD,CAAvBA,IAAuBA;CACvBA,gBALJA;AAOEA;KACcA,EA7cfA;;IA6c6BA,QAC1BA;KAE2BA,CAA3BA;CAEFA,MAEJA,C;;;;;;ECqfyBE,GACvBA,SAAoBA,OAAOA,GAClCA,C;;;EAgMIC,IACHA;QACgBA,MAAgBA,IAC5BA;AACAA,MAMNA,CAJIA,gCALFA;AAMEA;AA4DFA,UAzDFA,C;EAuCgBC,IACdA,OAAOA,gBACTA,C;EAwBEC,IACgDA,IAA7BA,MAAUA,GAAYA,aAE3CA;AADEA,OAAOA,sBACTA,C;EAHEC,0B;EAMAC,MACgDA,IAA7BA,MAAUA,GAAYA,cAE3CA;AADEA,OAAOA,wBACTA,C;EAHEC;wB;EAKAC,QACgDA,IAA7BA,MAAUA,GAAYA,gBAE3CA;AADEA,OAAOA,0BACTA,C;EAHEC;4B;EAS4BC,IAE1BA,QAACA,C;EAFyBC;wB;AA7CfC;EAANA,GAAMA,qBAAgBA,GAAEA,C;;Ad5wCjCC;E2CxSgBA,IAAYA,kB3C0SHA,W2C1SGA,Q3CwS5BA,a2CxSiDA,C;CAE/CC,MAAwBA,OAAIA,WAAOA,C;CA2Q7BC,MAAaA,O7CxIrBlO,U6CwI0BkO,Q7CxI1BlO,6B6CwI8CkO,C;EAyDzCC,UAGDA;AACSA,SAAiCA;AAC5CA,gBACMA,aAERA,C;CA0KOC,IAAcA,OAWJA,eAXsBA,C;;;;CrBhgBlCC,MACHA;AAAcA,kBAAdA,UACwBA,mBADxBA;AACkBA;AAAhBA,eAAsBA,UAE1BA,C;EAoEQC,IAAUA;OAAKA,OAAMA,C;CAItBC,IAAcA,iBAAiBA,C;;;EAaxBC;KACHA,OACHA;CAEFA;MACAA;Ab2YWA;;CA2BfjT;AA3BeiT;MaxYZA,C;;;CA6ISC,QACZA,UAAMA,uCACRA,C;AAyD+BC;CAAnBA,MAAmBA,oBAASA,C;CAC1BC,QACZA,eACFA,C;EAmBQC,IAAeA,UAALA;cAAWA,C;CAGtBC,IAAcA,kBAAeA,C;;;AwB1DnBC;CArKVA,IAAcA,yBAAiBA,C;CAgJpCC,MACWA;;AACSA;AAEpBA,QAAOA,QACLA,SAAoBA,OAAgBA,MAKxCA,CAJIA,IAEFA,UAAiBA,yBAEnBA,C;;;;CvB1JSC,kBAwHeA;AAvHtBA,WACEA,OAAOA,IA6HFA,SArHTA;KAPSA,sBACLA,WAMJA;KAHyCA,GA6KEA;AA5KvCA,yCAEJA,E;EAEQC,IAAUA,WA4GMA,aAOfA,EHxNSA,GGqGoCA,QAAeA,OAAMA,C;EAKtDC,UAuGGA,UH6FxBnJ,UGtFSmJ;AA7GUA,iBHtGVA,OAySTnJ,UGjMAmJ,CADEA,OA8KFA,cA7KAA,C;CAOSC,QACPA;IA4FsBA,SA3FpBA,CAkGKA;KAjGIA,cACOA;;GAEDA;AACfA,wCAIAA,OAAUA,QAEdA,C;CAkBKC,IACqBA,OA6DFA,SA7DLA,WAoEVA,OAjETA;AADEA,OAqH8CA,yCArH1BA,KACtBA,C;CA6BKC,MACHA;AAAwBA,IA4BFA,SA5BLA,QAmCVA,SAbTA;AArBsBA;AACpBA,WAAyBA,QAAzBA,QACeA;GAIYA,EAiFcA;AAhFvCA,0BACUA,QAAoCA,EA+EPA;CA9ExBA,QAIfA;QAIqBA,GACnBA,UAAMA,SAGZA,C;CAgBaC,aAEEA;AACbA,WACiBA,MAARA,O3BzJ0BA,gB2ByJsBA;AAEzDA,QACFA,C;EAEqBC,GACnBA;IApBsBA,SAoBLA,QAbVA,EAuCTA;AAtBgCA;AACVA;AACpBA,WAAyBA,YAAzBA,QACeA;AACbA,QAAkBA,UAMpBA,SACEA;KAEAA;CAKFA,IAAYA;AAGZA,QAFAA,IAGFA,C;EAEAC,IACEA;AAS8CA,6CAT5BA,MAAiBA,WAGrCA;AAFeA,WAAoCA,EAURA;AATzCA,WAAoBA,OACtBA,C;AAuB0BC;EAAlBA,IAAUA,mBAAcA,C;CAEzBC,MAESA,UADPA;AAAPA,QA9EsBA,gBA+EHA,OACbA,KAAQA,GAChBA,C;EAKqBC,cACZA;IAvFeA,UAwFRA;AAAKA,eACbA;A3BghBR7X,aAEyBA,QAhIG6X,QA8H5B7X,W2BlhBE6X,QAGFA,C;;EC1LwBC,GACtBA;IACSA;AAAPA,QAGHA,WADCA,WACDA,C;;;EAC+BC,GAC9BA;IACSA;AAAPA,QAGHA,WADCA,WACDA,C;;;ECtEMC,WACLA;AAAiBA,gBAAmCA;AAMfA;AAIrCA,4CAE+BA;AAAlBA;AAGXA,WACMA;AAAJA,U1BqBOA,OAAcA;AACdA,OAAcA;AACRA;A0BlBXA,UAdaA;mBAsBRA;AAATA,oBACcA;AACZA,8EACkBA;AAChBA,SAA0BA;AAeRA,SAdbA,WAELA,wBhBgYUA,EAAUA;WgB3ZPA;AA6BoBA;IAGjCA;AAEAA,UAA4BA,SAKVA,IAHpBA,uBhBoXNA;AAOEA;AgBzXgBA;AhBiSEzW;;;AgB9RZyW,UAGJA,UAAMA,iCAERA,YACeA;;GhB4WWA;AgB3WxBA,QAIEA;KAIgCA;AAChCA,SAEEA,UAAMA;KAERA,M/BmdGlI;CetFPrM,KgB3XMuU,KAGGA,GhBqXmCA;AgBrX1CA,6CAoBJA,CAjBeA;AACbA,QACEA;KAIgBA;AAChBA,SAEEA,UAAMA;AAERA,OAEWA,kCAGbA,SACFA,C;;;;;;CsB3COC,IAAcA,eAAKA,C;;CA0DnBC,IACKA,mBAAuBA;AACjCA,kBACFA,C;EAMQC,QACQA;AACdA,gCACWA,aAISA;AACdA;QAEmCA;AACnCA;QAEmCA;AACnCA;QAEmCA;AACnCA;QAEmCA;AACnCA;QAEoCA;AACpCA;QAEAA,OAAJA,uBtCiRJA;AsC/QMA,OAA4BA;;AAEpBA,OAGZA,WAAoBA,WAGtBA;AAFEA,QAA8BA;UtCwScA;AsCvS5CA,6BACFA,C;;ECvCQC,MA6YyBA,aA1YHA,UA0YqBA;AA1Y5BA,QAEvBA,C;GAsBgBC,GACQA,QAAaA,EAErCA,C;;;;CtB9IUC,IAESA,yBADSA;AAG1BA,SAAiBA,OhB0gC8BnkB,iBgB1/BjDmkB;AAb4CA;AhBugCKnkB;AgBh+BjDmkB;AAtCoBA,mBAShBA;AAEFA,OhBigCEC,eAVWD,aADFA,QgBt/B+BA,OAC5CA,C;;EAiCKE,iBACHA,MAAQA;;GACAA;;CACAA;QACVA,C;EAWKC,MACHA;sBA0NQA;GApNNA;GAAQA;;;GACAA;;GACAA;;CACAA;;AACRA,QAMJA,MAHIA;AACAA,QAEJA,E;EASIC,QACFA;AAAqCA,4CAGnCA;OA6BIA,MADgCA,YAzBtCA,SACiBA;AAEfA,cACMA;AAAJA,QAAoCA;CAC5BA;YAiLXA;AAhLQA,kBACDA,OAAmCA;AAGLA;AAChBA,UADCA,0BAGdA,kBACDA,OAAmCA;AAEvCA,YAGAA,eACMA;;AAAJA,QAAwCA;CAChCA;;CACAA;sBAGJA;AAAJA,UAAwCA;GAChCA;;GACAA;;CACAA;gBAIdA,QACFA,C;AFlNAC;CEmUOA,IACHA,oBAAaA,IFhURA,eEgU6DA,C;;EFxT/DC,UAEgBA,kCAA2CA;AAChEA,SAAkBA,QAoDpBA;AAhDEA,4BAGMA;AAoB6CA;AAlBnCA,SAENA;AAGRA;AAmC0CA;AAxC5BA,IAgBhBA,eAEmCA;AAA7BA;AACJA,YACEA,MAAqBA,QAuB3BA;AAbUA,yBACFA,QAYRA,EAPkBA;GACCA;AAAjBA,cACmBA;CACjBA;AACAA,UAAMA,WAAkDA,KAE1DA,QACFA,C;EAEOC,UAGLA;aACmBA;AACLA;AAEAA,KADKA,UAASA,QAK9BA;AAHIA,sBAGJA,CADEA,OAAOA,aACTA,C;EE4eOC,UjBlFPA,oCiBqFcA,MACDA,0BAGAA;iBAeDA,GAbVA,UAEEA,6QACuBA;AAMEA;4LAFCA;AACxBA,UjBpLcvX;;AiBsLZuX,SAAcA;AACdA,WACKA,cACLA,KACEA,0BjB1LUvX;;AiB+LNuX;QjB/LMvX;OiBqMNuX;AACAA;QjBtMMvX;;CAmHlBA;AiByFYuX,YAIJA;CACAA;AACAA,QA2CVA,CAzEmBA,IAiCbA,SAAcA;AACDA;GAANA,IAIIA;GAANA;AACPA,UAEEA,qBAQIA;MAPWA;GAANA;AACPA,WACYA;;AACVA,MAJGA,IAQPA,UACEA,iBjBtOYvX,OiBuOWuX;YAGHA;OAEtBA,SAAoBA;aAIxBA,WAEEA,MjBlPgBvX;aiBqPduX;CACAA;AACAA,QAMNA,EAHEA;CACAA;GjB3I4CA;AiB4I5CA,6BACFA,C;;EjB6C0BC,MACtBA;sBACEA,IAAsBA;KACjBA,WACLA,IAAsBA;KAQtBA,mBAI6BA,GAJ7BA;AACEA,sBACEA;KACKA,WACLA;KAGMA,QAIbA,C;;AwC/nBkBC;CAAdA,IAAcA,gBAAeA,C;AxC6JKC;EAAzBA,GAAcA,iBAAkCA,C;;CR1IzDC,cACDA;AAAJA,WACEA,2BAAkCA,OAGtCA;AADEA,wBACFA,C;;;GAoFWC,GAAcA,+BAAoBA,YAAwBA,C;GAC1DC,GAAqBA,QAAEA,C;CAE3BC,IAKaA,cAJEA,8BAEGA;AAKFA,KAFhBA,GAAWA,QAKlBA;AADEA,sBAD0BA,KAAaA,QAEzCA,C;;;GAWSC,GAAgBA,WAAMA,EAAYA,C;GA2IhCC,GAAcA,kBAAYA,C;GAC1BC,eAGSA,SACFA;AAChBA,WAEgDA;KAGzCA,WAC0CA;KAC1CA,OACoCA,0CAAQA;KAKXA;AAExCA,QACFA,C;;GAkBQC,GAAgBA,WAAMA,EAAYA,C;GA8D/BC,GAAcA,kBAAYA,C;GAC1BC,UA/DmBA,KAmE1BA,oCAMJA;UAJMA;AAAJA,SACEA,8BAGJA;AADEA,sCACFA,C;;;CAoCOC,IAAcA,oCAAyBA,EAAQA,C;;CAc/CC,IAELA,iCADmBA,EAIrBA,C;;CAoBOC,IAAcA,wBAAaA,EAAQA,C;;CAcnCC,cACDA;AAAJA,WACEA,iDAIJA;AAFEA,mDACaA,WACfA,C;;CAOOC,IAAcA,qBAAeA,C;EAEpBC,GAAcA,WAAIA,C;;;CAO3BC,IAAcA,sBAAgBA,C;EAErBC,GAAcA,WAAIA,C;;;CIrkB3BC,IAGLA,wBAFuBA,EAGzBA,C;;CAkDOC,oCAEkBA,0DAIJA,SACGA;AACtBA,uBACqBA,qBAAkCA;KANnDA;AAMFA,KAIIA;AAAJA,gBACaA,WACAA;AAEXA,eAgENA,CA3DIA,8BACaA;AACXA,WACEA,aACEA;AAEUA;AAzBdA,UA2BOA,WACLA;AACYA;AA7BNA,MAsEDA;GAhCYA;AACrBA,iBACaA;AACXA,mBAKWA;AAHTA,OA3CiBA;AAmDrBA,WAvCuCA;AA2CrCA,WACQA;SAEDA,WACGA;;AA3DSA,UA+DTA;AACFA,OApD6BA,cAwDAA;AAAPA;AApEXA,KAsErBA,WAFeA,oBAEyBA,gBADCA,cAS7CA,MAFIA,iCAF0BA,aAI9BA,C;AwBWyBC;CAAbA,MAAaA,sCAAwBA,C;EAsVzCC,IAGiBA;AACvBA,QAAOA,OACLA;AAEFA,QACFA,C;CA+QEC,MACWA;;AACSA;AAEpBA,QAAOA,QACLA,SAAoBA,OAAgBA,MAKxCA,CAJIA,IAEFA,UAAiBA,yBAEnBA,C;CAgBOC,IAAcA,yBAAqCA,C;ApB3uBhCC;EAAlBA,IAAYA,oCAAcA,C;CyC/C3BC,IAAcA,YAAMA,C;AzC8BIC;CAHjBC,MAAoBA,eAAsBA,C;EAGhDD,IAAYA,iBAA+BA,C;CAG5CE,IAAcA,sBfmaLA,cenaiDA,C;EAQxDC,IAAeA,iBAAgCA,C;;;C0ChBjDC,IAAcA,QAAWA,C;;;E1C6cxBC,IAAUA,aAAUA,OAAMA,C;CA4B3BC,cAAuCA;AAAzBA,6BAAmCA,C;;EsB2wBrBC,MACnBA;AACZA,WACEA,UACEA,MAnEMA,UAC8BA,YAkEQA,gBAEzCA,UACKA;AACEA;MAC4BA;AAAxCA,MAxEQA,UAC8BA,cAD9BA,UAC8BA,eA0ExCA,QACDA,C;;;EAaDC,MACEA,UAAMA,mCAA8CA,MACtDA,C;;;EAiEAC,MACEA,UAAMA,mCAA8CA,MACtDA,C;;;EAGAC,MACEA;SACEA;AAEcA,OAAMA;AACtBA,gBACEA;AAEFA,QACFA,C;;;EAsHgBC;aA85CZA;GHzhFcxV;GG06EKyV;;AAmHvBD,mBrCrzEOzL;GqC0xEH0L;IHlgFczV,YlCwOX+J;AqC8xEP0L,MrC9xEO1L;GqC+xEH0L;AAAJA,WtBh5EeC;IsB46ENF;GACLA;AAAJA,WrC5zEOzL;GqCg0EHyL;AAAJA,WrCh0EOzL;AqCm5BSyL;sC;EAMHG;UAAsBA,SAANA;AAAhBA;;a;GAGgBC;aAqKXA;AApKwBA;AADbA;AT1oC/BA,GS0oC+BA,4B;GA+IpBC,GAAYA,aAASA,C;GAErBC,aACMA;AACfA,WAAkBA,QAKpBA;AAJMA,gBACFA,OAAOA,WAAuBA,UAGlCA;AADEA,QACFA,C;GAEQC,GACUA,UAATA;AAAPA,wBAA6BA,KAC/BA,C;GASWC,aAASA;mBAAYA,C;GAErBC,aAAYA;mBAAeA,C;EA2NlCC,0BAkBcA,mBAOEA,MAMJA,MAq4BSA;AA73BhBA,iBH7iDWlW;GGwjDOkW;AACXA,kBHzjDIA;KGohDdA;AAsCGA,oBACWA;AAiBkCA;AAX1CA;AAWVA,OAAYA,kBAHMA,GAIpBA,C;GA2iBSC,UAAcA,mBA70BAA;AA60BgBA,2BAAHA;AAAbA,QAA8BA,C;GAkT5CC,GAAgBA,mBAAaA,C;GAI7BC,GAAYA,mBAAcA,C;GAE1BC,GAAeA,mBAAiBA,C;CAqGlCC,IAAcA,gBAAKA,C;CA0BZC,MACZA;AADcA,mBAahBA;AAZEA,SAA4BA,QAY9BA;;AAXeA,YACOA,IAAhBA,aACsBA,IAzIHA,mBA0IDA,IAjyCDA,aAkyCjBA,aAAcA,QACdA,aAAcA,QACAA,IAAdA,iBAzIeA;;AA0IGA,sBA/wCMA;AAgxCTA,mBAzIGA;;AA0IGA;AACHA,iBAVtBA,QAWFA,C;;;;;EA5oBEC,gBACEA;MAAaA;CACbA;AAznCUA,QAAgBA,MAA6BA;;aHzzBvCzW,cnBkJlBtC;AsBuqBY+Y,QAAgBA,MAA6BA;OA+nCzDA,C;;;EAEwBC,MACtBA;+BACEA;KAGAA,mBACEA,GADFA,OACEA,OADFA,OAIHA,C;;;GAwuCKC,gCACCA;eAOUA;GADAA;AACAA;GACDA;AAChBA,SACeA,gBACwBA;AAIZA,SACCA;AAixC9BC,GAjyCSD,0BAcKA,YACyBA,eAfrCA,QACFA,C;CAqXOE,cAC0CA;AAA7CA,WAACA,sBAA0DA,C;;EAiO/DC,gBACIA;AAAMA;AAANA,QAAkDA,C;;;EAMtDC,QACEA;OAA0BA,YAA1BA,QACaA,uBAGfA,C;;;EAQAC,QACEA;AAAaA,wBAAyBA,gBAAtCA,wBAGFA,C;;;GA0NSC,GAAgBA,eAAcA,C;GAE9BC,GAAWA,qBAAkBA,SAAiBA,EAAUA,C;GACxDC,GAAYA,kBAAcA,EAAcA,C;GACxCC,GAAeA,kBAAiBA,EAAKA,OAAMA,C;GAc3CC,GAAcA,WAnBDA,UAKEA,QAAiBA,EAAKA,OAcEA,C;GAQrCC,GACeA,UAAjBA;AAAPA,mBAAOA,cACTA,C;EAEOC,mBACDA;AAAJA,QAAqBA,QAMvBA;AA9BoBA;AAAmBA,wBAyBxBA,YAKfA;AA7BwCA,6BAyBxBA,aAIhBA;AA/BuCA,wBA4BxBA,YAGfA;AA5B0CA,+BA0BxBA,eAElBA;AADEA,OAAOA,cACTA,C;GAIWC,GACLA,UADkBA,SAAaA;AAAdA,qBACjBA,YACEA,C;GACGC,GACUA,UAAjBA;qBAAiBA,SAA2BA,MAAgBA,C;GACxDC,GACNA;AAAIA,WAASA,OAAWA,KAAMA,WAAeA,MAAgBA,SAI/DA;GA5CoBA;AAAmBA,4BAyCxBA,SAGfA;AA3CwCA,6BAyCxBA,UAEhBA;AADEA,QACFA,C;GAEWC,GAAQA,wBAAeA,OAAYA,GAAYA,C;GAC/CC,GACLA,UADeA,SAAcA;AAAfA,qBACdA,YACEA,C;GACGC,GAC0BA,UAAhCA,SAAiBA;AAAlBA,UAAuBA,uBAAiDA,C;GAyCpDC,GT/lIxBA,OS+/HqBA,QAAcA,GAiGlBA,QAAOA,GAExBA;AADEA,gBAA+CA,KAAiBA,gBAClEA,C;EAwBIC,IAecA,sDAKLA,SACEA,WAAeA,aAOdA,QAAeA;GAQlBA;AAAJA,OACEA,eAA2BA;QHzpIlB/X;GGmqIT+X;WAAeA,IAAYA;AACtBA,kBHpqIIA;KG+nIdA;AAsCGA,oBACIA;AAKIA;GAQJA;AACEA,KADoBA;AAIjCA,OAAYA,mBACdA,C;EA4PQC,IAAoCA,UAAxBA;iCAAmBA,KAAaA,C;CAEtCC,MAAEA,mBAGhBA;AAFEA,YAA4BA,QAE9BA;AADEA,OAAaA,cAAUA,KAAQA,MACjCA,C;CAaOC,IAAcA,aAAIA,C;;;AEt3IqBC;EAAPA,IAAOA,mBAAqBA,C;;;EAC9BA,IAInCA,WACEA,OAAOA,UmB7VXA,wBnBiWCA;AADCA,OAAOA,YACRA,C;;;CmB9VMC,IAELA,oDADiBA,2BAEnBA,C;;EC3IGC,uBA6ELA,C;CAnDSC,IAAcA;sBACHA;;OACAA;;OACGA;;OACLA;;OACCA;;OACFA;;OACIA;;OACIA;;OACLA;;OACDA;;QACDA;;QACDA;;QACAA;;QACEA;;QACEA;;QACHA;;QACEA;;QACLA;;QACEA;;QACWA;;QACAA;;QACTA;;QACMA;;QAvBFA,eAwBhBA,C;;EnB/CFC,iCAMLA,C;;EAakBC,IACdA;AACSA,INoXSA,YMpXhBA,kBA6DJA;ANqESA;AM9H4DA;UAElDA,MAAjBA,WAYmBA,6BAZnBA;AACYA;AN2HLA,GMvHgBA;ANuHhBA,GMtHyBA;AAE9BA,uBAGEA,MAAqBA;KAChBA,KACDA,eACAA,WACFA,MAAqBA;KACZA,eACPA,WACFA,MAAqBA,KAK3BA,SAAgBA;AlCoKdA;AkCrIFA,YlC2UFC,WkC3UwBD,iBlCqIpBA,WkCpIJA,C;;EAtDIE,IACEA,YAAeA,aAAOA,MACxBA,C;;;EAoBcC,iBAIKA,EAjDiBA,IAiDCA,EAjDaA;AAkDlDA,SACEA,QAuBHA;GAnBgBA;GAAqBA;GAAhBA,IAAqBA;AACzCA,SACEA,QAiBHA;AAbqBA,UAAgBA;AACpCA,SACEA,QAWHA;GAPqBA,IAAyBA;AAC7CA,SACEA,QAKHA;AADCA,QAAcA,EAAKA,SAAgBA,EAAKA,OACzCA,C;;;EAEqBA,IAAWA,QAAMA,EAAIA,C;;;GAgErCC,GAEaA;WAFKA,aAELA;OACDA;OACIA;OACIA;QACRA;QACWA;QACAA;QACTA;OAGCA;;;AACAA;OADAA;AAEGA;OAFHA;AAGAA;QAHAA;AAIFA;QAJEA;AAKAA;OAGDA;;;AACAA;QADAA;AAEFA;OAGEA;;;AACFA;QADEA;AAEEA;QAFFA;AAGDA;QAHCA;AAIJA;QAJIA;AAKMA;QA9BVA,eA+BbA,C;;;EC/KkBC,eFsErBA;AEpEFA,WAAkBA,QAUnBA;AANUA,OFkIFA;AEhILA,mBAIHA,MAFGA,QAEHA,C;;;EAQCC,GReAC;UQZED;;MACAA;;MACAA;sDACFA,C;;AAMEE;EADQA,IACRA,iBA8BDA,C;EA/BSC,IACRA;mBADQA,cACRA;4BAAkBD,SFsClBA,cErCEA;AACAA;;;Ga8GFE;Ab3GcF;YCiGgBA,KHnBzBA,wBE9ESA;ODvBoBA,WckIlCE;AhD2QFC;WAtMID,gBkCtMyBF,alCsMzBE;AN8tGFF;AyCz4GgBA,OAAaA,MF4B7BA,mBE3BwBA,MAAeA;YAEAA,OAAxBA;gBAAqCA;YF2F/CA,CAlELA,wBEvB6BA;AACzBA;UAKAA;WACFA,QAAeA;GAEbA;WACFA,QAAeA;GAEbA;WACFA,QAAeA;OA7BTC;AACRA,wBADQA,C;;;EAkDCG;UFuDJtZ,MAlELA;AAwFKsZ;;CAxFLA;AAkEKA,CAlELA;AAkEKA,cElDSA;AFkDTA,cEjDSA;AANLA;;a;GAUAC;UF6CJvZ,MAlELA;AAkEKuZ,CAlELA;AEqBSA;;a;EAIAC;UFyCJxZ,MAlELA;AAkEKwZ,CAlELA;AEyBSA;;a;EAWNC,IACUA;;AFmDRA;AvCqxGLA;AuCrxGKA,CAxFLA,qCEoDIA,KAVFA;AFwBGzZ,GAlELA;AAkEKyZ,CAlELA;AAkEKA;AAsBAA;;AAtBAA,CAlELA;AAkEKA;cEDWA;AAEhBA;AAIoBA,SFvEpBA,sCEwEkBA,GAAJA,SAAmBA;AAC/BA,WACEA,MASNA;AAPYA;MACWA;AACnBA;AACAA;AACAA;QAGJA,C;EAaKC,IF9BEA,wBAlELA;AEmGAA,WACEA,MAqCJA;;AFvEOC,GAlELA;AAkEKD,CAlELA;AAkEKA;AAAAE,GAlELA;;AAkEKF;AAAA1Z,GAlELA;AAkEK0Z,CAlELA;gBEkHsBA;AFhDjBA;IEmDDA,Gf1JcG,Oe2JoBH,OADlCA,YnCiLsBA,SAwB5BxT,SAxB2DwT,KAAVA,KAAoBA,GAwBrExT,mBAW0BwT,MmCnNtBA,WnCmNaA;WAASA;AiCvQnBA,sBAAA1Z,GAlELA;AAkEK0Z,CAlELA;;AEgIsBA,2FAEfA,GAAyBA;AFhE3BlZ,GAlELA;AAwFKkZ,sBF+vFcA;;AErxFdA;iBEuEPA,C;EAEKI,GAAqBA;CF3IxBA;AAwFKA;AEmDmBA,QAEgBA,C;EAUrCC,QAEHA;AAAkBA,CAAlBA;GACAA;;AACAA;AACAA;GvCyekBA;AuCvelBA,UACEA;AACAA,MAkBJA,CAfEA,iDACEA,OAAuBA,QADzBA;AAMAA,YADiCA,CAbjCA,aAcAA;AACEA,OFxGGA,gBE0GLA;CA6J8BA;AAlP1BA,UF1CCC,iBE2CHD;CFxFFC;AAwFKA,0CEuD8CD;AFxHpBE;AEwHNF,qBAmC3BA,C;EA3BKG,6B;EA8BAC,QAEHA;IAAIA,WACFA,MAgBJA;IP0HoBA,aOtIhBA,QAAsBA;AACtBA,MAWJA,CARoBA;GACcA;;GACPA;AAAzBA,OACgBA;CAGhBA;AACAA,WACFA,C;EAnBKC,6B;EAAAC,4B;EAAAC,6B;EAsBAC,IACHA;CA6H8BA;GA5H1BA;AAAJA;CAEEA,QAEFA,MACFA,C;EAEKC,IACUA;AF7HRA,2BEiIDA,KAFFA;AF/HGA,0BEwIDA,KAFFA;AFtIGA,2BE+IDA,KAFFA;AF7IGA,6BE4ODA,KAxFFA,eA0FJA,C;;EA5RIC,IACEA;AAAUA,SF3CdA,UE4CMA,MAQHA;MFpDHA;AEqbEA,sBPrWKC,CKhFPA,0BA6CKD;IEKCA,WAEHA,C;;;EAmKDE,IACEA,cAAaA,EFxNjBA,UEyNGA,C;;;EAKDA,IACEA,cAAYA,GACbA,C;;;EAKDA,IACEA,cAAaA,EFtOjBA,OEuOGA,C;;;EAKDA,IACEA;AAAUA,SF7OdA,iBE8OMA,MAsFHA;AAjFWA,QFnPdA,gBA6CKA;GEwMMA;;AAALA,WFnLDA,GEoLOA;AAAJA,WFpLHA,IAlELA,wBEwPmCA;AAE3BA,MA0ELA,MAtEiBA,SAAoBA;AACXA,OAASA,sBACzBA,GAAyBA;AF9LjCA,IAlELA,wBFu1FmBA;AIrlFXA,MAkELA,KA9DiBA;;GAAmBA;GACLA;AAEpBA,QFzQdA,qBE0QUA;AAAJA,WACEA;MAEAA,YAEaA,QF/QrBA,uBEgRUA;AAAJA,UAyDwBA;MAtDtBA,YAEaA,QFrRrBA,gBEsRMA,MAAYA;SAERA,WACFA;AACAA,MAAaA,EF1RrBA,QE4RMA,MAwCHA,CArCKA;AAAJA,KF7NCA,CE8NCA,GFhSNA;GEqSSA;AAALA,cACiBA;AFpOhBA,CAlELA;GE0SUA;AAAJA,SACEA;KACKA,SACLA,iBAAoBA,MF7S5BA;;AEgTiCA,QFhTjCA;2BA6CKA,uBE4QCA,cAAgBA,EFzTtBA;CE0TMA,UAAqBA,IAAgBA,GAAiBA,WAC7CA;AAAJA;AAIgBA;AAJhBA,YAILA;CACAA,SFnRDA,kBEuRFA,C;;;EAsCHC,IF7TKA,kBE+TJA,C;;;EAKDA,cACMA,EAAMA;AAAVA,YFhTGA,IAlELA,wBEmX6BA;AFtUxBA,mBEyUJA,C;;AA8C4CC;EAA3CA,IAAWA,0CAAgCA,qBAAmBA,C;;;EE/dnCC,cAC7BA;WJ4HKA,CAlELA;MIzDAA;WJ2HKA,CAlELA,2BIxDDA,C;;AAsDCC;EADqDA,IACrDA,iBAcDA,C;EAfsDC,IACrDA;mBADqDA,cACrDA;4BAAkBD,SJElBA,cAkEKva,MAlELA;;;AAkEKua,CI/DHA;AACAA;MAGoBA;YDyDQA,KHnBzBA,wBItCiBA;;AJ2DjB/a,MAlELA;;AIUA+a,MAAaA;AJwDRA,CIvDLA;OAdqDC;AACrDA,wBADqDA,C;;;EC5DvDC,aACMA,SACFA;IL6DFA,UAwFKA;;IAxFLA,uDAwFKA;;IAxFLA,mDKrDFA,C;;;EAIE/B,IACEA,WACDA,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;c7CmCQgC,IACTA,0BADSA,A;cCmtCmBC,IAC1BA,IAAeA;0CADWA,A;cAKAC,IAC1BA,IAAeA;0CADWA,A;cAKAC,IAC1BA,IAAeA,WADWA,A;cAKAC,IAC1BA,IAuNaA;8DAQRA,GAhOqBA,A;cAKAC,IAC1BA,IAAeA,aADWA,A;cAKAC,IAC1BA,IA4NaA;kEAQRA,GArOqBA,A;cAKAC,IAC1BA,IAAeA,WADWA,A;cAKAC,IAC1BA,IA+OaA,wDAORA,GAvPqBA,A;cAKAC,IAC1BA,IAAeA,aADWA,A;cAKAC,IAC1BA,IAmPaA,4DAORA,GA3PqBA,A;ckBvyCRC,IAClBA,MADkBA,A;cYkGCC,IAAkBA,UAAlBA,A;cA4BVC,IAAWA,WAKvBA,IALYA,A;cAMAC,IAAmBA,WAK/BA,IALYA,A;cCgYUC,IfuXnBA,KAASA,KevX+CA,kYAArCA,A;chB+IHC,IAAmBA,iCAAnBA,A;cA2FFC,sC;cqBvNVC,IrBhgB8BA,MqBggBDA,IAA7BA,A;cCo+GYC,IAAiBA,MAAjBA,A;cI9gITC,IAAYA,WAYxBA,IAZYA,A", + "x_org_dartlang_dart2js": { + "minified_names": { + "global": "A,1011,B,1179,C,181,D,898,E,120,F,831,G,311,H,1231,I,944,J,911,K,134,L,830,M,850,N,908,O,914,P,1236,Q,955,R,1172,S,1081,T,94,U,138,V,247,W,838,X,839,Y,843,Z,871,a,36,a0,906,a1,949,a2,1159,a3,984,a4,1240,a5,119,a6,365,a7,104,a8,49,a9,47,aA,54,aB,118,aC,846,aD,830,aE,856,aF,857,aG,858,aH,859,aI,862,aJ,866,aK,867,aL,887,aM,888,aN,890,aO,896,aP,899,aQ,900,aR,905,aS,916,aT,928,aU,929,aV,930,aW,933,aX,93,aY,935,aZ,941,a_,897,aa,46,ab,12,ac,851,ad,892,ae,901,af,18,ag,918,ah,960,ai,830,aj,128,ak,1186,al,1239,am,842,an,912,ao,917,ap,927,aq,947,ar,961,as,963,at,965,au,995,av,1071,aw,1114,ax,278,ay,111,az,82,b,1203,b0,948,b1,320,b2,979,b3,985,b4,989,b5,1126,b6,1012,b7,1013,b8,1014,b9,1015,bA,860,bB,875,bC,882,bD,886,bE,889,bF,45,bG,530,bH,920,bI,921,bJ,922,bK,923,bL,924,bM,925,bN,926,bO,931,bP,932,bQ,939,bR,940,bS,50,bT,945,bU,319,bV,962,bW,964,bX,318,bY,966,bZ,1224,b_,1157,ba,1016,bb,1024,bc,1028,bd,1042,be,1097,bf,1101,bg,1170,bh,1030,bi,1031,bj,1117,bk,1040,bl,1053,bm,1089,bn,1090,bo,103,bp,246,bq,393,br,829,bs,840,bt,310,bu,830,bv,262,bw,849,bx,854,by,855,bz,321,c,861,c0,978,c1,986,c2,987,c3,988,c4,991,c5,993,c6,1007,c7,1008,c8,1009,c9,1010,cA,893,cB,894,cC,527,cD,902,cE,903,cF,907,cG,915,cH,919,cI,936,cJ,937,cK,1222,cL,946,cM,950,cN,953,cO,956,cP,1229,cQ,967,cR,968,cS,969,cT,970,cU,971,cV,972,cW,973,cX,974,cY,976,cZ,980,c_,977,ca,1017,cb,1018,cc,1023,cd,1025,ce,1026,cf,1169,cg,1029,ch,140,ci,16,cj,1187,ck,39,cl,830,cm,844,cn,845,co,852,cp,853,cq,863,cr,864,cs,1233,ct,322,cu,872,cv,873,cw,874,cx,877,cy,877,cz,878,d,951,d0,982,d1,983,d2,990,d3,992,d4,996,d5,997,d6,998,d7,999,d8,1000,d9,1000,dA,1038,dB,1212,dC,1039,dD,1041,dE,1041,dF,285,dG,1060,dH,1060,dI,1061,dJ,1062,dK,1063,dL,1076,dM,1077,dN,1080,dO,807,dP,1130,dQ,1136,dR,1144,dS,1166,dT,1188,dU,13,dV,1199,dW,1199,dX,1199,dY,778,dZ,778,d_,981,da,1000,db,1001,dc,1002,dd,1003,de,1004,df,1005,dg,1006,dh,1052,di,1019,dj,1020,dk,373,dl,1021,dm,1022,dn,1022,dp,1022,dq,1022,dr,253,ds,1027,dt,131,du,1032,dv,1033,dw,1034,dx,1035,dy,1036,dz,1037,e,910,e0,1202,e1,1224,e2,1205,e3,77,e4,367,e5,1227,e6,1227,e7,827,e8,837,e9,1248,eA,62,eB,33,eC,1,eD,1200,eE,17,eF,0,eG,41,eH,809,eI,1131,eJ,1247,eK,1165,eL,1047,eM,1050,eN,1082,eO,1127,eP,1232,eQ,1180,eR,1148,eS,1208,eT,1091,eU,1174,eV,1223,eW,1078,eX,1226,eY,1233,eZ,830,e_,1201,ea,1206,eb,1211,ec,895,ed,830,ee,1068,ef,1209,eg,1156,eh,943,ei,1073,ej,1177,ek,830,el,1092,em,1096,en,1098,eo,1084,ep,1069,eq,1107,er,1116,es,1140,et,385,eu,121,ev,158,ew,1087,ex,274,ey,125,ez,1137,f,909,f0,1088,f1,1164,f2,830,f3,1145,f4,1183,f5,1230,f6,830,f7,1124,f8,1225,f9,1235,fA,259,fB,258,fC,256,fD,130,fE,148,fF,179,fG,241,fH,165,fI,157,fJ,389,fK,254,fL,275,fM,177,fN,364,fO,270,fP,88,fQ,390,fR,261,fS,1149,fT,1153,fU,116,fV,1190,fW,37,fX,22,fY,50,fZ,76,f_,1074,fa,1160,fb,1046,fc,1158,fd,1161,fe,1195,ff,1224,fg,1241,fh,1093,fi,1094,fj,1099,fk,1100,fl,1154,fm,1067,fn,1070,fo,1086,fp,1112,fq,1115,fr,1121,fs,1141,ft,1142,fu,1221,fv,244,fw,166,fx,168,fy,174,fz,257,h,115,h0,40,h1,21,h2,1214,h3,1215,h4,1216,h5,1217,h6,1218,h7,1219,h8,1243,h9,1244,hA,868,hB,869,hC,975,hD,879,hE,880,hF,881,hG,1213,hH,884,hI,1207,hJ,1178,hK,1191,hL,1210,hM,1049,hN,1123,hO,1182,hP,830,hQ,1055,hR,830,hS,1197,hT,1122,hU,1173,hV,1237,hW,1247,hX,1072,hY,1135,hZ,957,h_,1228,ha,1245,hb,1246,hc,1085,hd,1113,he,1143,hf,1065,hg,1066,hh,1129,hi,828,hj,832,hk,833,hl,834,hm,835,hn,836,ho,841,hp,1171,hq,1204,hr,830,hs,1051,ht,1162,hu,1163,hv,1181,hw,1185,hx,1139,hy,1138,hz,1238,i,23,i0,959,i1,1125,i2,1079,i3,1132,i4,1133,i5,1134,i6,1045,i7,1192,i8,1193,i9,1194,iA,1110,iB,1111,iC,1118,iD,1119,iE,1120,iF,1128,iG,1054,iH,1104,iI,1168,iJ,154,iK,176,iL,156,iM,260,iN,366,iO,95,iP,374,iQ,363,iR,92,iS,146,iT,141,iU,147,iV,142,iW,388,iX,387,iY,139,iZ,135,i_,958,ia,1196,ib,1198,ic,1242,id,830,ie,1184,ig,1043,ih,1056,ii,1057,ij,1058,ik,1059,il,1095,im,1146,io,1147,ip,1175,iq,1176,ir,1044,is,1048,it,1075,iu,1102,iv,1103,iw,1105,ix,1106,iy,1108,iz,1109,j,954,j0,1083,j1,52,j2,152,j3,242,j4,145,j5,169,j6,153,j7,245,j8,173,j9,144,jA,70,jB,124,jC,123,jD,372,jE,372,jF,81,jG,79,jH,80,jI,117,jJ,136,jK,238,jL,71,jM,394,jN,78,jO,1220,jP,391,jQ,87,jR,272,jS,1234,jT,85,jU,89,jV,392,jW,38,jX,847,jY,848,jZ,809,j_,122,ja,155,jb,325,jc,384,jd,268,je,284,jf,178,jg,267,jh,277,ji,276,jj,271,jk,269,jl,113,jm,112,jn,182,jo,48,jp,35,jq,1150,jr,1151,js,1152,jt,1155,ju,55,jv,83,jw,34,jx,132,jy,51,jz,1189,k,938,k0,942,k1,830,k2,1214,k3,1215,k4,1216,k5,1217,k6,1218,k7,1219,k8,1243,k9,1244,k_,870,ka,1245,kb,1246,kc,1131,kd,1085,ke,1113,kf,1143,kg,1065,kh,1066,ki,1129,kj,159,kk,161,kl,160,km,162,kn,164,ko,163,kp,167,kq,170,kr,172,ks,171,kt,175,ku,827,kv,829,kw,828,kx,69,l,865,m,904,n,883,o,885,p,891,q,239,r,1064,t,1167,u,934,v,994,w,876,x,830,y,913,z,952", + "instance": "A,1342,B,1284,C,1318,D,1348,E,1250,F,1323,G,1347,H,1265,I,1360,J,1374,K,1293,L,1301,M,1272,N,1263,O,1264,P,1344,R,1367,S,1371,T,1288,U,1292,V,1297,W,1268,X,1314,Y,1257,Z,1258,a0,1345,a1,1355,a2,1253,a3,1366,a4,1286,a5,1294,a6,1304,a7,1312,a8,1313,a9,1281,aA,1277,aB,1279,aC,1353,aD,1298,aE,1267,aF,1300,aG,1283,aH,1255,aI,1259,aJ,1260,aK,1262,aL,1321,aM,1324,aN,1326,aO,1327,aP,1328,aQ,1329,aR,1330,aS,1334,aT,1336,aU,1337,aV,1340,aW,1343,aX,1350,aY,1354,aZ,1358,a_,1334,aa,1282,ab,1295,ac,1296,ad,1308,ae,1261,af,1262,ag,1326,ah,1332,ai,1333,aj,1335,ak,1339,al,1341,am,1356,an,1357,ao,1359,ap,1364,aq,1375,ar,1375,au,1273,av,1287,aw,1291,az,1311,b0,1378,b1,1379,b2,1380,b3,1249,b4,1256,b5,1256,b6,1254,b7,1368,b8,1369,b9,1370,bA,1320,bB,1322,bC,1322,bD,1325,bE,1326,bF,1326,bG,1338,bH,1349,bI,1352,bJ,1358,bK,1361,bL,1361,bM,1362,bN,1362,bO,1363,bP,1364,bQ,1377,bR,1256,b_,1377,ba,1373,bb,1376,bc,830,bd,1289,be,1290,bf,1274,bg,1310,bh,1302,bi,1303,bj,1275,bk,1276,bl,1305,bm,1278,bn,1280,bo,1306,bp,1266,bq,1299,br,1269,bs,1270,bt,1271,bu,1307,bv,1309,bw,1315,bx,1316,by,1317,bz,1319,gA,1342,gG,1347,gM,1272,gP,1344,gR,1367,gS,1371,gX,1314,ga0,1345,ga1,1355,ga3,1366,ga7,1312,ga8,1313,gaC,1353,gaM,1324,gaO,1327,gaP,1328,gaQ,1329,gaR,1330,gaV,1340,gaX,1350,gaY,1354,gai,1333,gak,1339,gal,1341,gam,1356,gan,1357,gb0,1378,gb1,1379,gb2,1380,gbR,1256,gbm,1278,gbn,1280,gby,1317,gbz,1319,gl,1346,gn,1164,gp,1331,gt,1365,h,1376,i,1285,j,1374,k,1251,l,1346,m,1351,n,1164,p,1331,q,1252,sl,1346,t,1365,u,1372,v,1372" + }, + "frames": "4zHA6HeyiDyB;oCAKAAyB;eAKCbG;kBACeDE;gEAIlBAE;KAGOFO;iGAaAvhDAA8CgBCeANKmEuC,A,I;qMATrClEAAmB0BDeAVWmEoC,A,AAUvCk9CkC,A;6QG9HS8DIAsCwB4CyB,A;0FArBxB5CIAqBwB4CyB,A;mDAohBb9GqB;y5EEnkBLttByC;QAEFojByC;sXEsSFpjB2C;QAEFojB2C;eAuqBwBpjBsB;8vBNl7Bbs0BuB;uEA6BL1GG;oQAuJqBtJqC;6gBA8JlB4LiB;cAAAAa;0CAuBQ3CS;gJAYV2CiB;6FAqBLsDAARFzCiB,A;+FAkBWYW;wfAumBoB1XoB;2KAgCnBAwB;gBASAAuB;8DAyCAjaqC;wfAyQZAmR;iZA4MAAW;qfA0DyBAW;0WAkCJAW;eAOpBAkC;6BAIiBiboD;OAChBjbU;0DAOCk0BI;cAIgBl0BwC;2JASjBAU;0EAiCmBAW;sCAGtBAc;4JAsEK8uBQ;oCAEDFK;AACEAK;wKAyDR5uBAWn5D8BAgE,A;keXojE1BAkC;cAEAA0D;y4CAyPEA4D;6sBAqF6BmwBuC;AACHoCmC;yEA4HtBriDAU/9DTCMA3B4By7Cc,A,M;qDVghElB5rBiD;iKAuJXAY;4EC7iFOgyBI;YACcrhDAAsE3BDAFlJAg9CyB,kF,A;QE4E2B/8CAAuEpBk9CE,A;OAtEWmEI;uBAKKphDAAzCJw/CkB,AAAZ4BI,A;6CA+CMAI;YACkBrhDAAyD/BDAFlJAg9CyB,kF,A;QEyF+B/8CAA0DxBk9CE,A;OAzDWmEI;uBAGKphDAApDJw/CkB,AAAZ4BS,A;4EA0EErhDAA+BTDAFlJAg9CyB,kF,A;QEmHS/8CAAgCFk9CE,A;sDAvBEh9CAA2BTHAFvJAg9CsB,A,0BEuJAh9CkF,A;QA3BSGAA4BFg9CE,A;+DAfoCmDqB;UAElCngDAAYTHAFvJAg9CsB,A,0BEuJAh9CkF,A;QAZSGAAaFg9CE,A;gEAMPn9CAF9JAg9CyB,6B;yJE0K2CsDoB;gLAsCjCZmB;0KAaF1/CAF7NRg9CyB,mG;2DE2O2BsE4D;wTA+EX5gDc;ygBapRPIAA9FF8hDqB,A;2IA4OPtTADjBIhgBgD,A;WCiBJ8U0B;AAC+Doea;AAA7DuBQ;oBACAAI;iBACmBhWQ;AAErBgWQ;w2CE80BuC3PiB;wiBNt6Bd8HG;gBAIjB3BW;AADuC9DAAgK/BwFQ,A;WAtJOtDO;AAFAuDG;gBAGf3BgB;AAD0ClFAAgKlC4GM,A;gBApFCrGAAzBsBoGG,A;oCA2BECG;uCA2JzBEG;sBAgJMjBmB;kEAyEPtFAA/YwBoGG,A;mEAwZbCG;sEAMAAG;sEAMAAG;sEAMWvGG;uDAMkBDAA7WvC0GK,A;aAgXGnHAApWHiHG,A;uBAsWQlHG;6EAQHoBAApWIJO,A;AAqWJGG;sEAMIGAAlVT4FG,A;uBAqViC7GG;6EAU5BGQ;AACDsGQ;uBAGDvGAAzVH2GG,A;gFAgWIzGAAtVJwGG,A;sBA0VULO;uIAeNEkB;yBAGDII;mFAaCJkB;0BAImBFO;AACEAS;AACtBMM;sFAcK7FsB;AAIANK;iBAGQDK;8CAMiB6FAAxRRpsBc,A;AAyRrBorBM;AAEAJM;AAEADK;sHAwCF4BM;yDAaZ9EK;sEAuBFEG;cAIOuIoB;oSAkFkBzImD;uBAKvB+De;uDAeYSI;uBAEN55CQAvZUm5CoB,A;mEAgee53CAE16BtBgzCqB,A;aF06BsBhzCAE16BtBgzCW,A;CF26BK/yCgBAlFlB4zCiB,A;uCAsFciFO;GAELwDoB;OAAwBrJO;wBAOM9yCO;AAA9ByxCG;gBAA8BzxCAAKrCq2CY,A;SAS0BqEW;AADV3f0B;iBAGXlPAAmCTAAAAAAAACMwqBG,A,A,W;SAlC6BoBoB;AAE/Bz3CG;AADOyxCG;gBACPzxCAAfAq2CY,A;sDAuBWr6CQAhiBoBy7Cc,A;mCAwiBtBr3CQAhiBSq3CgB,A;mBAmiBfz7CMA3iB4By7CkB,A;oBAgjBVn5CMA1hBHm5CoB,A;gEA0lBlBl3CAAoiF6B8tC+B,A;6BAjiFzB8DG;qEAcYuFAAr/BY1EAAuKhBwFQ,A,A;AA+0BQrGAAl7BeoGG,A;0KA87BnBvGAA33BJ0GG,A;IA43BMzGiB;AAYdkFU;sEAUC32CQA8BmBkyCAA15BZgGI,A,AA25BMjGI,A;+DArBXgBC;AADPiDK;0CAsCAn2CAAg8E6B8tC0B,A;mEAr7EtBaC;AADPiHK;6BAKWhEAAnhCwBoGQ,A;kEAwhCCvFAAr7BxBwFK,A;eAs7B4B5GAA56B5B4GsB,A;mEAu7BCfc;gDAeNhEI;AADOjBAA18BFgGO,A;mDAo9BFzFG;iBAKVaG;8GAsBOuIoB;YACGpJG;iBAKVaG;wFA0BWHU;+DAYAAU;uCAWTvC0B;qJAuCcnPuB;mBAiBT0Rc;AADSiEAAzwChBvFAAoEmCoGQ,A,AApEPvFAAuKhBwFK,A,A;QAmmCQ5GAAzlCR4GS,A;MA2lCmBfiB;AAD3BhEI;kiDA2NmB2EQ;qBAEDIO;sCAYA9FAAv1CVgGM,A;AAw1CKjGG;qCAMG2FQ;AACFkHkB;AACElHU;gEAOGIO;gBAELEI;+GAaMNQ;6KAgBFIO;AACjBj4CAAo+DwB8tCAAK/B/mCAAGa6qCAA58GwBoGG,A,A,wCAy8GhBp1CAAgBdm5Ca,A,K,A;oDAh/DY1JAAv3CCNO,A;AAw3CeXM;AAEbgBM;AACcyFW;AAEd/FM;AACc+FW;AACNhGM;AACPgGQ;wDASCIQ;yDAUEAQ;iEAYbFM;uBAIIEe;AAEJEI;kGA6BAvGAApjDwBoGG,A;wIA6jDdvFAA19CTwFK,A;cAy+CahGAAp+CbgGG,A;cAs+CSrGAA9kDcoGG,A;uEAulDV3GAA1+Cb4GS,A;mBA++CIxGAAzhDJ0GI,A;GAkiDMzGG;4HAgBOJAAz/Cb2GM,A;AA0/CG1GG;eAODCAAv/CIOG,A;gDA+/CF6NuB;yDAoLPhPAAHK6OG,S;uBAKP7OAALO6OG,I;oCAWDjGO;+DAKOxBI;AACPtDgB;oGAiBO+KM;wBA4BAjGM;aAWHoDS;AADPnDe;oBAGFnEyB;AACHuHW;gCAMS1LG;cAGV+Ea;AAEa0GW;oBAETtHuB;AACHuHW;kCAKS/LG;cAGV+EgB;AAEuBrbAApuDf2dI,A;AAquDKyEW;gCAGXhLAA95D6BoGS,A;AA+5DdjHQ;AAKhB8LW;mBAqCHjHS;AACAOQ;qBAuFeyGW;AADPnDW;oBAGsBnJAAIpBoHAAz3DPpsBsB,A,AA03DH8qBM,AACALM,W;AANG/CAApFA6JC,AAAOpDa,A;qBAiGKmDS;AAFNrNAA/CK/UAAz0DJ2dW,A,A;AAy3DFsBW;oCAGLzGAAnGA6JC,AAAOpDa,A;0CA0GO7HAAzjEgBoGG,A;oEAikEvBNAAn5DPpsBsB,A;AAo5DH8qBM;AACAIK;CACATM;4BAQe6GS;AAFNvNAAzEK7UAA30DJ2dW,A,A;AAq5DFsBW;oCAGLzGAA/HA6JC,AAAOpDa,A;4CAsIO7HAArlEgBoGQ,A;0DA0lEZ3GAA7+DX4GI,A;kEAm/DaxFAA7/DbwFG,A;IA8/DiBrGAAjmEMoGc,A;AAmmEd3GAAt/DT4GI,A;gCA6/DAPAA57DPpsBsB,A;AA67DH8qBM;AACAIK;CACATM;4BAQe6GS;AAFN1NAAhHK1UAA70DJ2dW,A,A;AA87DFsBW;oCAGLzGAAxKA6JC,AAAOpDa,A;wCA+KO7HG;0DAMV+Ce;qCAKG+CAA39DPpsBsB,A;AA49DH8qBM;AACAIK;CACATM;0BAOe6GsB;AADPnDW;oBAIRvJAAKUwHAA7+DPpsBsB,A,AA8+DH8qBO,AACAIM,AACATM,W;AATG/CAAtMA6JC,AAAOpDa,A;8BAqNM5BQ;sCAEIIG;AACCzdAAj/DX2dI,A;kCA0/DMNQ;qCAGmBFO;AACZIwB;AAIPEK;AACKzdAAngEX2dI,A;uCAuhED/IAAVOyIU,mB;AAYD+EG;AADPnDW;oBAIOtJAAKLuHAAziEPpsBsB,A,AA0iEH8qBM,AACAIM,AACAGS,AACgBkBW,AAEdtBI,AAA6BoBK,AAE/B5BM,W;AAdG/CAAlQA6JC,AAAOpDa,A;yCAsSN7HAArvE6BoGY,A;AAsvErBhHAAvqEFiHG,A;AAyqEDLG;AAAgB7GkB;QAEhBhCGAjBLvUAAnjEM2duB,A,A;AAskEKyEG;AADPnDW;oBAIO1JAAKL2HAAtlEPpsBsB,A,AAulEH8qBO,AACAIM,AACAGM,AACAZM,W;AAVG/CAA/SA6JC,AAAOpDa,A;qBAyUDnKoC;AAEMsNC;AADPnDW;oBAIRpJAAKUqHAApnEPpsBsB,A,AAqnEH8qBO,AACAIM,AACAGM,AACAZM,W;AAVG/CAA7UA6JC,AAAOpDa,A;qBAoYDzKAAtCPCiB,AADYzUO,AACZyUAAKkBmDM,AACcyFW,AAEd/FM,AACc+FW,AACNhGM,AACPgGsB,oF,AAZvBrCY,A;AAyCiBoHG;AADPnDW;oBAIRxJAAKUyHAA/qEPpsBsB,A,AAgrEH8qBO,AACAIM,AACAGM,AACAZM,W;AAVG/CAAxYA6JC,AAAOpDa,A;uBAgaDtKSAPH3UAAlrEI2dwB,A,A;AA2rEKyEC;AADPnDW;sCAGLzGAApaA6JC,AAAOpDa,A;sDA8aQ5BQ;kCAICIQ;AACXrGAAl4EyBoGe,A;uEAm5EvBNAAruEPpsBsB,A;AAsuEH8qBO;AACAIM;AACAGK;CACAZM;4FAqKoB+HM;AACJSU;kBAGTjGkB;4LAcHqFW;cAIAAW;cAIAAO;MACWgCI;AAAkBpGG;AAAqB4DU;cAIlDQO;AACIwBM;AAA2BQG;AAA3BRAAkWSnHU,A;cA9Vb2FO;AAAsBjJM;AAAiBiLW;cAIvChCO;AAAsBlJM;AAAkBkLW;eAIxChCO;AAAsB9IM;AAAe8KW;cAIrC/BAAgFRDQ,AAAYPS,AACevFQ,A;iEArEX8HG;AACRhCO;eAIkBpEG;AAAqB4DU;AAC/BnRK;iBAIA2TG;AACRhCO;eAIkBpEG;AAAqB4DU;AAC/BnRK;iBAIA2TG;AACRhCO;eAIkBpEG;AAAqB4DU;AAC/BnRK;cAIR2RW;AACACAAqCRDQ,AAAYPS,AACevFQ,A;sCA9BnB+FAA6BRDQ,AAAYPS,AACevFQ,A;cA1BnB4CAA2KS3aAAoCEgYY,AAAmBsFI,MACtBuCI,AAAkBpGM,AACPvBY,A,AArC3B2FU,AACAAW,A;eAzKQCAAqBRDQ,AAAYPS,AACevFQ,A;eAlBnB2CAAyKS7BAAqCEbY,AAAmBsFI,MACjBuCI,AAAkBpGM,AACZvBY,A,AAtC3B2FU,AACAAW,A;cAvKYjDAA4KKiEmB,AAGjBhBO,AAAmBrQkB,AACnBqQW,AACACAApKADQ,AAAYPS,AACevFQ,A,M;wCANhBsFU;aACGwCI;AAAkBpGK;sDAWrBjBkB;uCAIXqFU;uEAQWrFkB;0FAIyCuDoB;kBAM7BvOmB;SAKbqSM;AAAkBpGO;AADZGAAhzBD9HAA76DsBoGW,A,AA+6DjBhHAAh2DNiHG,A,UAm2DaxGAA/2Db0GG,A,AAk3DYsEI,+C;AAsyBxBkBO;AAEcjEkB;AAGdiEU;4BAMqBgCiB;AAEZxCQ;sBAGTQO;4BAE4BpEc;AAChB3HAA9uFuBoGY,A;AAgvF/B2FO;YAGmC3RK;cAInC2RO;+BA+BKRa;AAnBYwC2B;uCAwBIxCU;aAIbAU;cAIRQU;WAIJAU;YAKKRU;iBAGIAwB;AAC0BemB;AACbAK;UACc3EM;AACmB7BAA3iFlBpsBc,A;AA4iFforBM;AAEAJM;AAEADK;AACpBsHO;2BASAAO;OAGyBxFY;kFAgCnBgFc;UAERQO;AAAsB/IM;AAAgB+KY;iBAItChCO;AAAsBnJM;AAAcmLY;0EAOnB7HgB;AAAmBsFI;MACtBuCI;AAAkBpGM;AACPvBY;4DAiBKkGK;8FASZrGQ;+BAEAFI;sBAOAEQ;gCAGAFI;wBAOL/FAAj6FsBoGG,A;4BAm6FRhHAAp1FfiHE,A;IAq1FYlHM;AACP8GQ;gBAEDIK;SAIEjHAA51FNiHM,A;AA61FDrGAA56FwBoGQ,A;wFAm7FbtGU;AACPmGQ;QAEDIK;qEAwDDtG8B;AACGiLW;YAET5I8B;AACF6IW;0GA8DL/O0B;sBAEY8DAAljGuBoGG,A;wCAyjGnCxxCAA4ZEorCG,A;0CAtZeqGE;AADHzGAAx7FFwGc,A;YA67FApGAAnkGuBoGsB,A;iCA2kGR3GAA99Ff4GQ,A;0EAu+FM5GAAv+FN4GY,A;wBA2+FMxFAAr/FNwFY,A;qCA6/FIxFAA7/FJwFY,A;qEAghGI5GAAtgGJ4Ga,A;2FAkhGQhGAAvhGRgGY,A;yBAkiGa5GAA7hGb4GS,A;+FAyiGiBhGAA9iGjBgGQ,A;+IAskGI1GM;AACAAM;AACGsGgB;AACAAQ;SAGkBDwB;AACAAwB;oBAGjBKO;AACAAI;kEAOkB3GAApkG1B2GM,A;AAqkGN3GAArkGM2GQ,A;sQAgmGM5FAA1mGN4FQ,A;AA2mGM5FAA3mGN4FU,A;aAgnGsB7GO;AACAAM;AAGdgBM;AAEAAM;AACeyFW;AACAAQ;yBAMf/FM;AAEAAM;AACe+FW;AACAAQ;wCAKAFI;YACbMgB;6BAOaNI;YACbMkB;6BASbNM;YACaMgB;YAMOpGM;AACAAM;AACPgGW;AACAAQ;0BAIFMS;0BAGEAI;2BAIEJM;qCAMcJM;sBAENAM;YACbMkB;+BAQRFM;0DASItGAAvvGH0GM,A;AAwvGG1GAAxvGH0GQ,A;WAswGOvHAAnhDL6OG,I;2CAshDCtHI;YAIMqEI;uBAEH3EQ;AACWzUoBAsLA8Ta,AAAjBgHK,A;+BApLW/FK;wBAITzGQ;gBAOFAW;AACAAQ;8BAWImGQ;2BAUAIO;AACAAU;6CAwCA/FM;AACAAM;AACA2FgB;AACAAQ;aAEF1FAA30GFgGM,A;AA40GEhGAA50GFgGG,A;oCAg1GMFO;AACAAU;iCASPrGAAn7GwBoG+B,A;sCAu7GIvFAAp1G3BwFK,A;eAq1G+B5GAA30G/B4GI,A;uBAu1GiBnK+B;uBAQlB8DAA58GwBoGG,A;qDA+/G1BgF4B;AACEnFQ;oBAEEMI;4CAOgBjBa;AAAjBgHI;grBQ/pHR3NS;4BA2BRjlBU;wBAwGOASApCSulBAAAAvlByB,A,a;uCAmDC0uBE;uMA2DE1uBoB;AAAAurBW;8HAiCPzWM;mLC0PI6SiB;AACIzDG;cAIEjK0D;0IAyBN0NkB;AACIzDI;mBAIEjK0D;4GAuBb/8BgB;uFAuIkBoqCqB;gCAGYnCG;AACxBkKM;sHA+BcIG;2CACDtDK;0CAIbkDM;mDA4EIGG;uLAkBTqDwB;wBAMgB/Ke;AACFqCsB;AACZhGyB;gDAcIgGwB;iBAEVoBiB;AAGAZmB;uQG72BQNU;iBAUqBrqBqB;qCAKrBqqBU;sFAoBkBrqBiB;6IAuD3B9iBW;iBCi5EG8iBqB;OAAAAU;0mDEngE+BAwC;kBAQ9BAuC;SE5faggBkBzB6rBMhgBgC,A;UyB5rBe8UM;gBAAAAS;yDC0E5B9UkB;iFAoBNkiBG;icCrCAliBWAwBQiqBAAAANoB,A,A;wGCXuC3pBAdo+BjB8kBoB,A;6zCD92BxBmPgB;wTAgHN7CO;mFAoB8BvHAAL9B2HIb/OwB4CuB,A,A;4SaqX7Bp0BiC;iDA+DYwwBgB;AAEDvEO;0BAGFAO;oBAGEAU;uFAsIoB2DmBFjkBczCK,A;cEwkBnCYkB;oEAKR4GAAtLgBrGwC,A;qYR3bX5CAQyLS8HAf4NXzCiB,A,A;QOnZAnHO;6zB4B6vBC8KmB;8EAqBc10Ba;qBAGpB00B6B;qBAMKxSG;2sBCtqBa4Ne;+DAGACoB;wDAIAC2B;wHCsrBFvEkH;sqBAAAAS;YAAAAI;kYAsOTzrBc;yCAIGyxBiF;UAAAAsEA6dAwCQ,kF;KA7dAxCyD;OAAAA2C;sNAyNCzxBArBtPwB8kBkB,A;uiCqB6XnB9kBArB7XmB8kB4B,A;kmBqB08BvBiPmB;0CAOIrmBkC;iMAoCP1NiD;+GAeIAc;2GASXy0BAtBxlDJvIO,A;+BsB4lDanD0B;+BAGI/oBc;4CAHJ+oBI;mIAqBG/oBc;AAAJy0BoB;2FAYLvSG;0LA4BQliBc;qBAEgB+zB2B;wDAS3BUAtBpqDJvIO,A;+BsBwqDa1D2B;+BAGIxoBc;wDAQJkoByB;oKAYkB6L8B;AACf/zBc;AAAJy0BoB;uFAUiBV4B;AAGtB7RG;gNAeAuG0B;uFAQyBsLkB;wRAoCrBvDa;sFAeAAY;4PA+BExwBwB;wCAuBNkiBG;yNAiCH2G0C;OAIYyFiC;uCAIA0Fa;kEAYFh0BArBvzCuB8kB4B,A;oHqBu0CvB9kBArBv0CuB8kBsB,A;wdqB04CDoD0B;+KAkBpBloBc;AAAJy0Ba;oBAAAACtBv+DZvIY,A;+DsBo/DOhKG;gOAwEQyOAnC92DOHa,A;YmCg3DLAY;mOAsCDA+B;kEAYLAQ;sBAA4CAiB;2lBA0chDnSK;mDAtBgC+OAHjtFdptBW,A;kRGuuFlBqeS;4nBAg1BQ+Ee;qLA+PwCpjBArB9jGlB8kBwB,A;m+GuBpnBrB9kBAqBktBSAAzC3oCvBAAA9B0B0uBAAAA1uBiC,A,A,yB,A;iOqBuHtByuBqCAIoBrLW,8P;OAJpBqLAAUWrLoB,gB;ySCjHMGc;AAATwLyC;AACUxLC;AAATwL0C;AAEJxLC;AAATwL2C;AAYC5LK;AADAIC;AADLwLc;0EAwE0D2EoB;AACbCY;2BAGP5EO;AAAOAS;AAASAW;WA2SnCtrCAoBk/Ca8/B4B,AAATwLkC,A;mBpBj/CnBvL8B;AACUDC;AAAVwLgC;AAEoBrrCAoB24DS6/BG,AAATwLgC,A;ApB14DVxLC;AAAVwLsC;kCAE8BgFiB;AACvBxQoB;mBAIc7/BAoBm4DQ6/BG,AAATwLgC,A;ApBl4DRxLC;AAAVwL0C;mCADOxLoB;gBAOoCoNAP5BzBHa,A;AO6BoB5sCAoBq1CC2/BG,AAATwLsC,A;ApBp1CpBxLC;AAAVwLuC;AACsBjrCAAwEpBDAoB27K6B0/BG,AAATwLkD,A,A;ApBngLtBvLwB;AAAsB1/BAAwEqBirCQ,A;sBAtEpCxLiB;AAGFC+B;kBAOAA2B;gDAYPz/BAA4BwDNAoBw6C5B8/BG,AAATwL+B,A,ApBv6CXxLC,AAAVwL+B,AACY/qCAoB8tCwBu/BG,AAATwL2D,A,ApB5tCfxLC,AAAVwLoC,AACY9qCAoB07CmBs/BG,AAATwL6B,A,ApBz7CpBvL6C,AADFDiB,AAHFAiB,A;sCAlB0CwLe;AAErByBY;gCAMbjNsB;AAESAiB;gCAiB2BmPAPhbrCMO,A;2gBSjDsBzPc;AAATwLkD;AACMxLC;AAATwLqD;AACaxLC;AAATwLmD;+BAOPvLyC;AACDA6B;8BAIFuLS;AAASAM;kBAKSxLyC;iCASHAmC;gCASCAG;AAATwLiD;yBAKiBxLqC;AACRAC;AAATwL0D;OAGiBxLqC;AACPAC;AAATwLkD;0BASkByBqB;OAIIrNK;AAApCII;AAAPwLgB;yDAsBSgFI;AAAAhF+B;AAEKxLyB;2CAQQwLY;WACyBAQ;KAChCxLY;iICtGGwLS;AAASAM;kBAMNxLG;AAATwL6C;2BAcNvL4B;mBAOkBDG;AAApBwLO;AAAOAoC;oWEX0BVmE;yBAkBAA8D;oBEjC5B/qCc;iBAECAAcLVyrCiB,AAAWzLiB,A;gJ/D+TqBqOW;gBAqB5B3CgB;8hBGtLsBjCA6D8FuB/sBiB,A;+B7D9FvB+sBA6D8FuB/sB2B,A;4B7DuC/CitB8B;saAiJOuEIArUwB4Ca,A;sHA6c/BlHsB;yUAsJ4B+De;gBAaFjxBmB;QAAAAU;kJAkD1BktBwC;+bgD1uBWwDa;AACHAY;6gChB2DD6CiC;ofA6PEDiB;+Y9B5VqBtzBmB;6CAAAAa;8XAoKPAiB;4BAAAAoC;uPEpIGAmB;OAAAAa;iNA2UAAmB;iDAAAAa;+pBE9PjBipBkB;oEAkBF4HI;0YAgNsD7HmBAXpDCe,kB;OAWiBjpBqC;6CAKnB6wBI;2nBRuwCqBL+B;gvBA85BC7Ea;AAAeAe;8CAOQAe;8BAOlCjCiC;AACAiIS;gK0Bp+EX3xBmB;uDAAAAU;SAIqBkgBgB;YAAAAAAJrBlgB0B,A;2EAWEwkBAA+PiB6CS,A;oFAhOEAiB;4FAKAAI;gGAUf1BGAgLNyBa,A;2OA/JLiJwCAQWjJI,sF;yLA0EaCI;oFA2BDrnB+B;wfAwHlBAU;sBAAAAAA0BTAAAAAAO,A,A;6dd9UIy0BAG+dFvIAA2BuBkHQ,A,A;0BHtfnBqBAG2dJvIAA2BuBkHc,A,A;oBHhfnBqBO;AAIJAAGidAvIAA2BuBkHO,A,A;iDHreR5HU;+TAiCH+I2D;kHAoDgBnKAAvIIoBO,AAAmBAK,A;AAuIFtGgC;yBAInBsGQ;+HC7FjBlDG;qBAAAA0B;AAAgCMU;AAAYZW;sFAmFlDhoBW;oCAgDOkzBG;QAAAAW;4BAQkBjEK;mNAuElBiEc;SAIItCAA5GEhIe,A;4EA+GVDuB;0pCH1IHx4CiB;iBAAAAAAoZ0By7CqB,A;eA9YDr3CMAsZZq3CqB,A;4aQlbhBpEkB;uaAsKAxnBc;gMCxQQypBW;iEAQZpFQ;2EAgBYoFW;qFA4HPkGW;oBACExDY;AAA6B/GI;8CAazB+GK;kGAQLsDU;mTAsIkB3aW;kGAoBA9UuC;QACPiiBwD;wDASOjiB+B;QACP4zByD;4GAoGbpKG;6CAQiBtFQ;AACL4DY;sBAQd5qCgB;gFAQEssCG;kGAiBiBtFQ;AACL4DY;iCAQd5qCgB;iSAgKFquCW;mCAQAbmB;gGA8DAxtCmB;iGAwBAAmB;6jBAwEyBqyCGAjnBlBpDS,AAAUJa,A;gCAmnBwB5GE;2BACDAQ;mDAOc2CiB;AAC3BRmB;IACqBnCI;+LAkBjBmKC;IAAAAAA1rBxBnDS,AAA+BpCO,A;gIAmsBC5ES;iBAElBuKAA3sBd5FU,A;0DAgtBsB3Ea;6QCssB3BkKU;oe6B1gDwBrvBkB;sBAAAAW;QAAAAa;6CA6QF+sBAclDuB/sBU,A;QdkDvB+sBAclDuB/sB6B,A;sFd6R5BixBe;oTrBlafwDmB;AACAAAb0YJvIU,A;AazYIuIe;yPwBGe9BkB;6NvBCf7JG;sBACKgDS;gDAIMpFI;8DAMCoCa;AAAcgDE;AAAa1LG;8BAMvC0IU;AAAiC5IAHtG9BlgBU,A;AGsGiB8rBG;iBAAa5LOHtG9BlgBU,A;QGuGAAc;+BASH8oBS;CACFgDiB;oGA8BEhDS;WAAoBgDO;QAEjBvEyC;sCA+BHuBS;QAAoBgDS;6CAOVpFI;oCAEqBAM;4FAiClB0NgB;kDAMbtLS;QAAoBgDE;wJA6BnBvE6C;+BAC+BbK;8FA4BrBoCgB;yCASAAU;gCAEc9IA3BkZHhgBqB,QAAAAW,A;0d6BpnBb4xBqE;wNAqBmBxRqB;oEAQdpgBc;AAAJy0Ba;mBAAAEAhB+XMrGoB,A;8FgB/WSlOQ;+FASvBqUAhBiWNvIAA2BuBkHQ,K,A;QgBxXkBlRG;kmBsBsE1BliBc;+FAQRkiBG;yDCnCqB/Ga;UAAAAI;0ItB/GJnbAhB4+Ba8kBiB,A;OgBz+BV0PAAwCb9PAAG4B1kBAhB87BL8kBoB,A,A,c;iCgB79BtB/CAhBw/BR9Te,qB;iKgBr8BMmWiC;6UAqCAiEU;yTA6IXroBkB;4BAAAwtBe;0fA6P0BxtBoC;0lBAatB20BAjBxFcrGgB,A;iFiBiGRqGAjBjGQrGgB,A;ciBsGRqGAjBtGQrGgB,A;kBiB6GRqGAjB7GQrGkB,A;AiB8GRqGAjB9GQrGC,AAApBpCY,A;yMiB0IQyIAjB1IYrGO,A;6FiBsJhBqGAjBtJgBrGsB,A;oCiB+JbpMG;8oCzBjMiBrCK;84DQ5aM8Rc;oRsBgvCpBlEsB;uEAKFAwB;AACAAyB;ueAuNgBhGMA85CbkJAHvhFWH2B,A,AG2hFlBvRa,mBAGFwVAtBz6EFvIAA2BuBkHY,A,A,AsB+4ErBpHOA/BY2EAHhgFQHY,A,AGkgFpBiEAtB74EFvIAA2BuBkHU,A,A,MsBo3EJqBAtB/4EnBvIAA2BuBkHQ,A,A,csBu3ErBqB4B,A,oBA4BAAAtB96EFvIAA2BuBkHa,A,A,csBu5ErBqBAtBl7EFvIAA2BuBkHU,A,A,A;qLsBm/ByCtSG;qCAA9D9gBG;mVAwacifG;iBAEI0RAH7iDEHmC,A;qBGujDyBAiB;uHA+jBV1RG;2PA2bjCGmB;IACAoDa;+DAIAjDa;sBACA0BK;mBACA5Ba;0KAvoBe8O2C;AACU2CAHl7DPHc,A;AGm7DlBiEAtB9zDJvIS,A;AsB+zDqB8BQ;AAHFAoB;wNAyvCEzJ2FAgBdvkBG,A;0BAhBcukB2B;4fA41BAsLU;AAAc3QiB;mGAc/BiJgC;aACAC6B;cACAHwB;aACAM+B;4OAaAJ+B;UACAC6B;uMAoDGpoBO;AADFofW;2MAgEeuRAHxpIEHgC,A;wCGkqIkBAiB;oZE7kIlCxwBwB;27BC5cOwwBY;mBAIDuDkB;oIAQWAG;iBACSAG;iKAgDdDM;YAAXzCAtCoOArxBW,A;iBsCpOW8zBW;yGA3BG7QI;EAAAAG;4rBCpDV8LS;AAASAM;2BAKbxLiD;AAEKAmC;iEAaZ7mBAuBTAq1B2D,A;kYvBoBkBhDc;gCAMERADxBHuCG,A;gBCuBwB3NK;AAAPGwB;QACdiLWDxBHuCmB,AACJOAS0JuBrxBkC,A,AT1Jb8zBgB,aAAAAa,A;AC2BDXO;aAAApEO;AAAOAY;+EAKTxLC;AAAhBwLO;AAAOAiB;iOAkCQtrCAoBozDW8/BM,AAATwL+B,A;ApBnzDnBvLiC;AACAAyC;AACAuLsB;AACUxLC;AAAVwL0B;AACAxLc;SACAAc;4EAIqB9/BAoB0yDO8/BM,AAATwL+B,A;ApBzyDTxLC;AAAVwLuC;yEAGuBtrCAoBsyDK8/BM,AAATwL+B,A;ApBryDTxLC;AAAVwLoC;gFAYWvLgD;AAEb2PO;AAAS3PC;AAATuLqC;mBAgBctrCAoBuwDgB8/BG,AAATwL+B,A;ApBvwDqBxLC;AAAVwL6B;AAE5BxLiB;AACACqC;AACAAqC;AACUDC;AAAVwL2B;AAGAxLiB;AACAAc;yBAMAwLO;AAAOAS;AAASAsB;uGA0BSxLwB;AAATwLiD;mCASJ3xBAoBgFmBmmBG,AAATwLmC,A;ApBhFWxLC;AAAVwLiC;AADvBxLiB;AAImBlmBAoB6+CckmBG,AAATwL2D,A;ApB9+CxBxLiB;AAIA9/BAoB+sD0B8/BG,AAATwL+B,A;ApB9sDHxLC;AAAVwLiD;2BAFJxLqB;GAMcoNAfzJIHO,A;mBe0JpBxQSnCgLwBhgBS,aAAAAmB,A;AmChLxB8UM;WAAAAuB;AACcyOsB;AAGE9/BAoBqsDY8/BG,AAATwL+B,A;ApBpsDLxLC;AAAVwL6I;qHAQO9qCAoBmtDoBs/BG,AAATwL6B,A;ApBltDlBvLsB;AAAqBtB4C;AAEfqBiB;AACEAiB;yBAKZwLsB;AACAvLwC;0GAiBcgNQ;gJAYAjNgB;MAIhBkPM;AAEAMUAzFkBzPiB,UAEZyLuB,AACAvL0C,A;AAuFNsPIAlCqC3HuD,qB;yFA4CAqFa;kOAiBrCiCS;4DASajP2B;qBAOAA0B;qBAOAA2B;qBAOAA6B;6DA/LCuLU;aAIUAS;AAASAe;AACe7LsBAqYT6QC,AAAAhF0B,A;AApY3BzLmB;AACOAI;2DAsKWyLU;iGAcAAO;gFAOhBAiB;eAMAAgB;AACFzLsB;oBAEoCCG;2CAEtBAI;AAAhBwLO;AAAOAiB;0FASOxLI;AAAhBwLO;AAAOAiB;AAAgB7MQ;+CAQjB6MqB;6CAMOAuB;aAEb0DY;oBAIa1DgB;8CAKaAQ;qBAQvBxLC;GADAwLkC;qBAMcxLC;AAAVwL+B;oEAMqBAsB;AAEHAW;QACQA2B;AAEcAc;AACpCzLuB;gBAMgByLQ;gGAUzBzLkB;gCAwCFAkB;2DAQYCI;AAAhBwLO;AAAOAiB;UACDzLmB;wJE9aYCC;AAAVwLkC;cACcxLC;AAAVwL2B;2LAuDEAc;AACI9qCAkBu1DWs/BM,AAATwL6J,A;AlBn1DPxLC;4CAIgCJK;AAAPGwB;YACnB7/BAkBuzDO8/BM,AAATwL6C,A;YlBpzDNxLC;8HCzELwLU;AACIvLqC;AACNAqC;AACcAI;AAApBuLO;AAAOAgD;AAEKvLsC;AACNAsC;AACcAI;AAApBuLO;AAAOA4C;o9Y5C8wCQkD0G;CAAAAG;6DAUAC8G;CAAAAG;2DAUACuD;CAAAAG;6DAUAC2D;CAAAAG;kJ+BpyBgC5DU;igBKmB/ByBM;" + } +} diff --git a/doc/api/static-assets/favicon.png b/doc/api/static-assets/favicon.png new file mode 100644 index 00000000..43d2ffa0 Binary files /dev/null and b/doc/api/static-assets/favicon.png differ diff --git a/doc/api/static-assets/github.css b/doc/api/static-assets/github.css new file mode 100644 index 00000000..791932b8 --- /dev/null +++ b/doc/api/static-assets/github.css @@ -0,0 +1,99 @@ +/* + +github.com style (c) Vasily Polovnyov + +*/ + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + color: #333; + background: #f8f8f8; +} + +.hljs-comment, +.hljs-quote { + color: #998; + font-style: italic; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-subst { + color: #333; + font-weight: bold; +} + +.hljs-number, +.hljs-literal, +.hljs-variable, +.hljs-template-variable, +.hljs-tag .hljs-attr { + color: #008080; +} + +.hljs-string, +.hljs-doctag { + color: #d14; +} + +.hljs-title, +.hljs-section, +.hljs-selector-id { + color: #900; + font-weight: bold; +} + +.hljs-subst { + font-weight: normal; +} + +.hljs-type, +.hljs-class .hljs-title { + color: #458; + font-weight: bold; +} + +.hljs-tag, +.hljs-name, +.hljs-attribute { + color: #000080; + font-weight: normal; +} + +.hljs-regexp, +.hljs-link { + color: #009926; +} + +.hljs-symbol, +.hljs-bullet { + color: #990073; +} + +.hljs-built_in, +.hljs-builtin-name { + color: #0086b3; +} + +.hljs-meta { + color: #999; + font-weight: bold; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} diff --git a/doc/api/static-assets/highlight.pack.js b/doc/api/static-assets/highlight.pack.js new file mode 100644 index 00000000..3cf5abcf --- /dev/null +++ b/doc/api/static-assets/highlight.pack.js @@ -0,0 +1,780 @@ +/*! + Highlight.js v11.8.0 (git: d27be507cb) + (c) 2006-2023 Ivan Sagalaev and other contributors + License: BSD-3-Clause + */ +var hljs=function(){"use strict";function e(n){ +return n instanceof Map?n.clear=n.delete=n.set=()=>{ +throw Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=()=>{ +throw Error("set is read-only") +}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach((t=>{ +const a=n[t],i=typeof a;"object"!==i&&"function"!==i||Object.isFrozen(a)||e(a) +})),n}class n{constructor(e){ +void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} +ignoreMatch(){this.isMatchIgnored=!0}}function t(e){ +return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'") +}function a(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n] +;return n.forEach((e=>{for(const n in e)t[n]=e[n]})),t}const i=e=>!!e.scope +;class s{constructor(e,n){ +this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){ +this.buffer+=t(e)}openNode(e){if(!i(e))return;const n=((e,{prefix:n})=>{ +if(e.startsWith("language:"))return e.replace("language:","language-") +;if(e.includes(".")){const t=e.split(".") +;return[`${n}${t.shift()}`,...t.map(((e,n)=>`${e}${"_".repeat(n+1)}`))].join(" ") +}return`${n}${e}`})(e.scope,{prefix:this.classPrefix});this.span(n)} +closeNode(e){i(e)&&(this.buffer+="")}value(){return this.buffer}span(e){ +this.buffer+=``}}const r=(e={})=>{const n={children:[]} +;return Object.assign(n,e),n};class o{constructor(){ +this.rootNode=r(),this.stack=[this.rootNode]}get top(){ +return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){ +this.top.children.push(e)}openNode(e){const n=r({scope:e}) +;this.add(n),this.stack.push(n)}closeNode(){ +if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){ +for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)} +walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){ +return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n), +n.children.forEach((n=>this._walk(e,n))),e.closeNode(n)),e}static _collapse(e){ +"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ +o._collapse(e)})))}}class l extends o{constructor(e){super(),this.options=e} +addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){ +this.closeNode()}__addSublanguage(e,n){const t=e.root +;n&&(t.scope="language:"+n),this.add(t)}toHTML(){ +return new s(this,this.options).value()}finalize(){ +return this.closeAllNodes(),!0}}function c(e){ +return e?"string"==typeof e?e:e.source:null}function d(e){return b("(?=",e,")")} +function g(e){return b("(?:",e,")*")}function u(e){return b("(?:",e,")?")} +function b(...e){return e.map((e=>c(e))).join("")}function m(...e){const n=(e=>{ +const n=e[e.length-1] +;return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{} +})(e);return"("+(n.capture?"":"?:")+e.map((e=>c(e))).join("|")+")"} +function p(e){return RegExp(e.toString()+"|").exec("").length-1} +const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./ +;function f(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t +;let a=c(e),i="";for(;a.length>0;){const e=h.exec(a);if(!e){i+=a;break} +i+=a.substring(0,e.index), +a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+(Number(e[1])+n):(i+=e[0], +"("===e[0]&&t++)}return i})).map((e=>`(${e})`)).join(n)} +const _="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",N="\\b\\d+(\\.\\d+)?",y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",v={ +begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'", +illegal:"\\n",contains:[v]},x={scope:"string",begin:'"',end:'"',illegal:"\\n", +contains:[v]},O=(e,n,t={})=>{const i=a({scope:"comment",begin:e,end:n, +contains:[]},t);i.contains.push({scope:"doctag", +begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", +end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0}) +;const s=m("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/) +;return i.contains.push({begin:b(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i +},S=O("//","$"),A=O("/\\*","\\*/"),M=O("#","$");var C=Object.freeze({ +__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:_,UNDERSCORE_IDENT_RE:E, +NUMBER_RE:N,C_NUMBER_RE:y,BINARY_NUMBER_RE:w, +RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", +SHEBANG:(e={})=>{const n=/^#![ ]*\// +;return e.binary&&(e.begin=b(n,/.*\b/,e.binary,/\b.*/)),a({scope:"meta",begin:n, +end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)}, +BACKSLASH_ESCAPE:v,APOS_STRING_MODE:k,QUOTE_STRING_MODE:x,PHRASAL_WORDS_MODE:{ +begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ +},COMMENT:O,C_LINE_COMMENT_MODE:S,C_BLOCK_COMMENT_MODE:A,HASH_COMMENT_MODE:M, +NUMBER_MODE:{scope:"number",begin:N,relevance:0},C_NUMBER_MODE:{scope:"number", +begin:y,relevance:0},BINARY_NUMBER_MODE:{scope:"number",begin:w,relevance:0}, +REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//, +end:/\/[gimuy]*/,illegal:/\n/,contains:[v,{begin:/\[/,end:/\]/,relevance:0, +contains:[v]}]}]},TITLE_MODE:{scope:"title",begin:_,relevance:0}, +UNDERSCORE_TITLE_MODE:{scope:"title",begin:E,relevance:0},METHOD_GUARD:{ +begin:"\\.\\s*"+E,relevance:0},END_SAME_AS_BEGIN:e=>Object.assign(e,{ +"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{ +n.data._beginMatch!==e[1]&&n.ignoreMatch()}})});function T(e,n){ +"."===e.input[e.index-1]&&n.ignoreMatch()}function R(e,n){ +void 0!==e.className&&(e.scope=e.className,delete e.className)}function D(e,n){ +n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", +e.__beforeBegin=T,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, +void 0===e.relevance&&(e.relevance=0))}function I(e,n){ +Array.isArray(e.illegal)&&(e.illegal=m(...e.illegal))}function B(e,n){ +if(e.match){ +if(e.begin||e.end)throw Error("begin & end are not supported with match") +;e.begin=e.match,delete e.match}}function L(e,n){ +void 0===e.relevance&&(e.relevance=1)}const $=(e,n)=>{if(!e.beforeMatch)return +;if(e.starts)throw Error("beforeMatch cannot be used with starts") +;const t=Object.assign({},e);Object.keys(e).forEach((n=>{delete e[n] +})),e.keywords=t.keywords,e.begin=b(t.beforeMatch,d(t.begin)),e.starts={ +relevance:0,contains:[Object.assign(t,{endsParent:!0})] +},e.relevance=0,delete t.beforeMatch +},F=["of","and","for","in","not","or","if","then","parent","list","value"],z="keyword" +;function U(e,n,t=z){const a=Object.create(null) +;return"string"==typeof e?i(t,e.split(" ")):Array.isArray(e)?i(t,e):Object.keys(e).forEach((t=>{ +Object.assign(a,U(e[t],n,t))})),a;function i(e,t){ +n&&(t=t.map((e=>e.toLowerCase()))),t.forEach((n=>{const t=n.split("|") +;a[t[0]]=[e,j(t[0],t[1])]}))}}function j(e,n){ +return n?Number(n):(e=>F.includes(e.toLowerCase()))(e)?0:1}const P={},K=e=>{ +console.error(e)},H=(e,...n)=>{console.log("WARN: "+e,...n)},Z=(e,n)=>{ +P[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),P[`${e}/${n}`]=!0) +},G=Error();function q(e,n,{key:t}){let a=0;const i=e[t],s={},r={} +;for(let e=1;e<=n.length;e++)r[e+a]=i[e],s[e+a]=!0,a+=p(n[e-1]) +;e[t]=r,e[t]._emit=s,e[t]._multi=!0}function W(e){(e=>{ +e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope, +delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={ +_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope +}),(e=>{if(Array.isArray(e.begin)){ +if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), +G +;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"), +G;q(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}})(e),(e=>{ +if(Array.isArray(e.end)){ +if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"), +G +;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"), +G;q(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}})(e)}function X(e){ +function n(n,t){ +return RegExp(c(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":"")) +}class t{constructor(){ +this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} +addRule(e,n){ +n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]), +this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null) +;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(f(e,{joinWith:"|" +}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex +;const n=this.matcherRe.exec(e);if(!n)return null +;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t] +;return n.splice(0,t),Object.assign(n,a)}}class i{constructor(){ +this.rules=[],this.multiRegexes=[], +this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ +if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t +;return this.rules.slice(e).forEach((([e,t])=>n.addRule(e,t))), +n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){ +return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){ +this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){ +const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex +;let t=n.exec(e) +;if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{ +const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)} +return t&&(this.regexIndex+=t.position+1, +this.regexIndex===this.count&&this.considerAll()),t}} +if(e.compilerExtensions||(e.compilerExtensions=[]), +e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.") +;return e.classNameAliases=a(e.classNameAliases||{}),function t(s,r){const o=s +;if(s.isCompiled)return o +;[R,B,W,$].forEach((e=>e(s,r))),e.compilerExtensions.forEach((e=>e(s,r))), +s.__beforeBegin=null,[D,I,L].forEach((e=>e(s,r))),s.isCompiled=!0;let l=null +;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords), +l=s.keywords.$pattern, +delete s.keywords.$pattern),l=l||/\w+/,s.keywords&&(s.keywords=U(s.keywords,e.case_insensitive)), +o.keywordPatternRe=n(l,!0), +r&&(s.begin||(s.begin=/\B|\b/),o.beginRe=n(o.begin),s.end||s.endsWithParent||(s.end=/\B|\b/), +s.end&&(o.endRe=n(o.end)), +o.terminatorEnd=c(o.end)||"",s.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(s.end?"|":"")+r.terminatorEnd)), +s.illegal&&(o.illegalRe=n(s.illegal)), +s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((n=>a(e,{ +variants:null},n)))),e.cachedVariants?e.cachedVariants:Q(e)?a(e,{ +starts:e.starts?a(e.starts):null +}):Object.isFrozen(e)?a(e):e))("self"===e?s:e)))),s.contains.forEach((e=>{t(e,o) +})),s.starts&&t(s.starts,r),o.matcher=(e=>{const n=new i +;return e.contains.forEach((e=>n.addRule(e.begin,{rule:e,type:"begin" +}))),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end" +}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n})(o),o}(e)}function Q(e){ +return!!e&&(e.endsWithParent||Q(e.starts))}class V extends Error{ +constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}} +const J=t,Y=a,ee=Symbol("nomatch"),ne=t=>{ +const a=Object.create(null),i=Object.create(null),s=[];let r=!0 +;const o="Could not find the language '{}', did you forget to load/include a language module?",c={ +disableAutodetect:!0,name:"Plain text",contains:[]};let p={ +ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i, +languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-", +cssSelector:"pre code",languages:null,__emitter:l};function h(e){ +return p.noHighlightRe.test(e)}function f(e,n,t){let a="",i="" +;"object"==typeof n?(a=e, +t=n.ignoreIllegals,i=n.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."), +Z("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), +i=e,a=n),void 0===t&&(t=!0);const s={code:a,language:i};O("before:highlight",s) +;const r=s.result?s.result:_(s.language,s.code,t) +;return r.code=s.code,O("after:highlight",r),r}function _(e,t,i,s){ +const l=Object.create(null);function c(){if(!O.keywords)return void A.addText(M) +;let e=0;O.keywordPatternRe.lastIndex=0;let n=O.keywordPatternRe.exec(M),t="" +;for(;n;){t+=M.substring(e,n.index) +;const i=w.case_insensitive?n[0].toLowerCase():n[0],s=(a=i,O.keywords[a]);if(s){ +const[e,a]=s +;if(A.addText(t),t="",l[i]=(l[i]||0)+1,l[i]<=7&&(C+=a),e.startsWith("_"))t+=n[0];else{ +const t=w.classNameAliases[e]||e;g(n[0],t)}}else t+=n[0] +;e=O.keywordPatternRe.lastIndex,n=O.keywordPatternRe.exec(M)}var a +;t+=M.substring(e),A.addText(t)}function d(){null!=O.subLanguage?(()=>{ +if(""===M)return;let e=null;if("string"==typeof O.subLanguage){ +if(!a[O.subLanguage])return void A.addText(M) +;e=_(O.subLanguage,M,!0,S[O.subLanguage]),S[O.subLanguage]=e._top +}else e=E(M,O.subLanguage.length?O.subLanguage:null) +;O.relevance>0&&(C+=e.relevance),A.__addSublanguage(e._emitter,e.language) +})():c(),M=""}function g(e,n){ +""!==e&&(A.startScope(n),A.addText(e),A.endScope())}function u(e,n){let t=1 +;const a=n.length-1;for(;t<=a;){if(!e._emit[t]){t++;continue} +const a=w.classNameAliases[e[t]]||e[t],i=n[t];a?g(i,a):(M=i,c(),M=""),t++}} +function b(e,n){ +return e.scope&&"string"==typeof e.scope&&A.openNode(w.classNameAliases[e.scope]||e.scope), +e.beginScope&&(e.beginScope._wrap?(g(M,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap), +M=""):e.beginScope._multi&&(u(e.beginScope,n),M="")),O=Object.create(e,{parent:{ +value:O}}),O}function m(e,t,a){let i=((e,n)=>{const t=e&&e.exec(n) +;return t&&0===t.index})(e.endRe,a);if(i){if(e["on:end"]){const a=new n(e) +;e["on:end"](t,a),a.isMatchIgnored&&(i=!1)}if(i){ +for(;e.endsParent&&e.parent;)e=e.parent;return e}} +if(e.endsWithParent)return m(e.parent,t,a)}function h(e){ +return 0===O.matcher.regexIndex?(M+=e[0],1):(D=!0,0)}function f(e){ +const n=e[0],a=t.substring(e.index),i=m(O,e,a);if(!i)return ee;const s=O +;O.endScope&&O.endScope._wrap?(d(), +g(n,O.endScope._wrap)):O.endScope&&O.endScope._multi?(d(), +u(O.endScope,e)):s.skip?M+=n:(s.returnEnd||s.excludeEnd||(M+=n), +d(),s.excludeEnd&&(M=n));do{ +O.scope&&A.closeNode(),O.skip||O.subLanguage||(C+=O.relevance),O=O.parent +}while(O!==i.parent);return i.starts&&b(i.starts,e),s.returnEnd?0:n.length} +let N={};function y(a,s){const o=s&&s[0];if(M+=a,null==o)return d(),0 +;if("begin"===N.type&&"end"===s.type&&N.index===s.index&&""===o){ +if(M+=t.slice(s.index,s.index+1),!r){const n=Error(`0 width match regex (${e})`) +;throw n.languageName=e,n.badRule=N.rule,n}return 1} +if(N=s,"begin"===s.type)return(e=>{ +const t=e[0],a=e.rule,i=new n(a),s=[a.__beforeBegin,a["on:begin"]] +;for(const n of s)if(n&&(n(e,i),i.isMatchIgnored))return h(t) +;return a.skip?M+=t:(a.excludeBegin&&(M+=t), +d(),a.returnBegin||a.excludeBegin||(M=t)),b(a,e),a.returnBegin?0:t.length})(s) +;if("illegal"===s.type&&!i){ +const e=Error('Illegal lexeme "'+o+'" for mode "'+(O.scope||"")+'"') +;throw e.mode=O,e}if("end"===s.type){const e=f(s);if(e!==ee)return e} +if("illegal"===s.type&&""===o)return 1 +;if(R>1e5&&R>3*s.index)throw Error("potential infinite loop, way more iterations than matches") +;return M+=o,o.length}const w=v(e) +;if(!w)throw K(o.replace("{}",e)),Error('Unknown language: "'+e+'"') +;const k=X(w);let x="",O=s||k;const S={},A=new p.__emitter(p);(()=>{const e=[] +;for(let n=O;n!==w;n=n.parent)n.scope&&e.unshift(n.scope) +;e.forEach((e=>A.openNode(e)))})();let M="",C=0,T=0,R=0,D=!1;try{ +if(w.__emitTokens)w.__emitTokens(t,A);else{for(O.matcher.considerAll();;){ +R++,D?D=!1:O.matcher.considerAll(),O.matcher.lastIndex=T +;const e=O.matcher.exec(t);if(!e)break;const n=y(t.substring(T,e.index),e) +;T=e.index+n}y(t.substring(T))}return A.finalize(),x=A.toHTML(),{language:e, +value:x,relevance:C,illegal:!1,_emitter:A,_top:O}}catch(n){ +if(n.message&&n.message.includes("Illegal"))return{language:e,value:J(t), +illegal:!0,relevance:0,_illegalBy:{message:n.message,index:T, +context:t.slice(T-100,T+100),mode:n.mode,resultSoFar:x},_emitter:A};if(r)return{ +language:e,value:J(t),illegal:!1,relevance:0,errorRaised:n,_emitter:A,_top:O} +;throw n}}function E(e,n){n=n||p.languages||Object.keys(a);const t=(e=>{ +const n={value:J(e),illegal:!1,relevance:0,_top:c,_emitter:new p.__emitter(p)} +;return n._emitter.addText(e),n})(e),i=n.filter(v).filter(x).map((n=>_(n,e,!1))) +;i.unshift(t);const s=i.sort(((e,n)=>{ +if(e.relevance!==n.relevance)return n.relevance-e.relevance +;if(e.language&&n.language){if(v(e.language).supersetOf===n.language)return 1 +;if(v(n.language).supersetOf===e.language)return-1}return 0})),[r,o]=s,l=r +;return l.secondBest=o,l}function N(e){let n=null;const t=(e=>{ +let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"" +;const t=p.languageDetectRe.exec(n);if(t){const n=v(t[1]) +;return n||(H(o.replace("{}",t[1])), +H("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"} +return n.split(/\s+/).find((e=>h(e)||v(e)))})(e);if(h(t))return +;if(O("before:highlightElement",{el:e,language:t +}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e) +;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), +console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), +console.warn("The element with unescaped HTML:"), +console.warn(e)),p.throwUnescapedHTML))throw new V("One of your code blocks includes unescaped HTML.",e.innerHTML) +;n=e;const a=n.textContent,s=t?f(a,{language:t,ignoreIllegals:!0}):E(a) +;e.innerHTML=s.value,e.dataset.highlighted="yes",((e,n,t)=>{const a=n&&i[n]||t +;e.classList.add("hljs"),e.classList.add("language-"+a) +})(e,t,s.language),e.result={language:s.language,re:s.relevance, +relevance:s.relevance},s.secondBest&&(e.secondBest={ +language:s.secondBest.language,relevance:s.secondBest.relevance +}),O("after:highlightElement",{el:e,result:s,text:a})}let y=!1;function w(){ +"loading"!==document.readyState?document.querySelectorAll(p.cssSelector).forEach(N):y=!0 +}function v(e){return e=(e||"").toLowerCase(),a[e]||a[i[e]]} +function k(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach((e=>{ +i[e.toLowerCase()]=n}))}function x(e){const n=v(e) +;return n&&!n.disableAutodetect}function O(e,n){const t=e;s.forEach((e=>{ +e[t]&&e[t](n)}))} +"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{ +y&&w()}),!1),Object.assign(t,{highlight:f,highlightAuto:E,highlightAll:w, +highlightElement:N, +highlightBlock:e=>(Z("10.7.0","highlightBlock will be removed entirely in v12.0"), +Z("10.7.0","Please use highlightElement now."),N(e)),configure:e=>{p=Y(p,e)}, +initHighlighting:()=>{ +w(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")}, +initHighlightingOnLoad:()=>{ +w(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.") +},registerLanguage:(e,n)=>{let i=null;try{i=n(t)}catch(n){ +if(K("Language definition for '{}' could not be registered.".replace("{}",e)), +!r)throw n;K(n),i=c} +i.name||(i.name=e),a[e]=i,i.rawDefinition=n.bind(null,t),i.aliases&&k(i.aliases,{ +languageName:e})},unregisterLanguage:e=>{delete a[e] +;for(const n of Object.keys(i))i[n]===e&&delete i[n]}, +listLanguages:()=>Object.keys(a),getLanguage:v,registerAliases:k, +autoDetection:x,inherit:Y,addPlugin:e=>{(e=>{ +e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=n=>{ +e["before:highlightBlock"](Object.assign({block:n.el},n)) +}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=n=>{ +e["after:highlightBlock"](Object.assign({block:n.el},n))})})(e),s.push(e)}, +removePlugin:e=>{const n=s.indexOf(e);-1!==n&&s.splice(n,1)}}),t.debugMode=()=>{ +r=!1},t.safeMode=()=>{r=!0},t.versionString="11.8.0",t.regex={concat:b, +lookahead:d,either:m,optional:u,anyNumberOfTimes:g} +;for(const n in C)"object"==typeof C[n]&&e(C[n]);return Object.assign(t,C),t +},te=ne({});te.newInstance=()=>ne({});var ae=te +;const ie=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],se=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],re=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],oe=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],le=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse() +;var ce="[0-9](_*[0-9])*",de=`\\.(${ce})`,ge="[0-9a-fA-F](_*[0-9a-fA-F])*",ue={ +className:"number",variants:[{ +begin:`(\\b(${ce})((${de})|\\.)?|(${de}))[eE][+-]?(${ce})[fFdD]?\\b`},{ +begin:`\\b(${ce})((${de})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ +begin:`(${de})[fFdD]?\\b`},{begin:`\\b(${ce})[fFdD]\\b`},{ +begin:`\\b0[xX]((${ge})\\.?|(${ge})?\\.(${ge}))[pP][+-]?(${ce})[fFdD]?\\b`},{ +begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ge})[lL]?\\b`},{ +begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], +relevance:0};function be(e,n,t){return-1===t?"":e.replace(n,(a=>be(e,n,t-1)))} +const me="[A-Za-z$_][0-9A-Za-z$_]*",pe=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],he=["true","false","null","undefined","NaN","Infinity"],fe=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_e=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ee=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ne=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ye=[].concat(Ee,fe,_e),we=e=>b(/\b/,e,/\w$/.test(e)?/\b/:/\B/),ve=["Protocol","Type"].map(we),ke=["init","self"].map(we),xe=["Any","Self"],Oe=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Se=["false","nil","true"],Ae=["assignment","associativity","higherThan","left","lowerThan","none","right"],Me=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],Ce=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Te=m(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Re=m(Te,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),De=b(Te,Re,"*"),Ie=m(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Be=m(Ie,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Le=b(Ie,Be,"*"),$e=b(/[A-Z]/,Be,"*"),Fe=["autoclosure",b(/convention\(/,m("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",b(/objc\(/,Le,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],ze=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] +;var Ue=Object.freeze({__proto__:null,grmr_bash:e=>{const n=e.regex,t={},a={ +begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]} +;Object.assign(t,{className:"variable",variants:[{ +begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const i={ +className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s={ +begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/, +end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,t,i]};i.contains.push(r);const o={begin:/\$?\(\(/, +end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t] +},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10 +}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0, +contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{ +name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/, +keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"], +literal:["true","false"], +built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"] +},contains:[l,e.SHEBANG(),c,o,e.HASH_COMMENT_MODE,s,{match:/(\/[a-z._-]+)+/},r,{ +className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}, +grmr_c:e=>{const n=e.regex,t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}] +}),a="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+a+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",r={ +className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{ +match:/\batomic_[a-z]{3,6}\b/}]},o={className:"string",variants:[{ +begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:"string"}),{ +className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},d={ +className:"title",begin:n.optional(i)+e.IDENT_RE,relevance:0 +},g=n.optional(i)+e.IDENT_RE+"\\s*\\(",u={ +keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"], +type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"], +literal:"true false NULL", +built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr" +},b=[c,r,t,e.C_BLOCK_COMMENT_MODE,l,o],m={variants:[{begin:/=/,end:/;/},{ +begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], +keywords:u,contains:b.concat([{begin:/\(/,end:/\)/,keywords:u, +contains:b.concat(["self"]),relevance:0}]),relevance:0},p={ +begin:"("+s+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, +keywords:u,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:u,relevance:0},{ +begin:g,returnBegin:!0,contains:[e.inherit(d,{className:"title.function"})], +relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/, +keywords:u,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,o,l,r,{begin:/\(/, +end:/\)/,keywords:u,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,o,l,r] +}]},r,t,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:u, +disableAutodetect:!0,illegal:"=]/,contains:[{ +beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c, +strings:o,keywords:u}}},grmr_css:e=>{const n=e.regex,t=(e=>({IMPORTANT:{ +scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{ +scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/}, +FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/}, +ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", +contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ +scope:"number", +begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", +relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/} +}))(e),a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS", +case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"}, +classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,{ +begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t.CSS_NUMBER_MODE,{ +className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{ +className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0 +},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{ +begin:":("+re.join("|")+")"},{begin:":(:)?("+oe.join("|")+")"}] +},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+le.join("|")+")\\b"},{ +begin:/:/,end:/[;}{]/, +contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{ +begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" +},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0, +excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]", +relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/ +},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{ +$pattern:/[a-z-]+/,keyword:"and or not only",attribute:se.join(" ")},contains:[{ +begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{ +className:"selector-tag",begin:"\\b("+ie.join("|")+")\\b"}]}},grmr_xml:e=>{ +const n=e.regex,t=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a={ +className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/, +contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] +},s=e.inherit(i,{begin:/\(/,end:/\)/}),r=e.inherit(e.APOS_STRING_MODE,{ +className:"string"}),o=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={ +endsWithParent:!0,illegal:/`]+/}]}]}]};return{ +name:"HTML, XML", +aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], +case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[i,o,r,s,{begin:/\[/,end:/\]/,contains:[{ +className:"meta",begin://,contains:[i,s,o,r]}]}] +},e.COMMENT(//,{relevance:10}),{begin://, +relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/, +relevance:10,contains:[o]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag", +begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{ +end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag", +begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{ +end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{ +className:"tag",begin:/<>|<\/>/},{className:"tag", +begin:n.concat(//,/>/,/\s/)))), +end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:l}]},{ +className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(t,/>/))),contains:[{ +className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]} +},grmr_markdown:e=>{const n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml", +relevance:0},t={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{ +begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, +relevance:2},{ +begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/), +relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{ +begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/ +},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0, +returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)", +excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[", +end:"\\]",excludeBegin:!0,excludeEnd:!0}]},a={className:"strong",contains:[], +variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}] +},i={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{ +begin:/_(?![_\s])/,end:/_/,relevance:0}]},s=e.inherit(a,{contains:[] +}),r=e.inherit(i,{contains:[]});a.contains.push(r),i.contains.push(s) +;let o=[n,t];return[a,i,s,r].forEach((e=>{e.contains=e.contains.concat(o) +})),o=o.concat(a,i),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{ +className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:o},{ +begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n", +contains:o}]}]},n,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)", +end:"\\s+",excludeEnd:!0},a,i,{className:"quote",begin:"^>\\s+",contains:o, +end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{ +begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{ +begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))", +contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{ +begin:"^[-\\*]{3,}",end:"$"},t,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{ +className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{ +className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}},grmr_dart:e=>{ +const n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},t={ +className:"subst",variants:[{begin:/\$\{/,end:/\}/}], +keywords:"true false null this is new super"},a={className:"string",variants:[{ +begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'", +illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''", +contains:[e.BACKSLASH_ESCAPE,n,t]},{begin:'"""',end:'"""', +contains:[e.BACKSLASH_ESCAPE,n,t]},{begin:"'",end:"'",illegal:"\\n", +contains:[e.BACKSLASH_ESCAPE,n,t]},{begin:'"',end:'"',illegal:"\\n", +contains:[e.BACKSLASH_ESCAPE,n,t]}]};t.contains=[e.C_NUMBER_MODE,a] +;const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],s=i.map((e=>e+"?")) +;return{name:"Dart",keywords:{ +keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"], +built_in:i.concat(s).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]), +$pattern:/[A-Za-z][A-Za-z0-9_]*\??/}, +contains:[a,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0 +}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".", +end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{ +className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0, +contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE] +},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}, +grmr_diff:e=>{const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{ +className:"meta",relevance:10, +match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/) +},{className:"comment",variants:[{ +begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/), +end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{ +className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/, +end:/$/}]}},grmr_java:e=>{ +const n=e.regex,t="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",a=t+be("(?:<"+t+"~~~(?:\\s*,\\s*"+t+"~~~)*>)?",/~~~/g,2),i={ +keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"], +literal:["false","true","null"], +type:["char","boolean","long","float","int","byte","short","double"], +built_in:["super","this"]},s={className:"meta",begin:"@"+t,contains:[{ +begin:/\(/,end:/\)/,contains:["self"]}]},r={className:"params",begin:/\(/, +end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0} +;return{name:"Java",aliases:["jsp"],keywords:i,illegal:/<\/|#/, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/, +relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{ +begin:/import java\.[a-z]+\./,keywords:"import",relevance:2 +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/, +className:"string",contains:[e.BACKSLASH_ESCAPE] +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{ +match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,t],className:{ +1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{ +begin:[n.concat(/(?!else)/,t),/\s+/,t,/\s+/,/=(?!=)/],className:{1:"type", +3:"variable",5:"operator"}},{begin:[/record/,/\s+/,t],className:{1:"keyword", +3:"title.class"},contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +beginKeywords:"new throw return else",relevance:0},{ +begin:["(?:"+a+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{ +2:"title.function"},keywords:i,contains:[{className:"params",begin:/\(/, +end:/\)/,keywords:i,relevance:0, +contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,ue,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},ue,s]}},grmr_javascript:e=>{ +const n=e.regex,t=me,a={begin:/<[A-Za-z0-9\\._:-]+/, +end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{ +const t=e[0].length+e.index,a=e.input[t] +;if("<"===a||","===a)return void n.ignoreMatch();let i +;">"===a&&(((e,{after:n})=>{const t="",S={ +match:[/const|var|let/,/\s+/,t,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(O)], +keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]} +;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{ +PARAMS_CONTAINS:f,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/, +contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{ +label:"use_strict",className:"meta",relevance:10, +begin:/^\s*['"]use (strict|asm)['"]/ +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,g,u,b,m,{match:/\$\d+/},l,N,{ +className:"attr",begin:t+n.lookahead(":"),relevance:0},S,{ +begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*", +keywords:"return throw case",relevance:0,contains:[m,e.REGEXP_MODE,{ +className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{ +className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{ +className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0, +excludeEnd:!0,keywords:i,contains:f}]}]},{begin:/,/,relevance:0},{match:/\s+/, +relevance:0},{variants:[{begin:"<>",end:""},{ +match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin, +"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{ +begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},y,{ +beginKeywords:"while if switch catch for"},{ +begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", +returnBegin:!0,label:"func.def",contains:[_,e.inherit(e.TITLE_MODE,{begin:t, +className:"title.function"})]},{match:/\.\.\./,relevance:0},k,{match:"\\$"+t, +relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"}, +contains:[_]},w,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, +className:"variable.constant"},E,x,{match:/\$[(.]/}]}},grmr_json:e=>{ +const n=["true","false","null"],t={scope:"literal",beginKeywords:n.join(" ")} +;return{name:"JSON",keywords:{literal:n},contains:[{className:"attr", +begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/, +className:"punctuation",relevance:0 +},e.QUOTE_STRING_MODE,t,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE], +illegal:"\\S"}},grmr_kotlin:e=>{const n={ +keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", +built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing", +literal:"true false null"},t={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@" +},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={ +className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string", +variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,a]},{begin:"'",end:"'", +illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/, +contains:[e.BACKSLASH_ESCAPE,i,a]}]};a.contains.push(s);const r={ +className:"meta", +begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?" +},o={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/, +end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}] +},l=ue,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={ +variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/, +contains:[]}]},g=d;return g.variants[1].contains=[d],d.variants[1].contains=[g], +{name:"Kotlin",aliases:["kt","kts"],keywords:n, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag", +begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword", +begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol", +begin:/@\w+/}]}},t,r,o,{className:"function",beginKeywords:"fun",end:"[(]|$", +returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{ +begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, +contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://, +keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/, +endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/, +endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,c],relevance:0 +},e.C_LINE_COMMENT_MODE,c,r,o,s,e.C_NUMBER_MODE]},c]},{ +begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{ +3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0, +illegal:"extends implements",contains:[{ +beginKeywords:"public protected internal private constructor" +},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0, +excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/, +excludeBegin:!0,returnEnd:!0},r,o]},s,{className:"meta",begin:"^#!/usr/bin/env", +end:"$",illegal:"\n"},l]}},grmr_objectivec:e=>{ +const n=/[a-zA-Z@][a-zA-Z0-9_]*/,t={$pattern:n, +keyword:["@interface","@class","@protocol","@implementation"]};return{ +name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"], +keywords:{"variable.language":["this","super"],$pattern:n, +keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"], +literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"], +built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"], +type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"] +},illegal:"/,end:/$/,illegal:"\\n" +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class", +begin:"("+t.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:t, +contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE, +relevance:0}]}},grmr_plaintext:e=>({name:"Plain text",aliases:["text","txt"], +disableAutodetect:!0}),grmr_shell:e=>({name:"Shell Session", +aliases:["console","shellsession"],contains:[{className:"meta.prompt", +begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/, +subLanguage:"bash"}}]}),grmr_swift:e=>{const n={match:/\s+/,relevance:0 +},t=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a=[e.C_LINE_COMMENT_MODE,t],i={ +match:[/\./,m(...ve,...ke)],className:{2:"keyword"}},s={match:b(/\./,m(...Oe)), +relevance:0},r=Oe.filter((e=>"string"==typeof e)).concat(["_|0"]),o={variants:[{ +className:"keyword", +match:m(...Oe.filter((e=>"string"!=typeof e)).concat(xe).map(we),...ke)}]},l={ +$pattern:m(/\b\w+/,/#\w+/),keyword:r.concat(Me),literal:Se},c=[i,s,o],g=[{ +match:b(/\./,m(...Ce)),relevance:0},{className:"built_in", +match:b(/\b/,m(...Ce),/(?=\()/)}],u={match:/->/,relevance:0},p=[u,{ +className:"operator",relevance:0,variants:[{match:De},{match:`\\.(\\.|${Re})+`}] +}],h="([0-9]_*)+",f="([0-9a-fA-F]_*)+",_={className:"number",relevance:0, +variants:[{match:`\\b(${h})(\\.(${h}))?([eE][+-]?(${h}))?\\b`},{ +match:`\\b0x(${f})(\\.(${f}))?([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/ +},{match:/\b0b([01]_*)+\b/}]},E=(e="")=>({className:"subst",variants:[{ +match:b(/\\/,e,/[0\\tnr"']/)},{match:b(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}] +}),N=(e="")=>({className:"subst",match:b(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/) +}),y=(e="")=>({className:"subst",label:"interpol",begin:b(/\\/,e,/\(/),end:/\)/ +}),w=(e="")=>({begin:b(e,/"""/),end:b(/"""/,e),contains:[E(e),N(e),y(e)] +}),v=(e="")=>({begin:b(e,/"/),end:b(/"/,e),contains:[E(e),y(e)]}),k={ +className:"string", +variants:[w(),w("#"),w("##"),w("###"),v(),v("#"),v("##"),v("###")]},x={ +match:b(/`/,Le,/`/)},O=[x,{className:"variable",match:/\$\d+/},{ +className:"variable",match:`\\$${Be}+`}],S=[{match:/(@|#(un)?)available/, +className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ze, +contains:[...p,_,k]}]}},{className:"keyword",match:b(/@/,m(...Fe))},{ +className:"meta",match:b(/@/,Le)}],A={match:d(/\b[A-Z]/),relevance:0,contains:[{ +className:"type", +match:b(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Be,"+") +},{className:"type",match:$e,relevance:0},{match:/[?!]+/,relevance:0},{ +match:/\.\.\./,relevance:0},{match:b(/\s+&\s+/,d($e)),relevance:0}]},M={ +begin://,keywords:l,contains:[...a,...c,...S,u,A]};A.contains.push(M) +;const C={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{ +match:b(Le,/\s*:/),keywords:"_|0",relevance:0 +},...a,...c,...g,...p,_,k,...O,...S,A]},T={begin://,contains:[...a,A] +},R={begin:/\(/,end:/\)/,keywords:l,contains:[{ +begin:m(d(b(Le,/\s*:/)),d(b(Le,/\s+/,Le,/\s*:/))),end:/:/,relevance:0, +contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Le}] +},...a,...c,...p,_,k,...S,A,C],endsParent:!0,illegal:/["']/},D={ +match:[/func/,/\s+/,m(x.match,Le,De)],className:{1:"keyword",3:"title.function" +},contains:[T,R,n],illegal:[/\[/,/%/]},I={ +match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"}, +contains:[T,R,n],illegal:/\[|%/},B={match:[/operator/,/\s+/,De],className:{ +1:"keyword",3:"title"}},L={begin:[/precedencegroup/,/\s+/,$e],className:{ +1:"keyword",3:"title"},contains:[A],keywords:[...Ae,...Se],end:/}/} +;for(const e of k.variants){const n=e.contains.find((e=>"interpol"===e.label)) +;n.keywords=l;const t=[...c,...g,...p,_,k,...O];n.contains=[...t,{begin:/\(/, +end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:l, +contains:[...a,D,I,{beginKeywords:"struct protocol class extension enum actor", +end:"\\{",excludeEnd:!0,keywords:l,contains:[e.inherit(e.TITLE_MODE,{ +className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c] +},B,L,{beginKeywords:"import",end:/$/,contains:[...a],relevance:0 +},...c,...g,...p,_,k,...O,...S,A,C]}},grmr_ruby:e=>{ +const n=e.regex,t="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=n.concat(a,/(::\w+)*/),s={ +"variable.constant":["__FILE__","__LINE__","__ENCODING__"], +"variable.language":["self","super"], +keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"], +built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"], +literal:["true","false","nil"]},r={className:"doctag",begin:"@[A-Za-z]+"},o={ +begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[r] +}),e.COMMENT("^=begin","^=end",{contains:[r],relevance:10 +}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/, +end:/\}/,keywords:s},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c], +variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{ +begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{ +begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//, +end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{ +begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{ +begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{ +begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{ +begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{ +begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)), +contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/, +contains:[e.BACKSLASH_ESCAPE,c]})]}]},g="[0-9](_?[0-9])*",u={className:"number", +relevance:0,variants:[{ +begin:`\\b([1-9](_?[0-9])*|0)(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{ +begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b" +},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{ +begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{ +begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{ +className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0, +keywords:s}]},m=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{ +match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class", +4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,i],scope:{ +2:"title.class"},keywords:s},{relevance:0,match:[i,/\.new[. (]/],scope:{ +1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, +className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{ +match:[/def/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[b]},{ +begin:e.IDENT_RE+"::"},{className:"symbol", +begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol", +begin:":(?!\\s)",contains:[d,{begin:t}],relevance:0},u,{className:"variable", +begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{ +className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0, +relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*", +keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c], +illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{ +begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[", +end:"\\][a-z]*"}]}].concat(o,l),relevance:0}].concat(o,l) +;c.contains=m,b.contains=m;const p=[{begin:/^\s*=>/,starts:{end:"$",contains:m} +},{className:"meta.prompt", +begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", +starts:{end:"$",keywords:s,contains:m}}];return l.unshift(o),{name:"Ruby", +aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/, +contains:[e.SHEBANG({binary:"ruby"})].concat(p).concat(l).concat(m)}}, +grmr_yaml:e=>{ +const n="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={ +className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ +},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable", +variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(a,{ +variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s={ +end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},r={begin:/\{/, +end:/\}/,contains:[s],illegal:"\\n",relevance:0},o={begin:"\\[",end:"\\]", +contains:[s],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{ +begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{ +begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$", +relevance:10},{className:"string", +begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{ +begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0, +relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type", +begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t +},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta", +begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)", +relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{ +className:"number", +begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" +},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},r,o,a],c=[...l] +;return c.pop(),c.push(i),s.contains=c,{name:"YAML",case_insensitive:!0, +aliases:["yml"],contains:l}}});const je=ae;for(const e of Object.keys(Ue)){ +const n=e.replace("grmr_","").replace("_","-");je.registerLanguage(n,Ue[e])} +return je}() +;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); diff --git a/doc/api/static-assets/play_button.svg b/doc/api/static-assets/play_button.svg new file mode 100644 index 00000000..c39a2f4a --- /dev/null +++ b/doc/api/static-assets/play_button.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/doc/api/static-assets/readme.md b/doc/api/static-assets/readme.md new file mode 100644 index 00000000..62216710 --- /dev/null +++ b/doc/api/static-assets/readme.md @@ -0,0 +1,36 @@ +# Dart documentation generator + +This directory includes static sources used by the Dart documentation generator +through the `dart doc` command. + +To learn more about generating and viewing the generated documentation, +check out the [`dart doc` documentation][]. + +[`dart doc` documentation]: https://dart.dev/tools/dart-doc + +## Third-party resources + +## highlight.js + +Generated from https://highlightjs.org/download/ on 2021-07-13. + +**License:** https://github.com/highlightjs/highlight.js/blob/main/LICENSE + +**Included languages:** + +* bash +* c +* css +* dart +* diff +* html, xml +* java +* javascript +* json +* kotlin +* markdown +* objective-c +* plaintext +* shell +* swift +* yaml diff --git a/doc/api/static-assets/search.svg b/doc/api/static-assets/search.svg new file mode 100644 index 00000000..58f4299f --- /dev/null +++ b/doc/api/static-assets/search.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/doc/api/static-assets/styles.css b/doc/api/static-assets/styles.css new file mode 100644 index 00000000..cdb7346c --- /dev/null +++ b/doc/api/static-assets/styles.css @@ -0,0 +1,1340 @@ +.light-theme { + /*background-color body, listdropdown*/ + --main-bg-color: #fff; + /*header id-tittle*/ + --main-header-color: #eeeeee; + /*package-name*/ + --main-sidebar-color: #727272; + /*section-title and section subtitle, desc markdown(body, dd, h3), header a*/ + --main-text-color: #111111; + /*typehead search-box*/ + --main-search-bar: #fff; + /* scrollbar-thumb */ + --main-scrollbar-color: #CCC; + /* footer */ + --main-footer-background: #111111; + /*header text color*/ + --main-h-text: black; + /* hyperlinks*/ + --main-hyperlinks-color: #0175C2; + /*search background*/ + --main-search-background: transparent; + + /*code snippets*/ + --main-code-bg: #f8f8f8; + --main-keyword-color: #333; + --main-tag-color: #000080; + --main-section-color: #900; + --main-comment-color: #998; + --main-var-color: #008080; + --main-string-color: #d14; + + --main-number-filter: invert(0%); + --main-icon-color: black; + + /* alerts */ + --alert-info: #e7f8ff; + --alert-tip: #ecfaf7; + --alert-important: #e2dbff; + --alert-warning: #fcf8e3; + --alert-error: #fde9ee; +} + +.dark-theme { + /*background-color body, listdropdown*/ + --main-bg-color: #10161E; + /*header id-tittle*/ + --main-header-color: #1C2834; + /*package-name*/ + --main-sidebar-color: #fff; + /*section-title and section subtitle, desc markdown(body, dd, h3), header a*/ + --main-text-color: #fff; + /*typehead search-box*/ + --main-search-bar: #454545; + /* scrollbar-thumb */ + --main-scrollbar-color: #5f6368; + /* footer */ + --main-footer-background: #27323a; + /* hyperlinks*/ + --main-hyperlinks-color: #00D2FA; + /*search background*/ + --main-search-background: black; + + /*code snippets*/ + --main-code-bg: #10161E; + --main-keyword-color: white; + --main-tag-color: #00D2FA; + --main-section-color: #FF2D64; + --main-comment-color: #909CC3; + --main-var-color: #55A09B; + --main-string-color: #FF2D64; + + --main-number-filter: invert(100%); + --main-icon-color: white; + + /* alerts */ + --alert-info: #043875; + --alert-tip: #065517; + --alert-important: #4a00b4; + --alert-warning: #7b6909; + --alert-error: #7a0c17; +} + +#theme { + display: none; +} + +#theme-button { + position: absolute; + right: 30px; + height: 24px; +} + +#theme-button .material-symbols-outlined { + color: var(--main-icon-color); + user-select: none; + cursor: pointer; +} + +#theme-button .material-symbols-outlined:hover { + color: var(--main-hyperlinks-color); +} + +li .material-symbols-outlined, dt .material-symbols-outlined { + font-size: 1em; + vertical-align: text-bottom; +} + +dt .material-symbols-outlined { + text-indent: 0; +} + +.light-theme #light-theme-button { + display: none; +} + +.dark-theme #dark-theme-button { + display: none; +} + +/* +Only show images that fit their theme using GitHub's syntax, see: +https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/ +*/ +.dark-theme img[src$="#gh-light-mode-only"] { + display: none; +} + +.light-theme img[src$="#gh-dark-mode-only"] { + display: none; +} + +/* for layout */ +html, +body { + margin: 0; + padding: 0; + height: 100%; + width: 100%; + overflow: hidden; + box-sizing: border-box; +} + +*, *:before, *:after { + box-sizing: inherit; +} + +body { + display: flex; + flex-direction: column; + -webkit-overflow-scrolling: touch; +} + +header { + flex: 0 0 50px; + display: flex; + flex-direction: row; + align-items: center; + padding-left: 30px; + padding-right: 30px; + background-color: var(--main-header-color); +} + +header ol { + list-style: none; + margin: 0; + padding: 0; +} + +header ol li { + display: inline; +} + +header form { + display: flex; + flex: 1; + justify-content: flex-end; +} + +header#header-search-sidebar { + height: 50px; + margin-bottom: 25px; +} + +footer { + flex: 0 0 16px; + text-align: center; + padding: 16px 20px; +} + +main { + flex: 1; + display: flex; + flex-direction: row; + min-height: 0; +} + +.sidebar-offcanvas-left { + flex: 0 1 230px; + order: 1; + overflow-y: scroll; + padding: 20px 0 15px 30px; + margin: 5px 20px 0 0; +} + +::-webkit-scrollbar-button{ display: none; height: 13px; border-radius: 0; background-color: #AAA; } +::-webkit-scrollbar-button:hover{ background-color: #AAA; } +::-webkit-scrollbar-thumb{ background-color: var(--main-scrollbar-color); } +::-webkit-scrollbar-thumb:hover{ background-color: var(--main-scrollbar-color); } +::-webkit-scrollbar{ width: 4px; } + +.main-content::-webkit-scrollbar{ width: 8px; } + +.main-content { + flex: 1; + order: 2; + overflow-y: scroll; + padding: 10px 20px 0 20px; +} + +.sidebar-offcanvas-right { + flex: 0 1 12em; + order: 3; + overflow-y: scroll; + padding: 20px 15px 15px 15px; + margin-top: 5px; + margin-right: 20px; +} +/* end for layout */ + +body { + -webkit-text-size-adjust: 100%; + overflow-x: hidden; + font-family: Roboto, sans-serif; + font-size: 16px; + line-height: 1.42857143; + color: var(--main-text-color); + background-color: var(--main-bg-color); +} + +nav.navbar { + background-color: inherit; + min-height: 50px; + border: 0; +} + +@media (max-width: 840px) { + .hidden-xs { + display: none !important; + } +} + +@media (min-width: 841px) { + .hidden-l { + display: none !important; + } +} + +nav.navbar .row { + padding-top: 8px; +} + +nav .container { + white-space: nowrap; +} + +header { + background-color: var(--main-header-color); + box-shadow: 0 3px 5px rgba(0,0,0,0.1); +} + +.pre { + border: 1px solid #ddd; + font-size: 14px; +} + +.hljs-string, .hljs-doctag { + color: var(--main-string-color); +} + +.hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable, .hljs-tag .hljs-attr { + color: var(--main-var-color); +} + +.hljs-comment, .hljs-quote { + color: var(--main-comment-color); + font-style: italic; +} + +.hljs-title, .hljs-section, .hljs-selector-id { + color: var(--main-section-color); + font-weight: bold; +} + +.hljs-tag, .hljs-name, .hljs-attribute { + color: var(--main-tag-color); + font-weight: normal; +} + +.hljs-keyword, .hljs-selector-tag, .hljs-subst { + color: var(--main-keyword-color); + font-weight: bold; +} + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + color: var(--main-text-color); + background: var(--main-code-bg); +} + +a { + text-decoration: none; +} + +section { + /* Note that the generated HTML for pub packages may have `section` tags + transformed into `div` tags. */ + margin-bottom: 36px; +} + +dl { + margin: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: Roboto, sans-serif; + font-weight: 400; + margin-top: 1.5em; + color: var(--main-text-color); +} + +h1.title { + overflow: hidden; + text-overflow: ellipsis; +} + +h1 { + font-size: 37px; + margin-top: 0; + margin-bottom: 0.67em; +} + +h2 { + font-size: 28px; +} + +h5 { + font-size: 16px; +} + +p { + margin-bottom: 1em; + margin-top: 0; +} + +a { + color: var(--main-hyperlinks-color); +} + +a:hover { + color: #13B9FD; +} + +pre.prettyprint { + font-family: 'Roboto Mono', Menlo, monospace; + color: black; + border-radius: 0; + font-size: 15px; + word-wrap: normal; + line-height: 1.4; + border: 0; + margin: 16px 0 16px 0; + padding: 8px; +} + +pre code { + white-space: pre; + word-wrap: initial; + font-size: 100% +} + +.fixed { + white-space: pre; +} + +pre { + border: 1px solid #ddd; + background-color: #eee; + font-size: 14px; +} + +code { + font-family: 'Roboto Mono', Menlo, monospace; + color: inherit; + padding: 0.2em 0.4em; + font-size: 85%; + background-color: rgba(27,31,35,0.05); + border-radius: 3px; +} + +@media(max-width: 840px) { + nav .container { + width: 100% + } + + h1 { + font-size: 24px; + } + + pre { + margin: 16px 0; + } +} + +header h1 { + font-weight: 400; + margin-bottom: 16px; +} + +header a, +header p, +header li { + color: #0175C2; +} + +header a:hover { + color: #0175C2; +} + +header h1 .kind { + color: #555; +} + +dt { + font-weight: normal; +} + +dd { + color: var(--main-text-color); + margin-bottom: 1em; + margin-left: 0; +} + +dd.callable, dd.constant, dd.property { + margin-bottom: 24px; +} + +dd p { + overflow-x: hidden; + text-overflow: ellipsis; + margin-bottom: 0; +} + +/* Enum values do not have their own pages; their full docs are presented on the + * enum class's page. */ +dt.constant + dd p { + margin-bottom: 1em; +} + +/* indents wrapped lines */ +/* Note that the generated HTML for pub packages may have `section` tags + transformed into `div` tags, so we have two selectors here. */ +section.summary dt, div.summary dt { + margin-left: 24px; + text-indent: -24px; +} + +.dl-horizontal dd { + margin-left: initial; +} + +dl.dl-horizontal dt { + font-style: normal; + text-align: left; + color: #727272; + margin-right: 20px; + width: initial; +} + +dt .name { + font-weight: 500; +} + +dl dt.callable .name { + float: none; + width: auto; +} + +.type-parameter { + white-space: nowrap; +} + +.multi-line-signature .type-parameter .parameter { + margin-left: 0; + display: unset; +} + +.parameter-list { + display: table-cell; + margin-left: 10px; + list-style-type: none; + padding-inline-start: unset; +} + +.parameter-list.single-line { + display: inline; + margin-left: 0; +} + +.parameter-list.single-line > li { + display: inline; +} + +.parameter-list.single-line > li > .parameter { + display: inline; + margin-left: 0; + text-indent: 0; +} + +.signature { + color: var(--main-text-color); +} + +.signature a { + color: var(--main-hyperlinks-color); +} + +.optional { + font-style: italic; +} + +.undocumented { + font-style: italic; +} + +.is-const { + font-style: italic; +} + +.deprecated { + text-decoration: line-through; +} + +.category.linked { + font-weight: bold; + opacity: 1; +} + +/* Colors for category based on categoryOrder in dartdoc_options.config. */ +.category.cp-0 { + background-color: #54b7c4 +} + +.category.cp-1 { + background-color: #54c47f +} + +.category.cp-2 { + background-color: #c4c254 +} + +.category.cp-3 { + background-color: #c49f54 +} + +.category.cp-4 { + background-color: #c45465 +} + +.category.cp-5 { + background-color: #c454c4 +} + +.category a { + color: white; +} + +.category { + padding: 2px 4px; + font-size: 12px; + border-radius: 4px; + background-color: #999; + text-transform: uppercase; + color: white; + opacity: .5; +} + +h1 .category { + vertical-align: middle; +} + +/* Do not display "provided by X extension" text on extension pages. */ +.main-content.extension-page .from-extension { + display: none; +} + +sup.muted { + color: var(--main-sidebar-color); + font-size: 0.6em; +} + +.from-extension > span { + background-color: var(--alert-warning); + font-style: italic; + padding: 2px; +} + +/* The badge under a declaration for things like "const", "read-only", etc. and for the badges inline like sealed or interface */ +/* See https://github.com/dart-lang/dartdoc/blob/main/lib/src/model/feature.dart */ +.feature { + display: inline-block; + background: var(--main-bg-color); + border: 1px solid var(--main-hyperlinks-color); + border-radius: 20px; + color: var(--main-hyperlinks-color); + + font-size: 12px; + padding: 1px 6px; + margin: 0 8px 0 0; +} + +a.feature:hover { + border-color: #13B9FD; +} + +h1 .feature { + vertical-align: middle; + margin: 0 -2px 0 0; +} + +.source-link { + padding: 18px 4px; + font-size: 18px; + vertical-align: middle; +} + +@media (max-width: 840px) { + .source-link { + padding: 7px 2px; + font-size: 10px; + } +} + +#external-links { + float: right; +} + +.btn-group { + position: relative; + display: inline-flex; + vertical-align: middle; +} + +footer { + color: #fff; + background-color: var(--main-footer-background); + width: 100%; +} + +footer p { + margin: 0; +} + +footer .no-break { + white-space: nowrap; +} + +footer .container { + padding-left: 0; + padding-right: 0; +} + +footer a, footer a:hover { + color: #fff; +} + +.markdown.desc { + margin-bottom: 1em; + max-width: 700px; +} + +.markdown h1 { + font-size: 24px; + margin-bottom: 8px; +} + +.markdown h2 { + font-size: 20px; + margin-top: 24px; + margin-bottom: 8px; +} + +.markdown h3 { + font-size: 18px; + margin-bottom: 8px; + color: var(--main-text-color); +} + +.markdown h4 { + font-size: 16px; + margin-bottom: 0; +} + +.markdown li p { + margin: 0; +} + +table { + margin-bottom: 1em; +} + +table, +th, +td { + border: 1px solid lightgrey; + border-collapse: collapse; +} + +th, +td { + padding: 8px; +} + +.gt-separated { + list-style: none; + padding: 0; + margin: 0; +} + +.gt-separated li { + display: inline-block; +} + +.gt-separated li:before { + background-image: url("data:image/svg+xml;utf8,"); + background-position: center; + content: "\00a0"; + margin: 0 6px 0 4px; + padding: 0 3px 0 0; +} + +.gt-separated.dark li:before { + background-image: url("data:image/svg+xml;utf8,"); +} + +.gt-separated li:first-child:before { + background-image: none; + content: ""; + margin: 0; + padding: 0; +} + +.multi-line-signature { + font-size: 17px; + color: #727272; +} + +.multi-line-signature .parameter { + margin-left: 60px; + display: block; + text-indent: -36px; +} + +.breadcrumbs { + padding: 0; + margin: 8px 0 8px 0; + white-space: nowrap; + line-height: 1; +} + +@media screen and (min-width: 840px) { + nav ol.breadcrumbs { + float: left; + } +} + +@media screen and (max-width: 840px) { + .breadcrumbs { + margin: 0 0 24px 0; + overflow-x: hidden; + } +} + +.breadcrumbs .gt-separated .dark .hidden-xs li+li:before { + color: var(--main-h-text); +} + +ol.breadcrumbs li a { + color: var(--main-hyperlinks-color); +} + +.self-crumb { + color: var(--main-h-text); +} + +.self-name { + color: #555; + display: none; +} + +.annotation-list { + list-style: none; + padding: 0; + display: inline; +} + +.comma-separated { + list-style: none; + padding: 0; + display: inline; +} + +.comma-separated li { + display: inline; +} + +.comma-separated li:after { + content: ", "; +} + +.comma-separated li:last-child:after { + content: ""; +} + +.end-with-period li:last-child:after { + content: "."; +} + +.container > section:first-child { + border: 0; +} + +.constructor-modifier { + font-style: italic; +} + +/* Note that the generated HTML for pub packages may have `section` tags + transformed into `div` tags, so we have two selectors here. */ +section.multi-line-signature div.parameters, +div.multi-line-signature div.parameters { + margin-left: 24px; +} + +/* sidebar styles */ + +.sidebar ol { + list-style: none; + line-height: 22px; + margin-top: 0; + margin-bottom: 0; + padding: 0 0 15px 0; +} + +.sidebar h5 a, +.sidebar h5 a:hover { + color: var(--main-sidebar-color); +} + +.sidebar h5, +.sidebar ol li { + text-overflow: ellipsis; + overflow: hidden; + padding: 3px 0 3px 3px; +} + +.sidebar h5 { + color: var(--main-sidebar-color); + font-size: 18px; + margin: 0 0 22px 0; + padding-top: 0; +} + +.sidebar ol li.section-title { + font-size: 18px; + font-weight: normal; + text-transform: uppercase; + padding-top: 25px; +} + +.sidebar ol li.section-subtitle a { + color: inherit; +} + +.sidebar ol li.section-subtitle { + font-weight: 400; + text-transform: uppercase; +} + +.sidebar ol li.section-subitem { + margin-left: 12px; +} + +.sidebar ol li:first-child { + padding-top: 3px; + margin-top: 0; +} + +button { + padding: 0; +} + +#sidenav-left-toggle { + display: none; + vertical-align: text-bottom; + padding: 0; + color: var(--main-icon-color); + user-select: none; + cursor: pointer; +} + +#sidenav-left-toggle:hover { + color: var(--main-hyperlinks-color); +} + +/* left-nav disappears, and can transition in from the left */ +@media screen and (max-width:840px) { + #sidenav-left-toggle { + display: inline; + width: 24px; + height: 24px; + border: none; + margin-right: 24px; + margin-left: 24px; + font-size: 24px; + } + + #overlay-under-drawer.active { + opacity: 0.4; + height: 100%; + z-index: 1999; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: black; + display: block; + } + + .sidebar-offcanvas-left { + left: -100%; + position: fixed; + -webkit-transition:all .25s ease-out; + -o-transition:all .25s ease-out; + transition:all .25s ease-out; + z-index: 2000; + top: 0; + width: 280px; /* works all the way down to an iphone 4 */ + height: 90%; + background-color: var(--main-bg-color); + overflow-y: scroll; /* TODO: how to hide scroll bars? */ + padding: 10px; + margin: 10px 10px; + box-shadow: 5px 5px 5px 5px #444444; + } + + ol#sidebar-nav { + font-size: 18px; + white-space: pre-line; + } + + .sidebar-offcanvas-left.active { + left: 0; /* this animates our drawer into the page */ + } + + .self-name { + display: inline-block; + color: var(--main-hyperlinks-color); + } +} + +.sidebar-offcanvas-left h5 { + margin-bottom: 10px; +} + +.sidebar-offcanvas-left h5:last-of-type { + border: 0; + margin-bottom: 25px; +} + +/* the right nav disappears out of view when the window shrinks */ +@media screen and (max-width: 992px) { + .sidebar-offcanvas-right { + display: none; + } +} + +#overlay-under-drawer { + display: none; +} + +/* find-as-you-type search box */ + +.form-control { + border-radius: 0; + border: 0; +} + +@media screen and (max-width: 840px) { + form.search { + display: none; + } +} + +.typeahead { + width: 200px; + padding: 2px 7px 1px 7px; + line-height: 20px; + outline: none; +} + +.tt-wrapper { + position: relative; + display: inline-block; +} + +.tt-input { + position: relative; + vertical-align: top; +} + +.navbar-right .tt-menu { + right: 0; + left: inherit !important; + width: 540px; + max-height: 280px; + overflow-y: scroll; +} + +.navbar-right { + padding-right: 60px; +} + +.tt-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 100; + font-size: 14px; + margin: 0; + background-color: var(--main-bg-color); + border: 1px solid var(--main-header-color); + -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); + -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2); + box-shadow: 0 5px 10px rgba(0,0,0,.2); +} + + +.typeahead { + padding: 17px 17px 17px 50px; + width: 422px; + height: 20px; + font-size: 13px; + background-image: url("./search.svg"); + background-repeat: no-repeat; + background-position: 4%; + outline: 0; + background-size: 20px; + filter: var(--main-number-filter); + -webkit-filter: var(--main-number-filter); +} + +.search-summary { + margin-bottom: 10px; +} + +a.tt-container { + font-size: 16px; + color: var(--main-hyperlinks-color); +} + +.enter-search-message { + position: -webkit-sticky; + position: sticky; + top: 0; + background-color: #AAA; + padding: 0; + font-size: 14px; + margin: 0; + clear: both; + text-align: center; + color: black; +} + +.tt-suggestion:hover { + cursor: pointer; + color: #fff; + background-color: #0097cf; +} + +.tt-suggestion:hover .search-from-lib { + color: #ddd; +} + +.tt-suggestion.tt-cursor { + color: #fff; + background-color: #0097cf; +} + +.tt-suggestion.tt-cursor .search-from-lib { + color: #ddd; +} + +.tt-suggestion p { + margin: 0; +} + +.tt-container { + font-size: 14px; + margin-bottom: 0; + margin-top: 15px; +} + +.tt-container-text { + color: var(--main-text-color); +} + + +/* Search results formatting for mini results below search bar. */ + +.tt-search-results .tt-container { + margin-top: 5px; + margin-bottom: 5px; +} + +/* Do not show the container as a section. */ +.tt-search-results .tt-container-text { + display: none +} + +/* An inline style. */ +.tt-search-results .tt-suggestion { + color: var(--main-text-color); + margin-top: 5px; + overflow: hidden; + padding-left: 10px; + padding-right: 10px; + text-overflow: ellipsis; + white-space: nowrap; +} + +.tt-search-results .tt-suggestion-title { + font-size: 14px; + padding-right: 5px; +} + +.tt-search-results .tt-suggestion-container { + color: var(--main-keyword-color); + font-size: 14px; + font-style: italic; + padding-right: 5px; +} + +.tt-search-results .one-line-description { + color: var(--main-keyword-color); + display: inline; + margin-left: 0; +} + + +.tt-search-results .one-line-description::before { + content: open-quote; +} + +.tt-search-results .one-line-description::after { + content: close-quote; +} + +/* Search results formatting for `search.html`. */ + +/* A block style. */ +#dartdoc-main-content .tt-suggestion { + color: var(--main-text-color); + margin-top: 5px; + margin-bottom: 10px; + border-style: solid; + border-color: lightgrey; + border-width: 0.5px; +} + +#dartdoc-main-content .tt-suggestion-title { + display: block; + font-weight: 500; + margin: 4px 10px 0; +} + +#dartdoc-main-content .one-line-description { + display: block; + margin: 2px 10px 3px; +} + +/* Do not show a result's container. */ +#dartdoc-main-content .tt-suggestion-container { + display: none; +} + +@media screen and (max-width: 840px) { + .typeahead { + padding: 17px 17px 17px 33px; + width: 240px; + height: 17px; + border: 1px solid #f5f5f5; + background-position: 3%; + margin: 10px 10px 10px 9px; + } + + header { + padding-left: 0; + } +} + +@media screen and (max-width: 320px) { + #sidenav-left-toggle { + margin-right: 10px; + margin-left: 20px; + } + + .self-name { + margin-right: 10px; + } +} + +::placeholder { + filter: brightness(0.85); +} + +.search-body { + border: 1px solid #7f7f7f; + max-width: 400px; + box-shadow: 3px 3px 5px rgba(0,0,0,0.1); +} + +/* Note that the generated HTML for pub packages may have `section` tags + transformed into `div` tags, so we have two selectors here. */ +section#setter, div#setter { + border-top: 1px solid #ddd; + padding-top: 36px; +} + +li.inherited a { + opacity: 0.65; + font-style: italic; +} + +#instance-methods dt.inherited .name, +#instance-properties dt.inherited .name, +#operators dt.inherited .name { + font-weight: 400; + font-style: italic; +} + +#instance-methods dt.inherited .signature, +#instance-properties dt.inherited .signature, +#operators dt.inherited .signature { + font-weight: 400; +} + +@media print { + .subnav, .sidebar { + display: none; + } + + a[href]:after { + content: "" !important; + } +} + +/* github alert styles */ + +.markdown-alert { + margin-top: 1rem; + margin-bottom: 1rem; + padding: 1.25rem; +} + +.markdown-alert>:last-child { + margin-bottom: 0; +} + +.markdown-alert-title { + display: flex; + align-items: center; + gap: 0.4rem; + margin-bottom: 0.5rem; + + font-weight: bold; + -webkit-font-smoothing: antialiased; +} + +.markdown-alert-title:before { + font: 24px / 1 'Material Symbols Outlined'; +} + +/* note, tip, important, warning, caution */ + +.markdown-alert.markdown-alert-note { + background-color: var(--alert-info); +} + +.markdown-alert-note .markdown-alert-title:before { + content: 'info'; +} + +.markdown-alert.markdown-alert-tip { + background-color: var(--alert-tip); +} + +.markdown-alert-tip .markdown-alert-title:before { + content: 'lightbulb'; +} + +.markdown-alert.markdown-alert-important { + background-color: var(--alert-important); +} + +.markdown-alert-important .markdown-alert-title:before { + content: 'feedback'; +} + +.markdown-alert.markdown-alert-warning { + background-color: var(--alert-warning); +} + +.markdown-alert-warning .markdown-alert-title:before { + content: 'warning'; +} + +.markdown-alert.markdown-alert-caution { + background-color: var(--alert-error); +} + +.markdown-alert-caution .markdown-alert-title:before { + content: 'report'; +} diff --git a/example/lib/main.dart b/example/lib/main.dart deleted file mode 100644 index 8bcfa312..00000000 --- a/example/lib/main.dart +++ /dev/null @@ -1,10 +0,0 @@ -import 'package:lemmy_api_client/v3.dart'; - -Future main() async { - // instantiate your lemmy instance with the host uri - const lemmy = LemmyApiV3('voyager.lemmy.ml'); - - final response = await lemmy.run(const GetPosts()); - - print(response); -} diff --git a/example/pubspec.lock b/example/pubspec.lock deleted file mode 100644 index 366c1d8f..00000000 --- a/example/pubspec.lock +++ /dev/null @@ -1,140 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - crypto: - dependency: transitive - description: - name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab - url: "https://pub.dev" - source: hosted - version: "3.0.3" - freezed_annotation: - dependency: transitive - description: - name: freezed_annotation - sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2 - url: "https://pub.dev" - source: hosted - version: "2.4.4" - http: - dependency: transitive - description: - name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 - url: "https://pub.dev" - source: hosted - version: "4.8.1" - lemmy_api_client: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.21.0" - meta: - dependency: transitive - description: - name: meta - sha256: "25dfcaf170a0190f47ca6355bdd4552cb8924b430512ff0cafb8db9bd41fe33b" - url: "https://pub.dev" - source: hosted - version: "1.14.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c - url: "https://pub.dev" - source: hosted - version: "1.3.2" - web: - dependency: transitive - description: - name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" - url: "https://pub.dev" - source: hosted - version: "0.5.1" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" - url: "https://pub.dev" - source: hosted - version: "2.4.5" -sdks: - dart: ">=3.3.0 <4.0.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml deleted file mode 100644 index 75b01a5d..00000000 --- a/example/pubspec.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: lemmy_api_client_example -version: 0.0.0 -description: A new Flutter project. - -publish_to: none - -environment: - sdk: ">=2.14.0 <3.0.0" - -dependencies: - lemmy_api_client: - path: ../ diff --git a/lib/lemmy_api_client.dart b/lib/lemmy_api_client.dart new file mode 100644 index 00000000..c75d42cc --- /dev/null +++ b/lib/lemmy_api_client.dart @@ -0,0 +1,3 @@ +export 'src/client/enums/enums.dart'; +export 'src/client/client.dart'; +export 'src/models/v4/models.dart'; diff --git a/lib/pictrs.dart b/lib/pictrs.dart deleted file mode 100644 index d3c745f1..00000000 --- a/lib/pictrs.dart +++ /dev/null @@ -1,2 +0,0 @@ -export 'src/exceptions.dart'; -export 'src/pictrs.dart'; diff --git a/lib/src/client/account/account.dart b/lib/src/client/account/account.dart new file mode 100644 index 00000000..d10a2e64 --- /dev/null +++ b/lib/src/client/account/account.dart @@ -0,0 +1,7 @@ +import 'package:lemmy_api_client/src/client/client.dart'; + +class Account { + final LemmyClient _client; + + Account(this._client); +} diff --git a/lib/src/client/account/account_helper.dart b/lib/src/client/account/account_helper.dart new file mode 100644 index 00000000..a442f4a9 --- /dev/null +++ b/lib/src/client/account/account_helper.dart @@ -0,0 +1,208 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart' as models; +import 'package:lemmy_api_client/src/client/notification/notification_helper.dart'; +import 'package:lemmy_api_client/src/client/account/account.dart'; + +/// This defines a series of actions that can be performed on an account. +/// +/// This includes account authentication, registration, deletion, and fetching account details. +/// +/// Usage: +/// ```dart +/// // Initialize the client +/// final client = await LemmyClient.initialize(); +/// +/// // Fetch account details +/// client.account.refresh(); +/// +/// // Login +/// client.account.login(username: 'user', password: 'password'); +/// +/// // Logout +/// client.account.logout(); +/// +/// // Register +/// client.account.register(username: 'user', password: 'password'); +/// +/// // Delete +/// client.account.delete(password: 'password'); +/// +/// // Fetch user posts +/// client.account.posts(); +/// +/// // Fetch user comments +/// client.account.comments(); +/// ``` +class AccountHelper { + final LemmyClient _client; + + AccountHelper(this._client); + + Account call({int? id, String? username}) => Account(_client); + + /// Interface to work with [NotificationHelper] instances. + NotificationHelper get notifications => NotificationHelper(_client); + + models.FullAccountView? get info => _client.accountInformation; + + Future refresh() async { + final result = await _client.get(path: '/account'); + + return models.FullAccountView.fromJson(result); + } + + /// Logs in the user with the given username/email and password. + /// If the user has 2FA enabled, the token parameter is required. + /// + /// When the login is successful, the client's [auth] token is updated, and future requests + /// will be authenticated using the new [auth] token. + Future login({required String username, required String password, String? token}) async { + String path = '/account/auth/login'; + if (_client.version == 'v3') path = '/user/login'; + + final result = await _client.post( + path: path, + body: { + 'username_or_email': username, + 'password': password, + 'totp_2fa_token': token, + }, + ); + + final loginResponse = models.LoginResponse.fromJson(result); + if (loginResponse.jwt != null) _client.auth = loginResponse.jwt; + + return loginResponse; + } + + /// Logs out the current authenticated user. + /// + /// If the logout is successful, the client's [auth] token is set to null. + Future logout() async { + final result = await _client.post(path: '/account/auth/logout'); + + final successResponse = models.SuccessResponse.fromJson(result); + if (successResponse.success) { + _client.auth = null; + _client.accountInformation = null; + } + + return successResponse; + } + + /// Registers a new user with the given username/email and password. + /// + /// If the registration is successful, the client's [auth] token is updated, and future requests will be authenticated using the new [auth] token. + /// + /// Different parameters are required based on the server's configuration. For example: + /// - If the server requires email verification, the [email] parameter is required. + /// - If the server requires an application, the [answer] parameter is required. + /// + /// When a captcha is provided, the [captchaUuid] and [captchaAnswer] parameters are both required. + Future register({ + required String username, + required String password, + bool? showNsfw, + String? email, + String? captchaUuid, + String? captchaAnswer, + String? answer, + }) async { + final result = await _client.post( + path: '/account/auth/register', + body: { + 'username': username, + 'password': password, + 'password_verify': password, + 'show_nsfw': showNsfw, + 'email': email, + 'captcha_uuid': captchaUuid, + 'captcha_answer': captchaAnswer, + 'answer': answer, + }, + ); + + final loginResponse = models.LoginResponse.fromJson(result); + if (loginResponse.jwt != null) _client.auth = loginResponse.jwt; + + return loginResponse; + } + + /// Deletes the current authenticated user. This action is irreversible. + /// + /// To delete the account, the user must provide their [password]. Optionally, the user can choose to delete their content. + /// + /// If the delete is successful, the client's [auth] token is set to null and the [accountInformation] is set to null. + Future delete({ + required String password, + bool deleteContent = true, + }) async { + final result = await _client.post( + path: '/account/delete', + body: { + 'password': password, + 'delete_content': deleteContent, + }, + ); + + final successResponse = models.SuccessResponse.fromJson(result); + if (successResponse.success) { + _client.auth = null; + _client.accountInformation = null; + } + + return successResponse; + } + + Future> posts({ + PostSortType? sort, + int? page, + int? limit, + int? communityId, + bool? savedOnly, + }) async { + final userId = _client.accountInformation?.localUserView.person.id; + assert(userId != null, 'User ID is null'); + + final result = await _client.get( + path: '/person', + body: { + 'person_id': userId, + 'sort': sort?.name, + 'page': page, + 'limit': limit, + 'community_id': communityId, + 'saved_only': savedOnly, + }, + ); + + final fullPersonView = models.FullPersonView.fromJson(result); + + return fullPersonView.posts; + } + + Future> comments({ + int? page, + int? limit, + int? communityId, + bool? savedOnly, + }) async { + final userId = _client.accountInformation?.localUserView.person.id; + assert(userId != null, 'User ID is null'); + + final result = await _client.get( + path: '/person', + body: { + 'person_id': userId, + 'page': page, + 'limit': limit, + 'community_id': communityId, + 'saved_only': savedOnly, + }, + ); + + final fullPersonView = models.FullPersonView.fromJson(result); + return fullPersonView.comments; + } +} diff --git a/lib/src/client/auth/auth.dart b/lib/src/client/auth/auth.dart new file mode 100644 index 00000000..e69de29b diff --git a/lib/src/client/client.dart b/lib/src/client/client.dart new file mode 100644 index 00000000..9cd8e961 --- /dev/null +++ b/lib/src/client/client.dart @@ -0,0 +1,154 @@ +import 'dart:convert'; + +import 'package:http/http.dart' as http; + +import 'package:lemmy_api_client/src/client/account/account_helper.dart'; +import 'package:lemmy_api_client/src/client/community/community_helper.dart'; +import 'package:lemmy_api_client/src/client/feed/feed_helper.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart' as models; +import 'package:lemmy_api_client/src/client/site/site_helper.dart'; +import 'package:lemmy_api_client/src/client/user/user_helper.dart'; + +/// A client that interacts with a Lemmy instance. The client must be initialized before it can be used. +/// +/// Example: +/// ```dart +/// final client = LemmyClient(); +/// await client.initialize(); +/// +/// final siteInformation = client.site.info; +/// ``` +class LemmyClient { + /// The HTTP client to use when interacting with the Lemmy instance. + late http.Client httpClient; + + /// The URL of the Lemmy instance, excluding the scheme. + final String instance; + + /// The version of the Lemmy API to use. Defaults to 'v4'. + final String version; + + /// The scheme to use when interacting with the Lemmy instance. Defaults to 'https'. + final String scheme; + + /// The authentication token for the current client instance. + /// This is used to authenticate requests to the Lemmy instance as a given user. + String? auth; + + /// The site information. This is fetched when the client is initialized. + models.FullSiteView siteInformation; + + /// The account information. This is fetched when the client is initialized if the auth parameter is passed in. + models.FullAccountView? accountInformation; + + LemmyClient._( + this.siteInformation, + this.accountInformation, { + required this.instance, + required this.scheme, + required this.version, + this.auth, + }); + + /// Initializes the client with the given parameters. + /// + /// When the client is initialized, we also fetch the instance's site information. + /// If the [auth] parameter is passed in, we also fetch the account information. + static Future initialize({ + String instance = '192.168.50.50', + String scheme = 'http', + String version = 'v4', + String? auth, + }) async { + final siteUrl = Uri(scheme: scheme, host: instance, path: 'api/$version/site'); + final siteResponse = await http.get(siteUrl, headers: {'Authorization': 'Bearer $auth'}); + final fullSiteView = models.FullSiteView.fromJson(jsonDecode(utf8.decode(siteResponse.bodyBytes))); + + final accountUrl = Uri(scheme: scheme, host: instance, path: 'api/$version/account'); + final accountResponse = await http.get(accountUrl, headers: {'Authorization': 'Bearer $auth'}); + + models.FullAccountView? fullAccountView; + + if (accountResponse.statusCode == 200) { + fullAccountView = models.FullAccountView.fromJson(jsonDecode(utf8.decode(accountResponse.bodyBytes))); + } + + return LemmyClient._( + fullSiteView, + fullAccountView, + instance: instance, + scheme: scheme, + version: version, + auth: auth, + ); + } + + /// Interface to work with [SiteHelper] instances. + SiteHelper get site => SiteHelper(this); + + /// Interface to work with [AccountHelper] instances. + AccountHelper get account => AccountHelper(this); + + /// Interface to work with [UserHelper] instances. + UserHelper get user => UserHelper(this); + + CommunityHelper get community => CommunityHelper(this); + + /// Interface to work with [FeedHelper] instances. + FeedHelper get feed => FeedHelper(this); + + /// Helper method to perform GET requests. + Future> get({String? path, Map? body}) async { + body?.removeWhere((key, value) => value == null); + + Map? queryParameters; + + if (body != null) { + queryParameters = {}; + + for (final entry in body.entries) { + queryParameters[entry.key] = entry.value.toString(); + } + } + + final response = await httpClient.get( + Uri( + scheme: scheme, + host: instance, + path: 'api/$version$path', + queryParameters: queryParameters, + ), + headers: {'Authorization': 'Bearer $auth'}, + ); + + return _responseHandler(response); + } + + /// Helper method to perform POST requests. + Future> post({String? path, Map? body}) async { + final response = await httpClient.post( + Uri(scheme: scheme, host: instance, path: 'api/$version$path'), + headers: {'Content-Type': 'application/json', 'Authorization': 'Bearer $auth'}, + body: jsonEncode(body), + ); + + return _responseHandler(response); + } + + Map _responseHandler(http.Response response) { + if (response.statusCode != 200) { + var error = 'Unknown error'; + + try { + final json = jsonDecode(response.body); + error = json['error']; + } on FormatException { + error = response.body; + } + + throw Exception(error); + } + + return jsonDecode(utf8.decode(response.bodyBytes)); + } +} diff --git a/lib/src/client/community/community.dart b/lib/src/client/community/community.dart new file mode 100644 index 00000000..6e4afdf9 --- /dev/null +++ b/lib/src/client/community/community.dart @@ -0,0 +1,70 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +class Community { + final LemmyClient _client; + + /// The id of the community for the given instance. + /// + /// The id of one community may not be the same as the id of the same community on another instance. + /// Therefore, it is recommended to use the name field with the instance instead of the id field. + final int? id; + + /// The name of the community. For example: thunder, or thunder@xyz.tld + /// + /// If the instance is not provided, it will fetch the community from the current instance. + final String? name; + + Community(this._client, {this.id, this.name}); + + /// Fetches the details of a community with the given id or name. + Future details() async { + final result = await _client.get( + path: '/community', + body: { + 'id': id, + 'name': name, + }, + ); + + return CommunityResponse.fromJson(result); + } + + /// Fetches the posts of a community with the given id or name. + Future posts({ + PostSortType? sort, + @deprecated int? page, + String? paginationCursor, + int? limit, + bool? savedOnly, + bool? likedOnly, + bool? dislikedOnly, + bool? showHidden, + bool? showRead, + bool? showNsfw, + bool? markAsRead, + bool? noCommentsOnly, + }) async { + final result = await _client.get( + path: '/post/list', + body: { + 'sort': sort?.name, + 'page': page, + 'pagination_cursor': paginationCursor, + 'limit': limit, + 'saved_only': savedOnly, + 'liked_only': likedOnly, + 'disliked_only': dislikedOnly, + 'show_hidden': showHidden, + 'show_read': showRead, + 'show_nsfw': showNsfw, + 'mark_as_read': markAsRead, + 'no_comments_only': noCommentsOnly, + }, + ); + + final postsReponse = PostsResponse.fromJson(result); + return postsReponse; + } +} diff --git a/lib/src/client/community/community_helper.dart b/lib/src/client/community/community_helper.dart new file mode 100644 index 00000000..ae411b99 --- /dev/null +++ b/lib/src/client/community/community_helper.dart @@ -0,0 +1,58 @@ +import 'package:lemmy_api_client/src/client/community/community.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart' as models; +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; + +/// This defines a series of actions that can be performed on a given community. +/// +/// Usage: +/// ```dart +/// // Initialize the client +/// LemmyClient client = await LemmyClient.initialize(); +/// +/// // Fetch local feed +/// client.feed(type: 'local').posts(); +/// +/// // Fetch subscribed feed +/// client.feed(type: 'subscribed').posts(); +/// client.feed(type: 'subscribed').posts(page: 2, limit: 15); +/// ``` +class CommunityHelper { + final LemmyClient _client; + + CommunityHelper(this._client); + + Community call({int? id, String? name}) => Community(_client, id: id, name: name); + + Future create({ + required String name, + required String title, + String? sidebar, + String? description, + String? icon, + String? banner, + bool? nsfw, + bool? postingRestrictedToMods, + List? discussionLanguages, + CommunityVisibility? visibility, + }) async { + final result = await _client.post( + path: '/community', + body: { + 'name': name, + 'title': title, + 'sidebar': sidebar, + 'description': description, + 'icon': icon, + 'banner': banner, + 'nsfw': nsfw, + 'posting_restricted_to_mods': postingRestrictedToMods, + 'discussion_languages': discussionLanguages, + 'visibility': capitalizeCommunityVisibilityToJson(visibility), + }, + ); + + return models.CommunityResponse.fromJson(result); + } +} diff --git a/lib/src/client/enums/comment_sort_type.dart b/lib/src/client/enums/comment_sort_type.dart new file mode 100644 index 00000000..73ffbd96 --- /dev/null +++ b/lib/src/client/enums/comment_sort_type.dart @@ -0,0 +1,7 @@ +enum CommentSortType { + hot, + top, + newest, + old, + controversial, +} diff --git a/lib/src/client/enums/community_visibility.dart b/lib/src/client/enums/community_visibility.dart new file mode 100644 index 00000000..f60a049c --- /dev/null +++ b/lib/src/client/enums/community_visibility.dart @@ -0,0 +1 @@ +enum CommunityVisibility { public, localOnly, private } diff --git a/lib/src/client/enums/enums.dart b/lib/src/client/enums/enums.dart new file mode 100644 index 00000000..7f79edc1 --- /dev/null +++ b/lib/src/client/enums/enums.dart @@ -0,0 +1,8 @@ +export 'comment_sort_type.dart'; +export 'community_visibility.dart'; +export 'federation_mode.dart'; +export 'listing_type.dart'; +export 'post_listing_mode.dart'; +export 'post_sort_type.dart'; +export 'registration_mode.dart'; +export 'subscribed_type.dart'; diff --git a/lib/src/client/enums/federation_mode.dart b/lib/src/client/enums/federation_mode.dart new file mode 100644 index 00000000..0da2c6fa --- /dev/null +++ b/lib/src/client/enums/federation_mode.dart @@ -0,0 +1,5 @@ +enum FederationMode { + all, + local, + disable, +} diff --git a/lib/src/client/enums/listing_type.dart b/lib/src/client/enums/listing_type.dart new file mode 100644 index 00000000..0e05a790 --- /dev/null +++ b/lib/src/client/enums/listing_type.dart @@ -0,0 +1,6 @@ +enum ListingType { + all, + local, + subscribed, + moderatorView, +} diff --git a/lib/src/client/enums/post_listing_mode.dart b/lib/src/client/enums/post_listing_mode.dart new file mode 100644 index 00000000..c45e0d12 --- /dev/null +++ b/lib/src/client/enums/post_listing_mode.dart @@ -0,0 +1,5 @@ +enum PostListingMode { + list, + card, + smallCard, +} diff --git a/lib/src/client/enums/post_sort_type.dart b/lib/src/client/enums/post_sort_type.dart new file mode 100644 index 00000000..86f01e30 --- /dev/null +++ b/lib/src/client/enums/post_sort_type.dart @@ -0,0 +1,21 @@ +enum PostSortType { + active, + hot, + newPost, + old, + topDay, + topWeek, + topMonth, + topYear, + topAll, + mostComments, + newComments, + topHour, + topSixHour, + topTwelveHour, + topThreeMonths, + topSixMonths, + topNineMonths, + controversial, + scaled +} diff --git a/lib/src/client/enums/registration_mode.dart b/lib/src/client/enums/registration_mode.dart new file mode 100644 index 00000000..17956a7e --- /dev/null +++ b/lib/src/client/enums/registration_mode.dart @@ -0,0 +1,5 @@ +enum RegistrationMode { + closed, + requireApplication, + open, +} diff --git a/lib/src/client/enums/subscribed_type.dart b/lib/src/client/enums/subscribed_type.dart new file mode 100644 index 00000000..35eca946 --- /dev/null +++ b/lib/src/client/enums/subscribed_type.dart @@ -0,0 +1 @@ +enum SubscribedType { subscribed, notSubscribed, pending, approvalRequired } diff --git a/lib/src/client/feed/feed.dart b/lib/src/client/feed/feed.dart new file mode 100644 index 00000000..b018709e --- /dev/null +++ b/lib/src/client/feed/feed.dart @@ -0,0 +1,47 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +class Feed { + final LemmyClient _client; + + final ListingType listingType; + + Feed(this._client, {required this.listingType}); + + Future posts({ + PostSortType? sort, + @deprecated int? page, + String? paginationCursor, + int? limit, + bool? savedOnly, + bool? likedOnly, + bool? dislikedOnly, + bool? showHidden, + bool? showRead, + bool? showNsfw, + bool? markAsRead, + bool? noCommentsOnly, + }) async { + final result = await _client.get( + path: '/post/list', + body: { + 'sort': sort?.name, + 'page': page, + 'pagination_cursor': paginationCursor, + 'limit': limit, + 'saved_only': savedOnly, + 'liked_only': likedOnly, + 'disliked_only': dislikedOnly, + 'show_hidden': showHidden, + 'show_read': showRead, + 'show_nsfw': showNsfw, + 'mark_as_read': markAsRead, + 'no_comments_only': noCommentsOnly, + }, + ); + + final postsReponse = PostsResponse.fromJson(result); + return postsReponse; + } +} diff --git a/lib/src/client/feed/feed_helper.dart b/lib/src/client/feed/feed_helper.dart new file mode 100644 index 00000000..b4c54120 --- /dev/null +++ b/lib/src/client/feed/feed_helper.dart @@ -0,0 +1,26 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/feed/feed.dart'; + +/// This defines a series of actions that can be performed on a given feed. +/// This includes fetching local, subscibed, moderator, and all feeds. +/// +/// Usage: +/// ```dart +/// // Initialize the client +/// LemmyClient client = await LemmyClient.initialize(); +/// +/// // Fetch local feed +/// client.feed(type: 'local').posts(); +/// +/// // Fetch subscribed feed +/// client.feed(type: 'subscribed').posts(); +/// client.feed(type: 'subscribed').posts(page: 2, limit: 15); +/// ``` +class FeedHelper { + final LemmyClient _client; + + FeedHelper(this._client); + + Feed call({required ListingType listingType}) => Feed(_client, listingType: listingType); +} diff --git a/lib/src/client/notification/notification.dart b/lib/src/client/notification/notification.dart new file mode 100644 index 00000000..652c50d5 --- /dev/null +++ b/lib/src/client/notification/notification.dart @@ -0,0 +1,7 @@ +import 'package:lemmy_api_client/src/client/client.dart'; + +class Notification { + final LemmyClient _client; + + Notification(this._client); +} diff --git a/lib/src/client/notification/notification_helper.dart b/lib/src/client/notification/notification_helper.dart new file mode 100644 index 00000000..d8f61f4d --- /dev/null +++ b/lib/src/client/notification/notification_helper.dart @@ -0,0 +1,16 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart' as models; + +class NotificationHelper { + final LemmyClient _client; + + NotificationHelper(this._client); + + Future unread() async { + final result = await _client.get(path: '/account/unread_count'); + + final models.UnreadCountResponse unreadCountResponse = models.UnreadCountResponse.fromJson(result); + + return unreadCountResponse.mentions + unreadCountResponse.privateMessages + unreadCountResponse.replies; + } +} diff --git a/lib/src/client/site/site.dart b/lib/src/client/site/site.dart new file mode 100644 index 00000000..fe02823a --- /dev/null +++ b/lib/src/client/site/site.dart @@ -0,0 +1,7 @@ +import 'package:lemmy_api_client/src/client/client.dart'; + +class Site { + final LemmyClient _client; + + Site(this._client); +} diff --git a/lib/src/client/site/site_helper.dart b/lib/src/client/site/site_helper.dart new file mode 100644 index 00000000..a5857906 --- /dev/null +++ b/lib/src/client/site/site_helper.dart @@ -0,0 +1,25 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart' as models; +import 'package:lemmy_api_client/src/client/site/site.dart'; + +/// This defines a series of actions that can be performed on a given site. +class SiteHelper { + final LemmyClient _client; + + SiteHelper(this._client); + + Site call({required String instance}) => Site(_client); + + models.FullSiteView get info => _client.siteInformation; + + /// Refreshes the site information. + /// + /// When successful, the client's site information is also updated. + Future refresh() async { + final result = await _client.get(path: '/site'); + final fullSiteView = models.FullSiteView.fromJson(result); + + _client.siteInformation = fullSiteView; + return fullSiteView; + } +} diff --git a/lib/src/client/user/user.dart b/lib/src/client/user/user.dart new file mode 100644 index 00000000..6a567249 --- /dev/null +++ b/lib/src/client/user/user.dart @@ -0,0 +1,126 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +class User { + final LemmyClient _client; + + final int? id; + + final String? username; + + User(this._client, {this.id, this.username}); + + Future details() async { + String path = '/person'; + if (_client.version == 'v3') path = '/user'; + + final result = await _client.get( + path: path, + body: { + 'person_id': id, + 'username': username, + }, + ); + + return FullPersonView.fromJson(result); + } + + /// Blocks a user by their [id]. + /// + /// If the user [id] is not provided, it fetches the user details first to get the user [id]. + Future block() async { + int? id = this.id; + + String path = '/account/block/person'; + if (_client.version == 'v3') path = '/user/block'; + + // Fetch the user id if it is not provided + if (id == null) { + final fullPersonView = await details(); + id = fullPersonView.personView.person.id; + } + + final result = await _client.post( + path: path, + body: { + 'person_id': id, + 'block': true, + }, + ); + + return BlockPersonResponse.fromJson(result); + } + + /// Unblocks a user by their [id]. + /// + /// If the user [id] is not provided, it fetches the user details first to get the user [id]. + Future unblock() async { + int? id = this.id; + + String path = '/account/block/person'; + if (_client.version == 'v3') path = '/user/block'; + + // Fetch the user id if it is not provided + if (id == null) { + final fullPersonView = await details(); + id = fullPersonView.personView.person.id; + } + + final result = await _client.post( + path: path, + body: { + 'person_id': id, + 'block': false, + }, + ); + + return BlockPersonResponse.fromJson(result); + } + + Future> posts({ + PostSortType? sort, + int? page, + int? limit, + int? communityId, + bool? savedOnly, + }) async { + final result = await _client.get( + path: '/person', + body: { + 'person_id': id, + 'username': username, + 'sort': sort?.name, + 'page': page, + 'limit': limit, + 'community_id': communityId, + 'saved_only': savedOnly, + }, + ); + + final fullPersonView = FullPersonView.fromJson(result); + return fullPersonView.posts; + } + + Future> comments({ + int? page, + int? limit, + int? communityId, + bool? savedOnly, + }) async { + final result = await _client.get( + path: '/person', + body: { + 'person_id': id, + 'username': username, + 'page': page, + 'limit': limit, + 'community_id': communityId, + 'saved_only': savedOnly, + }, + ); + + final fullPersonView = FullPersonView.fromJson(result); + return fullPersonView.comments; + } +} diff --git a/lib/src/client/user/user_helper.dart b/lib/src/client/user/user_helper.dart new file mode 100644 index 00000000..6bc1316b --- /dev/null +++ b/lib/src/client/user/user_helper.dart @@ -0,0 +1,30 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/user/user.dart'; + +/// This defines a series of actions that can be performed on a given user. +/// This includes fetching user details, posts, comments, etc. +/// +/// Usage: +/// ```dart +/// // Initialize the client +/// final client = await LemmyClient.initialize(); +/// +/// // Fetch user details +/// client.user(id: 1).details(); +/// client.user(username: 'user').details(); +/// +/// // Fetch user posts +/// client.user(username: 'user').posts(); +/// client.user(username: 'user').posts(page: 2, limit: 15); +/// +/// // Fetch user comments +/// client.user(username: 'user').comments(); +/// client.user(username: 'user').comments(page: 2, limit: 15); +/// ``` +class UserHelper { + final LemmyClient _client; + + UserHelper(this._client); + + User call({int? id, String? username}) => User(_client, id: id, username: username); +} diff --git a/lib/src/client/utils/serialization_methods.dart b/lib/src/client/utils/serialization_methods.dart new file mode 100644 index 00000000..5c6462a5 --- /dev/null +++ b/lib/src/client/utils/serialization_methods.dart @@ -0,0 +1,94 @@ +import 'package:lemmy_api_client/src/client/enums/enums.dart'; + +CommunityVisibility lowercaseCommunityVisibilityFromJson(String? value) { + if (value == null) return CommunityVisibility.public; + return CommunityVisibility.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizeCommunityVisibilityToJson(CommunityVisibility? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +SubscribedType lowercaseSubscribedTypeFromJson(String? value) { + if (value == null) return SubscribedType.notSubscribed; + return SubscribedType.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizeSubscribedTypeToJson(SubscribedType? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +ListingType lowercaseListingTypeFromJson(String? value) { + if (value == null) return ListingType.all; + return ListingType.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizeListingTypeToJson(ListingType? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +RegistrationMode lowercaseRegistrationModeFromJson(String? value) { + if (value == null) return RegistrationMode.closed; + return RegistrationMode.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizeRegistrationModeToJson(RegistrationMode? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +PostListingMode lowercasePostListingModeFromJson(String? value) { + if (value == null) return PostListingMode.list; + return PostListingMode.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizePostListingModeToJson(PostListingMode? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +PostSortType lowercasePostSortTypeFromJson(String? value) { + if (value == null) return PostSortType.hot; + return PostSortType.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizePostSortTypeToJson(PostSortType? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +CommentSortType lowercaseCommentSortTypeFromJson(String? value) { + if (value == null) return CommentSortType.hot; + return CommentSortType.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizeCommentSortTypeToJson(CommentSortType? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +FederationMode lowercaseFederationModeFromJson(String? value) { + if (value == null) return FederationMode.disable; + return FederationMode.values.firstWhere((e) => e.name == changeFirstLetterCase(value, 'lower')); +} + +String? capitalizeFederationModeToJson(FederationMode? value) { + if (value == null) return null; + return changeFirstLetterCase(value.name, 'upper'); +} + +String changeFirstLetterCase(String word, String caseType) { + if (word.isEmpty) return word; + + switch (caseType.toLowerCase()) { + case 'lower': + return word[0].toLowerCase() + word.substring(1); + case 'upper': + return word[0].toUpperCase() + word.substring(1); + default: + return word; + } +} diff --git a/lib/src/enums/v3/comment_sort_type.dart b/lib/src/enums/v3/comment_sort_type.dart new file mode 100644 index 00000000..40aa908a --- /dev/null +++ b/lib/src/enums/v3/comment_sort_type.dart @@ -0,0 +1,19 @@ +enum CommentSortTypeV3 { + hot('Hot'), + top('Top'), + newest('New'), + old('Old'), + controversial('Controversial'); + + final String value; + const CommentSortTypeV3(this.value); + + factory CommentSortTypeV3.fromJson(dynamic value) { + return value is int ? values[value] : values.firstWhere((e) => e.value == value); + } + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/community_visibility_type.dart b/lib/src/enums/v3/community_visibility_type.dart new file mode 100644 index 00000000..f06592ef --- /dev/null +++ b/lib/src/enums/v3/community_visibility_type.dart @@ -0,0 +1,16 @@ +enum CommunityVisibilityV3 { + public('Public'), + localOnly('LocalOnly'); + + final String value; + const CommunityVisibilityV3(this.value); + + factory CommunityVisibilityV3.fromJson(dynamic value) { + return value is int ? values[value] : values.firstWhere((e) => e.value == value); + } + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/v3/enums/enums.dart b/lib/src/enums/v3/enums.dart similarity index 100% rename from lib/src/v3/enums/enums.dart rename to lib/src/enums/v3/enums.dart diff --git a/lib/src/enums/v3/listing_type.dart b/lib/src/enums/v3/listing_type.dart new file mode 100644 index 00000000..850827aa --- /dev/null +++ b/lib/src/enums/v3/listing_type.dart @@ -0,0 +1,18 @@ +enum ListingTypeV3 { + all('All'), + local('Local'), + subscribed('Subscribed'), + moderatorView('ModeratorView'); + + final String value; + const ListingTypeV3(this.value); + + factory ListingTypeV3.fromJson(dynamic value) { + return value is int ? values[value] : values.firstWhere((e) => e.value == value); + } + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/modlog_action_type.dart b/lib/src/enums/v3/modlog_action_type.dart new file mode 100644 index 00000000..e6164b97 --- /dev/null +++ b/lib/src/enums/v3/modlog_action_type.dart @@ -0,0 +1,28 @@ +enum ModlogActionTypeV3 { + all('All'), + modRemovePost('ModRemovePost'), + modLockPost('ModLockPost'), + modFeaturePost('ModFeaturePost'), + modRemoveComment('ModRemoveComment'), + modRemoveCommunity('ModRemoveCommunity'), + modBanFromCommunity('ModBanFromCommunity'), + modAddCommunity('ModAddCommunity'), + modTransferCommunity('ModTransferCommunity'), + modAdd('ModAdd'), + modBan('ModBan'), + modHideCommunity('ModHideCommunity'), + adminPurgePerson('AdminPurgePerson'), + adminPurgeCommunity('AdminPurgeCommunity'), + adminPurgePost('AdminPurgePost'), + adminPurgeComment('AdminPurgeComment'); + + final String value; + const ModlogActionTypeV3(this.value); + + factory ModlogActionTypeV3.fromJson(String value) => values.firstWhere((e) => e.value == value); + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/post_feature_type.dart b/lib/src/enums/v3/post_feature_type.dart new file mode 100644 index 00000000..b8932657 --- /dev/null +++ b/lib/src/enums/v3/post_feature_type.dart @@ -0,0 +1,14 @@ +enum PostFeatureTypeV3 { + local('Local'), + community('Community'); + + final String value; + const PostFeatureTypeV3(this.value); + + factory PostFeatureTypeV3.fromJson(String value) => values.firstWhere((e) => e.value == value); + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/registration_mode.dart b/lib/src/enums/v3/registration_mode.dart new file mode 100644 index 00000000..2e5d3d3f --- /dev/null +++ b/lib/src/enums/v3/registration_mode.dart @@ -0,0 +1,15 @@ +enum RegistrationModeV3 { + closed('Closed'), + requireApplication('RequireApplication'), + open('Open'); + + final String value; + const RegistrationModeV3(this.value); + + factory RegistrationModeV3.fromJson(String value) => values.firstWhere((e) => e.value == value); + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/search_type.dart b/lib/src/enums/v3/search_type.dart new file mode 100644 index 00000000..163e63f2 --- /dev/null +++ b/lib/src/enums/v3/search_type.dart @@ -0,0 +1,18 @@ +enum SearchTypeV3 { + all('All'), + comments('Comments'), + posts('Posts'), + communities('Communities'), + users('Users'), + url('Url'); + + final String value; + const SearchTypeV3(this.value); + + factory SearchTypeV3.fromJson(String value) => values.firstWhere((e) => e.value == value); + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/sort_type.dart b/lib/src/enums/v3/sort_type.dart new file mode 100644 index 00000000..5e39b510 --- /dev/null +++ b/lib/src/enums/v3/sort_type.dart @@ -0,0 +1,33 @@ +enum SortTypeV3 { + active('Active'), + hot('Hot'), + newest('New'), + old('Old'), + topDay('TopDay'), + topWeek('TopWeek'), + topMonth('TopMonth'), + topYear('TopYear'), + topAll('TopAll'), + mostComments('MostComments'), + newComments('NewComments'), + topHour('TopHour'), + topSixHour('TopSixHour'), + topTwelveHour('TopTwelveHour'), + topThreeMonths('TopThreeMonths'), + topSixMonths('TopSixMonths'), + topNineMonths('TopNineMonths'), + controversial('Controversial'), + scaled('Scaled'); + + final String value; + const SortTypeV3(this.value); + + factory SortTypeV3.fromJson(dynamic value) { + return value is int ? values[value] : values.firstWhere((e) => e.value == value); + } + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/enums/v3/subscribed_type.dart b/lib/src/enums/v3/subscribed_type.dart new file mode 100644 index 00000000..e4f66d31 --- /dev/null +++ b/lib/src/enums/v3/subscribed_type.dart @@ -0,0 +1,15 @@ +enum SubscribedTypeV3 { + subscribed('Subscribed'), + notSubscribed('NotSubscribed'), + pending('Pending'); + + final String value; + const SubscribedTypeV3(this.value); + + factory SubscribedTypeV3.fromJson(String value) => values.firstWhere((e) => e.value == value); + + String toJson() => value; + + @override + String toString() => value; +} diff --git a/lib/src/exceptions.dart b/lib/src/exceptions.dart deleted file mode 100644 index 28060c30..00000000 --- a/lib/src/exceptions.dart +++ /dev/null @@ -1,10 +0,0 @@ -class LemmyApiException implements Exception { - final String _message; - - const LemmyApiException(this._message); - - String get message => _message; - - @override - String toString() => '$runtimeType: $message'; -} diff --git a/lib/src/models/v3/core/admin_purge_comment.dart b/lib/src/models/v3/core/admin_purge_comment.dart new file mode 100644 index 00000000..e8e875b6 --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_comment.dart @@ -0,0 +1,27 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'admin_purge_comment.g.dart'; + +@JsonSerializable() +class AdminPurgeCommentV3 { + final int id; + final int adminPersonId; + final int postId; + final String? reason; + @JsonKey(name: 'when_') + final DateTime when; + + AdminPurgeCommentV3({ + required this.id, + required this.adminPersonId, + required this.postId, + this.reason, + required this.when, + }); + + // From JSON + factory AdminPurgeCommentV3.fromJson(Map json) => _$AdminPurgeCommentV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgeCommentV3ToJson(this); +} diff --git a/lib/src/models/v3/core/admin_purge_comment.g.dart b/lib/src/models/v3/core/admin_purge_comment.g.dart new file mode 100644 index 00000000..1e5401f1 --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_comment.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_comment.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgeCommentV3 _$AdminPurgeCommentV3FromJson(Map json) => + AdminPurgeCommentV3( + id: (json['id'] as num).toInt(), + adminPersonId: (json['admin_person_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + reason: json['reason'] as String?, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$AdminPurgeCommentV3ToJson( + AdminPurgeCommentV3 instance) => + { + 'id': instance.id, + 'admin_person_id': instance.adminPersonId, + 'post_id': instance.postId, + if (instance.reason case final value?) 'reason': value, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/admin_purge_community.dart b/lib/src/models/v3/core/admin_purge_community.dart new file mode 100644 index 00000000..1b9bbe9d --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_community.dart @@ -0,0 +1,25 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'admin_purge_community.g.dart'; + +@JsonSerializable() +class AdminPurgeCommunityV3 { + final int id; + final int adminPersonId; + final String? reason; + @JsonKey(name: 'when_') + final DateTime when; + + AdminPurgeCommunityV3({ + required this.id, + required this.adminPersonId, + this.reason, + required this.when, + }); + + // From JSON + factory AdminPurgeCommunityV3.fromJson(Map json) => _$AdminPurgeCommunityV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgeCommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/admin_purge_community.g.dart b/lib/src/models/v3/core/admin_purge_community.g.dart new file mode 100644 index 00000000..51e52c34 --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_community.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgeCommunityV3 _$AdminPurgeCommunityV3FromJson( + Map json) => + AdminPurgeCommunityV3( + id: (json['id'] as num).toInt(), + adminPersonId: (json['admin_person_id'] as num).toInt(), + reason: json['reason'] as String?, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$AdminPurgeCommunityV3ToJson( + AdminPurgeCommunityV3 instance) => + { + 'id': instance.id, + 'admin_person_id': instance.adminPersonId, + if (instance.reason case final value?) 'reason': value, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/admin_purge_person.dart b/lib/src/models/v3/core/admin_purge_person.dart new file mode 100644 index 00000000..d1a16312 --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_person.dart @@ -0,0 +1,25 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'admin_purge_person.g.dart'; + +@JsonSerializable() +class AdminPurgePersonV3 { + final int id; + final int adminPersonId; + final String? reason; + @JsonKey(name: 'when_') + final DateTime when; + + AdminPurgePersonV3({ + required this.id, + required this.adminPersonId, + this.reason, + required this.when, + }); + + // From JSON + factory AdminPurgePersonV3.fromJson(Map json) => _$AdminPurgePersonV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgePersonV3ToJson(this); +} diff --git a/lib/src/models/v3/core/admin_purge_person.g.dart b/lib/src/models/v3/core/admin_purge_person.g.dart new file mode 100644 index 00000000..cfe64038 --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_person.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_person.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgePersonV3 _$AdminPurgePersonV3FromJson(Map json) => + AdminPurgePersonV3( + id: (json['id'] as num).toInt(), + adminPersonId: (json['admin_person_id'] as num).toInt(), + reason: json['reason'] as String?, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$AdminPurgePersonV3ToJson(AdminPurgePersonV3 instance) => + { + 'id': instance.id, + 'admin_person_id': instance.adminPersonId, + if (instance.reason case final value?) 'reason': value, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/admin_purge_post.dart b/lib/src/models/v3/core/admin_purge_post.dart new file mode 100644 index 00000000..1ae04c78 --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_post.dart @@ -0,0 +1,27 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'admin_purge_post.g.dart'; + +@JsonSerializable() +class AdminPurgePostV3 { + final int id; + final int adminPersonId; + final int communityId; + final String? reason; + @JsonKey(name: 'when_') + final DateTime when; + + AdminPurgePostV3({ + required this.id, + required this.adminPersonId, + required this.communityId, + this.reason, + required this.when, + }); + + // From JSON + factory AdminPurgePostV3.fromJson(Map json) => _$AdminPurgePostV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgePostV3ToJson(this); +} diff --git a/lib/src/models/v3/core/admin_purge_post.g.dart b/lib/src/models/v3/core/admin_purge_post.g.dart new file mode 100644 index 00000000..963c26aa --- /dev/null +++ b/lib/src/models/v3/core/admin_purge_post.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_post.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgePostV3 _$AdminPurgePostV3FromJson(Map json) => + AdminPurgePostV3( + id: (json['id'] as num).toInt(), + adminPersonId: (json['admin_person_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + reason: json['reason'] as String?, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$AdminPurgePostV3ToJson(AdminPurgePostV3 instance) => + { + 'id': instance.id, + 'admin_person_id': instance.adminPersonId, + 'community_id': instance.communityId, + if (instance.reason case final value?) 'reason': value, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/comment.dart b/lib/src/models/v3/core/comment.dart new file mode 100644 index 00000000..e502c118 --- /dev/null +++ b/lib/src/models/v3/core/comment.dart @@ -0,0 +1,42 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'comment.g.dart'; + +@JsonSerializable() +class CommentV3 { + final int id; + final int creatorId; + final int postId; + final String content; + final bool removed; + final DateTime published; + final DateTime? updated; + final bool deleted; + final String apId; + final bool local; + final String path; + final bool distinguished; + final int languageId; + + CommentV3({ + required this.id, + required this.creatorId, + required this.postId, + required this.content, + required this.removed, + required this.published, + this.updated, + required this.deleted, + required this.apId, + required this.local, + required this.path, + required this.distinguished, + required this.languageId, + }); + + // From JSON + factory CommentV3.fromJson(Map json) => _$CommentV3FromJson(json); + + // To JSON + Map toJson() => _$CommentV3ToJson(this); +} diff --git a/lib/src/models/v3/core/comment.g.dart b/lib/src/models/v3/core/comment.g.dart new file mode 100644 index 00000000..c9ba8985 --- /dev/null +++ b/lib/src/models/v3/core/comment.g.dart @@ -0,0 +1,42 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentV3 _$CommentV3FromJson(Map json) => CommentV3( + id: (json['id'] as num).toInt(), + creatorId: (json['creator_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + content: json['content'] as String, + removed: json['removed'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + deleted: json['deleted'] as bool, + apId: json['ap_id'] as String, + local: json['local'] as bool, + path: json['path'] as String, + distinguished: json['distinguished'] as bool, + languageId: (json['language_id'] as num).toInt(), + ); + +Map _$CommentV3ToJson(CommentV3 instance) => { + 'id': instance.id, + 'creator_id': instance.creatorId, + 'post_id': instance.postId, + 'content': instance.content, + 'removed': instance.removed, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'deleted': instance.deleted, + 'ap_id': instance.apId, + 'local': instance.local, + 'path': instance.path, + 'distinguished': instance.distinguished, + 'language_id': instance.languageId, + }; diff --git a/lib/src/models/v3/core/comment_aggregates.dart b/lib/src/models/v3/core/comment_aggregates.dart new file mode 100644 index 00000000..72bf1109 --- /dev/null +++ b/lib/src/models/v3/core/comment_aggregates.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'comment_aggregates.g.dart'; + +@JsonSerializable() +class CommentAggregatesV3 { + final int commentId; + final int score; + final int upvotes; + final int downvotes; + final DateTime published; + final int childCount; + + CommentAggregatesV3({ + required this.commentId, + required this.score, + required this.upvotes, + required this.downvotes, + required this.published, + required this.childCount, + }); + + // From JSON + factory CommentAggregatesV3.fromJson(Map json) => _$CommentAggregatesV3FromJson(json); + + // To JSON + Map toJson() => _$CommentAggregatesV3ToJson(this); +} diff --git a/lib/src/models/v3/core/comment_aggregates.g.dart b/lib/src/models/v3/core/comment_aggregates.g.dart new file mode 100644 index 00000000..7b5e1a8d --- /dev/null +++ b/lib/src/models/v3/core/comment_aggregates.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentAggregatesV3 _$CommentAggregatesV3FromJson(Map json) => + CommentAggregatesV3( + commentId: (json['comment_id'] as num).toInt(), + score: (json['score'] as num).toInt(), + upvotes: (json['upvotes'] as num).toInt(), + downvotes: (json['downvotes'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + childCount: (json['child_count'] as num).toInt(), + ); + +Map _$CommentAggregatesV3ToJson( + CommentAggregatesV3 instance) => + { + 'comment_id': instance.commentId, + 'score': instance.score, + 'upvotes': instance.upvotes, + 'downvotes': instance.downvotes, + 'published': instance.published.toIso8601String(), + 'child_count': instance.childCount, + }; diff --git a/lib/src/models/v3/core/comment_reply.dart b/lib/src/models/v3/core/comment_reply.dart new file mode 100644 index 00000000..5e461fce --- /dev/null +++ b/lib/src/models/v3/core/comment_reply.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'comment_reply.g.dart'; + +@JsonSerializable() +class CommentReplyV3 { + final int id; + final int recipientId; + final int commentId; + final bool read; + final DateTime published; + + CommentReplyV3({ + required this.id, + required this.recipientId, + required this.commentId, + required this.read, + required this.published, + }); + + // From JSON + factory CommentReplyV3.fromJson(Map json) => _$CommentReplyV3FromJson(json); + + // To JSON + Map toJson() => _$CommentReplyV3ToJson(this); +} diff --git a/lib/src/models/v3/core/comment_reply.g.dart b/lib/src/models/v3/core/comment_reply.g.dart new file mode 100644 index 00000000..53e57239 --- /dev/null +++ b/lib/src/models/v3/core/comment_reply.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_reply.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentReplyV3 _$CommentReplyV3FromJson(Map json) => + CommentReplyV3( + id: (json['id'] as num).toInt(), + recipientId: (json['recipient_id'] as num).toInt(), + commentId: (json['comment_id'] as num).toInt(), + read: json['read'] as bool, + published: DateTime.parse(json['published'] as String), + ); + +Map _$CommentReplyV3ToJson(CommentReplyV3 instance) => + { + 'id': instance.id, + 'recipient_id': instance.recipientId, + 'comment_id': instance.commentId, + 'read': instance.read, + 'published': instance.published.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/comment_report.dart b/lib/src/models/v3/core/comment_report.dart new file mode 100644 index 00000000..0471a9e9 --- /dev/null +++ b/lib/src/models/v3/core/comment_report.dart @@ -0,0 +1,34 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'comment_report.g.dart'; + +@JsonSerializable() +class CommentReportV3 { + final int id; + final int creatorId; + final int commentId; + final String originalCommentText; + final String reason; + final bool resolved; + final int? resolverId; + final DateTime published; + final DateTime? updated; + + CommentReportV3({ + required this.id, + required this.creatorId, + required this.commentId, + required this.originalCommentText, + required this.reason, + required this.resolved, + this.resolverId, + required this.published, + this.updated, + }); + + // From JSON + factory CommentReportV3.fromJson(Map json) => _$CommentReportV3FromJson(json); + + // To JSON + Map toJson() => _$CommentReportV3ToJson(this); +} diff --git a/lib/src/models/v3/core/comment_report.g.dart b/lib/src/models/v3/core/comment_report.g.dart new file mode 100644 index 00000000..c46f67c5 --- /dev/null +++ b/lib/src/models/v3/core/comment_report.g.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_report.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentReportV3 _$CommentReportV3FromJson(Map json) => + CommentReportV3( + id: (json['id'] as num).toInt(), + creatorId: (json['creator_id'] as num).toInt(), + commentId: (json['comment_id'] as num).toInt(), + originalCommentText: json['original_comment_text'] as String, + reason: json['reason'] as String, + resolved: json['resolved'] as bool, + resolverId: (json['resolver_id'] as num?)?.toInt(), + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$CommentReportV3ToJson(CommentReportV3 instance) => + { + 'id': instance.id, + 'creator_id': instance.creatorId, + 'comment_id': instance.commentId, + 'original_comment_text': instance.originalCommentText, + 'reason': instance.reason, + 'resolved': instance.resolved, + if (instance.resolverId case final value?) 'resolver_id': value, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v3/core/community.dart b/lib/src/models/v3/core/community.dart new file mode 100644 index 00000000..137ebd52 --- /dev/null +++ b/lib/src/models/v3/core/community.dart @@ -0,0 +1,52 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; + +part 'community.g.dart'; + +@JsonSerializable() +class CommunityV3 { + final int id; + final String name; + final String title; + final String? description; + final bool removed; + final DateTime published; + final DateTime? updated; + final bool deleted; + final bool nsfw; + final String actorId; + final bool local; + final String? icon; + final String? banner; + final bool hidden; + final bool postingRestrictedToMods; + final int instanceId; + final CommunityVisibilityV3? visibility; + + CommunityV3({ + required this.id, + required this.name, + required this.title, + this.description, + required this.removed, + required this.published, + this.updated, + required this.deleted, + required this.nsfw, + required this.actorId, + required this.local, + this.icon, + this.banner, + required this.hidden, + required this.postingRestrictedToMods, + required this.instanceId, + this.visibility, + }); + + // From JSON + factory CommunityV3.fromJson(Map json) => _$CommunityV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/community.g.dart b/lib/src/models/v3/core/community.g.dart new file mode 100644 index 00000000..03c3335b --- /dev/null +++ b/lib/src/models/v3/core/community.g.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityV3 _$CommunityV3FromJson(Map json) => CommunityV3( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + title: json['title'] as String, + description: json['description'] as String?, + removed: json['removed'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + deleted: json['deleted'] as bool, + nsfw: json['nsfw'] as bool, + actorId: json['actor_id'] as String, + local: json['local'] as bool, + icon: json['icon'] as String?, + banner: json['banner'] as String?, + hidden: json['hidden'] as bool, + postingRestrictedToMods: json['posting_restricted_to_mods'] as bool, + instanceId: (json['instance_id'] as num).toInt(), + visibility: json['visibility'] == null + ? null + : CommunityVisibilityV3.fromJson(json['visibility']), + ); + +Map _$CommunityV3ToJson(CommunityV3 instance) => + { + 'id': instance.id, + 'name': instance.name, + 'title': instance.title, + if (instance.description case final value?) 'description': value, + 'removed': instance.removed, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'deleted': instance.deleted, + 'nsfw': instance.nsfw, + 'actor_id': instance.actorId, + 'local': instance.local, + if (instance.icon case final value?) 'icon': value, + if (instance.banner case final value?) 'banner': value, + 'hidden': instance.hidden, + 'posting_restricted_to_mods': instance.postingRestrictedToMods, + 'instance_id': instance.instanceId, + if (instance.visibility case final value?) 'visibility': value, + }; diff --git a/lib/src/models/v3/core/community_aggregates.dart b/lib/src/models/v3/core/community_aggregates.dart new file mode 100644 index 00000000..f777310f --- /dev/null +++ b/lib/src/models/v3/core/community_aggregates.dart @@ -0,0 +1,36 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'community_aggregates.g.dart'; + +@JsonSerializable() +class CommunityAggregatesV3 { + final int communityId; + final int subscribers; + final int posts; + final int comments; + final DateTime published; + final int usersActiveDay; + final int usersActiveWeek; + final int usersActiveMonth; + final int usersActiveHalfYear; + final int? subscribersLocal; + + CommunityAggregatesV3({ + required this.communityId, + required this.subscribers, + required this.posts, + required this.comments, + required this.published, + required this.usersActiveDay, + required this.usersActiveWeek, + required this.usersActiveMonth, + required this.usersActiveHalfYear, + this.subscribersLocal, + }); + + // From JSON + factory CommunityAggregatesV3.fromJson(Map json) => _$CommunityAggregatesV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityAggregatesV3ToJson(this); +} diff --git a/lib/src/models/v3/core/community_aggregates.g.dart b/lib/src/models/v3/core/community_aggregates.g.dart new file mode 100644 index 00000000..e0f80613 --- /dev/null +++ b/lib/src/models/v3/core/community_aggregates.g.dart @@ -0,0 +1,38 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityAggregatesV3 _$CommunityAggregatesV3FromJson( + Map json) => + CommunityAggregatesV3( + communityId: (json['community_id'] as num).toInt(), + subscribers: (json['subscribers'] as num).toInt(), + posts: (json['posts'] as num).toInt(), + comments: (json['comments'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + usersActiveDay: (json['users_active_day'] as num).toInt(), + usersActiveWeek: (json['users_active_week'] as num).toInt(), + usersActiveMonth: (json['users_active_month'] as num).toInt(), + usersActiveHalfYear: (json['users_active_half_year'] as num).toInt(), + subscribersLocal: (json['subscribers_local'] as num?)?.toInt(), + ); + +Map _$CommunityAggregatesV3ToJson( + CommunityAggregatesV3 instance) => + { + 'community_id': instance.communityId, + 'subscribers': instance.subscribers, + 'posts': instance.posts, + 'comments': instance.comments, + 'published': instance.published.toIso8601String(), + 'users_active_day': instance.usersActiveDay, + 'users_active_week': instance.usersActiveWeek, + 'users_active_month': instance.usersActiveMonth, + 'users_active_half_year': instance.usersActiveHalfYear, + if (instance.subscribersLocal case final value?) + 'subscribers_local': value, + }; diff --git a/lib/src/models/v3/core/core.dart b/lib/src/models/v3/core/core.dart new file mode 100644 index 00000000..95eaa549 --- /dev/null +++ b/lib/src/models/v3/core/core.dart @@ -0,0 +1,49 @@ +export 'person.dart'; +export 'person_aggregates.dart'; +export 'site.dart'; +export 'federated_instances.dart'; +export 'instance_with_federation_state.dart'; +export 'readable_federation_state.dart'; +export 'link_metadata.dart'; +export 'my_user_info.dart'; +export 'local_user.dart'; +export 'language.dart'; +export 'tagline.dart'; +export 'local_site_url_blocklist.dart'; +export 'admin_purge_comment.dart'; +export 'post.dart'; +export 'admin_purge_community.dart'; +export 'admin_purge_person.dart'; +export 'admin_purge_post.dart'; +export 'community.dart'; +export 'comment_reply.dart'; +export 'comment.dart'; +export 'comment_aggregates.dart'; +export 'comment_report.dart'; +export 'community_aggregates.dart'; +export 'custom_emoji_keyword.dart'; +export 'custom_emoji.dart'; +export 'instance.dart'; +export 'local_image.dart'; +export 'local_user_vote_display_mode.dart'; +export 'mod_add_community.dart'; +export 'mod_add.dart'; +export 'mod_ban_from_community.dart'; +export 'mod_ban.dart'; +export 'mod_feature_post.dart'; +export 'mod_hide_community.dart'; +export 'mod_lock_post.dart'; +export 'mod_remove_comment.dart'; +export 'mod_remove_community.dart'; +export 'mod_remove_post.dart'; +export 'mod_transfer_community.dart'; +export 'person_mention.dart'; +export 'post_aggregates.dart'; +export 'post_report.dart'; +export 'image_details.dart'; +export 'private_message_report.dart'; +export 'private_message.dart'; +export 'registration_application.dart'; +export 'local_site.dart'; +export 'local_site_rate_limit.dart'; +export 'site_aggregates.dart'; diff --git a/lib/src/models/v3/core/custom_emoji.dart b/lib/src/models/v3/core/custom_emoji.dart new file mode 100644 index 00000000..27a45e1b --- /dev/null +++ b/lib/src/models/v3/core/custom_emoji.dart @@ -0,0 +1,32 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'custom_emoji.g.dart'; + +@JsonSerializable() +class CustomEmojiV3 { + final int id; + final int localSiteId; + final String shortcode; + final String imageUrl; + final String altText; + final String category; + final DateTime published; + final DateTime? updated; + + CustomEmojiV3({ + required this.id, + required this.localSiteId, + required this.shortcode, + required this.imageUrl, + required this.altText, + required this.category, + required this.published, + this.updated, + }); + + // From JSON + factory CustomEmojiV3.fromJson(Map json) => _$CustomEmojiV3FromJson(json); + + // To JSON + Map toJson() => _$CustomEmojiV3ToJson(this); +} diff --git a/lib/src/models/v3/core/custom_emoji.g.dart b/lib/src/models/v3/core/custom_emoji.g.dart new file mode 100644 index 00000000..5b4e4238 --- /dev/null +++ b/lib/src/models/v3/core/custom_emoji.g.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'custom_emoji.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CustomEmojiV3 _$CustomEmojiV3FromJson(Map json) => + CustomEmojiV3( + id: (json['id'] as num).toInt(), + localSiteId: (json['local_site_id'] as num).toInt(), + shortcode: json['shortcode'] as String, + imageUrl: json['image_url'] as String, + altText: json['alt_text'] as String, + category: json['category'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$CustomEmojiV3ToJson(CustomEmojiV3 instance) => + { + 'id': instance.id, + 'local_site_id': instance.localSiteId, + 'shortcode': instance.shortcode, + 'image_url': instance.imageUrl, + 'alt_text': instance.altText, + 'category': instance.category, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v3/core/custom_emoji_keyword.dart b/lib/src/models/v3/core/custom_emoji_keyword.dart new file mode 100644 index 00000000..dbe9012c --- /dev/null +++ b/lib/src/models/v3/core/custom_emoji_keyword.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'custom_emoji_keyword.g.dart'; + +@JsonSerializable() +class CustomEmojiKeywordV3 { + final int customEmojiId; + final String keyword; + + CustomEmojiKeywordV3({ + required this.customEmojiId, + required this.keyword, + }); + + // From JSON + factory CustomEmojiKeywordV3.fromJson(Map json) => _$CustomEmojiKeywordV3FromJson(json); + + // To JSON + Map toJson() => _$CustomEmojiKeywordV3ToJson(this); +} diff --git a/lib/src/models/v3/core/custom_emoji_keyword.g.dart b/lib/src/models/v3/core/custom_emoji_keyword.g.dart new file mode 100644 index 00000000..6004e56c --- /dev/null +++ b/lib/src/models/v3/core/custom_emoji_keyword.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'custom_emoji_keyword.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CustomEmojiKeywordV3 _$CustomEmojiKeywordV3FromJson( + Map json) => + CustomEmojiKeywordV3( + customEmojiId: (json['custom_emoji_id'] as num).toInt(), + keyword: json['keyword'] as String, + ); + +Map _$CustomEmojiKeywordV3ToJson( + CustomEmojiKeywordV3 instance) => + { + 'custom_emoji_id': instance.customEmojiId, + 'keyword': instance.keyword, + }; diff --git a/lib/src/models/v3/core/federated_instances.dart b/lib/src/models/v3/core/federated_instances.dart new file mode 100644 index 00000000..d98f9d2f --- /dev/null +++ b/lib/src/models/v3/core/federated_instances.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'federated_instances.g.dart'; + +@JsonSerializable() +class FederatedInstancesV3 { + final List linked; + final List allowed; + final List blocked; + + FederatedInstancesV3({ + required this.linked, + required this.allowed, + required this.blocked, + }); + + // From JSON + factory FederatedInstancesV3.fromJson(Map json) => _$FederatedInstancesV3FromJson(json); + + // To JSON + Map toJson() => _$FederatedInstancesV3ToJson(this); +} diff --git a/lib/src/models/v3/core/federated_instances.g.dart b/lib/src/models/v3/core/federated_instances.g.dart new file mode 100644 index 00000000..f447ca30 --- /dev/null +++ b/lib/src/models/v3/core/federated_instances.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'federated_instances.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FederatedInstancesV3 _$FederatedInstancesV3FromJson( + Map json) => + FederatedInstancesV3( + linked: (json['linked'] as List) + .map((e) => + InstanceWithFederationStateV3.fromJson(e as Map)) + .toList(), + allowed: (json['allowed'] as List) + .map((e) => + InstanceWithFederationStateV3.fromJson(e as Map)) + .toList(), + blocked: (json['blocked'] as List) + .map((e) => + InstanceWithFederationStateV3.fromJson(e as Map)) + .toList(), + ); + +Map _$FederatedInstancesV3ToJson( + FederatedInstancesV3 instance) => + { + 'linked': instance.linked, + 'allowed': instance.allowed, + 'blocked': instance.blocked, + }; diff --git a/lib/src/models/v3/core/image_details.dart b/lib/src/models/v3/core/image_details.dart new file mode 100644 index 00000000..d3d5240e --- /dev/null +++ b/lib/src/models/v3/core/image_details.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'image_details.g.dart'; + +@JsonSerializable() +class ImageDetailsV3 { + final String link; + final int width; + final int height; + final String contentType; + + ImageDetailsV3({ + required this.link, + required this.width, + required this.height, + required this.contentType, + }); + + // From JSON + factory ImageDetailsV3.fromJson(Map json) => _$ImageDetailsV3FromJson(json); + + // To JSON + Map toJson() => _$ImageDetailsV3ToJson(this); +} diff --git a/lib/src/models/v3/core/image_details.g.dart b/lib/src/models/v3/core/image_details.g.dart new file mode 100644 index 00000000..5b9fe4d3 --- /dev/null +++ b/lib/src/models/v3/core/image_details.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'image_details.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ImageDetailsV3 _$ImageDetailsV3FromJson(Map json) => + ImageDetailsV3( + link: json['link'] as String, + width: (json['width'] as num).toInt(), + height: (json['height'] as num).toInt(), + contentType: json['content_type'] as String, + ); + +Map _$ImageDetailsV3ToJson(ImageDetailsV3 instance) => + { + 'link': instance.link, + 'width': instance.width, + 'height': instance.height, + 'content_type': instance.contentType, + }; diff --git a/lib/src/models/v3/core/instance.dart b/lib/src/models/v3/core/instance.dart new file mode 100644 index 00000000..1388fa36 --- /dev/null +++ b/lib/src/models/v3/core/instance.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'instance.g.dart'; + +@JsonSerializable() +class InstanceV3 { + final int id; + final String domain; + final DateTime published; + final DateTime? updated; + final String? software; + final String? version; + + InstanceV3({ + required this.id, + required this.domain, + required this.published, + this.updated, + this.software, + this.version, + }); + + // From JSON + factory InstanceV3.fromJson(Map json) => _$InstanceV3FromJson(json); + + // To JSON + Map toJson() => _$InstanceV3ToJson(this); +} diff --git a/lib/src/models/v3/core/instance.g.dart b/lib/src/models/v3/core/instance.g.dart new file mode 100644 index 00000000..b1efb15d --- /dev/null +++ b/lib/src/models/v3/core/instance.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'instance.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InstanceV3 _$InstanceV3FromJson(Map json) => InstanceV3( + id: (json['id'] as num).toInt(), + domain: json['domain'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + software: json['software'] as String?, + version: json['version'] as String?, + ); + +Map _$InstanceV3ToJson(InstanceV3 instance) => + { + 'id': instance.id, + 'domain': instance.domain, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + if (instance.software case final value?) 'software': value, + if (instance.version case final value?) 'version': value, + }; diff --git a/lib/src/models/v3/core/instance_with_federation_state.dart b/lib/src/models/v3/core/instance_with_federation_state.dart new file mode 100644 index 00000000..d1e30877 --- /dev/null +++ b/lib/src/models/v3/core/instance_with_federation_state.dart @@ -0,0 +1,32 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'instance_with_federation_state.g.dart'; + +@JsonSerializable() +class InstanceWithFederationStateV3 { + final int id; + final String domain; + final DateTime published; + final DateTime? updated; + final String? software; + final String? version; + final ReadableFederationStateV3? federationState; + + InstanceWithFederationStateV3({ + required this.id, + required this.domain, + required this.published, + this.updated, + this.software, + this.version, + this.federationState, + }); + + // From JSON + factory InstanceWithFederationStateV3.fromJson(Map json) => _$InstanceWithFederationStateV3FromJson(json); + + // To JSON + Map toJson() => _$InstanceWithFederationStateV3ToJson(this); +} diff --git a/lib/src/models/v3/core/instance_with_federation_state.g.dart b/lib/src/models/v3/core/instance_with_federation_state.g.dart new file mode 100644 index 00000000..289f6b7a --- /dev/null +++ b/lib/src/models/v3/core/instance_with_federation_state.g.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'instance_with_federation_state.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InstanceWithFederationStateV3 _$InstanceWithFederationStateV3FromJson( + Map json) => + InstanceWithFederationStateV3( + id: (json['id'] as num).toInt(), + domain: json['domain'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + software: json['software'] as String?, + version: json['version'] as String?, + federationState: json['federation_state'] == null + ? null + : ReadableFederationStateV3.fromJson( + json['federation_state'] as Map), + ); + +Map _$InstanceWithFederationStateV3ToJson( + InstanceWithFederationStateV3 instance) => + { + 'id': instance.id, + 'domain': instance.domain, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + if (instance.software case final value?) 'software': value, + if (instance.version case final value?) 'version': value, + if (instance.federationState case final value?) 'federation_state': value, + }; diff --git a/lib/src/models/v3/core/language.dart b/lib/src/models/v3/core/language.dart new file mode 100644 index 00000000..27a39b75 --- /dev/null +++ b/lib/src/models/v3/core/language.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'language.g.dart'; + +@JsonSerializable() +class LanguageV3 { + final int id; + final String code; + final String name; + + LanguageV3({ + required this.id, + required this.code, + required this.name, + }); + + // From JSON + factory LanguageV3.fromJson(Map json) => _$LanguageV3FromJson(json); + + // To JSON + Map toJson() => _$LanguageV3ToJson(this); +} diff --git a/lib/src/models/v3/core/language.g.dart b/lib/src/models/v3/core/language.g.dart new file mode 100644 index 00000000..5c55e99d --- /dev/null +++ b/lib/src/models/v3/core/language.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'language.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LanguageV3 _$LanguageV3FromJson(Map json) => LanguageV3( + id: (json['id'] as num).toInt(), + code: json['code'] as String, + name: json['name'] as String, + ); + +Map _$LanguageV3ToJson(LanguageV3 instance) => + { + 'id': instance.id, + 'code': instance.code, + 'name': instance.name, + }; diff --git a/lib/src/models/v3/core/link_metadata.dart b/lib/src/models/v3/core/link_metadata.dart new file mode 100644 index 00000000..c554e30d --- /dev/null +++ b/lib/src/models/v3/core/link_metadata.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'link_metadata.g.dart'; + +@JsonSerializable() +class LinkMetadataV3 { + final String? title; + final String? description; + final String? image; + final String? embedVideoUrl; + final String? contentType; + + LinkMetadataV3({ + required this.title, + required this.description, + required this.image, + required this.embedVideoUrl, + required this.contentType, + }); + + // From JSON + factory LinkMetadataV3.fromJson(Map json) => _$LinkMetadataV3FromJson(json); + + // To JSON + Map toJson() => _$LinkMetadataV3ToJson(this); +} diff --git a/lib/src/models/v3/core/link_metadata.g.dart b/lib/src/models/v3/core/link_metadata.g.dart new file mode 100644 index 00000000..4a9a9bc1 --- /dev/null +++ b/lib/src/models/v3/core/link_metadata.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'link_metadata.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LinkMetadataV3 _$LinkMetadataV3FromJson(Map json) => + LinkMetadataV3( + title: json['title'] as String?, + description: json['description'] as String?, + image: json['image'] as String?, + embedVideoUrl: json['embed_video_url'] as String?, + contentType: json['content_type'] as String?, + ); + +Map _$LinkMetadataV3ToJson(LinkMetadataV3 instance) => + { + if (instance.title case final value?) 'title': value, + if (instance.description case final value?) 'description': value, + if (instance.image case final value?) 'image': value, + if (instance.embedVideoUrl case final value?) 'embed_video_url': value, + if (instance.contentType case final value?) 'content_type': value, + }; diff --git a/lib/src/models/v3/core/local_image.dart b/lib/src/models/v3/core/local_image.dart new file mode 100644 index 00000000..46137701 --- /dev/null +++ b/lib/src/models/v3/core/local_image.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'local_image.g.dart'; + +@JsonSerializable() +class LocalImageV3 { + final int? localUserId; + final String pictrsAlias; + final String pictrsDeleteToken; + final DateTime published; + + LocalImageV3({ + required this.localUserId, + required this.pictrsAlias, + required this.pictrsDeleteToken, + required this.published, + }); + + // From JSON + factory LocalImageV3.fromJson(Map json) => _$LocalImageV3FromJson(json); + + // To JSON + Map toJson() => _$LocalImageV3ToJson(this); +} diff --git a/lib/src/models/v3/core/local_image.g.dart b/lib/src/models/v3/core/local_image.g.dart new file mode 100644 index 00000000..7c279eed --- /dev/null +++ b/lib/src/models/v3/core/local_image.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_image.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalImageV3 _$LocalImageV3FromJson(Map json) => LocalImageV3( + localUserId: (json['local_user_id'] as num?)?.toInt(), + pictrsAlias: json['pictrs_alias'] as String, + pictrsDeleteToken: json['pictrs_delete_token'] as String, + published: DateTime.parse(json['published'] as String), + ); + +Map _$LocalImageV3ToJson(LocalImageV3 instance) => + { + if (instance.localUserId case final value?) 'local_user_id': value, + 'pictrs_alias': instance.pictrsAlias, + 'pictrs_delete_token': instance.pictrsDeleteToken, + 'published': instance.published.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/local_site.dart b/lib/src/models/v3/core/local_site.dart new file mode 100644 index 00000000..46473c25 --- /dev/null +++ b/lib/src/models/v3/core/local_site.dart @@ -0,0 +1,70 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; + +part 'local_site.g.dart'; + +@JsonSerializable() +class LocalSiteV3 { + final int id; + final int siteId; + final bool siteSetup; + final bool enableDownvotes; + final bool enableNsfw; + final bool communityCreationAdminOnly; + final bool requireEmailVerification; + final String? applicationQuestion; + final bool privateInstance; + final String defaultTheme; + final ListingTypeV3 defaultPostListingType; + final String? legalInformation; + final bool hideModlogModNames; + final bool applicationEmailAdmins; + final String? slurFilterRegex; + final int actorNameMaxLength; + final bool federationEnabled; + final bool captchaEnabled; + final String captchaDifficulty; + final DateTime published; + final DateTime? updated; + final RegistrationModeV3 registrationMode; + final bool reportsEmailAdmins; + final bool federationSignedFetch; + final String? defaultPostListingMode; + final SortTypeV3? defaultSortType; + + LocalSiteV3({ + required this.id, + required this.siteId, + required this.siteSetup, + required this.enableDownvotes, + required this.enableNsfw, + required this.communityCreationAdminOnly, + required this.requireEmailVerification, + this.applicationQuestion, + required this.privateInstance, + required this.defaultTheme, + required this.defaultPostListingType, + this.legalInformation, + required this.hideModlogModNames, + required this.applicationEmailAdmins, + this.slurFilterRegex, + required this.actorNameMaxLength, + required this.federationEnabled, + required this.captchaEnabled, + required this.captchaDifficulty, + required this.published, + this.updated, + required this.registrationMode, + required this.reportsEmailAdmins, + required this.federationSignedFetch, + this.defaultPostListingMode, + this.defaultSortType, + }); + + // From JSON + factory LocalSiteV3.fromJson(Map json) => _$LocalSiteV3FromJson(json); + + // To JSON + Map toJson() => _$LocalSiteV3ToJson(this); +} diff --git a/lib/src/models/v3/core/local_site.g.dart b/lib/src/models/v3/core/local_site.g.dart new file mode 100644 index 00000000..14c96bbc --- /dev/null +++ b/lib/src/models/v3/core/local_site.g.dart @@ -0,0 +1,78 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_site.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalSiteV3 _$LocalSiteV3FromJson(Map json) => LocalSiteV3( + id: (json['id'] as num).toInt(), + siteId: (json['site_id'] as num).toInt(), + siteSetup: json['site_setup'] as bool, + enableDownvotes: json['enable_downvotes'] as bool, + enableNsfw: json['enable_nsfw'] as bool, + communityCreationAdminOnly: json['community_creation_admin_only'] as bool, + requireEmailVerification: json['require_email_verification'] as bool, + applicationQuestion: json['application_question'] as String?, + privateInstance: json['private_instance'] as bool, + defaultTheme: json['default_theme'] as String, + defaultPostListingType: + ListingTypeV3.fromJson(json['default_post_listing_type']), + legalInformation: json['legal_information'] as String?, + hideModlogModNames: json['hide_modlog_mod_names'] as bool, + applicationEmailAdmins: json['application_email_admins'] as bool, + slurFilterRegex: json['slur_filter_regex'] as String?, + actorNameMaxLength: (json['actor_name_max_length'] as num).toInt(), + federationEnabled: json['federation_enabled'] as bool, + captchaEnabled: json['captcha_enabled'] as bool, + captchaDifficulty: json['captcha_difficulty'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + registrationMode: + RegistrationModeV3.fromJson(json['registration_mode'] as String), + reportsEmailAdmins: json['reports_email_admins'] as bool, + federationSignedFetch: json['federation_signed_fetch'] as bool, + defaultPostListingMode: json['default_post_listing_mode'] as String?, + defaultSortType: json['default_sort_type'] == null + ? null + : SortTypeV3.fromJson(json['default_sort_type']), + ); + +Map _$LocalSiteV3ToJson(LocalSiteV3 instance) => + { + 'id': instance.id, + 'site_id': instance.siteId, + 'site_setup': instance.siteSetup, + 'enable_downvotes': instance.enableDownvotes, + 'enable_nsfw': instance.enableNsfw, + 'community_creation_admin_only': instance.communityCreationAdminOnly, + 'require_email_verification': instance.requireEmailVerification, + if (instance.applicationQuestion case final value?) + 'application_question': value, + 'private_instance': instance.privateInstance, + 'default_theme': instance.defaultTheme, + 'default_post_listing_type': instance.defaultPostListingType, + if (instance.legalInformation case final value?) + 'legal_information': value, + 'hide_modlog_mod_names': instance.hideModlogModNames, + 'application_email_admins': instance.applicationEmailAdmins, + if (instance.slurFilterRegex case final value?) + 'slur_filter_regex': value, + 'actor_name_max_length': instance.actorNameMaxLength, + 'federation_enabled': instance.federationEnabled, + 'captcha_enabled': instance.captchaEnabled, + 'captcha_difficulty': instance.captchaDifficulty, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'registration_mode': instance.registrationMode, + 'reports_email_admins': instance.reportsEmailAdmins, + 'federation_signed_fetch': instance.federationSignedFetch, + if (instance.defaultPostListingMode case final value?) + 'default_post_listing_mode': value, + if (instance.defaultSortType case final value?) + 'default_sort_type': value, + }; diff --git a/lib/src/models/v3/core/local_site_rate_limit.dart b/lib/src/models/v3/core/local_site_rate_limit.dart new file mode 100644 index 00000000..3164f9ae --- /dev/null +++ b/lib/src/models/v3/core/local_site_rate_limit.dart @@ -0,0 +1,50 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'local_site_rate_limit.g.dart'; + +@JsonSerializable() +class LocalSiteRateLimitV3 { + final int localSiteId; + final int message; + final int messagePerSecond; + final int post; + final int postPerSecond; + final int register; + final int registerPerSecond; + final int image; + final int imagePerSecond; + final int comment; + final int commentPerSecond; + final int search; + final int searchPerSecond; + final DateTime published; + final DateTime? updated; + final int importUserSettings; + final int importUserSettingsPerSecond; + + LocalSiteRateLimitV3({ + required this.localSiteId, + required this.message, + required this.messagePerSecond, + required this.post, + required this.postPerSecond, + required this.register, + required this.registerPerSecond, + required this.image, + required this.imagePerSecond, + required this.comment, + required this.commentPerSecond, + required this.search, + required this.searchPerSecond, + required this.published, + this.updated, + required this.importUserSettings, + required this.importUserSettingsPerSecond, + }); + + // From JSON + factory LocalSiteRateLimitV3.fromJson(Map json) => _$LocalSiteRateLimitV3FromJson(json); + + // To JSON + Map toJson() => _$LocalSiteRateLimitV3ToJson(this); +} diff --git a/lib/src/models/v3/core/local_site_rate_limit.g.dart b/lib/src/models/v3/core/local_site_rate_limit.g.dart new file mode 100644 index 00000000..2dfbe99c --- /dev/null +++ b/lib/src/models/v3/core/local_site_rate_limit.g.dart @@ -0,0 +1,55 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_site_rate_limit.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalSiteRateLimitV3 _$LocalSiteRateLimitV3FromJson( + Map json) => + LocalSiteRateLimitV3( + localSiteId: (json['local_site_id'] as num).toInt(), + message: (json['message'] as num).toInt(), + messagePerSecond: (json['message_per_second'] as num).toInt(), + post: (json['post'] as num).toInt(), + postPerSecond: (json['post_per_second'] as num).toInt(), + register: (json['register'] as num).toInt(), + registerPerSecond: (json['register_per_second'] as num).toInt(), + image: (json['image'] as num).toInt(), + imagePerSecond: (json['image_per_second'] as num).toInt(), + comment: (json['comment'] as num).toInt(), + commentPerSecond: (json['comment_per_second'] as num).toInt(), + search: (json['search'] as num).toInt(), + searchPerSecond: (json['search_per_second'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + importUserSettings: (json['import_user_settings'] as num).toInt(), + importUserSettingsPerSecond: + (json['import_user_settings_per_second'] as num).toInt(), + ); + +Map _$LocalSiteRateLimitV3ToJson( + LocalSiteRateLimitV3 instance) => + { + 'local_site_id': instance.localSiteId, + 'message': instance.message, + 'message_per_second': instance.messagePerSecond, + 'post': instance.post, + 'post_per_second': instance.postPerSecond, + 'register': instance.register, + 'register_per_second': instance.registerPerSecond, + 'image': instance.image, + 'image_per_second': instance.imagePerSecond, + 'comment': instance.comment, + 'comment_per_second': instance.commentPerSecond, + 'search': instance.search, + 'search_per_second': instance.searchPerSecond, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'import_user_settings': instance.importUserSettings, + 'import_user_settings_per_second': instance.importUserSettingsPerSecond, + }; diff --git a/lib/src/models/v3/core/local_site_url_blocklist.dart b/lib/src/models/v3/core/local_site_url_blocklist.dart new file mode 100644 index 00000000..0e8c2e22 --- /dev/null +++ b/lib/src/models/v3/core/local_site_url_blocklist.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'local_site_url_blocklist.g.dart'; + +@JsonSerializable() +class LocalSiteUrlBlocklistV3 { + final int id; + final String url; + final DateTime published; + final DateTime? updated; + + LocalSiteUrlBlocklistV3({ + required this.id, + required this.url, + required this.published, + this.updated, + }); + + // From JSON + factory LocalSiteUrlBlocklistV3.fromJson(Map json) => _$LocalSiteUrlBlocklistV3FromJson(json); + + // To JSON + Map toJson() => _$LocalSiteUrlBlocklistV3ToJson(this); +} diff --git a/lib/src/models/v3/core/local_site_url_blocklist.g.dart b/lib/src/models/v3/core/local_site_url_blocklist.g.dart new file mode 100644 index 00000000..ba3779f0 --- /dev/null +++ b/lib/src/models/v3/core/local_site_url_blocklist.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_site_url_blocklist.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalSiteUrlBlocklistV3 _$LocalSiteUrlBlocklistV3FromJson( + Map json) => + LocalSiteUrlBlocklistV3( + id: (json['id'] as num).toInt(), + url: json['url'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$LocalSiteUrlBlocklistV3ToJson( + LocalSiteUrlBlocklistV3 instance) => + { + 'id': instance.id, + 'url': instance.url, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v3/core/local_user.dart b/lib/src/models/v3/core/local_user.dart new file mode 100644 index 00000000..70c3beb5 --- /dev/null +++ b/lib/src/models/v3/core/local_user.dart @@ -0,0 +1,68 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; + +part 'local_user.g.dart'; + +@JsonSerializable() +class LocalUserV3 { + final int id; + final int personId; + final String? email; + final bool showNsfw; + final String theme; + final SortTypeV3 defaultSortType; + final ListingTypeV3 defaultListingType; + final String interfaceLanguage; + final bool showAvatars; + final bool sendNotificationsToEmail; + final bool showScores; + final bool showBotAccounts; + final bool showReadPosts; + final bool emailVerified; + final bool acceptedApplication; + final bool openLinksInNewTab; + final bool blurNsfw; + final bool autoExpand; + final bool infiniteScrollEnabled; + final bool admin; + final String postListingMode; + final bool totp2faEnabled; + final bool enableKeyboardNavigation; + final bool enableAnimatedImages; + final bool collapseBotComments; + + LocalUserV3({ + required this.id, + required this.personId, + this.email, + required this.showNsfw, + required this.theme, + required this.defaultSortType, + required this.defaultListingType, + required this.interfaceLanguage, + required this.showAvatars, + required this.sendNotificationsToEmail, + required this.showScores, + required this.showBotAccounts, + required this.showReadPosts, + required this.emailVerified, + required this.acceptedApplication, + required this.openLinksInNewTab, + required this.blurNsfw, + required this.autoExpand, + required this.infiniteScrollEnabled, + required this.admin, + required this.postListingMode, + required this.totp2faEnabled, + required this.enableKeyboardNavigation, + required this.enableAnimatedImages, + required this.collapseBotComments, + }); + + // From JSON + factory LocalUserV3.fromJson(Map json) => _$LocalUserV3FromJson(json); + + // To JSON + Map toJson() => _$LocalUserV3ToJson(this); +} diff --git a/lib/src/models/v3/core/local_user.g.dart b/lib/src/models/v3/core/local_user.g.dart new file mode 100644 index 00000000..33e1282b --- /dev/null +++ b/lib/src/models/v3/core/local_user.g.dart @@ -0,0 +1,64 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_user.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalUserV3 _$LocalUserV3FromJson(Map json) => LocalUserV3( + id: (json['id'] as num).toInt(), + personId: (json['person_id'] as num).toInt(), + email: json['email'] as String?, + showNsfw: json['show_nsfw'] as bool, + theme: json['theme'] as String, + defaultSortType: SortTypeV3.fromJson(json['default_sort_type']), + defaultListingType: ListingTypeV3.fromJson(json['default_listing_type']), + interfaceLanguage: json['interface_language'] as String, + showAvatars: json['show_avatars'] as bool, + sendNotificationsToEmail: json['send_notifications_to_email'] as bool, + showScores: json['show_scores'] as bool, + showBotAccounts: json['show_bot_accounts'] as bool, + showReadPosts: json['show_read_posts'] as bool, + emailVerified: json['email_verified'] as bool, + acceptedApplication: json['accepted_application'] as bool, + openLinksInNewTab: json['open_links_in_new_tab'] as bool, + blurNsfw: json['blur_nsfw'] as bool, + autoExpand: json['auto_expand'] as bool, + infiniteScrollEnabled: json['infinite_scroll_enabled'] as bool, + admin: json['admin'] as bool, + postListingMode: json['post_listing_mode'] as String, + totp2faEnabled: json['totp2fa_enabled'] as bool, + enableKeyboardNavigation: json['enable_keyboard_navigation'] as bool, + enableAnimatedImages: json['enable_animated_images'] as bool, + collapseBotComments: json['collapse_bot_comments'] as bool, + ); + +Map _$LocalUserV3ToJson(LocalUserV3 instance) => + { + 'id': instance.id, + 'person_id': instance.personId, + if (instance.email case final value?) 'email': value, + 'show_nsfw': instance.showNsfw, + 'theme': instance.theme, + 'default_sort_type': instance.defaultSortType, + 'default_listing_type': instance.defaultListingType, + 'interface_language': instance.interfaceLanguage, + 'show_avatars': instance.showAvatars, + 'send_notifications_to_email': instance.sendNotificationsToEmail, + 'show_scores': instance.showScores, + 'show_bot_accounts': instance.showBotAccounts, + 'show_read_posts': instance.showReadPosts, + 'email_verified': instance.emailVerified, + 'accepted_application': instance.acceptedApplication, + 'open_links_in_new_tab': instance.openLinksInNewTab, + 'blur_nsfw': instance.blurNsfw, + 'auto_expand': instance.autoExpand, + 'infinite_scroll_enabled': instance.infiniteScrollEnabled, + 'admin': instance.admin, + 'post_listing_mode': instance.postListingMode, + 'totp2fa_enabled': instance.totp2faEnabled, + 'enable_keyboard_navigation': instance.enableKeyboardNavigation, + 'enable_animated_images': instance.enableAnimatedImages, + 'collapse_bot_comments': instance.collapseBotComments, + }; diff --git a/lib/src/models/v3/core/local_user_vote_display_mode.dart b/lib/src/models/v3/core/local_user_vote_display_mode.dart new file mode 100644 index 00000000..2b161486 --- /dev/null +++ b/lib/src/models/v3/core/local_user_vote_display_mode.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'local_user_vote_display_mode.g.dart'; + +@JsonSerializable() +class LocalUserVoteDisplayModeV3 { + final int localUserId; + final bool score; + final bool upvotes; + final bool downvotes; + final bool upvotePercentage; + + LocalUserVoteDisplayModeV3({ + required this.localUserId, + required this.score, + required this.upvotes, + required this.downvotes, + required this.upvotePercentage, + }); + + // From JSON + factory LocalUserVoteDisplayModeV3.fromJson(Map json) => _$LocalUserVoteDisplayModeV3FromJson(json); + + // To JSON + Map toJson() => _$LocalUserVoteDisplayModeV3ToJson(this); +} diff --git a/lib/src/models/v3/core/local_user_vote_display_mode.g.dart b/lib/src/models/v3/core/local_user_vote_display_mode.g.dart new file mode 100644 index 00000000..571d1d2f --- /dev/null +++ b/lib/src/models/v3/core/local_user_vote_display_mode.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_user_vote_display_mode.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalUserVoteDisplayModeV3 _$LocalUserVoteDisplayModeV3FromJson( + Map json) => + LocalUserVoteDisplayModeV3( + localUserId: (json['local_user_id'] as num).toInt(), + score: json['score'] as bool, + upvotes: json['upvotes'] as bool, + downvotes: json['downvotes'] as bool, + upvotePercentage: json['upvote_percentage'] as bool, + ); + +Map _$LocalUserVoteDisplayModeV3ToJson( + LocalUserVoteDisplayModeV3 instance) => + { + 'local_user_id': instance.localUserId, + 'score': instance.score, + 'upvotes': instance.upvotes, + 'downvotes': instance.downvotes, + 'upvote_percentage': instance.upvotePercentage, + }; diff --git a/lib/src/models/v3/core/mod_add.dart b/lib/src/models/v3/core/mod_add.dart new file mode 100644 index 00000000..040f759e --- /dev/null +++ b/lib/src/models/v3/core/mod_add.dart @@ -0,0 +1,27 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_add.g.dart'; + +@JsonSerializable() +class ModAddV3 { + final int id; + final int modPersonId; + final int otherPersonId; + final bool removed; + @JsonKey(name: 'when_') + final DateTime when; + + ModAddV3({ + required this.id, + required this.modPersonId, + required this.otherPersonId, + required this.removed, + required this.when, + }); + + // From JSON + factory ModAddV3.fromJson(Map json) => _$ModAddV3FromJson(json); + + // To JSON + Map toJson() => _$ModAddV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_add.g.dart b/lib/src/models/v3/core/mod_add.g.dart new file mode 100644 index 00000000..48803432 --- /dev/null +++ b/lib/src/models/v3/core/mod_add.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_add.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModAddV3 _$ModAddV3FromJson(Map json) => ModAddV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + otherPersonId: (json['other_person_id'] as num).toInt(), + removed: json['removed'] as bool, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModAddV3ToJson(ModAddV3 instance) => { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'other_person_id': instance.otherPersonId, + 'removed': instance.removed, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_add_community.dart b/lib/src/models/v3/core/mod_add_community.dart new file mode 100644 index 00000000..6b52898e --- /dev/null +++ b/lib/src/models/v3/core/mod_add_community.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_add_community.g.dart'; + +@JsonSerializable() +class ModAddCommunityV3 { + final int id; + final int modPersonId; + final int otherPersonId; + final int communityId; + final bool removed; + @JsonKey(name: 'when_') + final DateTime when; + + ModAddCommunityV3({ + required this.id, + required this.modPersonId, + required this.otherPersonId, + required this.communityId, + required this.removed, + required this.when, + }); + + // From JSON + factory ModAddCommunityV3.fromJson(Map json) => _$ModAddCommunityV3FromJson(json); + + // To JSON + Map toJson() => _$ModAddCommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_add_community.g.dart b/lib/src/models/v3/core/mod_add_community.g.dart new file mode 100644 index 00000000..73aa3cb2 --- /dev/null +++ b/lib/src/models/v3/core/mod_add_community.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_add_community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModAddCommunityV3 _$ModAddCommunityV3FromJson(Map json) => + ModAddCommunityV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + otherPersonId: (json['other_person_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + removed: json['removed'] as bool, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModAddCommunityV3ToJson(ModAddCommunityV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'other_person_id': instance.otherPersonId, + 'community_id': instance.communityId, + 'removed': instance.removed, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_ban.dart b/lib/src/models/v3/core/mod_ban.dart new file mode 100644 index 00000000..6a6912e1 --- /dev/null +++ b/lib/src/models/v3/core/mod_ban.dart @@ -0,0 +1,31 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_ban.g.dart'; + +@JsonSerializable() +class ModBanV3 { + final int id; + final int modPersonId; + final int otherPersonId; + final String? reason; + final bool banned; + final DateTime? expires; + @JsonKey(name: 'when_') + final DateTime when; + + ModBanV3({ + required this.id, + required this.modPersonId, + required this.otherPersonId, + this.reason, + required this.banned, + this.expires, + required this.when, + }); + + // From JSON + factory ModBanV3.fromJson(Map json) => _$ModBanV3FromJson(json); + + // To JSON + Map toJson() => _$ModBanV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_ban.g.dart b/lib/src/models/v3/core/mod_ban.g.dart new file mode 100644 index 00000000..f69599b3 --- /dev/null +++ b/lib/src/models/v3/core/mod_ban.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_ban.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModBanV3 _$ModBanV3FromJson(Map json) => ModBanV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + otherPersonId: (json['other_person_id'] as num).toInt(), + reason: json['reason'] as String?, + banned: json['banned'] as bool, + expires: json['expires'] == null + ? null + : DateTime.parse(json['expires'] as String), + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModBanV3ToJson(ModBanV3 instance) => { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'other_person_id': instance.otherPersonId, + if (instance.reason case final value?) 'reason': value, + 'banned': instance.banned, + if (instance.expires?.toIso8601String() case final value?) + 'expires': value, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_ban_from_community.dart b/lib/src/models/v3/core/mod_ban_from_community.dart new file mode 100644 index 00000000..3692010f --- /dev/null +++ b/lib/src/models/v3/core/mod_ban_from_community.dart @@ -0,0 +1,33 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_ban_from_community.g.dart'; + +@JsonSerializable() +class ModBanFromCommunityV3 { + final int id; + final int modPersonId; + final int otherPersonId; + final int communityId; + final String? reason; + final bool banned; + final DateTime? expires; + @JsonKey(name: 'when_') + final DateTime when; + + ModBanFromCommunityV3({ + required this.id, + required this.modPersonId, + required this.otherPersonId, + required this.communityId, + this.reason, + required this.banned, + this.expires, + required this.when, + }); + + // From JSON + factory ModBanFromCommunityV3.fromJson(Map json) => _$ModBanFromCommunityV3FromJson(json); + + // To JSON + Map toJson() => _$ModBanFromCommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_ban_from_community.g.dart b/lib/src/models/v3/core/mod_ban_from_community.g.dart new file mode 100644 index 00000000..44e1c038 --- /dev/null +++ b/lib/src/models/v3/core/mod_ban_from_community.g.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_ban_from_community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModBanFromCommunityV3 _$ModBanFromCommunityV3FromJson( + Map json) => + ModBanFromCommunityV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + otherPersonId: (json['other_person_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + reason: json['reason'] as String?, + banned: json['banned'] as bool, + expires: json['expires'] == null + ? null + : DateTime.parse(json['expires'] as String), + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModBanFromCommunityV3ToJson( + ModBanFromCommunityV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'other_person_id': instance.otherPersonId, + 'community_id': instance.communityId, + if (instance.reason case final value?) 'reason': value, + 'banned': instance.banned, + if (instance.expires?.toIso8601String() case final value?) + 'expires': value, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_feature_post.dart b/lib/src/models/v3/core/mod_feature_post.dart new file mode 100644 index 00000000..69912c43 --- /dev/null +++ b/lib/src/models/v3/core/mod_feature_post.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_feature_post.g.dart'; + +@JsonSerializable() +class ModFeaturePostV3 { + final int id; + final int modPersonId; + final int postId; + final bool featured; + @JsonKey(name: 'when_') + final DateTime when; + final bool isFeaturedCommunity; + + ModFeaturePostV3({ + required this.id, + required this.modPersonId, + required this.postId, + required this.featured, + required this.when, + required this.isFeaturedCommunity, + }); + + // From JSON + factory ModFeaturePostV3.fromJson(Map json) => _$ModFeaturePostV3FromJson(json); + + // To JSON + Map toJson() => _$ModFeaturePostV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_feature_post.g.dart b/lib/src/models/v3/core/mod_feature_post.g.dart new file mode 100644 index 00000000..af0612c0 --- /dev/null +++ b/lib/src/models/v3/core/mod_feature_post.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_feature_post.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModFeaturePostV3 _$ModFeaturePostV3FromJson(Map json) => + ModFeaturePostV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + featured: json['featured'] as bool, + when: DateTime.parse(json['when_'] as String), + isFeaturedCommunity: json['is_featured_community'] as bool, + ); + +Map _$ModFeaturePostV3ToJson(ModFeaturePostV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'post_id': instance.postId, + 'featured': instance.featured, + 'when_': instance.when.toIso8601String(), + 'is_featured_community': instance.isFeaturedCommunity, + }; diff --git a/lib/src/models/v3/core/mod_hide_community.dart b/lib/src/models/v3/core/mod_hide_community.dart new file mode 100644 index 00000000..203ed4ec --- /dev/null +++ b/lib/src/models/v3/core/mod_hide_community.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_hide_community.g.dart'; + +@JsonSerializable() +class ModHideCommunityV3 { + final int id; + final int communityId; + final int modPersonId; + @JsonKey(name: 'when_') + final DateTime when; + final String? reason; + final bool hidden; + + ModHideCommunityV3({ + required this.id, + required this.communityId, + required this.modPersonId, + required this.when, + this.reason, + required this.hidden, + }); + + // From JSON + factory ModHideCommunityV3.fromJson(Map json) => _$ModHideCommunityV3FromJson(json); + + // To JSON + Map toJson() => _$ModHideCommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_hide_community.g.dart b/lib/src/models/v3/core/mod_hide_community.g.dart new file mode 100644 index 00000000..44e902ff --- /dev/null +++ b/lib/src/models/v3/core/mod_hide_community.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_hide_community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModHideCommunityV3 _$ModHideCommunityV3FromJson(Map json) => + ModHideCommunityV3( + id: (json['id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + when: DateTime.parse(json['when_'] as String), + reason: json['reason'] as String?, + hidden: json['hidden'] as bool, + ); + +Map _$ModHideCommunityV3ToJson(ModHideCommunityV3 instance) => + { + 'id': instance.id, + 'community_id': instance.communityId, + 'mod_person_id': instance.modPersonId, + 'when_': instance.when.toIso8601String(), + if (instance.reason case final value?) 'reason': value, + 'hidden': instance.hidden, + }; diff --git a/lib/src/models/v3/core/mod_lock_post.dart b/lib/src/models/v3/core/mod_lock_post.dart new file mode 100644 index 00000000..b0b74709 --- /dev/null +++ b/lib/src/models/v3/core/mod_lock_post.dart @@ -0,0 +1,27 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_lock_post.g.dart'; + +@JsonSerializable() +class ModLockPostV3 { + final int id; + final int modPersonId; + final int postId; + final bool locked; + @JsonKey(name: 'when_') + final DateTime when; + + ModLockPostV3({ + required this.id, + required this.modPersonId, + required this.postId, + required this.locked, + required this.when, + }); + + // From JSON + factory ModLockPostV3.fromJson(Map json) => _$ModLockPostV3FromJson(json); + + // To JSON + Map toJson() => _$ModLockPostV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_lock_post.g.dart b/lib/src/models/v3/core/mod_lock_post.g.dart new file mode 100644 index 00000000..109a1ad5 --- /dev/null +++ b/lib/src/models/v3/core/mod_lock_post.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_lock_post.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModLockPostV3 _$ModLockPostV3FromJson(Map json) => + ModLockPostV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + locked: json['locked'] as bool, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModLockPostV3ToJson(ModLockPostV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'post_id': instance.postId, + 'locked': instance.locked, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_remove_comment.dart b/lib/src/models/v3/core/mod_remove_comment.dart new file mode 100644 index 00000000..2b827db5 --- /dev/null +++ b/lib/src/models/v3/core/mod_remove_comment.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_remove_comment.g.dart'; + +@JsonSerializable() +class ModRemoveCommentV3 { + final int id; + final int modPersonId; + final int commentId; + final String? reason; + final bool removed; + @JsonKey(name: 'when_') + final DateTime when; + + ModRemoveCommentV3({ + required this.id, + required this.modPersonId, + required this.commentId, + this.reason, + required this.removed, + required this.when, + }); + + // From JSON + factory ModRemoveCommentV3.fromJson(Map json) => _$ModRemoveCommentV3FromJson(json); + + // To JSON + Map toJson() => _$ModRemoveCommentV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_remove_comment.g.dart b/lib/src/models/v3/core/mod_remove_comment.g.dart new file mode 100644 index 00000000..cf4f6057 --- /dev/null +++ b/lib/src/models/v3/core/mod_remove_comment.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_remove_comment.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModRemoveCommentV3 _$ModRemoveCommentV3FromJson(Map json) => + ModRemoveCommentV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + commentId: (json['comment_id'] as num).toInt(), + reason: json['reason'] as String?, + removed: json['removed'] as bool, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModRemoveCommentV3ToJson(ModRemoveCommentV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'comment_id': instance.commentId, + if (instance.reason case final value?) 'reason': value, + 'removed': instance.removed, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_remove_community.dart b/lib/src/models/v3/core/mod_remove_community.dart new file mode 100644 index 00000000..eaedb784 --- /dev/null +++ b/lib/src/models/v3/core/mod_remove_community.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_remove_community.g.dart'; + +@JsonSerializable() +class ModRemoveCommunityV3 { + final int id; + final int modPersonId; + final int communityId; + final String? reason; + final bool removed; + @JsonKey(name: 'when_') + final DateTime when; + + ModRemoveCommunityV3({ + required this.id, + required this.modPersonId, + required this.communityId, + this.reason, + required this.removed, + required this.when, + }); + + // From JSON + factory ModRemoveCommunityV3.fromJson(Map json) => _$ModRemoveCommunityV3FromJson(json); + + // To JSON + Map toJson() => _$ModRemoveCommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_remove_community.g.dart b/lib/src/models/v3/core/mod_remove_community.g.dart new file mode 100644 index 00000000..2d008556 --- /dev/null +++ b/lib/src/models/v3/core/mod_remove_community.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_remove_community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModRemoveCommunityV3 _$ModRemoveCommunityV3FromJson( + Map json) => + ModRemoveCommunityV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + reason: json['reason'] as String?, + removed: json['removed'] as bool, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModRemoveCommunityV3ToJson( + ModRemoveCommunityV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'community_id': instance.communityId, + if (instance.reason case final value?) 'reason': value, + 'removed': instance.removed, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_remove_post.dart b/lib/src/models/v3/core/mod_remove_post.dart new file mode 100644 index 00000000..dc87c763 --- /dev/null +++ b/lib/src/models/v3/core/mod_remove_post.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_remove_post.g.dart'; + +@JsonSerializable() +class ModRemovePostV3 { + final int id; + final int modPersonId; + final int postId; + final String? reason; + final bool removed; + @JsonKey(name: 'when_') + final DateTime when; + + ModRemovePostV3({ + required this.id, + required this.modPersonId, + required this.postId, + this.reason, + required this.removed, + required this.when, + }); + + // From JSON + factory ModRemovePostV3.fromJson(Map json) => _$ModRemovePostV3FromJson(json); + + // To JSON + Map toJson() => _$ModRemovePostV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_remove_post.g.dart b/lib/src/models/v3/core/mod_remove_post.g.dart new file mode 100644 index 00000000..bc92d0f2 --- /dev/null +++ b/lib/src/models/v3/core/mod_remove_post.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_remove_post.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModRemovePostV3 _$ModRemovePostV3FromJson(Map json) => + ModRemovePostV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + reason: json['reason'] as String?, + removed: json['removed'] as bool, + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModRemovePostV3ToJson(ModRemovePostV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'post_id': instance.postId, + if (instance.reason case final value?) 'reason': value, + 'removed': instance.removed, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/mod_transfer_community.dart b/lib/src/models/v3/core/mod_transfer_community.dart new file mode 100644 index 00000000..7c1a6989 --- /dev/null +++ b/lib/src/models/v3/core/mod_transfer_community.dart @@ -0,0 +1,27 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'mod_transfer_community.g.dart'; + +@JsonSerializable() +class ModTransferCommunityV3 { + final int id; + final int modPersonId; + final int otherPersonId; + final int communityId; + @JsonKey(name: 'when_') + final DateTime when; + + ModTransferCommunityV3({ + required this.id, + required this.modPersonId, + required this.otherPersonId, + required this.communityId, + required this.when, + }); + + // From JSON + factory ModTransferCommunityV3.fromJson(Map json) => _$ModTransferCommunityV3FromJson(json); + + // To JSON + Map toJson() => _$ModTransferCommunityV3ToJson(this); +} diff --git a/lib/src/models/v3/core/mod_transfer_community.g.dart b/lib/src/models/v3/core/mod_transfer_community.g.dart new file mode 100644 index 00000000..36fefc87 --- /dev/null +++ b/lib/src/models/v3/core/mod_transfer_community.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_transfer_community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModTransferCommunityV3 _$ModTransferCommunityV3FromJson( + Map json) => + ModTransferCommunityV3( + id: (json['id'] as num).toInt(), + modPersonId: (json['mod_person_id'] as num).toInt(), + otherPersonId: (json['other_person_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + when: DateTime.parse(json['when_'] as String), + ); + +Map _$ModTransferCommunityV3ToJson( + ModTransferCommunityV3 instance) => + { + 'id': instance.id, + 'mod_person_id': instance.modPersonId, + 'other_person_id': instance.otherPersonId, + 'community_id': instance.communityId, + 'when_': instance.when.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/my_user_info.dart b/lib/src/models/v3/core/my_user_info.dart new file mode 100644 index 00000000..5b40aedc --- /dev/null +++ b/lib/src/models/v3/core/my_user_info.dart @@ -0,0 +1,32 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'my_user_info.g.dart'; + +@JsonSerializable() +class MyUserInfoV3 { + final LocalUserViewV3 localUserView; + final List follows; + final List moderates; + final List communityBlocks; + final List instanceBlocks; + final List personBlocks; + final List discussionLanguages; + + MyUserInfoV3({ + required this.localUserView, + required this.follows, + required this.moderates, + required this.communityBlocks, + required this.instanceBlocks, + required this.personBlocks, + required this.discussionLanguages, + }); + + // From JSON + factory MyUserInfoV3.fromJson(Map json) => _$MyUserInfoV3FromJson(json); + + // To JSON + Map toJson() => _$MyUserInfoV3ToJson(this); +} diff --git a/lib/src/models/v3/core/my_user_info.g.dart b/lib/src/models/v3/core/my_user_info.g.dart new file mode 100644 index 00000000..c5194831 --- /dev/null +++ b/lib/src/models/v3/core/my_user_info.g.dart @@ -0,0 +1,43 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'my_user_info.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +MyUserInfoV3 _$MyUserInfoV3FromJson(Map json) => MyUserInfoV3( + localUserView: LocalUserViewV3.fromJson( + json['local_user_view'] as Map), + follows: (json['follows'] as List) + .map((e) => + CommunityFollowerViewV3.fromJson(e as Map)) + .toList(), + moderates: (json['moderates'] as List) + .map((e) => + CommunityModeratorViewV3.fromJson(e as Map)) + .toList(), + communityBlocks: (json['community_blocks'] as List) + .map((e) => CommunityBlockViewV3.fromJson(e as Map)) + .toList(), + instanceBlocks: (json['instance_blocks'] as List) + .map((e) => InstanceBlockViewV3.fromJson(e as Map)) + .toList(), + personBlocks: (json['person_blocks'] as List) + .map((e) => PersonBlockViewV3.fromJson(e as Map)) + .toList(), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$MyUserInfoV3ToJson(MyUserInfoV3 instance) => + { + 'local_user_view': instance.localUserView, + 'follows': instance.follows, + 'moderates': instance.moderates, + 'community_blocks': instance.communityBlocks, + 'instance_blocks': instance.instanceBlocks, + 'person_blocks': instance.personBlocks, + 'discussion_languages': instance.discussionLanguages, + }; diff --git a/lib/src/models/v3/core/person.dart b/lib/src/models/v3/core/person.dart new file mode 100644 index 00000000..10129876 --- /dev/null +++ b/lib/src/models/v3/core/person.dart @@ -0,0 +1,48 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'person.g.dart'; + +@JsonSerializable() +class PersonV3 { + final int id; + final String name; + final String? displayName; + final String? avatar; + final bool banned; + final DateTime published; + final DateTime? updated; + final String actorId; + final String? bio; + final bool local; + final String? banner; + final bool deleted; + final String? matrixUserId; + final bool botAccount; + final DateTime? banExpires; + final int instanceId; + + PersonV3({ + required this.id, + required this.name, + this.displayName, + this.avatar, + required this.banned, + required this.published, + this.updated, + required this.actorId, + this.bio, + required this.local, + this.banner, + required this.deleted, + this.matrixUserId, + required this.botAccount, + this.banExpires, + required this.instanceId, + }); + + // From JSON + factory PersonV3.fromJson(Map json) => _$PersonV3FromJson(json); + + // To JSON + Map toJson() => _$PersonV3ToJson(this); +} diff --git a/lib/src/models/v3/core/person.g.dart b/lib/src/models/v3/core/person.g.dart new file mode 100644 index 00000000..33c8a929 --- /dev/null +++ b/lib/src/models/v3/core/person.g.dart @@ -0,0 +1,51 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonV3 _$PersonV3FromJson(Map json) => PersonV3( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + displayName: json['display_name'] as String?, + avatar: json['avatar'] as String?, + banned: json['banned'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + actorId: json['actor_id'] as String, + bio: json['bio'] as String?, + local: json['local'] as bool, + banner: json['banner'] as String?, + deleted: json['deleted'] as bool, + matrixUserId: json['matrix_user_id'] as String?, + botAccount: json['bot_account'] as bool, + banExpires: json['ban_expires'] == null + ? null + : DateTime.parse(json['ban_expires'] as String), + instanceId: (json['instance_id'] as num).toInt(), + ); + +Map _$PersonV3ToJson(PersonV3 instance) => { + 'id': instance.id, + 'name': instance.name, + if (instance.displayName case final value?) 'display_name': value, + if (instance.avatar case final value?) 'avatar': value, + 'banned': instance.banned, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'actor_id': instance.actorId, + if (instance.bio case final value?) 'bio': value, + 'local': instance.local, + if (instance.banner case final value?) 'banner': value, + 'deleted': instance.deleted, + if (instance.matrixUserId case final value?) 'matrix_user_id': value, + 'bot_account': instance.botAccount, + if (instance.banExpires?.toIso8601String() case final value?) + 'ban_expires': value, + 'instance_id': instance.instanceId, + }; diff --git a/lib/src/models/v3/core/person_aggregates.dart b/lib/src/models/v3/core/person_aggregates.dart new file mode 100644 index 00000000..548d7f9a --- /dev/null +++ b/lib/src/models/v3/core/person_aggregates.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'person_aggregates.g.dart'; + +@JsonSerializable() +class PersonAggregatesV3 { + final int personId; + final int postCount; + final int commentCount; + + PersonAggregatesV3({ + required this.personId, + required this.postCount, + required this.commentCount, + }); + + // From JSON + factory PersonAggregatesV3.fromJson(Map json) => _$PersonAggregatesV3FromJson(json); + + // To JSON + Map toJson() => _$PersonAggregatesV3ToJson(this); +} diff --git a/lib/src/models/v3/core/person_aggregates.g.dart b/lib/src/models/v3/core/person_aggregates.g.dart new file mode 100644 index 00000000..bb03222f --- /dev/null +++ b/lib/src/models/v3/core/person_aggregates.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonAggregatesV3 _$PersonAggregatesV3FromJson(Map json) => + PersonAggregatesV3( + personId: (json['person_id'] as num).toInt(), + postCount: (json['post_count'] as num).toInt(), + commentCount: (json['comment_count'] as num).toInt(), + ); + +Map _$PersonAggregatesV3ToJson(PersonAggregatesV3 instance) => + { + 'person_id': instance.personId, + 'post_count': instance.postCount, + 'comment_count': instance.commentCount, + }; diff --git a/lib/src/models/v3/core/person_mention.dart b/lib/src/models/v3/core/person_mention.dart new file mode 100644 index 00000000..9e0782e5 --- /dev/null +++ b/lib/src/models/v3/core/person_mention.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'person_mention.g.dart'; + +@JsonSerializable() +class PersonMentionV3 { + final int id; + final int recipientId; + final int commentId; + final bool read; + final DateTime published; + + PersonMentionV3({ + required this.id, + required this.recipientId, + required this.commentId, + required this.read, + required this.published, + }); + + // From JSON + factory PersonMentionV3.fromJson(Map json) => _$PersonMentionV3FromJson(json); + + // To JSON + Map toJson() => _$PersonMentionV3ToJson(this); +} diff --git a/lib/src/models/v3/core/person_mention.g.dart b/lib/src/models/v3/core/person_mention.g.dart new file mode 100644 index 00000000..f516a07c --- /dev/null +++ b/lib/src/models/v3/core/person_mention.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_mention.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonMentionV3 _$PersonMentionV3FromJson(Map json) => + PersonMentionV3( + id: (json['id'] as num).toInt(), + recipientId: (json['recipient_id'] as num).toInt(), + commentId: (json['comment_id'] as num).toInt(), + read: json['read'] as bool, + published: DateTime.parse(json['published'] as String), + ); + +Map _$PersonMentionV3ToJson(PersonMentionV3 instance) => + { + 'id': instance.id, + 'recipient_id': instance.recipientId, + 'comment_id': instance.commentId, + 'read': instance.read, + 'published': instance.published.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/post.dart b/lib/src/models/v3/core/post.dart new file mode 100644 index 00000000..28b48087 --- /dev/null +++ b/lib/src/models/v3/core/post.dart @@ -0,0 +1,62 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'post.g.dart'; + +@JsonSerializable() +class PostV3 { + final int id; + final String name; + final String? url; + final String? body; + final int creatorId; + final int communityId; + final bool removed; + final bool locked; + final DateTime published; + final DateTime? updated; + final bool deleted; + final bool nsfw; + final String? embedTitle; + final String? embedDescription; + final String? thumbnailUrl; + final String apId; + final bool local; + final String? embedVideoUrl; + final int languageId; + final bool featuredCommunity; + final bool featuredLocal; + final String? urlContentType; + final String? altText; + + PostV3({ + required this.id, + required this.name, + this.url, + this.body, + required this.creatorId, + required this.communityId, + required this.removed, + required this.locked, + required this.published, + this.updated, + required this.deleted, + required this.nsfw, + this.embedTitle, + this.embedDescription, + this.thumbnailUrl, + required this.apId, + required this.local, + this.embedVideoUrl, + required this.languageId, + required this.featuredCommunity, + required this.featuredLocal, + this.urlContentType, + this.altText, + }); + + // From JSON + factory PostV3.fromJson(Map json) => _$PostV3FromJson(json); + + // To JSON + Map toJson() => _$PostV3ToJson(this); +} diff --git a/lib/src/models/v3/core/post.g.dart b/lib/src/models/v3/core/post.g.dart new file mode 100644 index 00000000..915313ca --- /dev/null +++ b/lib/src/models/v3/core/post.g.dart @@ -0,0 +1,63 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostV3 _$PostV3FromJson(Map json) => PostV3( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + url: json['url'] as String?, + body: json['body'] as String?, + creatorId: (json['creator_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + removed: json['removed'] as bool, + locked: json['locked'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + deleted: json['deleted'] as bool, + nsfw: json['nsfw'] as bool, + embedTitle: json['embed_title'] as String?, + embedDescription: json['embed_description'] as String?, + thumbnailUrl: json['thumbnail_url'] as String?, + apId: json['ap_id'] as String, + local: json['local'] as bool, + embedVideoUrl: json['embed_video_url'] as String?, + languageId: (json['language_id'] as num).toInt(), + featuredCommunity: json['featured_community'] as bool, + featuredLocal: json['featured_local'] as bool, + urlContentType: json['url_content_type'] as String?, + altText: json['alt_text'] as String?, + ); + +Map _$PostV3ToJson(PostV3 instance) => { + 'id': instance.id, + 'name': instance.name, + if (instance.url case final value?) 'url': value, + if (instance.body case final value?) 'body': value, + 'creator_id': instance.creatorId, + 'community_id': instance.communityId, + 'removed': instance.removed, + 'locked': instance.locked, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'deleted': instance.deleted, + 'nsfw': instance.nsfw, + if (instance.embedTitle case final value?) 'embed_title': value, + if (instance.embedDescription case final value?) + 'embed_description': value, + if (instance.thumbnailUrl case final value?) 'thumbnail_url': value, + 'ap_id': instance.apId, + 'local': instance.local, + if (instance.embedVideoUrl case final value?) 'embed_video_url': value, + 'language_id': instance.languageId, + 'featured_community': instance.featuredCommunity, + 'featured_local': instance.featuredLocal, + if (instance.urlContentType case final value?) 'url_content_type': value, + if (instance.altText case final value?) 'alt_text': value, + }; diff --git a/lib/src/models/v3/core/post_aggregates.dart b/lib/src/models/v3/core/post_aggregates.dart new file mode 100644 index 00000000..81e6116b --- /dev/null +++ b/lib/src/models/v3/core/post_aggregates.dart @@ -0,0 +1,30 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'post_aggregates.g.dart'; + +@JsonSerializable() +class PostAggregatesV3 { + final int postId; + final int comments; + final int score; + final int upvotes; + final int downvotes; + final DateTime published; + final DateTime? newestCommentTime; + + PostAggregatesV3({ + required this.postId, + required this.comments, + required this.score, + required this.upvotes, + required this.downvotes, + required this.published, + this.newestCommentTime, + }); + + // From JSON + factory PostAggregatesV3.fromJson(Map json) => _$PostAggregatesV3FromJson(json); + + // To JSON + Map toJson() => _$PostAggregatesV3ToJson(this); +} diff --git a/lib/src/models/v3/core/post_aggregates.g.dart b/lib/src/models/v3/core/post_aggregates.g.dart new file mode 100644 index 00000000..224e7aa4 --- /dev/null +++ b/lib/src/models/v3/core/post_aggregates.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostAggregatesV3 _$PostAggregatesV3FromJson(Map json) => + PostAggregatesV3( + postId: (json['post_id'] as num).toInt(), + comments: (json['comments'] as num).toInt(), + score: (json['score'] as num).toInt(), + upvotes: (json['upvotes'] as num).toInt(), + downvotes: (json['downvotes'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + newestCommentTime: json['newest_comment_time'] == null + ? null + : DateTime.parse(json['newest_comment_time'] as String), + ); + +Map _$PostAggregatesV3ToJson(PostAggregatesV3 instance) => + { + 'post_id': instance.postId, + 'comments': instance.comments, + 'score': instance.score, + 'upvotes': instance.upvotes, + 'downvotes': instance.downvotes, + 'published': instance.published.toIso8601String(), + if (instance.newestCommentTime?.toIso8601String() case final value?) + 'newest_comment_time': value, + }; diff --git a/lib/src/models/v3/core/post_report.dart b/lib/src/models/v3/core/post_report.dart new file mode 100644 index 00000000..99f558a3 --- /dev/null +++ b/lib/src/models/v3/core/post_report.dart @@ -0,0 +1,38 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'post_report.g.dart'; + +@JsonSerializable() +class PostReportV3 { + final int id; + final int creatorId; + final int postId; + final String originalPostName; + final String? originalPostUrl; + final String? originalPostBody; + final String reason; + final bool resolved; + final int? resolverId; + final DateTime published; + final DateTime? updated; + + PostReportV3({ + required this.id, + required this.creatorId, + required this.postId, + required this.originalPostName, + this.originalPostUrl, + this.originalPostBody, + required this.reason, + required this.resolved, + this.resolverId, + required this.published, + this.updated, + }); + + // From JSON + factory PostReportV3.fromJson(Map json) => _$PostReportV3FromJson(json); + + // To JSON + Map toJson() => _$PostReportV3ToJson(this); +} diff --git a/lib/src/models/v3/core/post_report.g.dart b/lib/src/models/v3/core/post_report.g.dart new file mode 100644 index 00000000..07f22634 --- /dev/null +++ b/lib/src/models/v3/core/post_report.g.dart @@ -0,0 +1,41 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_report.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostReportV3 _$PostReportV3FromJson(Map json) => PostReportV3( + id: (json['id'] as num).toInt(), + creatorId: (json['creator_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + originalPostName: json['original_post_name'] as String, + originalPostUrl: json['original_post_url'] as String?, + originalPostBody: json['original_post_body'] as String?, + reason: json['reason'] as String, + resolved: json['resolved'] as bool, + resolverId: (json['resolver_id'] as num?)?.toInt(), + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$PostReportV3ToJson(PostReportV3 instance) => + { + 'id': instance.id, + 'creator_id': instance.creatorId, + 'post_id': instance.postId, + 'original_post_name': instance.originalPostName, + if (instance.originalPostUrl case final value?) + 'original_post_url': value, + if (instance.originalPostBody case final value?) + 'original_post_body': value, + 'reason': instance.reason, + 'resolved': instance.resolved, + if (instance.resolverId case final value?) 'resolver_id': value, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v3/core/private_message.dart b/lib/src/models/v3/core/private_message.dart new file mode 100644 index 00000000..f97fdcd8 --- /dev/null +++ b/lib/src/models/v3/core/private_message.dart @@ -0,0 +1,36 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'private_message.g.dart'; + +@JsonSerializable() +class PrivateMessageV3 { + final int id; + final int creatorId; + final int recipientId; + final String content; + final bool deleted; + final bool read; + final DateTime published; + final DateTime? updated; + final String apId; + final bool local; + + PrivateMessageV3({ + required this.id, + required this.creatorId, + required this.recipientId, + required this.content, + required this.deleted, + required this.read, + required this.published, + this.updated, + required this.apId, + required this.local, + }); + + // From JSON + factory PrivateMessageV3.fromJson(Map json) => _$PrivateMessageV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessageV3ToJson(this); +} diff --git a/lib/src/models/v3/core/private_message.g.dart b/lib/src/models/v3/core/private_message.g.dart new file mode 100644 index 00000000..94603f87 --- /dev/null +++ b/lib/src/models/v3/core/private_message.g.dart @@ -0,0 +1,38 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_message.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessageV3 _$PrivateMessageV3FromJson(Map json) => + PrivateMessageV3( + id: (json['id'] as num).toInt(), + creatorId: (json['creator_id'] as num).toInt(), + recipientId: (json['recipient_id'] as num).toInt(), + content: json['content'] as String, + deleted: json['deleted'] as bool, + read: json['read'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + apId: json['ap_id'] as String, + local: json['local'] as bool, + ); + +Map _$PrivateMessageV3ToJson(PrivateMessageV3 instance) => + { + 'id': instance.id, + 'creator_id': instance.creatorId, + 'recipient_id': instance.recipientId, + 'content': instance.content, + 'deleted': instance.deleted, + 'read': instance.read, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'ap_id': instance.apId, + 'local': instance.local, + }; diff --git a/lib/src/models/v3/core/private_message_report.dart b/lib/src/models/v3/core/private_message_report.dart new file mode 100644 index 00000000..2d4ce994 --- /dev/null +++ b/lib/src/models/v3/core/private_message_report.dart @@ -0,0 +1,34 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'private_message_report.g.dart'; + +@JsonSerializable() +class PrivateMessageReportV3 { + final int id; + final int creatorId; + final int privateMessageId; + final String originalPmText; + final String reason; + final bool resolved; + final int? resolverId; + final DateTime published; + final DateTime? updated; + + PrivateMessageReportV3({ + required this.id, + required this.creatorId, + required this.privateMessageId, + required this.originalPmText, + required this.reason, + required this.resolved, + this.resolverId, + required this.published, + this.updated, + }); + + // From JSON + factory PrivateMessageReportV3.fromJson(Map json) => _$PrivateMessageReportV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessageReportV3ToJson(this); +} diff --git a/lib/src/models/v3/core/private_message_report.g.dart b/lib/src/models/v3/core/private_message_report.g.dart new file mode 100644 index 00000000..80367232 --- /dev/null +++ b/lib/src/models/v3/core/private_message_report.g.dart @@ -0,0 +1,38 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_message_report.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessageReportV3 _$PrivateMessageReportV3FromJson( + Map json) => + PrivateMessageReportV3( + id: (json['id'] as num).toInt(), + creatorId: (json['creator_id'] as num).toInt(), + privateMessageId: (json['private_message_id'] as num).toInt(), + originalPmText: json['original_pm_text'] as String, + reason: json['reason'] as String, + resolved: json['resolved'] as bool, + resolverId: (json['resolver_id'] as num?)?.toInt(), + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$PrivateMessageReportV3ToJson( + PrivateMessageReportV3 instance) => + { + 'id': instance.id, + 'creator_id': instance.creatorId, + 'private_message_id': instance.privateMessageId, + 'original_pm_text': instance.originalPmText, + 'reason': instance.reason, + 'resolved': instance.resolved, + if (instance.resolverId case final value?) 'resolver_id': value, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v3/core/readable_federation_state.dart b/lib/src/models/v3/core/readable_federation_state.dart new file mode 100644 index 00000000..ca63e8b6 --- /dev/null +++ b/lib/src/models/v3/core/readable_federation_state.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'readable_federation_state.g.dart'; + +@JsonSerializable() +class ReadableFederationStateV3 { + final int instanceId; + final int? lastSuccessfulId; + final DateTime? lastSuccessfulPublishedTime; + final int failCount; + final DateTime? lastRetry; + final DateTime? nextRetry; + + ReadableFederationStateV3({ + required this.instanceId, + this.lastSuccessfulId, + this.lastSuccessfulPublishedTime, + required this.failCount, + this.lastRetry, + this.nextRetry, + }); + + // From JSON + factory ReadableFederationStateV3.fromJson(Map json) => _$ReadableFederationStateV3FromJson(json); + + // To JSON + Map toJson() => _$ReadableFederationStateV3ToJson(this); +} diff --git a/lib/src/models/v3/core/readable_federation_state.g.dart b/lib/src/models/v3/core/readable_federation_state.g.dart new file mode 100644 index 00000000..62d911d0 --- /dev/null +++ b/lib/src/models/v3/core/readable_federation_state.g.dart @@ -0,0 +1,41 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'readable_federation_state.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ReadableFederationStateV3 _$ReadableFederationStateV3FromJson( + Map json) => + ReadableFederationStateV3( + instanceId: (json['instance_id'] as num).toInt(), + lastSuccessfulId: (json['last_successful_id'] as num?)?.toInt(), + lastSuccessfulPublishedTime: json['last_successful_published_time'] == + null + ? null + : DateTime.parse(json['last_successful_published_time'] as String), + failCount: (json['fail_count'] as num).toInt(), + lastRetry: json['last_retry'] == null + ? null + : DateTime.parse(json['last_retry'] as String), + nextRetry: json['next_retry'] == null + ? null + : DateTime.parse(json['next_retry'] as String), + ); + +Map _$ReadableFederationStateV3ToJson( + ReadableFederationStateV3 instance) => + { + 'instance_id': instance.instanceId, + if (instance.lastSuccessfulId case final value?) + 'last_successful_id': value, + if (instance.lastSuccessfulPublishedTime?.toIso8601String() + case final value?) + 'last_successful_published_time': value, + 'fail_count': instance.failCount, + if (instance.lastRetry?.toIso8601String() case final value?) + 'last_retry': value, + if (instance.nextRetry?.toIso8601String() case final value?) + 'next_retry': value, + }; diff --git a/lib/src/models/v3/core/registration_application.dart b/lib/src/models/v3/core/registration_application.dart new file mode 100644 index 00000000..4922dc66 --- /dev/null +++ b/lib/src/models/v3/core/registration_application.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'registration_application.g.dart'; + +@JsonSerializable() +class RegistrationApplicationV3 { + final int id; + final int localUserId; + final String answer; + final int? adminId; + final String? denyReason; + final DateTime published; + + RegistrationApplicationV3({ + required this.id, + required this.localUserId, + required this.answer, + this.adminId, + this.denyReason, + required this.published, + }); + + // From JSON + factory RegistrationApplicationV3.fromJson(Map json) => _$RegistrationApplicationV3FromJson(json); + + // To JSON + Map toJson() => _$RegistrationApplicationV3ToJson(this); +} diff --git a/lib/src/models/v3/core/registration_application.g.dart b/lib/src/models/v3/core/registration_application.g.dart new file mode 100644 index 00000000..b48fb90b --- /dev/null +++ b/lib/src/models/v3/core/registration_application.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'registration_application.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +RegistrationApplicationV3 _$RegistrationApplicationV3FromJson( + Map json) => + RegistrationApplicationV3( + id: (json['id'] as num).toInt(), + localUserId: (json['local_user_id'] as num).toInt(), + answer: json['answer'] as String, + adminId: (json['admin_id'] as num?)?.toInt(), + denyReason: json['deny_reason'] as String?, + published: DateTime.parse(json['published'] as String), + ); + +Map _$RegistrationApplicationV3ToJson( + RegistrationApplicationV3 instance) => + { + 'id': instance.id, + 'local_user_id': instance.localUserId, + 'answer': instance.answer, + if (instance.adminId case final value?) 'admin_id': value, + if (instance.denyReason case final value?) 'deny_reason': value, + 'published': instance.published.toIso8601String(), + }; diff --git a/lib/src/models/v3/core/site.dart b/lib/src/models/v3/core/site.dart new file mode 100644 index 00000000..9441af97 --- /dev/null +++ b/lib/src/models/v3/core/site.dart @@ -0,0 +1,46 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'site.g.dart'; + +@JsonSerializable() +class SiteV3 { + final int id; + final String name; + final String? sidebar; + final DateTime published; + final DateTime? updated; + final String? icon; + final String? banner; + final String? description; + final String actorId; + final DateTime lastRefreshedAt; + final String inboxUrl; + final String? privateKey; + final String publicKey; + final int instanceId; + final String? contentWarning; + + SiteV3({ + required this.id, + required this.name, + this.sidebar, + required this.published, + this.updated, + this.icon, + this.banner, + this.description, + required this.actorId, + required this.lastRefreshedAt, + required this.inboxUrl, + this.privateKey, + required this.publicKey, + required this.instanceId, + this.contentWarning, + }); + + // From JSON + factory SiteV3.fromJson(Map json) => _$SiteV3FromJson(json); + + // To JSON + Map toJson() => _$SiteV3ToJson(this); +} diff --git a/lib/src/models/v3/core/site.g.dart b/lib/src/models/v3/core/site.g.dart new file mode 100644 index 00000000..d9f49f8e --- /dev/null +++ b/lib/src/models/v3/core/site.g.dart @@ -0,0 +1,46 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SiteV3 _$SiteV3FromJson(Map json) => SiteV3( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + sidebar: json['sidebar'] as String?, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + icon: json['icon'] as String?, + banner: json['banner'] as String?, + description: json['description'] as String?, + actorId: json['actor_id'] as String, + lastRefreshedAt: DateTime.parse(json['last_refreshed_at'] as String), + inboxUrl: json['inbox_url'] as String, + privateKey: json['private_key'] as String?, + publicKey: json['public_key'] as String, + instanceId: (json['instance_id'] as num).toInt(), + contentWarning: json['content_warning'] as String?, + ); + +Map _$SiteV3ToJson(SiteV3 instance) => { + 'id': instance.id, + 'name': instance.name, + if (instance.sidebar case final value?) 'sidebar': value, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + if (instance.icon case final value?) 'icon': value, + if (instance.banner case final value?) 'banner': value, + if (instance.description case final value?) 'description': value, + 'actor_id': instance.actorId, + 'last_refreshed_at': instance.lastRefreshedAt.toIso8601String(), + 'inbox_url': instance.inboxUrl, + if (instance.privateKey case final value?) 'private_key': value, + 'public_key': instance.publicKey, + 'instance_id': instance.instanceId, + if (instance.contentWarning case final value?) 'content_warning': value, + }; diff --git a/lib/src/models/v3/core/site_aggregates.dart b/lib/src/models/v3/core/site_aggregates.dart new file mode 100644 index 00000000..db4b48b6 --- /dev/null +++ b/lib/src/models/v3/core/site_aggregates.dart @@ -0,0 +1,34 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'site_aggregates.g.dart'; + +@JsonSerializable() +class SiteAggregatesV3 { + final int siteId; + final int users; + final int posts; + final int comments; + final int communities; + final int usersActiveDay; + final int usersActiveWeek; + final int usersActiveMonth; + final int usersActiveHalfYear; + + SiteAggregatesV3({ + required this.siteId, + required this.users, + required this.posts, + required this.comments, + required this.communities, + required this.usersActiveDay, + required this.usersActiveWeek, + required this.usersActiveMonth, + required this.usersActiveHalfYear, + }); + + // From JSON + factory SiteAggregatesV3.fromJson(Map json) => _$SiteAggregatesV3FromJson(json); + + // To JSON + Map toJson() => _$SiteAggregatesV3ToJson(this); +} diff --git a/lib/src/models/v3/core/site_aggregates.g.dart b/lib/src/models/v3/core/site_aggregates.g.dart new file mode 100644 index 00000000..145e18bf --- /dev/null +++ b/lib/src/models/v3/core/site_aggregates.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SiteAggregatesV3 _$SiteAggregatesV3FromJson(Map json) => + SiteAggregatesV3( + siteId: (json['site_id'] as num).toInt(), + users: (json['users'] as num).toInt(), + posts: (json['posts'] as num).toInt(), + comments: (json['comments'] as num).toInt(), + communities: (json['communities'] as num).toInt(), + usersActiveDay: (json['users_active_day'] as num).toInt(), + usersActiveWeek: (json['users_active_week'] as num).toInt(), + usersActiveMonth: (json['users_active_month'] as num).toInt(), + usersActiveHalfYear: (json['users_active_half_year'] as num).toInt(), + ); + +Map _$SiteAggregatesV3ToJson(SiteAggregatesV3 instance) => + { + 'site_id': instance.siteId, + 'users': instance.users, + 'posts': instance.posts, + 'comments': instance.comments, + 'communities': instance.communities, + 'users_active_day': instance.usersActiveDay, + 'users_active_week': instance.usersActiveWeek, + 'users_active_month': instance.usersActiveMonth, + 'users_active_half_year': instance.usersActiveHalfYear, + }; diff --git a/lib/src/models/v3/core/tagline.dart b/lib/src/models/v3/core/tagline.dart new file mode 100644 index 00000000..21c8c528 --- /dev/null +++ b/lib/src/models/v3/core/tagline.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'tagline.g.dart'; + +@JsonSerializable() +class TaglineV3 { + final int id; + final int localSiteId; + final String content; + final DateTime published; + final DateTime? updated; + + TaglineV3({ + required this.id, + required this.localSiteId, + required this.content, + required this.published, + this.updated, + }); + + // From JSON + factory TaglineV3.fromJson(Map json) => _$TaglineV3FromJson(json); + + // To JSON + Map toJson() => _$TaglineV3ToJson(this); +} diff --git a/lib/src/models/v3/core/tagline.g.dart b/lib/src/models/v3/core/tagline.g.dart new file mode 100644 index 00000000..9b7e2344 --- /dev/null +++ b/lib/src/models/v3/core/tagline.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'tagline.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +TaglineV3 _$TaglineV3FromJson(Map json) => TaglineV3( + id: (json['id'] as num).toInt(), + localSiteId: (json['local_site_id'] as num).toInt(), + content: json['content'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$TaglineV3ToJson(TaglineV3 instance) => { + 'id': instance.id, + 'local_site_id': instance.localSiteId, + 'content': instance.content, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v3/models.dart b/lib/src/models/v3/models.dart new file mode 100644 index 00000000..88f1b5ee --- /dev/null +++ b/lib/src/models/v3/models.dart @@ -0,0 +1,2 @@ +export 'view/views.dart'; +export 'core/core.dart'; diff --git a/lib/src/models/v3/response/add_admin_response.dart b/lib/src/models/v3/response/add_admin_response.dart new file mode 100644 index 00000000..a9a0a9c6 --- /dev/null +++ b/lib/src/models/v3/response/add_admin_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'add_admin_response.g.dart'; + +@JsonSerializable() +class AddAdminResponseV3 { + final List admins; + + AddAdminResponseV3({ + required this.admins, + }); + + // From JSON + factory AddAdminResponseV3.fromJson(Map json) => _$AddAdminResponseV3FromJson(json); + + // To JSON + Map toJson() => _$AddAdminResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/add_admin_response.g.dart b/lib/src/models/v3/response/add_admin_response.g.dart new file mode 100644 index 00000000..01d11688 --- /dev/null +++ b/lib/src/models/v3/response/add_admin_response.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'add_admin_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AddAdminResponseV3 _$AddAdminResponseV3FromJson(Map json) => + AddAdminResponseV3( + admins: (json['admins'] as List) + .map((e) => PersonViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$AddAdminResponseV3ToJson(AddAdminResponseV3 instance) => + { + 'admins': instance.admins, + }; diff --git a/lib/src/models/v3/response/add_mod_to_community_response.dart b/lib/src/models/v3/response/add_mod_to_community_response.dart new file mode 100644 index 00000000..5f3aa84c --- /dev/null +++ b/lib/src/models/v3/response/add_mod_to_community_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'add_mod_to_community_response.g.dart'; + +@JsonSerializable() +class AddModToCommunityResponseV3 { + final List moderators; + + AddModToCommunityResponseV3({ + required this.moderators, + }); + + // From JSON + factory AddModToCommunityResponseV3.fromJson(Map json) => _$AddModToCommunityResponseV3FromJson(json); + + // To JSON + Map toJson() => _$AddModToCommunityResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/add_mod_to_community_response.g.dart b/lib/src/models/v3/response/add_mod_to_community_response.g.dart new file mode 100644 index 00000000..5e930d98 --- /dev/null +++ b/lib/src/models/v3/response/add_mod_to_community_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'add_mod_to_community_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AddModToCommunityResponseV3 _$AddModToCommunityResponseV3FromJson( + Map json) => + AddModToCommunityResponseV3( + moderators: (json['moderators'] as List) + .map((e) => + CommunityModeratorViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$AddModToCommunityResponseV3ToJson( + AddModToCommunityResponseV3 instance) => + { + 'moderators': instance.moderators, + }; diff --git a/lib/src/models/v3/response/ban_from_community_response.dart b/lib/src/models/v3/response/ban_from_community_response.dart new file mode 100644 index 00000000..95205950 --- /dev/null +++ b/lib/src/models/v3/response/ban_from_community_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'ban_from_community_response.g.dart'; + +@JsonSerializable() +class BanFromCommunityResponseV3 { + final PersonViewV3 personView; + final bool banned; + + BanFromCommunityResponseV3({ + required this.personView, + required this.banned, + }); + + // From JSON + factory BanFromCommunityResponseV3.fromJson(Map json) => _$BanFromCommunityResponseV3FromJson(json); + + // To JSON + Map toJson() => _$BanFromCommunityResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/ban_from_community_response.g.dart b/lib/src/models/v3/response/ban_from_community_response.g.dart new file mode 100644 index 00000000..56b01f0b --- /dev/null +++ b/lib/src/models/v3/response/ban_from_community_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'ban_from_community_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BanFromCommunityResponseV3 _$BanFromCommunityResponseV3FromJson( + Map json) => + BanFromCommunityResponseV3( + personView: + PersonViewV3.fromJson(json['person_view'] as Map), + banned: json['banned'] as bool, + ); + +Map _$BanFromCommunityResponseV3ToJson( + BanFromCommunityResponseV3 instance) => + { + 'person_view': instance.personView, + 'banned': instance.banned, + }; diff --git a/lib/src/models/v3/response/ban_person_response.dart b/lib/src/models/v3/response/ban_person_response.dart new file mode 100644 index 00000000..cb72c77a --- /dev/null +++ b/lib/src/models/v3/response/ban_person_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'ban_person_response.g.dart'; + +@JsonSerializable() +class BanPersonResponseV3 { + final PersonViewV3 personView; + final bool banned; + + BanPersonResponseV3({ + required this.personView, + required this.banned, + }); + + // From JSON + factory BanPersonResponseV3.fromJson(Map json) => _$BanPersonResponseV3FromJson(json); + + // To JSON + Map toJson() => _$BanPersonResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/ban_person_response.g.dart b/lib/src/models/v3/response/ban_person_response.g.dart new file mode 100644 index 00000000..3d7d8d3b --- /dev/null +++ b/lib/src/models/v3/response/ban_person_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'ban_person_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BanPersonResponseV3 _$BanPersonResponseV3FromJson(Map json) => + BanPersonResponseV3( + personView: + PersonViewV3.fromJson(json['person_view'] as Map), + banned: json['banned'] as bool, + ); + +Map _$BanPersonResponseV3ToJson( + BanPersonResponseV3 instance) => + { + 'person_view': instance.personView, + 'banned': instance.banned, + }; diff --git a/lib/src/models/v3/response/banned_persons_response.dart b/lib/src/models/v3/response/banned_persons_response.dart new file mode 100644 index 00000000..8042481e --- /dev/null +++ b/lib/src/models/v3/response/banned_persons_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'banned_persons_response.g.dart'; + +@JsonSerializable() +class BannedPersonsResponseV3 { + final List banned; + + BannedPersonsResponseV3({ + required this.banned, + }); + + // From JSON + factory BannedPersonsResponseV3.fromJson(Map json) => _$BannedPersonsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$BannedPersonsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/banned_persons_response.g.dart b/lib/src/models/v3/response/banned_persons_response.g.dart new file mode 100644 index 00000000..bdff9967 --- /dev/null +++ b/lib/src/models/v3/response/banned_persons_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'banned_persons_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BannedPersonsResponseV3 _$BannedPersonsResponseV3FromJson( + Map json) => + BannedPersonsResponseV3( + banned: (json['banned'] as List) + .map((e) => PersonViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$BannedPersonsResponseV3ToJson( + BannedPersonsResponseV3 instance) => + { + 'banned': instance.banned, + }; diff --git a/lib/src/models/v3/response/block_community_response.dart b/lib/src/models/v3/response/block_community_response.dart new file mode 100644 index 00000000..c427e82a --- /dev/null +++ b/lib/src/models/v3/response/block_community_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'block_community_response.g.dart'; + +@JsonSerializable() +class BlockCommunityResponseV3 { + final CommunityViewV3 communityView; + final bool blocked; + + BlockCommunityResponseV3({ + required this.communityView, + required this.blocked, + }); + + // From JSON + factory BlockCommunityResponseV3.fromJson(Map json) => _$BlockCommunityResponseV3FromJson(json); + + // To JSON + Map toJson() => _$BlockCommunityResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/block_community_response.g.dart b/lib/src/models/v3/response/block_community_response.g.dart new file mode 100644 index 00000000..7a9e49dd --- /dev/null +++ b/lib/src/models/v3/response/block_community_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'block_community_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BlockCommunityResponseV3 _$BlockCommunityResponseV3FromJson( + Map json) => + BlockCommunityResponseV3( + communityView: CommunityViewV3.fromJson( + json['community_view'] as Map), + blocked: json['blocked'] as bool, + ); + +Map _$BlockCommunityResponseV3ToJson( + BlockCommunityResponseV3 instance) => + { + 'community_view': instance.communityView, + 'blocked': instance.blocked, + }; diff --git a/lib/src/models/v3/response/block_instance_response.dart b/lib/src/models/v3/response/block_instance_response.dart new file mode 100644 index 00000000..1b59c1d7 --- /dev/null +++ b/lib/src/models/v3/response/block_instance_response.dart @@ -0,0 +1,18 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'block_instance_response.g.dart'; + +@JsonSerializable() +class BlockInstanceResponseV3 { + final bool blocked; + + BlockInstanceResponseV3({ + required this.blocked, + }); + + // From JSON + factory BlockInstanceResponseV3.fromJson(Map json) => _$BlockInstanceResponseV3FromJson(json); + + // To JSON + Map toJson() => _$BlockInstanceResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/block_instance_response.g.dart b/lib/src/models/v3/response/block_instance_response.g.dart new file mode 100644 index 00000000..00912602 --- /dev/null +++ b/lib/src/models/v3/response/block_instance_response.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'block_instance_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BlockInstanceResponseV3 _$BlockInstanceResponseV3FromJson( + Map json) => + BlockInstanceResponseV3( + blocked: json['blocked'] as bool, + ); + +Map _$BlockInstanceResponseV3ToJson( + BlockInstanceResponseV3 instance) => + { + 'blocked': instance.blocked, + }; diff --git a/lib/src/models/v3/response/block_person_response.dart b/lib/src/models/v3/response/block_person_response.dart new file mode 100644 index 00000000..0f7384a9 --- /dev/null +++ b/lib/src/models/v3/response/block_person_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'block_person_response.g.dart'; + +@JsonSerializable() +class BlockPersonResponseV3 { + final PersonViewV3 personView; + final bool blocked; + + BlockPersonResponseV3({ + required this.personView, + required this.blocked, + }); + + // From JSON + factory BlockPersonResponseV3.fromJson(Map json) => _$BlockPersonResponseV3FromJson(json); + + // To JSON + Map toJson() => _$BlockPersonResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/block_person_response.g.dart b/lib/src/models/v3/response/block_person_response.g.dart new file mode 100644 index 00000000..e3adc687 --- /dev/null +++ b/lib/src/models/v3/response/block_person_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'block_person_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BlockPersonResponseV3 _$BlockPersonResponseV3FromJson( + Map json) => + BlockPersonResponseV3( + personView: + PersonViewV3.fromJson(json['person_view'] as Map), + blocked: json['blocked'] as bool, + ); + +Map _$BlockPersonResponseV3ToJson( + BlockPersonResponseV3 instance) => + { + 'person_view': instance.personView, + 'blocked': instance.blocked, + }; diff --git a/lib/src/models/v3/response/captcha_response.dart b/lib/src/models/v3/response/captcha_response.dart new file mode 100644 index 00000000..52ec8a9a --- /dev/null +++ b/lib/src/models/v3/response/captcha_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'captcha_response.g.dart'; + +@JsonSerializable() +class CaptchaResponseV3 { + final String png; + final String wav; + final String uuid; + + CaptchaResponseV3({ + required this.png, + required this.wav, + required this.uuid, + }); + + // From JSON + factory CaptchaResponseV3.fromJson(Map json) => _$CaptchaResponseV3FromJson(json); + + // To JSON + Map toJson() => _$CaptchaResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/captcha_response.g.dart b/lib/src/models/v3/response/captcha_response.g.dart new file mode 100644 index 00000000..1ab278d8 --- /dev/null +++ b/lib/src/models/v3/response/captcha_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'captcha_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CaptchaResponseV3 _$CaptchaResponseV3FromJson(Map json) => + CaptchaResponseV3( + png: json['png'] as String, + wav: json['wav'] as String, + uuid: json['uuid'] as String, + ); + +Map _$CaptchaResponseV3ToJson(CaptchaResponseV3 instance) => + { + 'png': instance.png, + 'wav': instance.wav, + 'uuid': instance.uuid, + }; diff --git a/lib/src/models/v3/response/comment_reply_response.dart b/lib/src/models/v3/response/comment_reply_response.dart new file mode 100644 index 00000000..6e18fbab --- /dev/null +++ b/lib/src/models/v3/response/comment_reply_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'comment_reply_response.g.dart'; + +@JsonSerializable() +class CommentReplyResponseV3 { + final CommentReplyViewV3 commentReplyView; + + CommentReplyResponseV3({ + required this.commentReplyView, + }); + + // From JSON + factory CommentReplyResponseV3.fromJson(Map json) => _$CommentReplyResponseV3FromJson(json); + + // To JSON + Map toJson() => _$CommentReplyResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/comment_reply_response.g.dart b/lib/src/models/v3/response/comment_reply_response.g.dart new file mode 100644 index 00000000..9cf4fce2 --- /dev/null +++ b/lib/src/models/v3/response/comment_reply_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_reply_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentReplyResponseV3 _$CommentReplyResponseV3FromJson( + Map json) => + CommentReplyResponseV3( + commentReplyView: CommentReplyViewV3.fromJson( + json['comment_reply_view'] as Map), + ); + +Map _$CommentReplyResponseV3ToJson( + CommentReplyResponseV3 instance) => + { + 'comment_reply_view': instance.commentReplyView, + }; diff --git a/lib/src/models/v3/response/comment_report_response.dart b/lib/src/models/v3/response/comment_report_response.dart new file mode 100644 index 00000000..1479bdb3 --- /dev/null +++ b/lib/src/models/v3/response/comment_report_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'comment_report_response.g.dart'; + +@JsonSerializable() +class CommentReportResponseV3 { + final CommentReportViewV3 commentReportView; + + CommentReportResponseV3({ + required this.commentReportView, + }); + + // From JSON + factory CommentReportResponseV3.fromJson(Map json) => _$CommentReportResponseV3FromJson(json); + + // To JSON + Map toJson() => _$CommentReportResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/comment_report_response.g.dart b/lib/src/models/v3/response/comment_report_response.g.dart new file mode 100644 index 00000000..dd76b0c3 --- /dev/null +++ b/lib/src/models/v3/response/comment_report_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_report_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentReportResponseV3 _$CommentReportResponseV3FromJson( + Map json) => + CommentReportResponseV3( + commentReportView: CommentReportViewV3.fromJson( + json['comment_report_view'] as Map), + ); + +Map _$CommentReportResponseV3ToJson( + CommentReportResponseV3 instance) => + { + 'comment_report_view': instance.commentReportView, + }; diff --git a/lib/src/models/v3/response/comment_response.dart b/lib/src/models/v3/response/comment_response.dart new file mode 100644 index 00000000..1ffd3e5e --- /dev/null +++ b/lib/src/models/v3/response/comment_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'comment_response.g.dart'; + +@JsonSerializable() +class CommentResponseV3 { + final CommentViewV3 commentView; + final List recipientIds; + + CommentResponseV3({ + required this.commentView, + required this.recipientIds, + }); + + // From JSON + factory CommentResponseV3.fromJson(Map json) => _$CommentResponseV3FromJson(json); + + // To JSON + Map toJson() => _$CommentResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/comment_response.g.dart b/lib/src/models/v3/response/comment_response.g.dart new file mode 100644 index 00000000..8b6cbb10 --- /dev/null +++ b/lib/src/models/v3/response/comment_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentResponseV3 _$CommentResponseV3FromJson(Map json) => + CommentResponseV3( + commentView: + CommentViewV3.fromJson(json['comment_view'] as Map), + recipientIds: (json['recipient_ids'] as List) + .map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$CommentResponseV3ToJson(CommentResponseV3 instance) => + { + 'comment_view': instance.commentView, + 'recipient_ids': instance.recipientIds, + }; diff --git a/lib/src/models/v3/response/community_response.dart b/lib/src/models/v3/response/community_response.dart new file mode 100644 index 00000000..836cebc7 --- /dev/null +++ b/lib/src/models/v3/response/community_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'community_response.g.dart'; + +@JsonSerializable() +class CommunityResponseV3 { + final CommunityViewV3 communityView; + final List discussionLanguages; + + CommunityResponseV3({ + required this.communityView, + required this.discussionLanguages, + }); + + // From JSON + factory CommunityResponseV3.fromJson(Map json) => _$CommunityResponseV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/community_response.g.dart b/lib/src/models/v3/response/community_response.g.dart new file mode 100644 index 00000000..e7330c94 --- /dev/null +++ b/lib/src/models/v3/response/community_response.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityResponseV3 _$CommunityResponseV3FromJson(Map json) => + CommunityResponseV3( + communityView: CommunityViewV3.fromJson( + json['community_view'] as Map), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$CommunityResponseV3ToJson( + CommunityResponseV3 instance) => + { + 'community_view': instance.communityView, + 'discussion_languages': instance.discussionLanguages, + }; diff --git a/lib/src/models/v3/response/custom_emoji_response.dart b/lib/src/models/v3/response/custom_emoji_response.dart new file mode 100644 index 00000000..d14ea65d --- /dev/null +++ b/lib/src/models/v3/response/custom_emoji_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'custom_emoji_response.g.dart'; + +@JsonSerializable() +class CustomEmojiResponseV3 { + final CustomEmojiViewV3 customEmoji; + + CustomEmojiResponseV3({ + required this.customEmoji, + }); + + // From JSON + factory CustomEmojiResponseV3.fromJson(Map json) => _$CustomEmojiResponseV3FromJson(json); + + // To JSON + Map toJson() => _$CustomEmojiResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/custom_emoji_response.g.dart b/lib/src/models/v3/response/custom_emoji_response.g.dart new file mode 100644 index 00000000..7e5f01c8 --- /dev/null +++ b/lib/src/models/v3/response/custom_emoji_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'custom_emoji_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CustomEmojiResponseV3 _$CustomEmojiResponseV3FromJson( + Map json) => + CustomEmojiResponseV3( + customEmoji: CustomEmojiViewV3.fromJson( + json['custom_emoji'] as Map), + ); + +Map _$CustomEmojiResponseV3ToJson( + CustomEmojiResponseV3 instance) => + { + 'custom_emoji': instance.customEmoji, + }; diff --git a/lib/src/models/v3/response/generate_totp_secret_response.dart b/lib/src/models/v3/response/generate_totp_secret_response.dart new file mode 100644 index 00000000..6f886112 --- /dev/null +++ b/lib/src/models/v3/response/generate_totp_secret_response.dart @@ -0,0 +1,18 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'generate_totp_secret_response.g.dart'; + +@JsonSerializable() +class GenerateTotpSecretResponseV3 { + final String totpSecretUrl; + + GenerateTotpSecretResponseV3({ + required this.totpSecretUrl, + }); + + // From JSON + factory GenerateTotpSecretResponseV3.fromJson(Map json) => _$GenerateTotpSecretResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GenerateTotpSecretResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/generate_totp_secret_response.g.dart b/lib/src/models/v3/response/generate_totp_secret_response.g.dart new file mode 100644 index 00000000..66840ff3 --- /dev/null +++ b/lib/src/models/v3/response/generate_totp_secret_response.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'generate_totp_secret_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GenerateTotpSecretResponseV3 _$GenerateTotpSecretResponseV3FromJson( + Map json) => + GenerateTotpSecretResponseV3( + totpSecretUrl: json['totp_secret_url'] as String, + ); + +Map _$GenerateTotpSecretResponseV3ToJson( + GenerateTotpSecretResponseV3 instance) => + { + 'totp_secret_url': instance.totpSecretUrl, + }; diff --git a/lib/src/models/v3/response/get_captcha_response.dart b/lib/src/models/v3/response/get_captcha_response.dart new file mode 100644 index 00000000..8dc5416d --- /dev/null +++ b/lib/src/models/v3/response/get_captcha_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/response/captcha_response.dart'; + +part 'get_captcha_response.g.dart'; + +@JsonSerializable() +class GetCaptchaResponseV3 { + final CaptchaResponseV3? ok; + + GetCaptchaResponseV3({ + this.ok, + }); + + // From JSON + factory GetCaptchaResponseV3.fromJson(Map json) => _$GetCaptchaResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetCaptchaResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_captcha_response.g.dart b/lib/src/models/v3/response/get_captcha_response.g.dart new file mode 100644 index 00000000..36f77c82 --- /dev/null +++ b/lib/src/models/v3/response/get_captcha_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_captcha_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetCaptchaResponseV3 _$GetCaptchaResponseV3FromJson( + Map json) => + GetCaptchaResponseV3( + ok: json['ok'] == null + ? null + : CaptchaResponseV3.fromJson(json['ok'] as Map), + ); + +Map _$GetCaptchaResponseV3ToJson( + GetCaptchaResponseV3 instance) => + { + if (instance.ok case final value?) 'ok': value, + }; diff --git a/lib/src/models/v3/response/get_comments_response.dart b/lib/src/models/v3/response/get_comments_response.dart new file mode 100644 index 00000000..b190ca68 --- /dev/null +++ b/lib/src/models/v3/response/get_comments_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_comments_response.g.dart'; + +@JsonSerializable() +class GetCommentsResponseV3 { + final List comments; + + GetCommentsResponseV3({ + required this.comments, + }); + + // From JSON + factory GetCommentsResponseV3.fromJson(Map json) => _$GetCommentsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetCommentsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_comments_response.g.dart b/lib/src/models/v3/response/get_comments_response.g.dart new file mode 100644 index 00000000..4726afe9 --- /dev/null +++ b/lib/src/models/v3/response/get_comments_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_comments_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetCommentsResponseV3 _$GetCommentsResponseV3FromJson( + Map json) => + GetCommentsResponseV3( + comments: (json['comments'] as List) + .map((e) => CommentViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetCommentsResponseV3ToJson( + GetCommentsResponseV3 instance) => + { + 'comments': instance.comments, + }; diff --git a/lib/src/models/v3/response/get_community_response.dart b/lib/src/models/v3/response/get_community_response.dart new file mode 100644 index 00000000..0ccb8cd8 --- /dev/null +++ b/lib/src/models/v3/response/get_community_response.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_community_response.g.dart'; + +@JsonSerializable() +class GetCommunityResponseV3 { + final CommunityViewV3 communityView; + final SiteV3? site; + final List moderators; + final List discussionLanguages; + + GetCommunityResponseV3({ + required this.communityView, + this.site, + required this.moderators, + required this.discussionLanguages, + }); + + // From JSON + factory GetCommunityResponseV3.fromJson(Map json) => _$GetCommunityResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetCommunityResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_community_response.g.dart b/lib/src/models/v3/response/get_community_response.g.dart new file mode 100644 index 00000000..0433f1c6 --- /dev/null +++ b/lib/src/models/v3/response/get_community_response.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_community_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetCommunityResponseV3 _$GetCommunityResponseV3FromJson( + Map json) => + GetCommunityResponseV3( + communityView: CommunityViewV3.fromJson( + json['community_view'] as Map), + site: json['site'] == null + ? null + : SiteV3.fromJson(json['site'] as Map), + moderators: (json['moderators'] as List) + .map((e) => + CommunityModeratorViewV3.fromJson(e as Map)) + .toList(), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$GetCommunityResponseV3ToJson( + GetCommunityResponseV3 instance) => + { + 'community_view': instance.communityView, + if (instance.site case final value?) 'site': value, + 'moderators': instance.moderators, + 'discussion_languages': instance.discussionLanguages, + }; diff --git a/lib/src/models/v3/response/get_federated_instances_response.dart b/lib/src/models/v3/response/get_federated_instances_response.dart new file mode 100644 index 00000000..c4d9e769 --- /dev/null +++ b/lib/src/models/v3/response/get_federated_instances_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_federated_instances_response.g.dart'; + +@JsonSerializable() +class GetFederatedInstancesResponseV3 { + final FederatedInstancesV3? federatedInstances; + + GetFederatedInstancesResponseV3({ + this.federatedInstances, + }); + + // From JSON + factory GetFederatedInstancesResponseV3.fromJson(Map json) => _$GetFederatedInstancesResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetFederatedInstancesResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_federated_instances_response.g.dart b/lib/src/models/v3/response/get_federated_instances_response.g.dart new file mode 100644 index 00000000..a1d02f00 --- /dev/null +++ b/lib/src/models/v3/response/get_federated_instances_response.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_federated_instances_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetFederatedInstancesResponseV3 _$GetFederatedInstancesResponseV3FromJson( + Map json) => + GetFederatedInstancesResponseV3( + federatedInstances: json['federated_instances'] == null + ? null + : FederatedInstancesV3.fromJson( + json['federated_instances'] as Map), + ); + +Map _$GetFederatedInstancesResponseV3ToJson( + GetFederatedInstancesResponseV3 instance) => + { + if (instance.federatedInstances case final value?) + 'federated_instances': value, + }; diff --git a/lib/src/models/v3/response/get_modlog_response.dart b/lib/src/models/v3/response/get_modlog_response.dart new file mode 100644 index 00000000..027b231c --- /dev/null +++ b/lib/src/models/v3/response/get_modlog_response.dart @@ -0,0 +1,48 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_modlog_response.g.dart'; + +@JsonSerializable() +class GetModlogResponseV3 { + final List removedPosts; + final List lockedPosts; + final List featuredPosts; + final List removedComments; + final List removedCommunities; + final List bannedFromCommunity; + final List banned; + final List addedToCommunity; + final List transferredToCommunity; + final List added; + final List adminPurgedPersons; + final List adminPurgedCommunities; + final List adminPurgedPosts; + final List adminPurgedComments; + final List hiddenCommunities; + + GetModlogResponseV3({ + required this.removedPosts, + required this.lockedPosts, + required this.featuredPosts, + required this.removedComments, + required this.removedCommunities, + required this.bannedFromCommunity, + required this.banned, + required this.addedToCommunity, + required this.transferredToCommunity, + required this.added, + required this.adminPurgedPersons, + required this.adminPurgedCommunities, + required this.adminPurgedPosts, + required this.adminPurgedComments, + required this.hiddenCommunities, + }); + + // From JSON + factory GetModlogResponseV3.fromJson(Map json) => _$GetModlogResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetModlogResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_modlog_response.g.dart b/lib/src/models/v3/response/get_modlog_response.g.dart new file mode 100644 index 00000000..5ce73d90 --- /dev/null +++ b/lib/src/models/v3/response/get_modlog_response.g.dart @@ -0,0 +1,86 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_modlog_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetModlogResponseV3 _$GetModlogResponseV3FromJson(Map json) => + GetModlogResponseV3( + removedPosts: (json['removed_posts'] as List) + .map((e) => ModRemovePostViewV3.fromJson(e as Map)) + .toList(), + lockedPosts: (json['locked_posts'] as List) + .map((e) => ModLockPostViewV3.fromJson(e as Map)) + .toList(), + featuredPosts: (json['featured_posts'] as List) + .map((e) => ModFeaturePostViewV3.fromJson(e as Map)) + .toList(), + removedComments: (json['removed_comments'] as List) + .map( + (e) => ModRemoveCommentViewV3.fromJson(e as Map)) + .toList(), + removedCommunities: (json['removed_communities'] as List) + .map((e) => + ModRemoveCommunityViewV3.fromJson(e as Map)) + .toList(), + bannedFromCommunity: (json['banned_from_community'] as List) + .map((e) => + ModBanFromCommunityViewV3.fromJson(e as Map)) + .toList(), + banned: (json['banned'] as List) + .map((e) => ModBanViewV3.fromJson(e as Map)) + .toList(), + addedToCommunity: (json['added_to_community'] as List) + .map((e) => ModAddCommunityViewV3.fromJson(e as Map)) + .toList(), + transferredToCommunity: (json['transferred_to_community'] + as List) + .map((e) => + ModTransferCommunityViewV3.fromJson(e as Map)) + .toList(), + added: (json['added'] as List) + .map((e) => ModAddViewV3.fromJson(e as Map)) + .toList(), + adminPurgedPersons: (json['admin_purged_persons'] as List) + .map( + (e) => AdminPurgePersonViewV3.fromJson(e as Map)) + .toList(), + adminPurgedCommunities: + (json['admin_purged_communities'] as List) + .map((e) => + AdminPurgeCommunityViewV3.fromJson(e as Map)) + .toList(), + adminPurgedPosts: (json['admin_purged_posts'] as List) + .map((e) => AdminPurgePostViewV3.fromJson(e as Map)) + .toList(), + adminPurgedComments: (json['admin_purged_comments'] as List) + .map((e) => + AdminPurgeCommentViewV3.fromJson(e as Map)) + .toList(), + hiddenCommunities: (json['hidden_communities'] as List) + .map( + (e) => ModHideCommunityViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetModlogResponseV3ToJson( + GetModlogResponseV3 instance) => + { + 'removed_posts': instance.removedPosts, + 'locked_posts': instance.lockedPosts, + 'featured_posts': instance.featuredPosts, + 'removed_comments': instance.removedComments, + 'removed_communities': instance.removedCommunities, + 'banned_from_community': instance.bannedFromCommunity, + 'banned': instance.banned, + 'added_to_community': instance.addedToCommunity, + 'transferred_to_community': instance.transferredToCommunity, + 'added': instance.added, + 'admin_purged_persons': instance.adminPurgedPersons, + 'admin_purged_communities': instance.adminPurgedCommunities, + 'admin_purged_posts': instance.adminPurgedPosts, + 'admin_purged_comments': instance.adminPurgedComments, + 'hidden_communities': instance.hiddenCommunities, + }; diff --git a/lib/src/models/v3/response/get_person_details_response.dart b/lib/src/models/v3/response/get_person_details_response.dart new file mode 100644 index 00000000..bc45455f --- /dev/null +++ b/lib/src/models/v3/response/get_person_details_response.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_person_details_response.g.dart'; + +@JsonSerializable() +class GetPersonDetailsResponseV3 { + final PersonViewV3 personView; + final SiteV3? site; + final List comments; + final List posts; + final List moderates; + + GetPersonDetailsResponseV3({ + required this.personView, + this.site, + required this.comments, + required this.posts, + required this.moderates, + }); + + // From JSON + factory GetPersonDetailsResponseV3.fromJson(Map json) => _$GetPersonDetailsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetPersonDetailsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_person_details_response.g.dart b/lib/src/models/v3/response/get_person_details_response.g.dart new file mode 100644 index 00000000..d6ff0823 --- /dev/null +++ b/lib/src/models/v3/response/get_person_details_response.g.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_person_details_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetPersonDetailsResponseV3 _$GetPersonDetailsResponseV3FromJson( + Map json) => + GetPersonDetailsResponseV3( + personView: + PersonViewV3.fromJson(json['person_view'] as Map), + site: json['site'] == null + ? null + : SiteV3.fromJson(json['site'] as Map), + comments: (json['comments'] as List) + .map((e) => CommentViewV3.fromJson(e as Map)) + .toList(), + posts: (json['posts'] as List) + .map((e) => PostViewV3.fromJson(e as Map)) + .toList(), + moderates: (json['moderates'] as List) + .map((e) => + CommunityModeratorViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetPersonDetailsResponseV3ToJson( + GetPersonDetailsResponseV3 instance) => + { + 'person_view': instance.personView, + if (instance.site case final value?) 'site': value, + 'comments': instance.comments, + 'posts': instance.posts, + 'moderates': instance.moderates, + }; diff --git a/lib/src/models/v3/response/get_person_mentions_response.dart b/lib/src/models/v3/response/get_person_mentions_response.dart new file mode 100644 index 00000000..15fb190e --- /dev/null +++ b/lib/src/models/v3/response/get_person_mentions_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_person_mentions_response.g.dart'; + +@JsonSerializable() +class GetPersonMentionsResponseV3 { + final List mentions; + + GetPersonMentionsResponseV3({ + required this.mentions, + }); + + // From JSON + factory GetPersonMentionsResponseV3.fromJson(Map json) => _$GetPersonMentionsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetPersonMentionsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_person_mentions_response.g.dart b/lib/src/models/v3/response/get_person_mentions_response.g.dart new file mode 100644 index 00000000..3840f84f --- /dev/null +++ b/lib/src/models/v3/response/get_person_mentions_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_person_mentions_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetPersonMentionsResponseV3 _$GetPersonMentionsResponseV3FromJson( + Map json) => + GetPersonMentionsResponseV3( + mentions: (json['mentions'] as List) + .map((e) => PersonMentionViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetPersonMentionsResponseV3ToJson( + GetPersonMentionsResponseV3 instance) => + { + 'mentions': instance.mentions, + }; diff --git a/lib/src/models/v3/response/get_post_response.dart b/lib/src/models/v3/response/get_post_response.dart new file mode 100644 index 00000000..4ec5c8f1 --- /dev/null +++ b/lib/src/models/v3/response/get_post_response.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_post_response.g.dart'; + +@JsonSerializable() +class GetPostResponseV3 { + final PostViewV3 postView; + final CommunityViewV3 communityView; + final List moderators; + final List crossPosts; + + GetPostResponseV3({ + required this.postView, + required this.communityView, + required this.moderators, + required this.crossPosts, + }); + + // From JSON + factory GetPostResponseV3.fromJson(Map json) => _$GetPostResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetPostResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_post_response.g.dart b/lib/src/models/v3/response/get_post_response.g.dart new file mode 100644 index 00000000..f50dc195 --- /dev/null +++ b/lib/src/models/v3/response/get_post_response.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_post_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetPostResponseV3 _$GetPostResponseV3FromJson(Map json) => + GetPostResponseV3( + postView: PostViewV3.fromJson(json['post_view'] as Map), + communityView: CommunityViewV3.fromJson( + json['community_view'] as Map), + moderators: (json['moderators'] as List) + .map((e) => + CommunityModeratorViewV3.fromJson(e as Map)) + .toList(), + crossPosts: (json['cross_posts'] as List) + .map((e) => PostViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetPostResponseV3ToJson(GetPostResponseV3 instance) => + { + 'post_view': instance.postView, + 'community_view': instance.communityView, + 'moderators': instance.moderators, + 'cross_posts': instance.crossPosts, + }; diff --git a/lib/src/models/v3/response/get_posts_response.dart b/lib/src/models/v3/response/get_posts_response.dart new file mode 100644 index 00000000..982d8f77 --- /dev/null +++ b/lib/src/models/v3/response/get_posts_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_posts_response.g.dart'; + +@JsonSerializable() +class GetPostsResponseV3 { + final List posts; + final String? nextPage; + + GetPostsResponseV3({ + required this.posts, + this.nextPage, + }); + + // From JSON + factory GetPostsResponseV3.fromJson(Map json) => _$GetPostsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetPostsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_posts_response.g.dart b/lib/src/models/v3/response/get_posts_response.g.dart new file mode 100644 index 00000000..4a60fb99 --- /dev/null +++ b/lib/src/models/v3/response/get_posts_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_posts_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetPostsResponseV3 _$GetPostsResponseV3FromJson(Map json) => + GetPostsResponseV3( + posts: (json['posts'] as List) + .map((e) => PostViewV3.fromJson(e as Map)) + .toList(), + nextPage: json['next_page'] as String?, + ); + +Map _$GetPostsResponseV3ToJson(GetPostsResponseV3 instance) => + { + 'posts': instance.posts, + if (instance.nextPage case final value?) 'next_page': value, + }; diff --git a/lib/src/models/v3/response/get_replies_response.dart b/lib/src/models/v3/response/get_replies_response.dart new file mode 100644 index 00000000..aa65c550 --- /dev/null +++ b/lib/src/models/v3/response/get_replies_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_replies_response.g.dart'; + +@JsonSerializable() +class GetRepliesResponseV3 { + final List replies; + + GetRepliesResponseV3({ + required this.replies, + }); + + // From JSON + factory GetRepliesResponseV3.fromJson(Map json) => _$GetRepliesResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetRepliesResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_replies_response.g.dart b/lib/src/models/v3/response/get_replies_response.g.dart new file mode 100644 index 00000000..3ae7143e --- /dev/null +++ b/lib/src/models/v3/response/get_replies_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_replies_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetRepliesResponseV3 _$GetRepliesResponseV3FromJson( + Map json) => + GetRepliesResponseV3( + replies: (json['replies'] as List) + .map((e) => CommentReplyViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetRepliesResponseV3ToJson( + GetRepliesResponseV3 instance) => + { + 'replies': instance.replies, + }; diff --git a/lib/src/models/v3/response/get_report_count_response.dart b/lib/src/models/v3/response/get_report_count_response.dart new file mode 100644 index 00000000..01125201 --- /dev/null +++ b/lib/src/models/v3/response/get_report_count_response.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'get_report_count_response.g.dart'; + +@JsonSerializable() +class GetReportCountResponseV3 { + final int? communityId; + final int commentReports; + final int postReports; + final int? privateMessageReports; + + GetReportCountResponseV3({ + this.communityId, + required this.commentReports, + required this.postReports, + this.privateMessageReports, + }); + + // From JSON + factory GetReportCountResponseV3.fromJson(Map json) => _$GetReportCountResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetReportCountResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_report_count_response.g.dart b/lib/src/models/v3/response/get_report_count_response.g.dart new file mode 100644 index 00000000..44f08a50 --- /dev/null +++ b/lib/src/models/v3/response/get_report_count_response.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_report_count_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetReportCountResponseV3 _$GetReportCountResponseV3FromJson( + Map json) => + GetReportCountResponseV3( + communityId: (json['community_id'] as num?)?.toInt(), + commentReports: (json['comment_reports'] as num).toInt(), + postReports: (json['post_reports'] as num).toInt(), + privateMessageReports: (json['private_message_reports'] as num?)?.toInt(), + ); + +Map _$GetReportCountResponseV3ToJson( + GetReportCountResponseV3 instance) => + { + if (instance.communityId case final value?) 'community_id': value, + 'comment_reports': instance.commentReports, + 'post_reports': instance.postReports, + if (instance.privateMessageReports case final value?) + 'private_message_reports': value, + }; diff --git a/lib/src/models/v3/response/get_site_metadata_response.dart b/lib/src/models/v3/response/get_site_metadata_response.dart new file mode 100644 index 00000000..04648cb8 --- /dev/null +++ b/lib/src/models/v3/response/get_site_metadata_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'get_site_metadata_response.g.dart'; + +@JsonSerializable() +class GetSiteMetadataResponseV3 { + final LinkMetadataV3 metadata; + + GetSiteMetadataResponseV3({ + required this.metadata, + }); + + // From JSON + factory GetSiteMetadataResponseV3.fromJson(Map json) => _$GetSiteMetadataResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetSiteMetadataResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_site_metadata_response.g.dart b/lib/src/models/v3/response/get_site_metadata_response.g.dart new file mode 100644 index 00000000..34ceef4f --- /dev/null +++ b/lib/src/models/v3/response/get_site_metadata_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_site_metadata_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetSiteMetadataResponseV3 _$GetSiteMetadataResponseV3FromJson( + Map json) => + GetSiteMetadataResponseV3( + metadata: + LinkMetadataV3.fromJson(json['metadata'] as Map), + ); + +Map _$GetSiteMetadataResponseV3ToJson( + GetSiteMetadataResponseV3 instance) => + { + 'metadata': instance.metadata, + }; diff --git a/lib/src/models/v3/response/get_site_response.dart b/lib/src/models/v3/response/get_site_response.dart new file mode 100644 index 00000000..5780d93d --- /dev/null +++ b/lib/src/models/v3/response/get_site_response.dart @@ -0,0 +1,37 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; +import 'package:lemmy_api_client/src/models/v3/view/site_view.dart'; + +part 'get_site_response.g.dart'; + +@JsonSerializable() +class GetSiteResponseV3 { + final SiteViewV3 siteView; + final List admins; + final String version; + final MyUserInfoV3? myUser; + final List allLanguages; + final List discussionLanguages; + final List taglines; + final List customEmojis; + final List? blockedUrls; + + GetSiteResponseV3({ + required this.siteView, + required this.admins, + required this.version, + this.myUser, + required this.allLanguages, + required this.discussionLanguages, + required this.taglines, + required this.customEmojis, + this.blockedUrls, + }); + + // From JSON + factory GetSiteResponseV3.fromJson(Map json) => _$GetSiteResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetSiteResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_site_response.g.dart b/lib/src/models/v3/response/get_site_response.g.dart new file mode 100644 index 00000000..5a87d599 --- /dev/null +++ b/lib/src/models/v3/response/get_site_response.g.dart @@ -0,0 +1,48 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_site_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetSiteResponseV3 _$GetSiteResponseV3FromJson(Map json) => + GetSiteResponseV3( + siteView: SiteViewV3.fromJson(json['site_view'] as Map), + admins: (json['admins'] as List) + .map((e) => PersonViewV3.fromJson(e as Map)) + .toList(), + version: json['version'] as String, + myUser: json['my_user'] == null + ? null + : MyUserInfoV3.fromJson(json['my_user'] as Map), + allLanguages: (json['all_languages'] as List) + .map((e) => LanguageV3.fromJson(e as Map)) + .toList(), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + taglines: (json['taglines'] as List) + .map((e) => TaglineV3.fromJson(e as Map)) + .toList(), + customEmojis: (json['custom_emojis'] as List) + .map((e) => CustomEmojiViewV3.fromJson(e as Map)) + .toList(), + blockedUrls: (json['blocked_urls'] as List?) + ?.map((e) => + LocalSiteUrlBlocklistV3.fromJson(e as Map)) + .toList(), + ); + +Map _$GetSiteResponseV3ToJson(GetSiteResponseV3 instance) => + { + 'site_view': instance.siteView, + 'admins': instance.admins, + 'version': instance.version, + if (instance.myUser case final value?) 'my_user': value, + 'all_languages': instance.allLanguages, + 'discussion_languages': instance.discussionLanguages, + 'taglines': instance.taglines, + 'custom_emojis': instance.customEmojis, + if (instance.blockedUrls case final value?) 'blocked_urls': value, + }; diff --git a/lib/src/models/v3/response/get_unread_count_response.dart b/lib/src/models/v3/response/get_unread_count_response.dart new file mode 100644 index 00000000..d71eb25b --- /dev/null +++ b/lib/src/models/v3/response/get_unread_count_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'get_unread_count_response.g.dart'; + +@JsonSerializable() +class GetUnreadCountResponseV3 { + final int replies; + final int mentions; + final int privateMessages; + + GetUnreadCountResponseV3({ + required this.replies, + required this.mentions, + required this.privateMessages, + }); + + // From JSON + factory GetUnreadCountResponseV3.fromJson(Map json) => _$GetUnreadCountResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetUnreadCountResponseV3ToJson(this); +} diff --git a/lib/src/v3/models/user/get_unread_count_response.g.dart b/lib/src/models/v3/response/get_unread_count_response.g.dart similarity index 75% rename from lib/src/v3/models/user/get_unread_count_response.g.dart rename to lib/src/models/v3/response/get_unread_count_response.g.dart index c5905035..5b88513b 100644 --- a/lib/src/v3/models/user/get_unread_count_response.g.dart +++ b/lib/src/models/v3/response/get_unread_count_response.g.dart @@ -6,16 +6,16 @@ part of 'get_unread_count_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$GetUnreadCountResponseImpl _$$GetUnreadCountResponseImplFromJson( +GetUnreadCountResponseV3 _$GetUnreadCountResponseV3FromJson( Map json) => - _$GetUnreadCountResponseImpl( + GetUnreadCountResponseV3( replies: (json['replies'] as num).toInt(), mentions: (json['mentions'] as num).toInt(), privateMessages: (json['private_messages'] as num).toInt(), ); -Map _$$GetUnreadCountResponseImplToJson( - _$GetUnreadCountResponseImpl instance) => +Map _$GetUnreadCountResponseV3ToJson( + GetUnreadCountResponseV3 instance) => { 'replies': instance.replies, 'mentions': instance.mentions, diff --git a/lib/src/models/v3/response/get_unread_registration_application_count_response.dart b/lib/src/models/v3/response/get_unread_registration_application_count_response.dart new file mode 100644 index 00000000..b7dfe9c3 --- /dev/null +++ b/lib/src/models/v3/response/get_unread_registration_application_count_response.dart @@ -0,0 +1,18 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'get_unread_registration_application_count_response.g.dart'; + +@JsonSerializable() +class GetUnreadRegistrationApplicationCountResponseV3 { + final int registrationApplications; + + GetUnreadRegistrationApplicationCountResponseV3({ + required this.registrationApplications, + }); + + // From JSON + factory GetUnreadRegistrationApplicationCountResponseV3.fromJson(Map json) => _$GetUnreadRegistrationApplicationCountResponseV3FromJson(json); + + // To JSON + Map toJson() => _$GetUnreadRegistrationApplicationCountResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/get_unread_registration_application_count_response.g.dart b/lib/src/models/v3/response/get_unread_registration_application_count_response.g.dart new file mode 100644 index 00000000..6257543b --- /dev/null +++ b/lib/src/models/v3/response/get_unread_registration_application_count_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'get_unread_registration_application_count_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetUnreadRegistrationApplicationCountResponseV3 + _$GetUnreadRegistrationApplicationCountResponseV3FromJson( + Map json) => + GetUnreadRegistrationApplicationCountResponseV3( + registrationApplications: + (json['registration_applications'] as num).toInt(), + ); + +Map _$GetUnreadRegistrationApplicationCountResponseV3ToJson( + GetUnreadRegistrationApplicationCountResponseV3 instance) => + { + 'registration_applications': instance.registrationApplications, + }; diff --git a/lib/src/models/v3/response/list_comment_likes_response.dart b/lib/src/models/v3/response/list_comment_likes_response.dart new file mode 100644 index 00000000..0a04a74e --- /dev/null +++ b/lib/src/models/v3/response/list_comment_likes_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_comment_likes_response.g.dart'; + +@JsonSerializable() +class ListCommentLikesResponseV3 { + final List commentLikes; + + ListCommentLikesResponseV3({ + required this.commentLikes, + }); + + // From JSON + factory ListCommentLikesResponseV3.fromJson(Map json) => _$ListCommentLikesResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListCommentLikesResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_comment_likes_response.g.dart b/lib/src/models/v3/response/list_comment_likes_response.g.dart new file mode 100644 index 00000000..efca9f24 --- /dev/null +++ b/lib/src/models/v3/response/list_comment_likes_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_comment_likes_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListCommentLikesResponseV3 _$ListCommentLikesResponseV3FromJson( + Map json) => + ListCommentLikesResponseV3( + commentLikes: (json['comment_likes'] as List) + .map((e) => VoteViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$ListCommentLikesResponseV3ToJson( + ListCommentLikesResponseV3 instance) => + { + 'comment_likes': instance.commentLikes, + }; diff --git a/lib/src/models/v3/response/list_comment_reports_response.dart b/lib/src/models/v3/response/list_comment_reports_response.dart new file mode 100644 index 00000000..86c602c4 --- /dev/null +++ b/lib/src/models/v3/response/list_comment_reports_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_comment_reports_response.g.dart'; + +@JsonSerializable() +class ListCommentReportsResponseV3 { + final List commentReports; + + ListCommentReportsResponseV3({ + required this.commentReports, + }); + + // From JSON + factory ListCommentReportsResponseV3.fromJson(Map json) => _$ListCommentReportsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListCommentReportsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_comment_reports_response.g.dart b/lib/src/models/v3/response/list_comment_reports_response.g.dart new file mode 100644 index 00000000..1de9307a --- /dev/null +++ b/lib/src/models/v3/response/list_comment_reports_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_comment_reports_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListCommentReportsResponseV3 _$ListCommentReportsResponseV3FromJson( + Map json) => + ListCommentReportsResponseV3( + commentReports: (json['comment_reports'] as List) + .map((e) => CommentReportViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$ListCommentReportsResponseV3ToJson( + ListCommentReportsResponseV3 instance) => + { + 'comment_reports': instance.commentReports, + }; diff --git a/lib/src/models/v3/response/list_communities_response.dart b/lib/src/models/v3/response/list_communities_response.dart new file mode 100644 index 00000000..efc4f0b6 --- /dev/null +++ b/lib/src/models/v3/response/list_communities_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_communities_response.g.dart'; + +@JsonSerializable() +class ListCommunitiesResponseV3 { + final List communities; + + ListCommunitiesResponseV3({ + required this.communities, + }); + + // From JSON + factory ListCommunitiesResponseV3.fromJson(Map json) => _$ListCommunitiesResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListCommunitiesResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_communities_response.g.dart b/lib/src/models/v3/response/list_communities_response.g.dart new file mode 100644 index 00000000..ebeb152f --- /dev/null +++ b/lib/src/models/v3/response/list_communities_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_communities_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListCommunitiesResponseV3 _$ListCommunitiesResponseV3FromJson( + Map json) => + ListCommunitiesResponseV3( + communities: (json['communities'] as List) + .map((e) => CommunityViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$ListCommunitiesResponseV3ToJson( + ListCommunitiesResponseV3 instance) => + { + 'communities': instance.communities, + }; diff --git a/lib/src/models/v3/response/list_media_response.dart b/lib/src/models/v3/response/list_media_response.dart new file mode 100644 index 00000000..c7e94746 --- /dev/null +++ b/lib/src/models/v3/response/list_media_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/view/local_image_view.dart'; + +part 'list_media_response.g.dart'; + +@JsonSerializable() +class ListMediaResponseV3 { + final List images; + + ListMediaResponseV3({ + required this.images, + }); + + // From JSON + factory ListMediaResponseV3.fromJson(Map json) => _$ListMediaResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListMediaResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_media_response.g.dart b/lib/src/models/v3/response/list_media_response.g.dart new file mode 100644 index 00000000..92180184 --- /dev/null +++ b/lib/src/models/v3/response/list_media_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_media_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListMediaResponseV3 _$ListMediaResponseV3FromJson(Map json) => + ListMediaResponseV3( + images: (json['images'] as List) + .map((e) => LocalImageViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$ListMediaResponseV3ToJson( + ListMediaResponseV3 instance) => + { + 'images': instance.images, + }; diff --git a/lib/src/models/v3/response/list_post_likes_response.dart b/lib/src/models/v3/response/list_post_likes_response.dart new file mode 100644 index 00000000..a7ce93ff --- /dev/null +++ b/lib/src/models/v3/response/list_post_likes_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_post_likes_response.g.dart'; + +@JsonSerializable() +class ListPostLikesResponseV3 { + final List postLikes; + + ListPostLikesResponseV3({ + required this.postLikes, + }); + + // From JSON + factory ListPostLikesResponseV3.fromJson(Map json) => _$ListPostLikesResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListPostLikesResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_post_likes_response.g.dart b/lib/src/models/v3/response/list_post_likes_response.g.dart new file mode 100644 index 00000000..7bcd5654 --- /dev/null +++ b/lib/src/models/v3/response/list_post_likes_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_post_likes_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListPostLikesResponseV3 _$ListPostLikesResponseV3FromJson( + Map json) => + ListPostLikesResponseV3( + postLikes: (json['post_likes'] as List) + .map((e) => VoteViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$ListPostLikesResponseV3ToJson( + ListPostLikesResponseV3 instance) => + { + 'post_likes': instance.postLikes, + }; diff --git a/lib/src/models/v3/response/list_post_reports_response.dart b/lib/src/models/v3/response/list_post_reports_response.dart new file mode 100644 index 00000000..be0ebf4f --- /dev/null +++ b/lib/src/models/v3/response/list_post_reports_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_post_reports_response.g.dart'; + +@JsonSerializable() +class ListPostReportsResponseV3 { + final List postReports; + + ListPostReportsResponseV3({ + required this.postReports, + }); + + // From JSON + factory ListPostReportsResponseV3.fromJson(Map json) => _$ListPostReportsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListPostReportsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_post_reports_response.g.dart b/lib/src/models/v3/response/list_post_reports_response.g.dart new file mode 100644 index 00000000..eaa2dc87 --- /dev/null +++ b/lib/src/models/v3/response/list_post_reports_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_post_reports_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListPostReportsResponseV3 _$ListPostReportsResponseV3FromJson( + Map json) => + ListPostReportsResponseV3( + postReports: (json['post_reports'] as List) + .map((e) => PostReportViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$ListPostReportsResponseV3ToJson( + ListPostReportsResponseV3 instance) => + { + 'post_reports': instance.postReports, + }; diff --git a/lib/src/models/v3/response/list_private_message_reports_response.dart b/lib/src/models/v3/response/list_private_message_reports_response.dart new file mode 100644 index 00000000..aedd2ce3 --- /dev/null +++ b/lib/src/models/v3/response/list_private_message_reports_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_private_message_reports_response.g.dart'; + +@JsonSerializable() +class ListPrivateMessageReportsResponseV3 { + final List privateMessageReports; + + ListPrivateMessageReportsResponseV3({ + required this.privateMessageReports, + }); + + // From JSON + factory ListPrivateMessageReportsResponseV3.fromJson(Map json) => _$ListPrivateMessageReportsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListPrivateMessageReportsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_private_message_reports_response.g.dart b/lib/src/models/v3/response/list_private_message_reports_response.g.dart new file mode 100644 index 00000000..604fd158 --- /dev/null +++ b/lib/src/models/v3/response/list_private_message_reports_response.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_private_message_reports_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListPrivateMessageReportsResponseV3 + _$ListPrivateMessageReportsResponseV3FromJson(Map json) => + ListPrivateMessageReportsResponseV3( + privateMessageReports: + (json['private_message_reports'] as List) + .map((e) => PrivateMessageReportViewV3.fromJson( + e as Map)) + .toList(), + ); + +Map _$ListPrivateMessageReportsResponseV3ToJson( + ListPrivateMessageReportsResponseV3 instance) => + { + 'private_message_reports': instance.privateMessageReports, + }; diff --git a/lib/src/models/v3/response/list_registration_applications_response.dart b/lib/src/models/v3/response/list_registration_applications_response.dart new file mode 100644 index 00000000..245facd5 --- /dev/null +++ b/lib/src/models/v3/response/list_registration_applications_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'list_registration_applications_response.g.dart'; + +@JsonSerializable() +class ListRegistrationApplicationsResponseV3 { + final List registrationApplications; + + ListRegistrationApplicationsResponseV3({ + required this.registrationApplications, + }); + + // From JSON + factory ListRegistrationApplicationsResponseV3.fromJson(Map json) => _$ListRegistrationApplicationsResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ListRegistrationApplicationsResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/list_registration_applications_response.g.dart b/lib/src/models/v3/response/list_registration_applications_response.g.dart new file mode 100644 index 00000000..c903d7c7 --- /dev/null +++ b/lib/src/models/v3/response/list_registration_applications_response.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_registration_applications_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ListRegistrationApplicationsResponseV3 + _$ListRegistrationApplicationsResponseV3FromJson( + Map json) => + ListRegistrationApplicationsResponseV3( + registrationApplications: + (json['registration_applications'] as List) + .map((e) => RegistrationApplicationViewV3.fromJson( + e as Map)) + .toList(), + ); + +Map _$ListRegistrationApplicationsResponseV3ToJson( + ListRegistrationApplicationsResponseV3 instance) => + { + 'registration_applications': instance.registrationApplications, + }; diff --git a/lib/src/models/v3/response/login_response.dart b/lib/src/models/v3/response/login_response.dart new file mode 100644 index 00000000..0cc3bd3b --- /dev/null +++ b/lib/src/models/v3/response/login_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'login_response.g.dart'; + +@JsonSerializable() +class LoginResponseV3 { + final String? jwt; + final bool registrationCreated; + final bool verifyEmailSent; + + LoginResponseV3({ + this.jwt, + required this.registrationCreated, + required this.verifyEmailSent, + }); + + // From JSON + factory LoginResponseV3.fromJson(Map json) => _$LoginResponseV3FromJson(json); + + // To JSON + Map toJson() => _$LoginResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/login_response.g.dart b/lib/src/models/v3/response/login_response.g.dart new file mode 100644 index 00000000..1e4a87df --- /dev/null +++ b/lib/src/models/v3/response/login_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'login_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LoginResponseV3 _$LoginResponseV3FromJson(Map json) => + LoginResponseV3( + jwt: json['jwt'] as String?, + registrationCreated: json['registration_created'] as bool, + verifyEmailSent: json['verify_email_sent'] as bool, + ); + +Map _$LoginResponseV3ToJson(LoginResponseV3 instance) => + { + if (instance.jwt case final value?) 'jwt': value, + 'registration_created': instance.registrationCreated, + 'verify_email_sent': instance.verifyEmailSent, + }; diff --git a/lib/src/models/v3/response/person_mention_response.dart b/lib/src/models/v3/response/person_mention_response.dart new file mode 100644 index 00000000..cc58e8fe --- /dev/null +++ b/lib/src/models/v3/response/person_mention_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'person_mention_response.g.dart'; + +@JsonSerializable() +class PersonMentionResponseV3 { + final PersonMentionViewV3 personMentionView; + + PersonMentionResponseV3({ + required this.personMentionView, + }); + + // From JSON + factory PersonMentionResponseV3.fromJson(Map json) => _$PersonMentionResponseV3FromJson(json); + + // To JSON + Map toJson() => _$PersonMentionResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/person_mention_response.g.dart b/lib/src/models/v3/response/person_mention_response.g.dart new file mode 100644 index 00000000..925b9e34 --- /dev/null +++ b/lib/src/models/v3/response/person_mention_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_mention_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonMentionResponseV3 _$PersonMentionResponseV3FromJson( + Map json) => + PersonMentionResponseV3( + personMentionView: PersonMentionViewV3.fromJson( + json['person_mention_view'] as Map), + ); + +Map _$PersonMentionResponseV3ToJson( + PersonMentionResponseV3 instance) => + { + 'person_mention_view': instance.personMentionView, + }; diff --git a/lib/src/models/v3/response/post_report_response.dart b/lib/src/models/v3/response/post_report_response.dart new file mode 100644 index 00000000..8608b9df --- /dev/null +++ b/lib/src/models/v3/response/post_report_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'post_report_response.g.dart'; + +@JsonSerializable() +class PostReportResponseV3 { + final PostReportViewV3 postReportView; + + PostReportResponseV3({ + required this.postReportView, + }); + + // From JSON + factory PostReportResponseV3.fromJson(Map json) => _$PostReportResponseV3FromJson(json); + + // To JSON + Map toJson() => _$PostReportResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/post_report_response.g.dart b/lib/src/models/v3/response/post_report_response.g.dart new file mode 100644 index 00000000..eca7fffc --- /dev/null +++ b/lib/src/models/v3/response/post_report_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_report_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostReportResponseV3 _$PostReportResponseV3FromJson( + Map json) => + PostReportResponseV3( + postReportView: PostReportViewV3.fromJson( + json['post_report_view'] as Map), + ); + +Map _$PostReportResponseV3ToJson( + PostReportResponseV3 instance) => + { + 'post_report_view': instance.postReportView, + }; diff --git a/lib/src/models/v3/response/post_response.dart b/lib/src/models/v3/response/post_response.dart new file mode 100644 index 00000000..8699297c --- /dev/null +++ b/lib/src/models/v3/response/post_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'post_response.g.dart'; + +@JsonSerializable() +class PostResponseV3 { + final PostViewV3 postView; + + PostResponseV3({ + required this.postView, + }); + + // From JSON + factory PostResponseV3.fromJson(Map json) => _$PostResponseV3FromJson(json); + + // To JSON + Map toJson() => _$PostResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/post_response.g.dart b/lib/src/models/v3/response/post_response.g.dart new file mode 100644 index 00000000..6e305703 --- /dev/null +++ b/lib/src/models/v3/response/post_response.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostResponseV3 _$PostResponseV3FromJson(Map json) => + PostResponseV3( + postView: PostViewV3.fromJson(json['post_view'] as Map), + ); + +Map _$PostResponseV3ToJson(PostResponseV3 instance) => + { + 'post_view': instance.postView, + }; diff --git a/lib/src/models/v3/response/private_message_report_response.dart b/lib/src/models/v3/response/private_message_report_response.dart new file mode 100644 index 00000000..fc517fef --- /dev/null +++ b/lib/src/models/v3/response/private_message_report_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'private_message_report_response.g.dart'; + +@JsonSerializable() +class PrivateMessageReportResponseV3 { + final PrivateMessageReportViewV3 privateMessageReportView; + + PrivateMessageReportResponseV3({ + required this.privateMessageReportView, + }); + + // From JSON + factory PrivateMessageReportResponseV3.fromJson(Map json) => _$PrivateMessageReportResponseV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessageReportResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/private_message_report_response.g.dart b/lib/src/models/v3/response/private_message_report_response.g.dart new file mode 100644 index 00000000..e55569a3 --- /dev/null +++ b/lib/src/models/v3/response/private_message_report_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_message_report_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessageReportResponseV3 _$PrivateMessageReportResponseV3FromJson( + Map json) => + PrivateMessageReportResponseV3( + privateMessageReportView: PrivateMessageReportViewV3.fromJson( + json['private_message_report_view'] as Map), + ); + +Map _$PrivateMessageReportResponseV3ToJson( + PrivateMessageReportResponseV3 instance) => + { + 'private_message_report_view': instance.privateMessageReportView, + }; diff --git a/lib/src/models/v3/response/private_message_response.dart b/lib/src/models/v3/response/private_message_response.dart new file mode 100644 index 00000000..f82ba8f9 --- /dev/null +++ b/lib/src/models/v3/response/private_message_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'private_message_response.g.dart'; + +@JsonSerializable() +class PrivateMessageResponseV3 { + final PrivateMessageViewV3 privateMessageView; + + PrivateMessageResponseV3({ + required this.privateMessageView, + }); + + // From JSON + factory PrivateMessageResponseV3.fromJson(Map json) => _$PrivateMessageResponseV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessageResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/private_message_response.g.dart b/lib/src/models/v3/response/private_message_response.g.dart new file mode 100644 index 00000000..e907ad94 --- /dev/null +++ b/lib/src/models/v3/response/private_message_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_message_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessageResponseV3 _$PrivateMessageResponseV3FromJson( + Map json) => + PrivateMessageResponseV3( + privateMessageView: PrivateMessageViewV3.fromJson( + json['private_message_view'] as Map), + ); + +Map _$PrivateMessageResponseV3ToJson( + PrivateMessageResponseV3 instance) => + { + 'private_message_view': instance.privateMessageView, + }; diff --git a/lib/src/models/v3/response/private_messages_response.dart b/lib/src/models/v3/response/private_messages_response.dart new file mode 100644 index 00000000..bea13626 --- /dev/null +++ b/lib/src/models/v3/response/private_messages_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'private_messages_response.g.dart'; + +@JsonSerializable() +class PrivateMessagesResponseV3 { + final List privateMessages; + + PrivateMessagesResponseV3({ + required this.privateMessages, + }); + + // From JSON + factory PrivateMessagesResponseV3.fromJson(Map json) => _$PrivateMessagesResponseV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessagesResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/private_messages_response.g.dart b/lib/src/models/v3/response/private_messages_response.g.dart new file mode 100644 index 00000000..e8d218ae --- /dev/null +++ b/lib/src/models/v3/response/private_messages_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_messages_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessagesResponseV3 _$PrivateMessagesResponseV3FromJson( + Map json) => + PrivateMessagesResponseV3( + privateMessages: (json['private_messages'] as List) + .map((e) => PrivateMessageViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$PrivateMessagesResponseV3ToJson( + PrivateMessagesResponseV3 instance) => + { + 'private_messages': instance.privateMessages, + }; diff --git a/lib/src/models/v3/response/registration_application_response.dart b/lib/src/models/v3/response/registration_application_response.dart new file mode 100644 index 00000000..f1aa0727 --- /dev/null +++ b/lib/src/models/v3/response/registration_application_response.dart @@ -0,0 +1,20 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'registration_application_response.g.dart'; + +@JsonSerializable() +class RegistrationApplicationResponseV3 { + final RegistrationApplicationViewV3 registrationApplication; + + RegistrationApplicationResponseV3({ + required this.registrationApplication, + }); + + // From JSON + factory RegistrationApplicationResponseV3.fromJson(Map json) => _$RegistrationApplicationResponseV3FromJson(json); + + // To JSON + Map toJson() => _$RegistrationApplicationResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/registration_application_response.g.dart b/lib/src/models/v3/response/registration_application_response.g.dart new file mode 100644 index 00000000..d55a1964 --- /dev/null +++ b/lib/src/models/v3/response/registration_application_response.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'registration_application_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +RegistrationApplicationResponseV3 _$RegistrationApplicationResponseV3FromJson( + Map json) => + RegistrationApplicationResponseV3( + registrationApplication: RegistrationApplicationViewV3.fromJson( + json['registration_application'] as Map), + ); + +Map _$RegistrationApplicationResponseV3ToJson( + RegistrationApplicationResponseV3 instance) => + { + 'registration_application': instance.registrationApplication, + }; diff --git a/lib/src/models/v3/response/resolve_object_response.dart b/lib/src/models/v3/response/resolve_object_response.dart new file mode 100644 index 00000000..e284f196 --- /dev/null +++ b/lib/src/models/v3/response/resolve_object_response.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'resolve_object_response.g.dart'; + +@JsonSerializable() +class ResolveObjectResponseV3 { + final CommentViewV3? comment; + final PostViewV3? post; + final CommunityViewV3? community; + final PersonViewV3? person; + + ResolveObjectResponseV3({ + this.comment, + this.post, + this.community, + this.person, + }); + + // From JSON + factory ResolveObjectResponseV3.fromJson(Map json) => _$ResolveObjectResponseV3FromJson(json); + + // To JSON + Map toJson() => _$ResolveObjectResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/resolve_object_response.g.dart b/lib/src/models/v3/response/resolve_object_response.g.dart new file mode 100644 index 00000000..a06b70cf --- /dev/null +++ b/lib/src/models/v3/response/resolve_object_response.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'resolve_object_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ResolveObjectResponseV3 _$ResolveObjectResponseV3FromJson( + Map json) => + ResolveObjectResponseV3( + comment: json['comment'] == null + ? null + : CommentViewV3.fromJson(json['comment'] as Map), + post: json['post'] == null + ? null + : PostViewV3.fromJson(json['post'] as Map), + community: json['community'] == null + ? null + : CommunityViewV3.fromJson(json['community'] as Map), + person: json['person'] == null + ? null + : PersonViewV3.fromJson(json['person'] as Map), + ); + +Map _$ResolveObjectResponseV3ToJson( + ResolveObjectResponseV3 instance) => + { + if (instance.comment case final value?) 'comment': value, + if (instance.post case final value?) 'post': value, + if (instance.community case final value?) 'community': value, + if (instance.person case final value?) 'person': value, + }; diff --git a/lib/src/models/v3/response/search_response.dart b/lib/src/models/v3/response/search_response.dart new file mode 100644 index 00000000..f0c2eea0 --- /dev/null +++ b/lib/src/models/v3/response/search_response.dart @@ -0,0 +1,30 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'search_response.g.dart'; + +@JsonSerializable() +class SearchResponseV3 { + @JsonKey(name: 'type_') + final SearchTypeV3 type; + final List comments; + final List posts; + final List communities; + final List users; + + SearchResponseV3({ + required this.type, + required this.comments, + required this.posts, + required this.communities, + required this.users, + }); + + // From JSON + factory SearchResponseV3.fromJson(Map json) => _$SearchResponseV3FromJson(json); + + // To JSON + Map toJson() => _$SearchResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/search_response.g.dart b/lib/src/models/v3/response/search_response.g.dart new file mode 100644 index 00000000..92769e1e --- /dev/null +++ b/lib/src/models/v3/response/search_response.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'search_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SearchResponseV3 _$SearchResponseV3FromJson(Map json) => + SearchResponseV3( + type: SearchTypeV3.fromJson(json['type_'] as String), + comments: (json['comments'] as List) + .map((e) => CommentViewV3.fromJson(e as Map)) + .toList(), + posts: (json['posts'] as List) + .map((e) => PostViewV3.fromJson(e as Map)) + .toList(), + communities: (json['communities'] as List) + .map((e) => CommunityViewV3.fromJson(e as Map)) + .toList(), + users: (json['users'] as List) + .map((e) => PersonViewV3.fromJson(e as Map)) + .toList(), + ); + +Map _$SearchResponseV3ToJson(SearchResponseV3 instance) => + { + 'type_': instance.type, + 'comments': instance.comments, + 'posts': instance.posts, + 'communities': instance.communities, + 'users': instance.users, + }; diff --git a/lib/src/models/v3/response/site_response.dart b/lib/src/models/v3/response/site_response.dart new file mode 100644 index 00000000..8574c42d --- /dev/null +++ b/lib/src/models/v3/response/site_response.dart @@ -0,0 +1,23 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; +import 'package:lemmy_api_client/src/models/v3/view/site_view.dart'; + +part 'site_response.g.dart'; + +@JsonSerializable() +class SiteResponseV3 { + final SiteViewV3 siteView; + final List taglines; + + SiteResponseV3({ + required this.siteView, + required this.taglines, + }); + + // From JSON + factory SiteResponseV3.fromJson(Map json) => _$SiteResponseV3FromJson(json); + + // To JSON + Map toJson() => _$SiteResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/site_response.g.dart b/lib/src/models/v3/response/site_response.g.dart new file mode 100644 index 00000000..be1bcdd1 --- /dev/null +++ b/lib/src/models/v3/response/site_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SiteResponseV3 _$SiteResponseV3FromJson(Map json) => + SiteResponseV3( + siteView: SiteViewV3.fromJson(json['site_view'] as Map), + taglines: (json['taglines'] as List) + .map((e) => TaglineV3.fromJson(e as Map)) + .toList(), + ); + +Map _$SiteResponseV3ToJson(SiteResponseV3 instance) => + { + 'site_view': instance.siteView, + 'taglines': instance.taglines, + }; diff --git a/lib/src/models/v3/response/success_response.dart b/lib/src/models/v3/response/success_response.dart new file mode 100644 index 00000000..8950ac05 --- /dev/null +++ b/lib/src/models/v3/response/success_response.dart @@ -0,0 +1,18 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'success_response.g.dart'; + +@JsonSerializable() +class SuccessResponseV3 { + final bool success; + + SuccessResponseV3({ + required this.success, + }); + + // From JSON + factory SuccessResponseV3.fromJson(Map json) => _$SuccessResponseV3FromJson(json); + + // To JSON + Map toJson() => _$SuccessResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/success_response.g.dart b/lib/src/models/v3/response/success_response.g.dart new file mode 100644 index 00000000..bc126d59 --- /dev/null +++ b/lib/src/models/v3/response/success_response.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'success_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SuccessResponseV3 _$SuccessResponseV3FromJson(Map json) => + SuccessResponseV3( + success: json['success'] as bool, + ); + +Map _$SuccessResponseV3ToJson(SuccessResponseV3 instance) => + { + 'success': instance.success, + }; diff --git a/lib/src/models/v3/response/update_totp_response.dart b/lib/src/models/v3/response/update_totp_response.dart new file mode 100644 index 00000000..f0191784 --- /dev/null +++ b/lib/src/models/v3/response/update_totp_response.dart @@ -0,0 +1,18 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'update_totp_response.g.dart'; + +@JsonSerializable() +class UpdateTotpResponseV3 { + final bool enabled; + + UpdateTotpResponseV3({ + required this.enabled, + }); + + // From JSON + factory UpdateTotpResponseV3.fromJson(Map json) => _$UpdateTotpResponseV3FromJson(json); + + // To JSON + Map toJson() => _$UpdateTotpResponseV3ToJson(this); +} diff --git a/lib/src/models/v3/response/update_totp_response.g.dart b/lib/src/models/v3/response/update_totp_response.g.dart new file mode 100644 index 00000000..b4f1aa3b --- /dev/null +++ b/lib/src/models/v3/response/update_totp_response.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_totp_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UpdateTotpResponseV3 _$UpdateTotpResponseV3FromJson( + Map json) => + UpdateTotpResponseV3( + enabled: json['enabled'] as bool, + ); + +Map _$UpdateTotpResponseV3ToJson( + UpdateTotpResponseV3 instance) => + { + 'enabled': instance.enabled, + }; diff --git a/lib/src/models/v3/view/admin_purge_comment_view.dart b/lib/src/models/v3/view/admin_purge_comment_view.dart new file mode 100644 index 00000000..a5dee4d1 --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_comment_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'admin_purge_comment_view.g.dart'; + +@JsonSerializable() +class AdminPurgeCommentViewV3 { + final AdminPurgeCommentV3 adminPurgeComment; + final PersonV3? admin; + final PostV3 post; + + AdminPurgeCommentViewV3({ + required this.adminPurgeComment, + this.admin, + required this.post, + }); + + // From JSON + factory AdminPurgeCommentViewV3.fromJson(Map json) => _$AdminPurgeCommentViewV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgeCommentViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/admin_purge_comment_view.g.dart b/lib/src/models/v3/view/admin_purge_comment_view.g.dart new file mode 100644 index 00000000..831decbb --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_comment_view.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_comment_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgeCommentViewV3 _$AdminPurgeCommentViewV3FromJson( + Map json) => + AdminPurgeCommentViewV3( + adminPurgeComment: AdminPurgeCommentV3.fromJson( + json['admin_purge_comment'] as Map), + admin: json['admin'] == null + ? null + : PersonV3.fromJson(json['admin'] as Map), + post: PostV3.fromJson(json['post'] as Map), + ); + +Map _$AdminPurgeCommentViewV3ToJson( + AdminPurgeCommentViewV3 instance) => + { + 'admin_purge_comment': instance.adminPurgeComment, + if (instance.admin case final value?) 'admin': value, + 'post': instance.post, + }; diff --git a/lib/src/models/v3/view/admin_purge_community_view.dart b/lib/src/models/v3/view/admin_purge_community_view.dart new file mode 100644 index 00000000..735065e2 --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_community_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'admin_purge_community_view.g.dart'; + +@JsonSerializable() +class AdminPurgeCommunityViewV3 { + final AdminPurgeCommunityV3 adminPurgeCommunity; + final PersonV3? admin; + + AdminPurgeCommunityViewV3({ + required this.adminPurgeCommunity, + this.admin, + }); + + // From JSON + factory AdminPurgeCommunityViewV3.fromJson(Map json) => _$AdminPurgeCommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgeCommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/admin_purge_community_view.g.dart b/lib/src/models/v3/view/admin_purge_community_view.g.dart new file mode 100644 index 00000000..34145d13 --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_community_view.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgeCommunityViewV3 _$AdminPurgeCommunityViewV3FromJson( + Map json) => + AdminPurgeCommunityViewV3( + adminPurgeCommunity: AdminPurgeCommunityV3.fromJson( + json['admin_purge_community'] as Map), + admin: json['admin'] == null + ? null + : PersonV3.fromJson(json['admin'] as Map), + ); + +Map _$AdminPurgeCommunityViewV3ToJson( + AdminPurgeCommunityViewV3 instance) => + { + 'admin_purge_community': instance.adminPurgeCommunity, + if (instance.admin case final value?) 'admin': value, + }; diff --git a/lib/src/models/v3/view/admin_purge_person_view.dart b/lib/src/models/v3/view/admin_purge_person_view.dart new file mode 100644 index 00000000..2632f1b4 --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_person_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'admin_purge_person_view.g.dart'; + +@JsonSerializable() +class AdminPurgePersonViewV3 { + final AdminPurgePersonV3 adminPurgePerson; + final PersonV3? admin; + + AdminPurgePersonViewV3({ + required this.adminPurgePerson, + this.admin, + }); + + // From JSON + factory AdminPurgePersonViewV3.fromJson(Map json) => _$AdminPurgePersonViewV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgePersonViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/admin_purge_person_view.g.dart b/lib/src/models/v3/view/admin_purge_person_view.g.dart new file mode 100644 index 00000000..581b8d9a --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_person_view.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_person_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgePersonViewV3 _$AdminPurgePersonViewV3FromJson( + Map json) => + AdminPurgePersonViewV3( + adminPurgePerson: AdminPurgePersonV3.fromJson( + json['admin_purge_person'] as Map), + admin: json['admin'] == null + ? null + : PersonV3.fromJson(json['admin'] as Map), + ); + +Map _$AdminPurgePersonViewV3ToJson( + AdminPurgePersonViewV3 instance) => + { + 'admin_purge_person': instance.adminPurgePerson, + if (instance.admin case final value?) 'admin': value, + }; diff --git a/lib/src/models/v3/view/admin_purge_post_view.dart b/lib/src/models/v3/view/admin_purge_post_view.dart new file mode 100644 index 00000000..b33fce71 --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_post_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'admin_purge_post_view.g.dart'; + +@JsonSerializable() +class AdminPurgePostViewV3 { + final AdminPurgePostV3 adminPurgePost; + final PersonV3? admin; + final CommunityV3 community; + + AdminPurgePostViewV3({ + required this.adminPurgePost, + this.admin, + required this.community, + }); + + // From JSON + factory AdminPurgePostViewV3.fromJson(Map json) => _$AdminPurgePostViewV3FromJson(json); + + // To JSON + Map toJson() => _$AdminPurgePostViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/admin_purge_post_view.g.dart b/lib/src/models/v3/view/admin_purge_post_view.g.dart new file mode 100644 index 00000000..57ef2054 --- /dev/null +++ b/lib/src/models/v3/view/admin_purge_post_view.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'admin_purge_post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AdminPurgePostViewV3 _$AdminPurgePostViewV3FromJson( + Map json) => + AdminPurgePostViewV3( + adminPurgePost: AdminPurgePostV3.fromJson( + json['admin_purge_post'] as Map), + admin: json['admin'] == null + ? null + : PersonV3.fromJson(json['admin'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$AdminPurgePostViewV3ToJson( + AdminPurgePostViewV3 instance) => + { + 'admin_purge_post': instance.adminPurgePost, + if (instance.admin case final value?) 'admin': value, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/comment_reply_view.dart b/lib/src/models/v3/view/comment_reply_view.dart new file mode 100644 index 00000000..3ff7b4fa --- /dev/null +++ b/lib/src/models/v3/view/comment_reply_view.dart @@ -0,0 +1,49 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'comment_reply_view.g.dart'; + +@JsonSerializable() +class CommentReplyViewV3 { + final CommentReplyV3 commentReply; + final CommentV3 comment; + final PersonV3 creator; + final PostV3 post; + final CommunityV3 community; + final PersonV3 recipient; + final CommentAggregatesV3 counts; + final bool creatorBannedFromCommunity; + final bool? bannedFromCommunity; + final bool creatorIsModerator; + final bool creatorIsAdmin; + final SubscribedTypeV3 subscribed; + final bool saved; + final bool creatorBlocked; + final int? myVote; + + CommentReplyViewV3({ + required this.commentReply, + required this.comment, + required this.creator, + required this.post, + required this.community, + required this.recipient, + required this.counts, + required this.creatorBannedFromCommunity, + this.bannedFromCommunity, + required this.creatorIsModerator, + required this.creatorIsAdmin, + required this.subscribed, + required this.saved, + required this.creatorBlocked, + this.myVote, + }); + + // From JSON + factory CommentReplyViewV3.fromJson(Map json) => _$CommentReplyViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommentReplyViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/comment_reply_view.g.dart b/lib/src/models/v3/view/comment_reply_view.g.dart new file mode 100644 index 00000000..ff2501e0 --- /dev/null +++ b/lib/src/models/v3/view/comment_reply_view.g.dart @@ -0,0 +1,49 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_reply_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentReplyViewV3 _$CommentReplyViewV3FromJson(Map json) => + CommentReplyViewV3( + commentReply: CommentReplyV3.fromJson( + json['comment_reply'] as Map), + comment: CommentV3.fromJson(json['comment'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + recipient: PersonV3.fromJson(json['recipient'] as Map), + counts: + CommentAggregatesV3.fromJson(json['counts'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + bannedFromCommunity: json['banned_from_community'] as bool?, + creatorIsModerator: json['creator_is_moderator'] as bool, + creatorIsAdmin: json['creator_is_admin'] as bool, + subscribed: SubscribedTypeV3.fromJson(json['subscribed'] as String), + saved: json['saved'] as bool, + creatorBlocked: json['creator_blocked'] as bool, + myVote: (json['my_vote'] as num?)?.toInt(), + ); + +Map _$CommentReplyViewV3ToJson(CommentReplyViewV3 instance) => + { + 'comment_reply': instance.commentReply, + 'comment': instance.comment, + 'creator': instance.creator, + 'post': instance.post, + 'community': instance.community, + 'recipient': instance.recipient, + 'counts': instance.counts, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + if (instance.bannedFromCommunity case final value?) + 'banned_from_community': value, + 'creator_is_moderator': instance.creatorIsModerator, + 'creator_is_admin': instance.creatorIsAdmin, + 'subscribed': instance.subscribed, + 'saved': instance.saved, + 'creator_blocked': instance.creatorBlocked, + if (instance.myVote case final value?) 'my_vote': value, + }; diff --git a/lib/src/models/v3/view/comment_report_view.dart b/lib/src/models/v3/view/comment_report_view.dart new file mode 100644 index 00000000..8fd6da23 --- /dev/null +++ b/lib/src/models/v3/view/comment_report_view.dart @@ -0,0 +1,49 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'comment_report_view.g.dart'; + +@JsonSerializable() +class CommentReportViewV3 { + final CommentReportV3 commentReport; + final CommentV3 comment; + final PostV3 post; + final CommunityV3 community; + final PersonV3 creator; + final PersonV3 commentCreator; + final CommentAggregatesV3 counts; + final bool creatorBannedFromCommunity; + final bool? creatorIsModerator; + final bool? creatorIsAdmin; + final bool? creatorBlocked; + final SubscribedTypeV3? subscribed; + final bool? saved; + final int? myVote; + final PersonV3? resolver; + + CommentReportViewV3({ + required this.commentReport, + required this.comment, + required this.post, + required this.community, + required this.creator, + required this.commentCreator, + required this.counts, + required this.creatorBannedFromCommunity, + this.creatorIsModerator, + this.creatorIsAdmin, + this.creatorBlocked, + this.subscribed, + this.saved, + this.myVote, + this.resolver, + }); + + // From JSON + factory CommentReportViewV3.fromJson(Map json) => _$CommentReportViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommentReportViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/comment_report_view.g.dart b/lib/src/models/v3/view/comment_report_view.g.dart new file mode 100644 index 00000000..25d52cba --- /dev/null +++ b/lib/src/models/v3/view/comment_report_view.g.dart @@ -0,0 +1,55 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_report_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentReportViewV3 _$CommentReportViewV3FromJson(Map json) => + CommentReportViewV3( + commentReport: CommentReportV3.fromJson( + json['comment_report'] as Map), + comment: CommentV3.fromJson(json['comment'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + commentCreator: + PersonV3.fromJson(json['comment_creator'] as Map), + counts: + CommentAggregatesV3.fromJson(json['counts'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + creatorIsModerator: json['creator_is_moderator'] as bool?, + creatorIsAdmin: json['creator_is_admin'] as bool?, + creatorBlocked: json['creator_blocked'] as bool?, + subscribed: json['subscribed'] == null + ? null + : SubscribedTypeV3.fromJson(json['subscribed'] as String), + saved: json['saved'] as bool?, + myVote: (json['my_vote'] as num?)?.toInt(), + resolver: json['resolver'] == null + ? null + : PersonV3.fromJson(json['resolver'] as Map), + ); + +Map _$CommentReportViewV3ToJson( + CommentReportViewV3 instance) => + { + 'comment_report': instance.commentReport, + 'comment': instance.comment, + 'post': instance.post, + 'community': instance.community, + 'creator': instance.creator, + 'comment_creator': instance.commentCreator, + 'counts': instance.counts, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + if (instance.creatorIsModerator case final value?) + 'creator_is_moderator': value, + if (instance.creatorIsAdmin case final value?) 'creator_is_admin': value, + if (instance.creatorBlocked case final value?) 'creator_blocked': value, + if (instance.subscribed case final value?) 'subscribed': value, + if (instance.saved case final value?) 'saved': value, + if (instance.myVote case final value?) 'my_vote': value, + if (instance.resolver case final value?) 'resolver': value, + }; diff --git a/lib/src/models/v3/view/comment_view.dart b/lib/src/models/v3/view/comment_view.dart new file mode 100644 index 00000000..e138fed9 --- /dev/null +++ b/lib/src/models/v3/view/comment_view.dart @@ -0,0 +1,45 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'comment_view.g.dart'; + +@JsonSerializable() +class CommentViewV3 { + final CommentV3 comment; + final PersonV3 creator; + final PostV3 post; + final CommunityV3 community; + final CommentAggregatesV3 counts; + final bool creatorBannedFromCommunity; + final bool? bannedFromCommunity; + final bool creatorIsModerator; + final bool creatorIsAdmin; + final SubscribedTypeV3 subscribed; + final bool saved; + final bool creatorBlocked; + final int? myVote; + + CommentViewV3({ + required this.comment, + required this.creator, + required this.post, + required this.community, + required this.counts, + required this.creatorBannedFromCommunity, + this.bannedFromCommunity, + required this.creatorIsModerator, + required this.creatorIsAdmin, + required this.subscribed, + required this.saved, + required this.creatorBlocked, + this.myVote, + }); + + // From JSON + factory CommentViewV3.fromJson(Map json) => _$CommentViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommentViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/comment_view.g.dart b/lib/src/models/v3/view/comment_view.g.dart new file mode 100644 index 00000000..941c5476 --- /dev/null +++ b/lib/src/models/v3/view/comment_view.g.dart @@ -0,0 +1,44 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentViewV3 _$CommentViewV3FromJson(Map json) => + CommentViewV3( + comment: CommentV3.fromJson(json['comment'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + counts: + CommentAggregatesV3.fromJson(json['counts'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + bannedFromCommunity: json['banned_from_community'] as bool?, + creatorIsModerator: json['creator_is_moderator'] as bool, + creatorIsAdmin: json['creator_is_admin'] as bool, + subscribed: SubscribedTypeV3.fromJson(json['subscribed'] as String), + saved: json['saved'] as bool, + creatorBlocked: json['creator_blocked'] as bool, + myVote: (json['my_vote'] as num?)?.toInt(), + ); + +Map _$CommentViewV3ToJson(CommentViewV3 instance) => + { + 'comment': instance.comment, + 'creator': instance.creator, + 'post': instance.post, + 'community': instance.community, + 'counts': instance.counts, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + if (instance.bannedFromCommunity case final value?) + 'banned_from_community': value, + 'creator_is_moderator': instance.creatorIsModerator, + 'creator_is_admin': instance.creatorIsAdmin, + 'subscribed': instance.subscribed, + 'saved': instance.saved, + 'creator_blocked': instance.creatorBlocked, + if (instance.myVote case final value?) 'my_vote': value, + }; diff --git a/lib/src/models/v3/view/community_block_view.dart b/lib/src/models/v3/view/community_block_view.dart new file mode 100644 index 00000000..0f1e8f88 --- /dev/null +++ b/lib/src/models/v3/view/community_block_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'community_block_view.g.dart'; + +@JsonSerializable() +class CommunityBlockViewV3 { + final PersonV3 person; + final CommunityV3 community; + + CommunityBlockViewV3({ + required this.person, + required this.community, + }); + + // From JSON + factory CommunityBlockViewV3.fromJson(Map json) => _$CommunityBlockViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityBlockViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/community_block_view.g.dart b/lib/src/models/v3/view/community_block_view.g.dart new file mode 100644 index 00000000..2374777f --- /dev/null +++ b/lib/src/models/v3/view/community_block_view.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_block_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityBlockViewV3 _$CommunityBlockViewV3FromJson( + Map json) => + CommunityBlockViewV3( + person: PersonV3.fromJson(json['person'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$CommunityBlockViewV3ToJson( + CommunityBlockViewV3 instance) => + { + 'person': instance.person, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/community_follower_view.dart b/lib/src/models/v3/view/community_follower_view.dart new file mode 100644 index 00000000..b17be941 --- /dev/null +++ b/lib/src/models/v3/view/community_follower_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'community_follower_view.g.dart'; + +@JsonSerializable() +class CommunityFollowerViewV3 { + final CommunityV3 community; + final PersonV3 follower; + + CommunityFollowerViewV3({ + required this.community, + required this.follower, + }); + + // From JSON + factory CommunityFollowerViewV3.fromJson(Map json) => _$CommunityFollowerViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityFollowerViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/community_follower_view.g.dart b/lib/src/models/v3/view/community_follower_view.g.dart new file mode 100644 index 00000000..e8bb4f8d --- /dev/null +++ b/lib/src/models/v3/view/community_follower_view.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_follower_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityFollowerViewV3 _$CommunityFollowerViewV3FromJson( + Map json) => + CommunityFollowerViewV3( + community: + CommunityV3.fromJson(json['community'] as Map), + follower: PersonV3.fromJson(json['follower'] as Map), + ); + +Map _$CommunityFollowerViewV3ToJson( + CommunityFollowerViewV3 instance) => + { + 'community': instance.community, + 'follower': instance.follower, + }; diff --git a/lib/src/models/v3/view/community_moderator_view.dart b/lib/src/models/v3/view/community_moderator_view.dart new file mode 100644 index 00000000..2073e1ad --- /dev/null +++ b/lib/src/models/v3/view/community_moderator_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'community_moderator_view.g.dart'; + +@JsonSerializable() +class CommunityModeratorViewV3 { + final CommunityV3 community; + final PersonV3 moderator; + + CommunityModeratorViewV3({ + required this.community, + required this.moderator, + }); + + // From JSON + factory CommunityModeratorViewV3.fromJson(Map json) => _$CommunityModeratorViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityModeratorViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/community_moderator_view.g.dart b/lib/src/models/v3/view/community_moderator_view.g.dart new file mode 100644 index 00000000..17a3291f --- /dev/null +++ b/lib/src/models/v3/view/community_moderator_view.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_moderator_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityModeratorViewV3 _$CommunityModeratorViewV3FromJson( + Map json) => + CommunityModeratorViewV3( + community: + CommunityV3.fromJson(json['community'] as Map), + moderator: PersonV3.fromJson(json['moderator'] as Map), + ); + +Map _$CommunityModeratorViewV3ToJson( + CommunityModeratorViewV3 instance) => + { + 'community': instance.community, + 'moderator': instance.moderator, + }; diff --git a/lib/src/models/v3/view/community_view.dart b/lib/src/models/v3/view/community_view.dart new file mode 100644 index 00000000..a23c1a5f --- /dev/null +++ b/lib/src/models/v3/view/community_view.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'community_view.g.dart'; + +@JsonSerializable() +class CommunityViewV3 { + final CommunityV3 community; + final SubscribedTypeV3 subscribed; + final bool blocked; + final CommunityAggregatesV3 counts; + final bool? bannedFromCommunity; + + CommunityViewV3({ + required this.community, + required this.subscribed, + required this.blocked, + required this.counts, + this.bannedFromCommunity, + }); + + // From JSON + factory CommunityViewV3.fromJson(Map json) => _$CommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$CommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/community_view.g.dart b/lib/src/models/v3/view/community_view.g.dart new file mode 100644 index 00000000..9bf84287 --- /dev/null +++ b/lib/src/models/v3/view/community_view.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityViewV3 _$CommunityViewV3FromJson(Map json) => + CommunityViewV3( + community: + CommunityV3.fromJson(json['community'] as Map), + subscribed: SubscribedTypeV3.fromJson(json['subscribed'] as String), + blocked: json['blocked'] as bool, + counts: CommunityAggregatesV3.fromJson( + json['counts'] as Map), + bannedFromCommunity: json['banned_from_community'] as bool?, + ); + +Map _$CommunityViewV3ToJson(CommunityViewV3 instance) => + { + 'community': instance.community, + 'subscribed': instance.subscribed, + 'blocked': instance.blocked, + 'counts': instance.counts, + if (instance.bannedFromCommunity case final value?) + 'banned_from_community': value, + }; diff --git a/lib/src/models/v3/view/custom_emoji_view.dart b/lib/src/models/v3/view/custom_emoji_view.dart new file mode 100644 index 00000000..c5c37213 --- /dev/null +++ b/lib/src/models/v3/view/custom_emoji_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'custom_emoji_view.g.dart'; + +@JsonSerializable() +class CustomEmojiViewV3 { + final CustomEmojiV3 customEmoji; + final List keywords; + + CustomEmojiViewV3({ + required this.customEmoji, + required this.keywords, + }); + + // From JSON + factory CustomEmojiViewV3.fromJson(Map json) => _$CustomEmojiViewV3FromJson(json); + + // To JSON + Map toJson() => _$CustomEmojiViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/custom_emoji_view.g.dart b/lib/src/models/v3/view/custom_emoji_view.g.dart new file mode 100644 index 00000000..b0dc6553 --- /dev/null +++ b/lib/src/models/v3/view/custom_emoji_view.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'custom_emoji_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CustomEmojiViewV3 _$CustomEmojiViewV3FromJson(Map json) => + CustomEmojiViewV3( + customEmoji: + CustomEmojiV3.fromJson(json['custom_emoji'] as Map), + keywords: (json['keywords'] as List) + .map((e) => CustomEmojiKeywordV3.fromJson(e as Map)) + .toList(), + ); + +Map _$CustomEmojiViewV3ToJson(CustomEmojiViewV3 instance) => + { + 'custom_emoji': instance.customEmoji, + 'keywords': instance.keywords, + }; diff --git a/lib/src/models/v3/view/instance_block_view.dart b/lib/src/models/v3/view/instance_block_view.dart new file mode 100644 index 00000000..f767e84a --- /dev/null +++ b/lib/src/models/v3/view/instance_block_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'instance_block_view.g.dart'; + +@JsonSerializable() +class InstanceBlockViewV3 { + final PersonV3 person; + final InstanceV3 instance; + final SiteV3? site; + + InstanceBlockViewV3({ + required this.person, + required this.instance, + this.site, + }); + + // From JSON + factory InstanceBlockViewV3.fromJson(Map json) => _$InstanceBlockViewV3FromJson(json); + + // To JSON + Map toJson() => _$InstanceBlockViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/instance_block_view.g.dart b/lib/src/models/v3/view/instance_block_view.g.dart new file mode 100644 index 00000000..4dfbcdb1 --- /dev/null +++ b/lib/src/models/v3/view/instance_block_view.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'instance_block_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InstanceBlockViewV3 _$InstanceBlockViewV3FromJson(Map json) => + InstanceBlockViewV3( + person: PersonV3.fromJson(json['person'] as Map), + instance: InstanceV3.fromJson(json['instance'] as Map), + site: json['site'] == null + ? null + : SiteV3.fromJson(json['site'] as Map), + ); + +Map _$InstanceBlockViewV3ToJson( + InstanceBlockViewV3 instance) => + { + 'person': instance.person, + 'instance': instance.instance, + if (instance.site case final value?) 'site': value, + }; diff --git a/lib/src/models/v3/view/local_image_view.dart b/lib/src/models/v3/view/local_image_view.dart new file mode 100644 index 00000000..3ca8d8bb --- /dev/null +++ b/lib/src/models/v3/view/local_image_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'local_image_view.g.dart'; + +@JsonSerializable() +class LocalImageViewV3 { + final LocalImageV3 localImage; + final PersonV3 person; + + LocalImageViewV3({ + required this.localImage, + required this.person, + }); + + // From JSON + factory LocalImageViewV3.fromJson(Map json) => _$LocalImageViewV3FromJson(json); + + // To JSON + Map toJson() => _$LocalImageViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/local_image_view.g.dart b/lib/src/models/v3/view/local_image_view.g.dart new file mode 100644 index 00000000..500ecc2e --- /dev/null +++ b/lib/src/models/v3/view/local_image_view.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_image_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalImageViewV3 _$LocalImageViewV3FromJson(Map json) => + LocalImageViewV3( + localImage: + LocalImageV3.fromJson(json['local_image'] as Map), + person: PersonV3.fromJson(json['person'] as Map), + ); + +Map _$LocalImageViewV3ToJson(LocalImageViewV3 instance) => + { + 'local_image': instance.localImage, + 'person': instance.person, + }; diff --git a/lib/src/models/v3/view/local_user_view.dart b/lib/src/models/v3/view/local_user_view.dart new file mode 100644 index 00000000..074c1cdf --- /dev/null +++ b/lib/src/models/v3/view/local_user_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'local_user_view.g.dart'; + +@JsonSerializable() +class LocalUserViewV3 { + final LocalUserV3 localUser; + final LocalUserVoteDisplayModeV3? localUserVoteDisplayMode; + final PersonV3 person; + final PersonAggregatesV3 counts; + + LocalUserViewV3({ + required this.localUser, + this.localUserVoteDisplayMode, + required this.person, + required this.counts, + }); + + // From JSON + factory LocalUserViewV3.fromJson(Map json) => _$LocalUserViewV3FromJson(json); + + // To JSON + Map toJson() => _$LocalUserViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/local_user_view.g.dart b/lib/src/models/v3/view/local_user_view.g.dart new file mode 100644 index 00000000..4db09f69 --- /dev/null +++ b/lib/src/models/v3/view/local_user_view.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_user_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalUserViewV3 _$LocalUserViewV3FromJson(Map json) => + LocalUserViewV3( + localUser: + LocalUserV3.fromJson(json['local_user'] as Map), + localUserVoteDisplayMode: json['local_user_vote_display_mode'] == null + ? null + : LocalUserVoteDisplayModeV3.fromJson( + json['local_user_vote_display_mode'] as Map), + person: PersonV3.fromJson(json['person'] as Map), + counts: + PersonAggregatesV3.fromJson(json['counts'] as Map), + ); + +Map _$LocalUserViewV3ToJson(LocalUserViewV3 instance) => + { + 'local_user': instance.localUser, + if (instance.localUserVoteDisplayMode case final value?) + 'local_user_vote_display_mode': value, + 'person': instance.person, + 'counts': instance.counts, + }; diff --git a/lib/src/models/v3/view/mod_add_community_view.dart b/lib/src/models/v3/view/mod_add_community_view.dart new file mode 100644 index 00000000..0669e978 --- /dev/null +++ b/lib/src/models/v3/view/mod_add_community_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_add_community_view.g.dart'; + +@JsonSerializable() +class ModAddCommunityViewV3 { + final ModAddCommunityV3 modAddCommunity; + final PersonV3? moderator; + final CommunityV3 community; + final PersonV3 moddedPerson; + + ModAddCommunityViewV3({ + required this.modAddCommunity, + this.moderator, + required this.community, + required this.moddedPerson, + }); + + // From JSON + factory ModAddCommunityViewV3.fromJson(Map json) => _$ModAddCommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModAddCommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_add_community_view.g.dart b/lib/src/models/v3/view/mod_add_community_view.g.dart new file mode 100644 index 00000000..3f78d0b9 --- /dev/null +++ b/lib/src/models/v3/view/mod_add_community_view.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_add_community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModAddCommunityViewV3 _$ModAddCommunityViewV3FromJson( + Map json) => + ModAddCommunityViewV3( + modAddCommunity: ModAddCommunityV3.fromJson( + json['mod_add_community'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + moddedPerson: + PersonV3.fromJson(json['modded_person'] as Map), + ); + +Map _$ModAddCommunityViewV3ToJson( + ModAddCommunityViewV3 instance) => + { + 'mod_add_community': instance.modAddCommunity, + if (instance.moderator case final value?) 'moderator': value, + 'community': instance.community, + 'modded_person': instance.moddedPerson, + }; diff --git a/lib/src/models/v3/view/mod_add_view.dart b/lib/src/models/v3/view/mod_add_view.dart new file mode 100644 index 00000000..6ca0fdda --- /dev/null +++ b/lib/src/models/v3/view/mod_add_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_add_view.g.dart'; + +@JsonSerializable() +class ModAddViewV3 { + final ModAddV3 modAdd; + final PersonV3? moderator; + final PersonV3 moddedPerson; + + ModAddViewV3({ + required this.modAdd, + this.moderator, + required this.moddedPerson, + }); + + // From JSON + factory ModAddViewV3.fromJson(Map json) => _$ModAddViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModAddViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_add_view.g.dart b/lib/src/models/v3/view/mod_add_view.g.dart new file mode 100644 index 00000000..475c9036 --- /dev/null +++ b/lib/src/models/v3/view/mod_add_view.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_add_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModAddViewV3 _$ModAddViewV3FromJson(Map json) => ModAddViewV3( + modAdd: ModAddV3.fromJson(json['mod_add'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + moddedPerson: + PersonV3.fromJson(json['modded_person'] as Map), + ); + +Map _$ModAddViewV3ToJson(ModAddViewV3 instance) => + { + 'mod_add': instance.modAdd, + if (instance.moderator case final value?) 'moderator': value, + 'modded_person': instance.moddedPerson, + }; diff --git a/lib/src/models/v3/view/mod_ban_from_community_view.dart b/lib/src/models/v3/view/mod_ban_from_community_view.dart new file mode 100644 index 00000000..d0ee1b37 --- /dev/null +++ b/lib/src/models/v3/view/mod_ban_from_community_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_ban_from_community_view.g.dart'; + +@JsonSerializable() +class ModBanFromCommunityViewV3 { + final ModBanFromCommunityV3 modBanFromCommunity; + final PersonV3? moderator; + final CommunityV3 community; + final PersonV3 bannedPerson; + + ModBanFromCommunityViewV3({ + required this.modBanFromCommunity, + this.moderator, + required this.community, + required this.bannedPerson, + }); + + // From JSON + factory ModBanFromCommunityViewV3.fromJson(Map json) => _$ModBanFromCommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModBanFromCommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_ban_from_community_view.g.dart b/lib/src/models/v3/view/mod_ban_from_community_view.g.dart new file mode 100644 index 00000000..919e05b7 --- /dev/null +++ b/lib/src/models/v3/view/mod_ban_from_community_view.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_ban_from_community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModBanFromCommunityViewV3 _$ModBanFromCommunityViewV3FromJson( + Map json) => + ModBanFromCommunityViewV3( + modBanFromCommunity: ModBanFromCommunityV3.fromJson( + json['mod_ban_from_community'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + bannedPerson: + PersonV3.fromJson(json['banned_person'] as Map), + ); + +Map _$ModBanFromCommunityViewV3ToJson( + ModBanFromCommunityViewV3 instance) => + { + 'mod_ban_from_community': instance.modBanFromCommunity, + if (instance.moderator case final value?) 'moderator': value, + 'community': instance.community, + 'banned_person': instance.bannedPerson, + }; diff --git a/lib/src/models/v3/view/mod_ban_view.dart b/lib/src/models/v3/view/mod_ban_view.dart new file mode 100644 index 00000000..ad846be1 --- /dev/null +++ b/lib/src/models/v3/view/mod_ban_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_ban_view.g.dart'; + +@JsonSerializable() +class ModBanViewV3 { + final ModBanV3 modBan; + final PersonV3? moderator; + final PersonV3 bannedPerson; + + ModBanViewV3({ + required this.modBan, + this.moderator, + required this.bannedPerson, + }); + + // From JSON + factory ModBanViewV3.fromJson(Map json) => _$ModBanViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModBanViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_ban_view.g.dart b/lib/src/models/v3/view/mod_ban_view.g.dart new file mode 100644 index 00000000..d137cba0 --- /dev/null +++ b/lib/src/models/v3/view/mod_ban_view.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_ban_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModBanViewV3 _$ModBanViewV3FromJson(Map json) => ModBanViewV3( + modBan: ModBanV3.fromJson(json['mod_ban'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + bannedPerson: + PersonV3.fromJson(json['banned_person'] as Map), + ); + +Map _$ModBanViewV3ToJson(ModBanViewV3 instance) => + { + 'mod_ban': instance.modBan, + if (instance.moderator case final value?) 'moderator': value, + 'banned_person': instance.bannedPerson, + }; diff --git a/lib/src/models/v3/view/mod_feature_post_view.dart b/lib/src/models/v3/view/mod_feature_post_view.dart new file mode 100644 index 00000000..f19200e9 --- /dev/null +++ b/lib/src/models/v3/view/mod_feature_post_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_feature_post_view.g.dart'; + +@JsonSerializable() +class ModFeaturePostViewV3 { + final ModFeaturePostV3 modFeaturePost; + final PersonV3? moderator; + final PostV3 post; + final CommunityV3 community; + + ModFeaturePostViewV3({ + required this.modFeaturePost, + this.moderator, + required this.post, + required this.community, + }); + + // From JSON + factory ModFeaturePostViewV3.fromJson(Map json) => _$ModFeaturePostViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModFeaturePostViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_feature_post_view.g.dart b/lib/src/models/v3/view/mod_feature_post_view.g.dart new file mode 100644 index 00000000..d945b882 --- /dev/null +++ b/lib/src/models/v3/view/mod_feature_post_view.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_feature_post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModFeaturePostViewV3 _$ModFeaturePostViewV3FromJson( + Map json) => + ModFeaturePostViewV3( + modFeaturePost: ModFeaturePostV3.fromJson( + json['mod_feature_post'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$ModFeaturePostViewV3ToJson( + ModFeaturePostViewV3 instance) => + { + 'mod_feature_post': instance.modFeaturePost, + if (instance.moderator case final value?) 'moderator': value, + 'post': instance.post, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/mod_hide_community_view.dart b/lib/src/models/v3/view/mod_hide_community_view.dart new file mode 100644 index 00000000..31c5f2f1 --- /dev/null +++ b/lib/src/models/v3/view/mod_hide_community_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_hide_community_view.g.dart'; + +@JsonSerializable() +class ModHideCommunityViewV3 { + final ModHideCommunityV3 modHideCommunity; + final PersonV3? admin; + final CommunityV3 community; + + ModHideCommunityViewV3({ + required this.modHideCommunity, + this.admin, + required this.community, + }); + + // From JSON + factory ModHideCommunityViewV3.fromJson(Map json) => _$ModHideCommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModHideCommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_hide_community_view.g.dart b/lib/src/models/v3/view/mod_hide_community_view.g.dart new file mode 100644 index 00000000..a5b14777 --- /dev/null +++ b/lib/src/models/v3/view/mod_hide_community_view.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_hide_community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModHideCommunityViewV3 _$ModHideCommunityViewV3FromJson( + Map json) => + ModHideCommunityViewV3( + modHideCommunity: ModHideCommunityV3.fromJson( + json['mod_hide_community'] as Map), + admin: json['admin'] == null + ? null + : PersonV3.fromJson(json['admin'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$ModHideCommunityViewV3ToJson( + ModHideCommunityViewV3 instance) => + { + 'mod_hide_community': instance.modHideCommunity, + if (instance.admin case final value?) 'admin': value, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/mod_lock_post_view.dart b/lib/src/models/v3/view/mod_lock_post_view.dart new file mode 100644 index 00000000..8741ef70 --- /dev/null +++ b/lib/src/models/v3/view/mod_lock_post_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_lock_post_view.g.dart'; + +@JsonSerializable() +class ModLockPostViewV3 { + final ModLockPostV3 modLockPost; + final PersonV3? moderator; + final PostV3 post; + final CommunityV3 community; + + ModLockPostViewV3({ + required this.modLockPost, + this.moderator, + required this.post, + required this.community, + }); + + // From JSON + factory ModLockPostViewV3.fromJson(Map json) => _$ModLockPostViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModLockPostViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_lock_post_view.g.dart b/lib/src/models/v3/view/mod_lock_post_view.g.dart new file mode 100644 index 00000000..a3a24d43 --- /dev/null +++ b/lib/src/models/v3/view/mod_lock_post_view.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_lock_post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModLockPostViewV3 _$ModLockPostViewV3FromJson(Map json) => + ModLockPostViewV3( + modLockPost: + ModLockPostV3.fromJson(json['mod_lock_post'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$ModLockPostViewV3ToJson(ModLockPostViewV3 instance) => + { + 'mod_lock_post': instance.modLockPost, + if (instance.moderator case final value?) 'moderator': value, + 'post': instance.post, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/mod_remove_comment_view.dart b/lib/src/models/v3/view/mod_remove_comment_view.dart new file mode 100644 index 00000000..42c13a56 --- /dev/null +++ b/lib/src/models/v3/view/mod_remove_comment_view.dart @@ -0,0 +1,30 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_remove_comment_view.g.dart'; + +@JsonSerializable() +class ModRemoveCommentViewV3 { + final ModRemoveCommentV3 modRemoveComment; + final PersonV3? moderator; + final CommentV3 comment; + final PersonV3 commenter; + final PostV3 post; + final CommunityV3 community; + + ModRemoveCommentViewV3({ + required this.modRemoveComment, + this.moderator, + required this.comment, + required this.commenter, + required this.post, + required this.community, + }); + + // From JSON + factory ModRemoveCommentViewV3.fromJson(Map json) => _$ModRemoveCommentViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModRemoveCommentViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_remove_comment_view.g.dart b/lib/src/models/v3/view/mod_remove_comment_view.g.dart new file mode 100644 index 00000000..25752aa0 --- /dev/null +++ b/lib/src/models/v3/view/mod_remove_comment_view.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_remove_comment_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModRemoveCommentViewV3 _$ModRemoveCommentViewV3FromJson( + Map json) => + ModRemoveCommentViewV3( + modRemoveComment: ModRemoveCommentV3.fromJson( + json['mod_remove_comment'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + comment: CommentV3.fromJson(json['comment'] as Map), + commenter: PersonV3.fromJson(json['commenter'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$ModRemoveCommentViewV3ToJson( + ModRemoveCommentViewV3 instance) => + { + 'mod_remove_comment': instance.modRemoveComment, + if (instance.moderator case final value?) 'moderator': value, + 'comment': instance.comment, + 'commenter': instance.commenter, + 'post': instance.post, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/mod_remove_community_view.dart b/lib/src/models/v3/view/mod_remove_community_view.dart new file mode 100644 index 00000000..1c4d7f3d --- /dev/null +++ b/lib/src/models/v3/view/mod_remove_community_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_remove_community_view.g.dart'; + +@JsonSerializable() +class ModRemoveCommunityViewV3 { + final ModRemoveCommunityV3 modRemoveCommunity; + final PersonV3? moderator; + final CommunityV3 community; + + ModRemoveCommunityViewV3({ + required this.modRemoveCommunity, + this.moderator, + required this.community, + }); + + // From JSON + factory ModRemoveCommunityViewV3.fromJson(Map json) => _$ModRemoveCommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModRemoveCommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_remove_community_view.g.dart b/lib/src/models/v3/view/mod_remove_community_view.g.dart new file mode 100644 index 00000000..89d4fef5 --- /dev/null +++ b/lib/src/models/v3/view/mod_remove_community_view.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_remove_community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModRemoveCommunityViewV3 _$ModRemoveCommunityViewV3FromJson( + Map json) => + ModRemoveCommunityViewV3( + modRemoveCommunity: ModRemoveCommunityV3.fromJson( + json['mod_remove_community'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$ModRemoveCommunityViewV3ToJson( + ModRemoveCommunityViewV3 instance) => + { + 'mod_remove_community': instance.modRemoveCommunity, + if (instance.moderator case final value?) 'moderator': value, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/mod_remove_post_view.dart b/lib/src/models/v3/view/mod_remove_post_view.dart new file mode 100644 index 00000000..7280140f --- /dev/null +++ b/lib/src/models/v3/view/mod_remove_post_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_remove_post_view.g.dart'; + +@JsonSerializable() +class ModRemovePostViewV3 { + final ModRemovePostV3 modRemovePost; + final PersonV3? moderator; + final PostV3 post; + final CommunityV3 community; + + ModRemovePostViewV3({ + required this.modRemovePost, + this.moderator, + required this.post, + required this.community, + }); + + // From JSON + factory ModRemovePostViewV3.fromJson(Map json) => _$ModRemovePostViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModRemovePostViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_remove_post_view.g.dart b/lib/src/models/v3/view/mod_remove_post_view.g.dart new file mode 100644 index 00000000..b8c003df --- /dev/null +++ b/lib/src/models/v3/view/mod_remove_post_view.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_remove_post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModRemovePostViewV3 _$ModRemovePostViewV3FromJson(Map json) => + ModRemovePostViewV3( + modRemovePost: ModRemovePostV3.fromJson( + json['mod_remove_post'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + ); + +Map _$ModRemovePostViewV3ToJson( + ModRemovePostViewV3 instance) => + { + 'mod_remove_post': instance.modRemovePost, + if (instance.moderator case final value?) 'moderator': value, + 'post': instance.post, + 'community': instance.community, + }; diff --git a/lib/src/models/v3/view/mod_transfer_community_view.dart b/lib/src/models/v3/view/mod_transfer_community_view.dart new file mode 100644 index 00000000..a6e0d997 --- /dev/null +++ b/lib/src/models/v3/view/mod_transfer_community_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'mod_transfer_community_view.g.dart'; + +@JsonSerializable() +class ModTransferCommunityViewV3 { + final ModTransferCommunityV3 modTransferCommunity; + final PersonV3? moderator; + final CommunityV3 community; + final PersonV3 moddedPerson; + + ModTransferCommunityViewV3({ + required this.modTransferCommunity, + this.moderator, + required this.community, + required this.moddedPerson, + }); + + // From JSON + factory ModTransferCommunityViewV3.fromJson(Map json) => _$ModTransferCommunityViewV3FromJson(json); + + // To JSON + Map toJson() => _$ModTransferCommunityViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/mod_transfer_community_view.g.dart b/lib/src/models/v3/view/mod_transfer_community_view.g.dart new file mode 100644 index 00000000..db9f110e --- /dev/null +++ b/lib/src/models/v3/view/mod_transfer_community_view.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'mod_transfer_community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ModTransferCommunityViewV3 _$ModTransferCommunityViewV3FromJson( + Map json) => + ModTransferCommunityViewV3( + modTransferCommunity: ModTransferCommunityV3.fromJson( + json['mod_transfer_community'] as Map), + moderator: json['moderator'] == null + ? null + : PersonV3.fromJson(json['moderator'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + moddedPerson: + PersonV3.fromJson(json['modded_person'] as Map), + ); + +Map _$ModTransferCommunityViewV3ToJson( + ModTransferCommunityViewV3 instance) => + { + 'mod_transfer_community': instance.modTransferCommunity, + if (instance.moderator case final value?) 'moderator': value, + 'community': instance.community, + 'modded_person': instance.moddedPerson, + }; diff --git a/lib/src/models/v3/view/person_block_view.dart b/lib/src/models/v3/view/person_block_view.dart new file mode 100644 index 00000000..9c96afc9 --- /dev/null +++ b/lib/src/models/v3/view/person_block_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'person_block_view.g.dart'; + +@JsonSerializable() +class PersonBlockViewV3 { + final PersonV3 person; + final PersonV3 target; + + PersonBlockViewV3({ + required this.person, + required this.target, + }); + + // From JSON + factory PersonBlockViewV3.fromJson(Map json) => _$PersonBlockViewV3FromJson(json); + + // To JSON + Map toJson() => _$PersonBlockViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/person_block_view.g.dart b/lib/src/models/v3/view/person_block_view.g.dart new file mode 100644 index 00000000..3822c20d --- /dev/null +++ b/lib/src/models/v3/view/person_block_view.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_block_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonBlockViewV3 _$PersonBlockViewV3FromJson(Map json) => + PersonBlockViewV3( + person: PersonV3.fromJson(json['person'] as Map), + target: PersonV3.fromJson(json['target'] as Map), + ); + +Map _$PersonBlockViewV3ToJson(PersonBlockViewV3 instance) => + { + 'person': instance.person, + 'target': instance.target, + }; diff --git a/lib/src/models/v3/view/person_mention_view.dart b/lib/src/models/v3/view/person_mention_view.dart new file mode 100644 index 00000000..c4b66924 --- /dev/null +++ b/lib/src/models/v3/view/person_mention_view.dart @@ -0,0 +1,49 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'person_mention_view.g.dart'; + +@JsonSerializable() +class PersonMentionViewV3 { + final PersonMentionV3 personMention; + final CommentV3 comment; + final PersonV3 creator; + final PostV3 post; + final CommunityV3 community; + final PersonV3 recipient; + final CommentAggregatesV3 counts; + final bool creatorBannedFromCommunity; + final bool? bannedFromCommunity; + final bool creatorIsModerator; + final bool creatorIsAdmin; + final SubscribedTypeV3 subscribed; + final bool saved; + final bool creatorBlocked; + final int? myVote; + + PersonMentionViewV3({ + required this.personMention, + required this.comment, + required this.creator, + required this.post, + required this.community, + required this.recipient, + required this.counts, + required this.creatorBannedFromCommunity, + this.bannedFromCommunity, + required this.creatorIsModerator, + required this.creatorIsAdmin, + required this.subscribed, + required this.saved, + required this.creatorBlocked, + this.myVote, + }); + + // From JSON + factory PersonMentionViewV3.fromJson(Map json) => _$PersonMentionViewV3FromJson(json); + + // To JSON + Map toJson() => _$PersonMentionViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/person_mention_view.g.dart b/lib/src/models/v3/view/person_mention_view.g.dart new file mode 100644 index 00000000..f8acff22 --- /dev/null +++ b/lib/src/models/v3/view/person_mention_view.g.dart @@ -0,0 +1,50 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_mention_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonMentionViewV3 _$PersonMentionViewV3FromJson(Map json) => + PersonMentionViewV3( + personMention: PersonMentionV3.fromJson( + json['person_mention'] as Map), + comment: CommentV3.fromJson(json['comment'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + recipient: PersonV3.fromJson(json['recipient'] as Map), + counts: + CommentAggregatesV3.fromJson(json['counts'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + bannedFromCommunity: json['banned_from_community'] as bool?, + creatorIsModerator: json['creator_is_moderator'] as bool, + creatorIsAdmin: json['creator_is_admin'] as bool, + subscribed: SubscribedTypeV3.fromJson(json['subscribed'] as String), + saved: json['saved'] as bool, + creatorBlocked: json['creator_blocked'] as bool, + myVote: (json['my_vote'] as num?)?.toInt(), + ); + +Map _$PersonMentionViewV3ToJson( + PersonMentionViewV3 instance) => + { + 'person_mention': instance.personMention, + 'comment': instance.comment, + 'creator': instance.creator, + 'post': instance.post, + 'community': instance.community, + 'recipient': instance.recipient, + 'counts': instance.counts, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + if (instance.bannedFromCommunity case final value?) + 'banned_from_community': value, + 'creator_is_moderator': instance.creatorIsModerator, + 'creator_is_admin': instance.creatorIsAdmin, + 'subscribed': instance.subscribed, + 'saved': instance.saved, + 'creator_blocked': instance.creatorBlocked, + if (instance.myVote case final value?) 'my_vote': value, + }; diff --git a/lib/src/models/v3/view/person_view.dart b/lib/src/models/v3/view/person_view.dart new file mode 100644 index 00000000..79bdf4af --- /dev/null +++ b/lib/src/models/v3/view/person_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'person_view.g.dart'; + +@JsonSerializable() +class PersonViewV3 { + final PersonV3 person; + final PersonAggregatesV3 counts; + final bool isAdmin; + + PersonViewV3({ + required this.person, + required this.counts, + required this.isAdmin, + }); + + // From JSON + factory PersonViewV3.fromJson(Map json) => _$PersonViewV3FromJson(json); + + // To JSON + Map toJson() => _$PersonViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/person_view.g.dart b/lib/src/models/v3/view/person_view.g.dart new file mode 100644 index 00000000..8c66ff93 --- /dev/null +++ b/lib/src/models/v3/view/person_view.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonViewV3 _$PersonViewV3FromJson(Map json) => PersonViewV3( + person: PersonV3.fromJson(json['person'] as Map), + counts: + PersonAggregatesV3.fromJson(json['counts'] as Map), + isAdmin: json['is_admin'] as bool, + ); + +Map _$PersonViewV3ToJson(PersonViewV3 instance) => + { + 'person': instance.person, + 'counts': instance.counts, + 'is_admin': instance.isAdmin, + }; diff --git a/lib/src/models/v3/view/post_report_view.dart b/lib/src/models/v3/view/post_report_view.dart new file mode 100644 index 00000000..6eb2d585 --- /dev/null +++ b/lib/src/models/v3/view/post_report_view.dart @@ -0,0 +1,53 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'post_report_view.g.dart'; + +@JsonSerializable() +class PostReportViewV3 { + final PostReportV3 postReport; + final PostV3 post; + final CommunityV3 community; + final PersonV3 creator; + final PersonV3 postCreator; + final bool creatorBannedFromCommunity; + final bool? creatorIsModerator; + final bool? creatorIsAdmin; + final SubscribedTypeV3? subscribed; + final bool? saved; + final bool? read; + final bool? hidden; + final bool? creatorBlocked; + final num? myVote; + final int? unreadComments; + final PostAggregatesV3 counts; + final PersonV3? resolver; + + PostReportViewV3({ + required this.postReport, + required this.post, + required this.community, + required this.creator, + required this.postCreator, + required this.creatorBannedFromCommunity, + this.creatorIsModerator, + this.creatorIsAdmin, + this.subscribed, + this.saved, + this.read, + this.hidden, + this.creatorBlocked, + this.myVote, + this.unreadComments, + required this.counts, + this.resolver, + }); + + // From JSON + factory PostReportViewV3.fromJson(Map json) => _$PostReportViewV3FromJson(json); + + // To JSON + Map toJson() => _$PostReportViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/post_report_view.g.dart b/lib/src/models/v3/view/post_report_view.g.dart new file mode 100644 index 00000000..a6f84668 --- /dev/null +++ b/lib/src/models/v3/view/post_report_view.g.dart @@ -0,0 +1,57 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_report_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostReportViewV3 _$PostReportViewV3FromJson(Map json) => + PostReportViewV3( + postReport: + PostReportV3.fromJson(json['post_report'] as Map), + post: PostV3.fromJson(json['post'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + postCreator: + PersonV3.fromJson(json['post_creator'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + creatorIsModerator: json['creator_is_moderator'] as bool?, + creatorIsAdmin: json['creator_is_admin'] as bool?, + subscribed: json['subscribed'] == null + ? null + : SubscribedTypeV3.fromJson(json['subscribed'] as String), + saved: json['saved'] as bool?, + read: json['read'] as bool?, + hidden: json['hidden'] as bool?, + creatorBlocked: json['creator_blocked'] as bool?, + myVote: json['my_vote'] as num?, + unreadComments: (json['unread_comments'] as num?)?.toInt(), + counts: PostAggregatesV3.fromJson(json['counts'] as Map), + resolver: json['resolver'] == null + ? null + : PersonV3.fromJson(json['resolver'] as Map), + ); + +Map _$PostReportViewV3ToJson(PostReportViewV3 instance) => + { + 'post_report': instance.postReport, + 'post': instance.post, + 'community': instance.community, + 'creator': instance.creator, + 'post_creator': instance.postCreator, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + if (instance.creatorIsModerator case final value?) + 'creator_is_moderator': value, + if (instance.creatorIsAdmin case final value?) 'creator_is_admin': value, + if (instance.subscribed case final value?) 'subscribed': value, + if (instance.saved case final value?) 'saved': value, + if (instance.read case final value?) 'read': value, + if (instance.hidden case final value?) 'hidden': value, + if (instance.creatorBlocked case final value?) 'creator_blocked': value, + if (instance.myVote case final value?) 'my_vote': value, + if (instance.unreadComments case final value?) 'unread_comments': value, + 'counts': instance.counts, + if (instance.resolver case final value?) 'resolver': value, + }; diff --git a/lib/src/models/v3/view/post_view.dart b/lib/src/models/v3/view/post_view.dart new file mode 100644 index 00000000..4cc3e5d0 --- /dev/null +++ b/lib/src/models/v3/view/post_view.dart @@ -0,0 +1,51 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/enums/v3/enums.dart'; +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'post_view.g.dart'; + +@JsonSerializable() +class PostViewV3 { + final PostV3 post; + final PersonV3 creator; + final CommunityV3 community; + final ImageDetailsV3? imageDetails; + final bool creatorBannedFromCommunity; + final bool? bannedFromCommunity; + final bool creatorIsModerator; + final bool creatorIsAdmin; + final PostAggregatesV3 counts; + final SubscribedTypeV3 subscribed; + final bool saved; + final bool read; + final bool? hidden; + final bool creatorBlocked; + final int? myVote; + final int unreadComments; + + PostViewV3({ + required this.post, + required this.creator, + required this.community, + this.imageDetails, + required this.creatorBannedFromCommunity, + this.bannedFromCommunity, + required this.creatorIsModerator, + required this.creatorIsAdmin, + required this.counts, + required this.subscribed, + required this.saved, + required this.read, + this.hidden, + required this.creatorBlocked, + this.myVote, + required this.unreadComments, + }); + + // From JSON + factory PostViewV3.fromJson(Map json) => _$PostViewV3FromJson(json); + + // To JSON + Map toJson() => _$PostViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/post_view.g.dart b/lib/src/models/v3/view/post_view.g.dart new file mode 100644 index 00000000..a0029676 --- /dev/null +++ b/lib/src/models/v3/view/post_view.g.dart @@ -0,0 +1,51 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostViewV3 _$PostViewV3FromJson(Map json) => PostViewV3( + post: PostV3.fromJson(json['post'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + community: + CommunityV3.fromJson(json['community'] as Map), + imageDetails: json['image_details'] == null + ? null + : ImageDetailsV3.fromJson( + json['image_details'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + bannedFromCommunity: json['banned_from_community'] as bool?, + creatorIsModerator: json['creator_is_moderator'] as bool, + creatorIsAdmin: json['creator_is_admin'] as bool, + counts: PostAggregatesV3.fromJson(json['counts'] as Map), + subscribed: SubscribedTypeV3.fromJson(json['subscribed'] as String), + saved: json['saved'] as bool, + read: json['read'] as bool, + hidden: json['hidden'] as bool?, + creatorBlocked: json['creator_blocked'] as bool, + myVote: (json['my_vote'] as num?)?.toInt(), + unreadComments: (json['unread_comments'] as num).toInt(), + ); + +Map _$PostViewV3ToJson(PostViewV3 instance) => + { + 'post': instance.post, + 'creator': instance.creator, + 'community': instance.community, + if (instance.imageDetails case final value?) 'image_details': value, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + if (instance.bannedFromCommunity case final value?) + 'banned_from_community': value, + 'creator_is_moderator': instance.creatorIsModerator, + 'creator_is_admin': instance.creatorIsAdmin, + 'counts': instance.counts, + 'subscribed': instance.subscribed, + 'saved': instance.saved, + 'read': instance.read, + if (instance.hidden case final value?) 'hidden': value, + 'creator_blocked': instance.creatorBlocked, + if (instance.myVote case final value?) 'my_vote': value, + 'unread_comments': instance.unreadComments, + }; diff --git a/lib/src/models/v3/view/private_message_report_view.dart b/lib/src/models/v3/view/private_message_report_view.dart new file mode 100644 index 00000000..87fa3e59 --- /dev/null +++ b/lib/src/models/v3/view/private_message_report_view.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'private_message_report_view.g.dart'; + +@JsonSerializable() +class PrivateMessageReportViewV3 { + final PrivateMessageReportV3 privateMessageReport; + final PrivateMessageV3 privateMessage; + final PersonV3 privateMessageCreator; + final PersonV3 creator; + final PersonV3? resolver; + + PrivateMessageReportViewV3({ + required this.privateMessageReport, + required this.privateMessage, + required this.privateMessageCreator, + required this.creator, + this.resolver, + }); + + // From JSON + factory PrivateMessageReportViewV3.fromJson(Map json) => _$PrivateMessageReportViewV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessageReportViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/private_message_report_view.g.dart b/lib/src/models/v3/view/private_message_report_view.g.dart new file mode 100644 index 00000000..340ff4fd --- /dev/null +++ b/lib/src/models/v3/view/private_message_report_view.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_message_report_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessageReportViewV3 _$PrivateMessageReportViewV3FromJson( + Map json) => + PrivateMessageReportViewV3( + privateMessageReport: PrivateMessageReportV3.fromJson( + json['private_message_report'] as Map), + privateMessage: PrivateMessageV3.fromJson( + json['private_message'] as Map), + privateMessageCreator: PersonV3.fromJson( + json['private_message_creator'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + resolver: json['resolver'] == null + ? null + : PersonV3.fromJson(json['resolver'] as Map), + ); + +Map _$PrivateMessageReportViewV3ToJson( + PrivateMessageReportViewV3 instance) => + { + 'private_message_report': instance.privateMessageReport, + 'private_message': instance.privateMessage, + 'private_message_creator': instance.privateMessageCreator, + 'creator': instance.creator, + if (instance.resolver case final value?) 'resolver': value, + }; diff --git a/lib/src/models/v3/view/private_message_view.dart b/lib/src/models/v3/view/private_message_view.dart new file mode 100644 index 00000000..97be33c3 --- /dev/null +++ b/lib/src/models/v3/view/private_message_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'private_message_view.g.dart'; + +@JsonSerializable() +class PrivateMessageViewV3 { + final PrivateMessageV3 privateMessage; + final PersonV3 creator; + final PersonV3 recipient; + + PrivateMessageViewV3({ + required this.privateMessage, + required this.creator, + required this.recipient, + }); + + // From JSON + factory PrivateMessageViewV3.fromJson(Map json) => _$PrivateMessageViewV3FromJson(json); + + // To JSON + Map toJson() => _$PrivateMessageViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/private_message_view.g.dart b/lib/src/models/v3/view/private_message_view.g.dart new file mode 100644 index 00000000..674e2d4b --- /dev/null +++ b/lib/src/models/v3/view/private_message_view.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'private_message_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PrivateMessageViewV3 _$PrivateMessageViewV3FromJson( + Map json) => + PrivateMessageViewV3( + privateMessage: PrivateMessageV3.fromJson( + json['private_message'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + recipient: PersonV3.fromJson(json['recipient'] as Map), + ); + +Map _$PrivateMessageViewV3ToJson( + PrivateMessageViewV3 instance) => + { + 'private_message': instance.privateMessage, + 'creator': instance.creator, + 'recipient': instance.recipient, + }; diff --git a/lib/src/models/v3/view/registration_application_view.dart b/lib/src/models/v3/view/registration_application_view.dart new file mode 100644 index 00000000..f457d6ce --- /dev/null +++ b/lib/src/models/v3/view/registration_application_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'registration_application_view.g.dart'; + +@JsonSerializable() +class RegistrationApplicationViewV3 { + final RegistrationApplicationV3 registrationApplication; + final LocalUserV3 creatorLocalUser; + final PersonV3 creator; + final PersonV3? admin; + + RegistrationApplicationViewV3({ + required this.registrationApplication, + required this.creatorLocalUser, + required this.creator, + this.admin, + }); + + // From JSON + factory RegistrationApplicationViewV3.fromJson(Map json) => _$RegistrationApplicationViewV3FromJson(json); + + // To JSON + Map toJson() => _$RegistrationApplicationViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/registration_application_view.g.dart b/lib/src/models/v3/view/registration_application_view.g.dart new file mode 100644 index 00000000..865632a5 --- /dev/null +++ b/lib/src/models/v3/view/registration_application_view.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'registration_application_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +RegistrationApplicationViewV3 _$RegistrationApplicationViewV3FromJson( + Map json) => + RegistrationApplicationViewV3( + registrationApplication: RegistrationApplicationV3.fromJson( + json['registration_application'] as Map), + creatorLocalUser: LocalUserV3.fromJson( + json['creator_local_user'] as Map), + creator: PersonV3.fromJson(json['creator'] as Map), + admin: json['admin'] == null + ? null + : PersonV3.fromJson(json['admin'] as Map), + ); + +Map _$RegistrationApplicationViewV3ToJson( + RegistrationApplicationViewV3 instance) => + { + 'registration_application': instance.registrationApplication, + 'creator_local_user': instance.creatorLocalUser, + 'creator': instance.creator, + if (instance.admin case final value?) 'admin': value, + }; diff --git a/lib/src/models/v3/view/site_view.dart b/lib/src/models/v3/view/site_view.dart new file mode 100644 index 00000000..9501e6a0 --- /dev/null +++ b/lib/src/models/v3/view/site_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'site_view.g.dart'; + +@JsonSerializable() +class SiteViewV3 { + final SiteV3 site; + final LocalSiteV3 localSite; + final LocalSiteRateLimitV3 localSiteRateLimit; + final SiteAggregatesV3 counts; + + SiteViewV3({ + required this.site, + required this.localSite, + required this.localSiteRateLimit, + required this.counts, + }); + + // From JSON + factory SiteViewV3.fromJson(Map json) => _$SiteViewV3FromJson(json); + + // To JSON + Map toJson() => _$SiteViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/site_view.g.dart b/lib/src/models/v3/view/site_view.g.dart new file mode 100644 index 00000000..63197ba1 --- /dev/null +++ b/lib/src/models/v3/view/site_view.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SiteViewV3 _$SiteViewV3FromJson(Map json) => SiteViewV3( + site: SiteV3.fromJson(json['site'] as Map), + localSite: + LocalSiteV3.fromJson(json['local_site'] as Map), + localSiteRateLimit: LocalSiteRateLimitV3.fromJson( + json['local_site_rate_limit'] as Map), + counts: SiteAggregatesV3.fromJson(json['counts'] as Map), + ); + +Map _$SiteViewV3ToJson(SiteViewV3 instance) => + { + 'site': instance.site, + 'local_site': instance.localSite, + 'local_site_rate_limit': instance.localSiteRateLimit, + 'counts': instance.counts, + }; diff --git a/lib/src/v3/views/views.dart b/lib/src/models/v3/view/views.dart similarity index 100% rename from lib/src/v3/views/views.dart rename to lib/src/models/v3/view/views.dart diff --git a/lib/src/models/v3/view/vote_view.dart b/lib/src/models/v3/view/vote_view.dart new file mode 100644 index 00000000..4f6de6a7 --- /dev/null +++ b/lib/src/models/v3/view/vote_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v3/models.dart'; + +part 'vote_view.g.dart'; + +@JsonSerializable() +class VoteViewV3 { + final PersonV3 creator; + final bool creatorBannedFromCommunity; + final int score; + + VoteViewV3({ + required this.creator, + required this.creatorBannedFromCommunity, + required this.score, + }); + + // From JSON + factory VoteViewV3.fromJson(Map json) => _$VoteViewV3FromJson(json); + + // To JSON + Map toJson() => _$VoteViewV3ToJson(this); +} diff --git a/lib/src/models/v3/view/vote_view.g.dart b/lib/src/models/v3/view/vote_view.g.dart new file mode 100644 index 00000000..64ccc4e5 --- /dev/null +++ b/lib/src/models/v3/view/vote_view.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'vote_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +VoteViewV3 _$VoteViewV3FromJson(Map json) => VoteViewV3( + creator: PersonV3.fromJson(json['creator'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + score: (json['score'] as num).toInt(), + ); + +Map _$VoteViewV3ToJson(VoteViewV3 instance) => + { + 'creator': instance.creator, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + 'score': instance.score, + }; diff --git a/lib/src/models/v4/account/account.dart b/lib/src/models/v4/account/account.dart new file mode 100644 index 00000000..011e799b --- /dev/null +++ b/lib/src/models/v4/account/account.dart @@ -0,0 +1,76 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; + +part 'account.g.dart'; + +@JsonSerializable() +class Account { + final int id; + final int personId; + final String? email; + final bool showNsfw; + final String theme; + @JsonKey(toJson: capitalizePostSortTypeToJson, fromJson: lowercasePostSortTypeFromJson) + final PostSortType defaultPostSortType; + @JsonKey(toJson: capitalizeListingTypeToJson, fromJson: lowercaseListingTypeFromJson) + final ListingType defaultListingType; + final String interfaceLanguage; + final bool showAvatars; + final bool sendNotificationsToEmail; + final bool showBotAccounts; + final bool showReadPosts; + final bool emailVerified; + final bool acceptedApplication; + final bool openLinksInNewTab; + final bool blurNsfw; + final bool infiniteScrollEnabled; + final bool admin; + @JsonKey(toJson: capitalizePostListingModeToJson, fromJson: lowercasePostListingModeFromJson) + final PostListingMode postListingMode; + @JsonKey(name: 'totp_2fa_enabled') + final bool totp2faEnabled; + final bool enableKeyboardNavigation; + final bool enableAnimatedImages; + final bool enablePrivateMessages; + final bool collapseBotComments; + @JsonKey(toJson: capitalizeCommentSortTypeToJson, fromJson: lowercaseCommentSortTypeFromJson) + final CommentSortType defaultCommentSortType; + final bool autoMarkFetchedPostsAsRead; + + Account({ + required this.id, + required this.personId, + this.email, + required this.showNsfw, + required this.theme, + required this.defaultPostSortType, + required this.defaultListingType, + required this.interfaceLanguage, + required this.showAvatars, + required this.sendNotificationsToEmail, + required this.showBotAccounts, + required this.showReadPosts, + required this.emailVerified, + required this.acceptedApplication, + required this.openLinksInNewTab, + required this.blurNsfw, + required this.infiniteScrollEnabled, + required this.admin, + required this.postListingMode, + required this.totp2faEnabled, + required this.enableKeyboardNavigation, + required this.enableAnimatedImages, + required this.enablePrivateMessages, + required this.collapseBotComments, + required this.defaultCommentSortType, + required this.autoMarkFetchedPostsAsRead, + }); + + // From JSON + factory Account.fromJson(Map json) => _$AccountFromJson(json); + + // To JSON + Map toJson() => _$AccountToJson(this); +} diff --git a/lib/src/models/v4/account/account.g.dart b/lib/src/models/v4/account/account.g.dart new file mode 100644 index 00000000..44fe7d5b --- /dev/null +++ b/lib/src/models/v4/account/account.g.dart @@ -0,0 +1,78 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'account.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Account _$AccountFromJson(Map json) => Account( + id: (json['id'] as num).toInt(), + personId: (json['person_id'] as num).toInt(), + email: json['email'] as String?, + showNsfw: json['show_nsfw'] as bool, + theme: json['theme'] as String, + defaultPostSortType: lowercasePostSortTypeFromJson( + json['default_post_sort_type'] as String?), + defaultListingType: + lowercaseListingTypeFromJson(json['default_listing_type'] as String?), + interfaceLanguage: json['interface_language'] as String, + showAvatars: json['show_avatars'] as bool, + sendNotificationsToEmail: json['send_notifications_to_email'] as bool, + showBotAccounts: json['show_bot_accounts'] as bool, + showReadPosts: json['show_read_posts'] as bool, + emailVerified: json['email_verified'] as bool, + acceptedApplication: json['accepted_application'] as bool, + openLinksInNewTab: json['open_links_in_new_tab'] as bool, + blurNsfw: json['blur_nsfw'] as bool, + infiniteScrollEnabled: json['infinite_scroll_enabled'] as bool, + admin: json['admin'] as bool, + postListingMode: lowercasePostListingModeFromJson( + json['post_listing_mode'] as String?), + totp2faEnabled: json['totp_2fa_enabled'] as bool, + enableKeyboardNavigation: json['enable_keyboard_navigation'] as bool, + enableAnimatedImages: json['enable_animated_images'] as bool, + enablePrivateMessages: json['enable_private_messages'] as bool, + collapseBotComments: json['collapse_bot_comments'] as bool, + defaultCommentSortType: lowercaseCommentSortTypeFromJson( + json['default_comment_sort_type'] as String?), + autoMarkFetchedPostsAsRead: + json['auto_mark_fetched_posts_as_read'] as bool, + ); + +Map _$AccountToJson(Account instance) => { + 'id': instance.id, + 'person_id': instance.personId, + if (instance.email case final value?) 'email': value, + 'show_nsfw': instance.showNsfw, + 'theme': instance.theme, + if (capitalizePostSortTypeToJson(instance.defaultPostSortType) + case final value?) + 'default_post_sort_type': value, + if (capitalizeListingTypeToJson(instance.defaultListingType) + case final value?) + 'default_listing_type': value, + 'interface_language': instance.interfaceLanguage, + 'show_avatars': instance.showAvatars, + 'send_notifications_to_email': instance.sendNotificationsToEmail, + 'show_bot_accounts': instance.showBotAccounts, + 'show_read_posts': instance.showReadPosts, + 'email_verified': instance.emailVerified, + 'accepted_application': instance.acceptedApplication, + 'open_links_in_new_tab': instance.openLinksInNewTab, + 'blur_nsfw': instance.blurNsfw, + 'infinite_scroll_enabled': instance.infiniteScrollEnabled, + 'admin': instance.admin, + if (capitalizePostListingModeToJson(instance.postListingMode) + case final value?) + 'post_listing_mode': value, + 'totp_2fa_enabled': instance.totp2faEnabled, + 'enable_keyboard_navigation': instance.enableKeyboardNavigation, + 'enable_animated_images': instance.enableAnimatedImages, + 'enable_private_messages': instance.enablePrivateMessages, + 'collapse_bot_comments': instance.collapseBotComments, + if (capitalizeCommentSortTypeToJson(instance.defaultCommentSortType) + case final value?) + 'default_comment_sort_type': value, + 'auto_mark_fetched_posts_as_read': instance.autoMarkFetchedPostsAsRead, + }; diff --git a/lib/src/models/v4/account/account_view.dart b/lib/src/models/v4/account/account_view.dart new file mode 100644 index 00000000..42749a30 --- /dev/null +++ b/lib/src/models/v4/account/account_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'account_view.g.dart'; + +@JsonSerializable() +class AccountView { + final Account localUser; + final AccountVoteDisplayMode localUserVoteDisplayMode; + final Person person; + final PersonAggregates counts; + + AccountView({ + required this.localUser, + required this.localUserVoteDisplayMode, + required this.person, + required this.counts, + }); + + // From JSON + factory AccountView.fromJson(Map json) => _$AccountViewFromJson(json); + + // To JSON + Map toJson() => _$AccountViewToJson(this); +} diff --git a/lib/src/models/v4/account/account_view.g.dart b/lib/src/models/v4/account/account_view.g.dart new file mode 100644 index 00000000..8ca02d91 --- /dev/null +++ b/lib/src/models/v4/account/account_view.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'account_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AccountView _$AccountViewFromJson(Map json) => AccountView( + localUser: Account.fromJson(json['local_user'] as Map), + localUserVoteDisplayMode: AccountVoteDisplayMode.fromJson( + json['local_user_vote_display_mode'] as Map), + person: Person.fromJson(json['person'] as Map), + counts: PersonAggregates.fromJson(json['counts'] as Map), + ); + +Map _$AccountViewToJson(AccountView instance) => + { + 'local_user': instance.localUser, + 'local_user_vote_display_mode': instance.localUserVoteDisplayMode, + 'person': instance.person, + 'counts': instance.counts, + }; diff --git a/lib/src/models/v4/account/account_vote_display_mode.dart b/lib/src/models/v4/account/account_vote_display_mode.dart new file mode 100644 index 00000000..2a90104b --- /dev/null +++ b/lib/src/models/v4/account/account_vote_display_mode.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'account_vote_display_mode.g.dart'; + +@JsonSerializable() +class AccountVoteDisplayMode { + final bool score; + final bool upvotes; + final bool downvotes; + final bool upvotePercentage; + + AccountVoteDisplayMode({ + required this.score, + required this.upvotes, + required this.downvotes, + required this.upvotePercentage, + }); + + // From JSON + factory AccountVoteDisplayMode.fromJson(Map json) => _$AccountVoteDisplayModeFromJson(json); + + // To JSON + Map toJson() => _$AccountVoteDisplayModeToJson(this); +} diff --git a/lib/src/models/v4/account/account_vote_display_mode.g.dart b/lib/src/models/v4/account/account_vote_display_mode.g.dart new file mode 100644 index 00000000..6692c03d --- /dev/null +++ b/lib/src/models/v4/account/account_vote_display_mode.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'account_vote_display_mode.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AccountVoteDisplayMode _$AccountVoteDisplayModeFromJson( + Map json) => + AccountVoteDisplayMode( + score: json['score'] as bool, + upvotes: json['upvotes'] as bool, + downvotes: json['downvotes'] as bool, + upvotePercentage: json['upvote_percentage'] as bool, + ); + +Map _$AccountVoteDisplayModeToJson( + AccountVoteDisplayMode instance) => + { + 'score': instance.score, + 'upvotes': instance.upvotes, + 'downvotes': instance.downvotes, + 'upvote_percentage': instance.upvotePercentage, + }; diff --git a/lib/src/models/v4/account/full_account_view.dart b/lib/src/models/v4/account/full_account_view.dart new file mode 100644 index 00000000..99e7cfc7 --- /dev/null +++ b/lib/src/models/v4/account/full_account_view.dart @@ -0,0 +1,32 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'full_account_view.g.dart'; + +@JsonSerializable() +class FullAccountView { + final AccountView localUserView; + final List follows; + final List moderates; + final List communityBlocks; + final List instanceBlocks; + final List personBlocks; + final List discussionLanguages; + + FullAccountView({ + required this.localUserView, + required this.follows, + required this.moderates, + required this.communityBlocks, + required this.instanceBlocks, + required this.personBlocks, + required this.discussionLanguages, + }); + + // From JSON + factory FullAccountView.fromJson(Map json) => _$FullAccountViewFromJson(json); + + // To JSON + Map toJson() => _$FullAccountViewToJson(this); +} diff --git a/lib/src/models/v4/account/full_account_view.g.dart b/lib/src/models/v4/account/full_account_view.g.dart new file mode 100644 index 00000000..2c2f9583 --- /dev/null +++ b/lib/src/models/v4/account/full_account_view.g.dart @@ -0,0 +1,43 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'full_account_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FullAccountView _$FullAccountViewFromJson(Map json) => + FullAccountView( + localUserView: + AccountView.fromJson(json['local_user_view'] as Map), + follows: (json['follows'] as List) + .map((e) => CommunityFollowerView.fromJson(e as Map)) + .toList(), + moderates: (json['moderates'] as List) + .map( + (e) => CommunityModeratorView.fromJson(e as Map)) + .toList(), + communityBlocks: (json['community_blocks'] as List) + .map((e) => Community.fromJson(e as Map)) + .toList(), + instanceBlocks: (json['instance_blocks'] as List) + .map((e) => Instance.fromJson(e as Map)) + .toList(), + personBlocks: (json['person_blocks'] as List) + .map((e) => Person.fromJson(e as Map)) + .toList(), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$FullAccountViewToJson(FullAccountView instance) => + { + 'local_user_view': instance.localUserView, + 'follows': instance.follows, + 'moderates': instance.moderates, + 'community_blocks': instance.communityBlocks, + 'instance_blocks': instance.instanceBlocks, + 'person_blocks': instance.personBlocks, + 'discussion_languages': instance.discussionLanguages, + }; diff --git a/lib/src/models/v4/block/block_person_response.dart b/lib/src/models/v4/block/block_person_response.dart new file mode 100644 index 00000000..41a746f1 --- /dev/null +++ b/lib/src/models/v4/block/block_person_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'block_person_response.g.dart'; + +@JsonSerializable() +class BlockPersonResponse { + final PersonView personView; + final bool blocked; + + BlockPersonResponse({ + required this.personView, + required this.blocked, + }); + + // From JSON + factory BlockPersonResponse.fromJson(Map json) => _$BlockPersonResponseFromJson(json); + + // To JSON + Map toJson() => _$BlockPersonResponseToJson(this); +} diff --git a/lib/src/models/v4/block/block_person_response.g.dart b/lib/src/models/v4/block/block_person_response.g.dart new file mode 100644 index 00000000..956a3920 --- /dev/null +++ b/lib/src/models/v4/block/block_person_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'block_person_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BlockPersonResponse _$BlockPersonResponseFromJson(Map json) => + BlockPersonResponse( + personView: + PersonView.fromJson(json['person_view'] as Map), + blocked: json['blocked'] as bool, + ); + +Map _$BlockPersonResponseToJson( + BlockPersonResponse instance) => + { + 'person_view': instance.personView, + 'blocked': instance.blocked, + }; diff --git a/lib/src/models/v4/comment/comment.dart b/lib/src/models/v4/comment/comment.dart new file mode 100644 index 00000000..665cce4c --- /dev/null +++ b/lib/src/models/v4/comment/comment.dart @@ -0,0 +1,42 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'comment.g.dart'; + +@JsonSerializable() +class Comment { + final int id; + final int creatorId; + final int postId; + final String content; + final bool removed; + final DateTime published; + final DateTime? updated; + final bool deleted; + final String apId; + final bool local; + final String path; + final bool distinguished; + final int languageId; + + Comment({ + required this.id, + required this.creatorId, + required this.postId, + required this.content, + required this.removed, + required this.published, + this.updated, + required this.deleted, + required this.apId, + required this.local, + required this.path, + required this.distinguished, + required this.languageId, + }); + + // From JSON + factory Comment.fromJson(Map json) => _$CommentFromJson(json); + + // To JSON + Map toJson() => _$CommentToJson(this); +} diff --git a/lib/src/models/v4/comment/comment.g.dart b/lib/src/models/v4/comment/comment.g.dart new file mode 100644 index 00000000..f4234a67 --- /dev/null +++ b/lib/src/models/v4/comment/comment.g.dart @@ -0,0 +1,42 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Comment _$CommentFromJson(Map json) => Comment( + id: (json['id'] as num).toInt(), + creatorId: (json['creator_id'] as num).toInt(), + postId: (json['post_id'] as num).toInt(), + content: json['content'] as String, + removed: json['removed'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + deleted: json['deleted'] as bool, + apId: json['ap_id'] as String, + local: json['local'] as bool, + path: json['path'] as String, + distinguished: json['distinguished'] as bool, + languageId: (json['language_id'] as num).toInt(), + ); + +Map _$CommentToJson(Comment instance) => { + 'id': instance.id, + 'creator_id': instance.creatorId, + 'post_id': instance.postId, + 'content': instance.content, + 'removed': instance.removed, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'deleted': instance.deleted, + 'ap_id': instance.apId, + 'local': instance.local, + 'path': instance.path, + 'distinguished': instance.distinguished, + 'language_id': instance.languageId, + }; diff --git a/lib/src/models/v4/comment/comment_aggregates.dart b/lib/src/models/v4/comment/comment_aggregates.dart new file mode 100644 index 00000000..a021f849 --- /dev/null +++ b/lib/src/models/v4/comment/comment_aggregates.dart @@ -0,0 +1,32 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'comment_aggregates.g.dart'; + +@JsonSerializable() +class CommentAggregates { + final int commentId; + final int score; + final int upvotes; + final int downvotes; + final DateTime published; + final int childCount; + final int? reportCount; + final int? unresolvedReportCount; + + CommentAggregates({ + required this.commentId, + required this.score, + required this.upvotes, + required this.downvotes, + required this.published, + required this.childCount, + this.reportCount, + this.unresolvedReportCount, + }); + + // From JSON + factory CommentAggregates.fromJson(Map json) => _$CommentAggregatesFromJson(json); + + // To JSON + Map toJson() => _$CommentAggregatesToJson(this); +} diff --git a/lib/src/models/v4/comment/comment_aggregates.g.dart b/lib/src/models/v4/comment/comment_aggregates.g.dart new file mode 100644 index 00000000..117da469 --- /dev/null +++ b/lib/src/models/v4/comment/comment_aggregates.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentAggregates _$CommentAggregatesFromJson(Map json) => + CommentAggregates( + commentId: (json['comment_id'] as num).toInt(), + score: (json['score'] as num).toInt(), + upvotes: (json['upvotes'] as num).toInt(), + downvotes: (json['downvotes'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + childCount: (json['child_count'] as num).toInt(), + reportCount: (json['report_count'] as num?)?.toInt(), + unresolvedReportCount: (json['unresolved_report_count'] as num?)?.toInt(), + ); + +Map _$CommentAggregatesToJson(CommentAggregates instance) => + { + 'comment_id': instance.commentId, + 'score': instance.score, + 'upvotes': instance.upvotes, + 'downvotes': instance.downvotes, + 'published': instance.published.toIso8601String(), + 'child_count': instance.childCount, + if (instance.reportCount case final value?) 'report_count': value, + if (instance.unresolvedReportCount case final value?) + 'unresolved_report_count': value, + }; diff --git a/lib/src/models/v4/comment/comment_view.dart b/lib/src/models/v4/comment/comment_view.dart new file mode 100644 index 00000000..8f97e92c --- /dev/null +++ b/lib/src/models/v4/comment/comment_view.dart @@ -0,0 +1,47 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'comment_view.g.dart'; + +@JsonSerializable() +class CommentView { + final Comment comment; + final Person creator; + final Post post; + final Community community; + final CommentAggregates counts; + final bool creatorBannedFromCommunity; + final bool bannedFromCommunity; + final bool creatorIsModerator; + final bool creatorIsAdmin; + @JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson) + final SubscribedType subscribed; + final bool saved; + final bool creatorBlocked; + final int? myVote; + + CommentView({ + required this.comment, + required this.creator, + required this.post, + required this.community, + required this.counts, + required this.creatorBannedFromCommunity, + required this.bannedFromCommunity, + required this.creatorIsModerator, + required this.creatorIsAdmin, + required this.subscribed, + required this.saved, + required this.creatorBlocked, + this.myVote, + }); + + // From JSON + factory CommentView.fromJson(Map json) => _$CommentViewFromJson(json); + + // To JSON + Map toJson() => _$CommentViewToJson(this); +} diff --git a/lib/src/models/v4/comment/comment_view.g.dart b/lib/src/models/v4/comment/comment_view.g.dart new file mode 100644 index 00000000..a0469583 --- /dev/null +++ b/lib/src/models/v4/comment/comment_view.g.dart @@ -0,0 +1,43 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'comment_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommentView _$CommentViewFromJson(Map json) => CommentView( + comment: Comment.fromJson(json['comment'] as Map), + creator: Person.fromJson(json['creator'] as Map), + post: Post.fromJson(json['post'] as Map), + community: Community.fromJson(json['community'] as Map), + counts: + CommentAggregates.fromJson(json['counts'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + bannedFromCommunity: json['banned_from_community'] as bool, + creatorIsModerator: json['creator_is_moderator'] as bool, + creatorIsAdmin: json['creator_is_admin'] as bool, + subscribed: + lowercaseSubscribedTypeFromJson(json['subscribed'] as String?), + saved: json['saved'] as bool, + creatorBlocked: json['creator_blocked'] as bool, + myVote: (json['my_vote'] as num?)?.toInt(), + ); + +Map _$CommentViewToJson(CommentView instance) => + { + 'comment': instance.comment, + 'creator': instance.creator, + 'post': instance.post, + 'community': instance.community, + 'counts': instance.counts, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + 'banned_from_community': instance.bannedFromCommunity, + 'creator_is_moderator': instance.creatorIsModerator, + 'creator_is_admin': instance.creatorIsAdmin, + if (capitalizeSubscribedTypeToJson(instance.subscribed) case final value?) + 'subscribed': value, + 'saved': instance.saved, + 'creator_blocked': instance.creatorBlocked, + if (instance.myVote case final value?) 'my_vote': value, + }; diff --git a/lib/src/models/v4/community/community.dart b/lib/src/models/v4/community/community.dart new file mode 100644 index 00000000..a1c56539 --- /dev/null +++ b/lib/src/models/v4/community/community.dart @@ -0,0 +1,56 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; + +part 'community.g.dart'; + +@JsonSerializable() +class Community { + final int id; + final String name; + final String title; + final String? sidebar; + final bool removed; + final DateTime published; + final DateTime? updated; + final bool deleted; + final bool nsfw; + final String actorId; + final bool local; + final String? icon; + final String? banner; + final bool hidden; + final bool postingRestrictedToMods; + final int instanceId; + @JsonKey(fromJson: lowercaseCommunityVisibilityFromJson, toJson: capitalizeCommunityVisibilityToJson) + final CommunityVisibility visibility; + final String? description; + + Community({ + required this.id, + required this.name, + required this.title, + this.sidebar, + required this.removed, + required this.published, + this.updated, + required this.deleted, + required this.nsfw, + required this.actorId, + required this.local, + this.icon, + this.banner, + required this.hidden, + required this.postingRestrictedToMods, + required this.instanceId, + required this.visibility, + this.description, + }); + + // From JSON + factory Community.fromJson(Map json) => _$CommunityFromJson(json); + + // To JSON + Map toJson() => _$CommunityToJson(this); +} diff --git a/lib/src/models/v4/community/community.g.dart b/lib/src/models/v4/community/community.g.dart new file mode 100644 index 00000000..2e4c4247 --- /dev/null +++ b/lib/src/models/v4/community/community.g.dart @@ -0,0 +1,55 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Community _$CommunityFromJson(Map json) => Community( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + title: json['title'] as String, + sidebar: json['sidebar'] as String?, + removed: json['removed'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + deleted: json['deleted'] as bool, + nsfw: json['nsfw'] as bool, + actorId: json['actor_id'] as String, + local: json['local'] as bool, + icon: json['icon'] as String?, + banner: json['banner'] as String?, + hidden: json['hidden'] as bool, + postingRestrictedToMods: json['posting_restricted_to_mods'] as bool, + instanceId: (json['instance_id'] as num).toInt(), + visibility: + lowercaseCommunityVisibilityFromJson(json['visibility'] as String?), + description: json['description'] as String?, + ); + +Map _$CommunityToJson(Community instance) => { + 'id': instance.id, + 'name': instance.name, + 'title': instance.title, + if (instance.sidebar case final value?) 'sidebar': value, + 'removed': instance.removed, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'deleted': instance.deleted, + 'nsfw': instance.nsfw, + 'actor_id': instance.actorId, + 'local': instance.local, + if (instance.icon case final value?) 'icon': value, + if (instance.banner case final value?) 'banner': value, + 'hidden': instance.hidden, + 'posting_restricted_to_mods': instance.postingRestrictedToMods, + 'instance_id': instance.instanceId, + if (capitalizeCommunityVisibilityToJson(instance.visibility) + case final value?) + 'visibility': value, + if (instance.description case final value?) 'description': value, + }; diff --git a/lib/src/models/v4/community/community_aggregates.dart b/lib/src/models/v4/community/community_aggregates.dart new file mode 100644 index 00000000..fa77ac0f --- /dev/null +++ b/lib/src/models/v4/community/community_aggregates.dart @@ -0,0 +1,36 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'community_aggregates.g.dart'; + +@JsonSerializable() +class CommunityAggregates { + final int communityId; + final int subscribers; + final int posts; + final int comments; + final DateTime published; + final int usersActiveDay; + final int usersActiveWeek; + final int usersActiveMonth; + final int usersActiveHalfYear; + final int subscribersLocal; + + CommunityAggregates({ + required this.communityId, + required this.subscribers, + required this.posts, + required this.comments, + required this.published, + required this.usersActiveDay, + required this.usersActiveWeek, + required this.usersActiveMonth, + required this.usersActiveHalfYear, + required this.subscribersLocal, + }); + + // From JSON + factory CommunityAggregates.fromJson(Map json) => _$CommunityAggregatesFromJson(json); + + // To JSON + Map toJson() => _$CommunityAggregatesToJson(this); +} diff --git a/lib/src/models/v4/community/community_aggregates.g.dart b/lib/src/models/v4/community/community_aggregates.g.dart new file mode 100644 index 00000000..c048b1cd --- /dev/null +++ b/lib/src/models/v4/community/community_aggregates.g.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityAggregates _$CommunityAggregatesFromJson(Map json) => + CommunityAggregates( + communityId: (json['community_id'] as num).toInt(), + subscribers: (json['subscribers'] as num).toInt(), + posts: (json['posts'] as num).toInt(), + comments: (json['comments'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + usersActiveDay: (json['users_active_day'] as num).toInt(), + usersActiveWeek: (json['users_active_week'] as num).toInt(), + usersActiveMonth: (json['users_active_month'] as num).toInt(), + usersActiveHalfYear: (json['users_active_half_year'] as num).toInt(), + subscribersLocal: (json['subscribers_local'] as num).toInt(), + ); + +Map _$CommunityAggregatesToJson( + CommunityAggregates instance) => + { + 'community_id': instance.communityId, + 'subscribers': instance.subscribers, + 'posts': instance.posts, + 'comments': instance.comments, + 'published': instance.published.toIso8601String(), + 'users_active_day': instance.usersActiveDay, + 'users_active_week': instance.usersActiveWeek, + 'users_active_month': instance.usersActiveMonth, + 'users_active_half_year': instance.usersActiveHalfYear, + 'subscribers_local': instance.subscribersLocal, + }; diff --git a/lib/src/models/v4/community/community_follower_view.dart b/lib/src/models/v4/community/community_follower_view.dart new file mode 100644 index 00000000..97a92fd7 --- /dev/null +++ b/lib/src/models/v4/community/community_follower_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'community_follower_view.g.dart'; + +@JsonSerializable() +class CommunityFollowerView { + final Community community; + final Person follower; + + CommunityFollowerView({ + required this.community, + required this.follower, + }); + + // From JSON + factory CommunityFollowerView.fromJson(Map json) => _$CommunityFollowerViewFromJson(json); + + // To JSON + Map toJson() => _$CommunityFollowerViewToJson(this); +} diff --git a/lib/src/models/v4/community/community_follower_view.g.dart b/lib/src/models/v4/community/community_follower_view.g.dart new file mode 100644 index 00000000..5b738f42 --- /dev/null +++ b/lib/src/models/v4/community/community_follower_view.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_follower_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityFollowerView _$CommunityFollowerViewFromJson( + Map json) => + CommunityFollowerView( + community: Community.fromJson(json['community'] as Map), + follower: Person.fromJson(json['follower'] as Map), + ); + +Map _$CommunityFollowerViewToJson( + CommunityFollowerView instance) => + { + 'community': instance.community, + 'follower': instance.follower, + }; diff --git a/lib/src/models/v4/community/community_moderator_view.dart b/lib/src/models/v4/community/community_moderator_view.dart new file mode 100644 index 00000000..ba36690c --- /dev/null +++ b/lib/src/models/v4/community/community_moderator_view.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'community_moderator_view.g.dart'; + +@JsonSerializable() +class CommunityModeratorView { + final Community community; + final Person moderator; + + CommunityModeratorView({ + required this.community, + required this.moderator, + }); + + // From JSON + factory CommunityModeratorView.fromJson(Map json) => _$CommunityModeratorViewFromJson(json); + + // To JSON + Map toJson() => _$CommunityModeratorViewToJson(this); +} diff --git a/lib/src/models/v4/community/community_moderator_view.g.dart b/lib/src/models/v4/community/community_moderator_view.g.dart new file mode 100644 index 00000000..74c098f5 --- /dev/null +++ b/lib/src/models/v4/community/community_moderator_view.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_moderator_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityModeratorView _$CommunityModeratorViewFromJson( + Map json) => + CommunityModeratorView( + community: Community.fromJson(json['community'] as Map), + moderator: Person.fromJson(json['moderator'] as Map), + ); + +Map _$CommunityModeratorViewToJson( + CommunityModeratorView instance) => + { + 'community': instance.community, + 'moderator': instance.moderator, + }; diff --git a/lib/src/models/v4/community/community_response.dart b/lib/src/models/v4/community/community_response.dart new file mode 100644 index 00000000..611bbdb0 --- /dev/null +++ b/lib/src/models/v4/community/community_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'community_response.g.dart'; + +@JsonSerializable() +class CommunityResponse { + final CommunityView communityView; + final List discussionLanguages; + + CommunityResponse({ + required this.communityView, + required this.discussionLanguages, + }); + + // From JSON + factory CommunityResponse.fromJson(Map json) => _$CommunityResponseFromJson(json); + + // To JSON + Map toJson() => _$CommunityResponseToJson(this); +} diff --git a/lib/src/models/v4/community/community_response.g.dart b/lib/src/models/v4/community/community_response.g.dart new file mode 100644 index 00000000..9c2f4d30 --- /dev/null +++ b/lib/src/models/v4/community/community_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityResponse _$CommunityResponseFromJson(Map json) => + CommunityResponse( + communityView: CommunityView.fromJson( + json['community_view'] as Map), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$CommunityResponseToJson(CommunityResponse instance) => + { + 'community_view': instance.communityView, + 'discussion_languages': instance.discussionLanguages, + }; diff --git a/lib/src/models/v4/community/community_view.dart b/lib/src/models/v4/community/community_view.dart new file mode 100644 index 00000000..fdcdffc7 --- /dev/null +++ b/lib/src/models/v4/community/community_view.dart @@ -0,0 +1,31 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'community_view.g.dart'; + +@JsonSerializable() +class CommunityView { + final Community community; + @JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson) + final SubscribedType subscribed; + final bool blocked; + final CommunityAggregates counts; + final bool bannedFromCommunity; + + CommunityView({ + required this.community, + required this.subscribed, + required this.blocked, + required this.counts, + required this.bannedFromCommunity, + }); + + // From JSON + factory CommunityView.fromJson(Map json) => _$CommunityViewFromJson(json); + + // To JSON + Map toJson() => _$CommunityViewToJson(this); +} diff --git a/lib/src/models/v4/community/community_view.g.dart b/lib/src/models/v4/community/community_view.g.dart new file mode 100644 index 00000000..b112bfd5 --- /dev/null +++ b/lib/src/models/v4/community/community_view.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'community_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CommunityView _$CommunityViewFromJson(Map json) => + CommunityView( + community: Community.fromJson(json['community'] as Map), + subscribed: + lowercaseSubscribedTypeFromJson(json['subscribed'] as String?), + blocked: json['blocked'] as bool, + counts: + CommunityAggregates.fromJson(json['counts'] as Map), + bannedFromCommunity: json['banned_from_community'] as bool, + ); + +Map _$CommunityViewToJson(CommunityView instance) => + { + 'community': instance.community, + if (capitalizeSubscribedTypeToJson(instance.subscribed) case final value?) + 'subscribed': value, + 'blocked': instance.blocked, + 'counts': instance.counts, + 'banned_from_community': instance.bannedFromCommunity, + }; diff --git a/lib/src/models/v4/core/success_response.dart b/lib/src/models/v4/core/success_response.dart new file mode 100644 index 00000000..a543a133 --- /dev/null +++ b/lib/src/models/v4/core/success_response.dart @@ -0,0 +1,16 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'success_response.g.dart'; + +@JsonSerializable() +class SuccessResponse { + final bool success; + + SuccessResponse({required this.success}); + + // From JSON + factory SuccessResponse.fromJson(Map json) => _$SuccessResponseFromJson(json); + + // To JSON + Map toJson() => _$SuccessResponseToJson(this); +} diff --git a/lib/src/models/v4/core/success_response.g.dart b/lib/src/models/v4/core/success_response.g.dart new file mode 100644 index 00000000..1e2bab46 --- /dev/null +++ b/lib/src/models/v4/core/success_response.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'success_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SuccessResponse _$SuccessResponseFromJson(Map json) => + SuccessResponse( + success: json['success'] as bool, + ); + +Map _$SuccessResponseToJson(SuccessResponse instance) => + { + 'success': instance.success, + }; diff --git a/lib/src/models/v4/image/image_details.dart b/lib/src/models/v4/image/image_details.dart new file mode 100644 index 00000000..06818750 --- /dev/null +++ b/lib/src/models/v4/image/image_details.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'image_details.g.dart'; + +@JsonSerializable() +class ImageDetails { + final String link; + final int width; + final int height; + final String contentType; + + ImageDetails({ + required this.link, + required this.width, + required this.height, + required this.contentType, + }); + + // From JSON + factory ImageDetails.fromJson(Map json) => _$ImageDetailsFromJson(json); + + // To JSON + Map toJson() => _$ImageDetailsToJson(this); +} diff --git a/lib/src/models/v4/image/image_details.g.dart b/lib/src/models/v4/image/image_details.g.dart new file mode 100644 index 00000000..c79188fa --- /dev/null +++ b/lib/src/models/v4/image/image_details.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'image_details.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ImageDetails _$ImageDetailsFromJson(Map json) => ImageDetails( + link: json['link'] as String, + width: (json['width'] as num).toInt(), + height: (json['height'] as num).toInt(), + contentType: json['content_type'] as String, + ); + +Map _$ImageDetailsToJson(ImageDetails instance) => + { + 'link': instance.link, + 'width': instance.width, + 'height': instance.height, + 'content_type': instance.contentType, + }; diff --git a/lib/src/models/v4/instance/instance.dart b/lib/src/models/v4/instance/instance.dart new file mode 100644 index 00000000..983c6eba --- /dev/null +++ b/lib/src/models/v4/instance/instance.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'instance.g.dart'; + +@JsonSerializable() +class Instance { + final int id; + final String domain; + final DateTime published; + final DateTime? updated; + final String? software; + final String? version; + + Instance({ + required this.id, + required this.domain, + required this.published, + this.updated, + this.software, + this.version, + }); + + // From JSON + factory Instance.fromJson(Map json) => _$InstanceFromJson(json); + + // To JSON + Map toJson() => _$InstanceToJson(this); +} diff --git a/lib/src/models/v4/instance/instance.g.dart b/lib/src/models/v4/instance/instance.g.dart new file mode 100644 index 00000000..f5170629 --- /dev/null +++ b/lib/src/models/v4/instance/instance.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'instance.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Instance _$InstanceFromJson(Map json) => Instance( + id: (json['id'] as num).toInt(), + domain: json['domain'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + software: json['software'] as String?, + version: json['version'] as String?, + ); + +Map _$InstanceToJson(Instance instance) => { + 'id': instance.id, + 'domain': instance.domain, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + if (instance.software case final value?) 'software': value, + if (instance.version case final value?) 'version': value, + }; diff --git a/lib/src/models/v4/language/language.dart b/lib/src/models/v4/language/language.dart new file mode 100644 index 00000000..13097f90 --- /dev/null +++ b/lib/src/models/v4/language/language.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'language.g.dart'; + +@JsonSerializable() +class Language { + final int id; + final String code; + final String name; + + Language({ + required this.id, + required this.code, + required this.name, + }); + + // From JSON + factory Language.fromJson(Map json) => _$LanguageFromJson(json); + + // To JSON + Map toJson() => _$LanguageToJson(this); +} diff --git a/lib/src/models/v4/language/language.g.dart b/lib/src/models/v4/language/language.g.dart new file mode 100644 index 00000000..f7c59d4a --- /dev/null +++ b/lib/src/models/v4/language/language.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'language.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Language _$LanguageFromJson(Map json) => Language( + id: (json['id'] as num).toInt(), + code: json['code'] as String, + name: json['name'] as String, + ); + +Map _$LanguageToJson(Language instance) => { + 'id': instance.id, + 'code': instance.code, + 'name': instance.name, + }; diff --git a/lib/src/models/v4/local_site/local_site.dart b/lib/src/models/v4/local_site/local_site.dart new file mode 100644 index 00000000..2f8ff943 --- /dev/null +++ b/lib/src/models/v4/local_site/local_site.dart @@ -0,0 +1,88 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; + +part 'local_site.g.dart'; + +@JsonSerializable() +class LocalSite { + final int id; + final int siteId; + final bool siteSetup; + final bool communityCreationAdminOnly; + final bool requireEmailVerification; + final String? applicationQuestion; + final bool privateInstance; + final String defaultTheme; + @JsonKey(toJson: capitalizeListingTypeToJson, fromJson: lowercaseListingTypeFromJson) + final ListingType defaultPostListingType; + final String? legalInformation; + final bool hideModlogModNames; + final bool applicationEmailAdmins; + final String? slurFilterRegex; + final int actorNameMaxLength; + final bool federationEnabled; + final bool captchaEnabled; + final String captchaDifficulty; + final DateTime published; + final DateTime? updated; + @JsonKey(toJson: capitalizeRegistrationModeToJson, fromJson: lowercaseRegistrationModeFromJson) + final RegistrationMode registrationMode; + final bool reportsEmailAdmins; + final bool federationSignedFetch; + @JsonKey(toJson: capitalizePostListingModeToJson, fromJson: lowercasePostListingModeFromJson) + final PostListingMode defaultPostListingMode; + @JsonKey(toJson: capitalizePostSortTypeToJson, fromJson: lowercasePostSortTypeFromJson) + final PostSortType defaultPostSortType; + @JsonKey(toJson: capitalizeCommentSortTypeToJson, fromJson: lowercaseCommentSortTypeFromJson) + final CommentSortType defaultCommentSortType; + final bool? oauthRegistration; + @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson) + final FederationMode postUpvotes; + @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson) + final FederationMode postDownvotes; + @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson) + final FederationMode commentUpvotes; + @JsonKey(toJson: capitalizeFederationModeToJson, fromJson: lowercaseFederationModeFromJson) + final FederationMode commentDownvotes; + + LocalSite({ + required this.id, + required this.siteId, + required this.siteSetup, + required this.communityCreationAdminOnly, + required this.requireEmailVerification, + this.applicationQuestion, + required this.privateInstance, + required this.defaultTheme, + required this.defaultPostListingType, + this.legalInformation, + required this.hideModlogModNames, + required this.applicationEmailAdmins, + this.slurFilterRegex, + required this.actorNameMaxLength, + required this.federationEnabled, + required this.captchaEnabled, + required this.captchaDifficulty, + required this.published, + this.updated, + required this.registrationMode, + required this.reportsEmailAdmins, + required this.federationSignedFetch, + required this.defaultPostListingMode, + required this.defaultPostSortType, + required this.defaultCommentSortType, + required this.oauthRegistration, + required this.postUpvotes, + required this.postDownvotes, + required this.commentUpvotes, + required this.commentDownvotes, + }); + + // From JSON + factory LocalSite.fromJson(Map json) => _$LocalSiteFromJson(json); + + // To JSON + Map toJson() => _$LocalSiteToJson(this); +} diff --git a/lib/src/models/v4/local_site/local_site.g.dart b/lib/src/models/v4/local_site/local_site.g.dart new file mode 100644 index 00000000..063516aa --- /dev/null +++ b/lib/src/models/v4/local_site/local_site.g.dart @@ -0,0 +1,107 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_site.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalSite _$LocalSiteFromJson(Map json) => LocalSite( + id: (json['id'] as num).toInt(), + siteId: (json['site_id'] as num).toInt(), + siteSetup: json['site_setup'] as bool, + communityCreationAdminOnly: json['community_creation_admin_only'] as bool, + requireEmailVerification: json['require_email_verification'] as bool, + applicationQuestion: json['application_question'] as String?, + privateInstance: json['private_instance'] as bool, + defaultTheme: json['default_theme'] as String, + defaultPostListingType: lowercaseListingTypeFromJson( + json['default_post_listing_type'] as String?), + legalInformation: json['legal_information'] as String?, + hideModlogModNames: json['hide_modlog_mod_names'] as bool, + applicationEmailAdmins: json['application_email_admins'] as bool, + slurFilterRegex: json['slur_filter_regex'] as String?, + actorNameMaxLength: (json['actor_name_max_length'] as num).toInt(), + federationEnabled: json['federation_enabled'] as bool, + captchaEnabled: json['captcha_enabled'] as bool, + captchaDifficulty: json['captcha_difficulty'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + registrationMode: lowercaseRegistrationModeFromJson( + json['registration_mode'] as String?), + reportsEmailAdmins: json['reports_email_admins'] as bool, + federationSignedFetch: json['federation_signed_fetch'] as bool, + defaultPostListingMode: lowercasePostListingModeFromJson( + json['default_post_listing_mode'] as String?), + defaultPostSortType: lowercasePostSortTypeFromJson( + json['default_post_sort_type'] as String?), + defaultCommentSortType: lowercaseCommentSortTypeFromJson( + json['default_comment_sort_type'] as String?), + oauthRegistration: json['oauth_registration'] as bool?, + postUpvotes: + lowercaseFederationModeFromJson(json['post_upvotes'] as String?), + postDownvotes: + lowercaseFederationModeFromJson(json['post_downvotes'] as String?), + commentUpvotes: + lowercaseFederationModeFromJson(json['comment_upvotes'] as String?), + commentDownvotes: + lowercaseFederationModeFromJson(json['comment_downvotes'] as String?), + ); + +Map _$LocalSiteToJson(LocalSite instance) => { + 'id': instance.id, + 'site_id': instance.siteId, + 'site_setup': instance.siteSetup, + 'community_creation_admin_only': instance.communityCreationAdminOnly, + 'require_email_verification': instance.requireEmailVerification, + if (instance.applicationQuestion case final value?) + 'application_question': value, + 'private_instance': instance.privateInstance, + 'default_theme': instance.defaultTheme, + if (capitalizeListingTypeToJson(instance.defaultPostListingType) + case final value?) + 'default_post_listing_type': value, + if (instance.legalInformation case final value?) + 'legal_information': value, + 'hide_modlog_mod_names': instance.hideModlogModNames, + 'application_email_admins': instance.applicationEmailAdmins, + if (instance.slurFilterRegex case final value?) + 'slur_filter_regex': value, + 'actor_name_max_length': instance.actorNameMaxLength, + 'federation_enabled': instance.federationEnabled, + 'captcha_enabled': instance.captchaEnabled, + 'captcha_difficulty': instance.captchaDifficulty, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + if (capitalizeRegistrationModeToJson(instance.registrationMode) + case final value?) + 'registration_mode': value, + 'reports_email_admins': instance.reportsEmailAdmins, + 'federation_signed_fetch': instance.federationSignedFetch, + if (capitalizePostListingModeToJson(instance.defaultPostListingMode) + case final value?) + 'default_post_listing_mode': value, + if (capitalizePostSortTypeToJson(instance.defaultPostSortType) + case final value?) + 'default_post_sort_type': value, + if (capitalizeCommentSortTypeToJson(instance.defaultCommentSortType) + case final value?) + 'default_comment_sort_type': value, + if (instance.oauthRegistration case final value?) + 'oauth_registration': value, + if (capitalizeFederationModeToJson(instance.postUpvotes) + case final value?) + 'post_upvotes': value, + if (capitalizeFederationModeToJson(instance.postDownvotes) + case final value?) + 'post_downvotes': value, + if (capitalizeFederationModeToJson(instance.commentUpvotes) + case final value?) + 'comment_upvotes': value, + if (capitalizeFederationModeToJson(instance.commentDownvotes) + case final value?) + 'comment_downvotes': value, + }; diff --git a/lib/src/models/v4/local_site/local_site_rate_limit.dart b/lib/src/models/v4/local_site/local_site_rate_limit.dart new file mode 100644 index 00000000..ebe89d99 --- /dev/null +++ b/lib/src/models/v4/local_site/local_site_rate_limit.dart @@ -0,0 +1,51 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'local_site_rate_limit.g.dart'; + +@JsonSerializable() +class LocalSiteRateLimit { + final int localSiteId; + final int message; + final int messagePerSecond; + final int post; + final int postPerSecond; + final int register; + final int registerPerSecond; + final int image; + final int imagePerSecond; + final int comment; + final int commentPerSecond; + final int search; + final int searchPerSecond; + final DateTime published; + final DateTime? updated; + final int importUserSettings; + final int importUserSettingsPerSecond; + + // Constructor + LocalSiteRateLimit({ + required this.localSiteId, + required this.message, + required this.messagePerSecond, + required this.post, + required this.postPerSecond, + required this.register, + required this.registerPerSecond, + required this.image, + required this.imagePerSecond, + required this.comment, + required this.commentPerSecond, + required this.search, + required this.searchPerSecond, + required this.published, + this.updated, + required this.importUserSettings, + required this.importUserSettingsPerSecond, + }); + + // From JSON + factory LocalSiteRateLimit.fromJson(Map json) => _$LocalSiteRateLimitFromJson(json); + + // To JSON + Map toJson() => _$LocalSiteRateLimitToJson(this); +} diff --git a/lib/src/models/v4/local_site/local_site_rate_limit.g.dart b/lib/src/models/v4/local_site/local_site_rate_limit.g.dart new file mode 100644 index 00000000..5043fe8b --- /dev/null +++ b/lib/src/models/v4/local_site/local_site_rate_limit.g.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_site_rate_limit.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalSiteRateLimit _$LocalSiteRateLimitFromJson(Map json) => + LocalSiteRateLimit( + localSiteId: (json['local_site_id'] as num).toInt(), + message: (json['message'] as num).toInt(), + messagePerSecond: (json['message_per_second'] as num).toInt(), + post: (json['post'] as num).toInt(), + postPerSecond: (json['post_per_second'] as num).toInt(), + register: (json['register'] as num).toInt(), + registerPerSecond: (json['register_per_second'] as num).toInt(), + image: (json['image'] as num).toInt(), + imagePerSecond: (json['image_per_second'] as num).toInt(), + comment: (json['comment'] as num).toInt(), + commentPerSecond: (json['comment_per_second'] as num).toInt(), + search: (json['search'] as num).toInt(), + searchPerSecond: (json['search_per_second'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + importUserSettings: (json['import_user_settings'] as num).toInt(), + importUserSettingsPerSecond: + (json['import_user_settings_per_second'] as num).toInt(), + ); + +Map _$LocalSiteRateLimitToJson(LocalSiteRateLimit instance) => + { + 'local_site_id': instance.localSiteId, + 'message': instance.message, + 'message_per_second': instance.messagePerSecond, + 'post': instance.post, + 'post_per_second': instance.postPerSecond, + 'register': instance.register, + 'register_per_second': instance.registerPerSecond, + 'image': instance.image, + 'image_per_second': instance.imagePerSecond, + 'comment': instance.comment, + 'comment_per_second': instance.commentPerSecond, + 'search': instance.search, + 'search_per_second': instance.searchPerSecond, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'import_user_settings': instance.importUserSettings, + 'import_user_settings_per_second': instance.importUserSettingsPerSecond, + }; diff --git a/lib/src/models/v4/local_site/local_site_url_blocklist.dart b/lib/src/models/v4/local_site/local_site_url_blocklist.dart new file mode 100644 index 00000000..df6cde67 --- /dev/null +++ b/lib/src/models/v4/local_site/local_site_url_blocklist.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'local_site_url_blocklist.g.dart'; + +@JsonSerializable() +class LocalSiteUrlBlocklist { + final int id; + final String url; + final DateTime published; + final DateTime? updated; + + LocalSiteUrlBlocklist({ + required this.id, + required this.url, + required this.published, + this.updated, + }); + + // From JSON + factory LocalSiteUrlBlocklist.fromJson(Map json) => _$LocalSiteUrlBlocklistFromJson(json); + + // To JSON + Map toJson() => _$LocalSiteUrlBlocklistToJson(this); +} diff --git a/lib/src/models/v4/local_site/local_site_url_blocklist.g.dart b/lib/src/models/v4/local_site/local_site_url_blocklist.g.dart new file mode 100644 index 00000000..9e4e55fd --- /dev/null +++ b/lib/src/models/v4/local_site/local_site_url_blocklist.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'local_site_url_blocklist.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LocalSiteUrlBlocklist _$LocalSiteUrlBlocklistFromJson( + Map json) => + LocalSiteUrlBlocklist( + id: (json['id'] as num).toInt(), + url: json['url'] as String, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + ); + +Map _$LocalSiteUrlBlocklistToJson( + LocalSiteUrlBlocklist instance) => + { + 'id': instance.id, + 'url': instance.url, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + }; diff --git a/lib/src/models/v4/login/login_response.dart b/lib/src/models/v4/login/login_response.dart new file mode 100644 index 00000000..255f1294 --- /dev/null +++ b/lib/src/models/v4/login/login_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'login_response.g.dart'; + +@JsonSerializable() +class LoginResponse { + final String? jwt; + final bool registrationCreated; + final bool verifyEmailSent; + + LoginResponse({ + this.jwt, + required this.registrationCreated, + required this.verifyEmailSent, + }); + + // From JSON + factory LoginResponse.fromJson(Map json) => _$LoginResponseFromJson(json); + + // To JSON + Map toJson() => _$LoginResponseToJson(this); +} diff --git a/lib/src/models/v4/login/login_response.g.dart b/lib/src/models/v4/login/login_response.g.dart new file mode 100644 index 00000000..32d91dfd --- /dev/null +++ b/lib/src/models/v4/login/login_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'login_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LoginResponse _$LoginResponseFromJson(Map json) => + LoginResponse( + jwt: json['jwt'] as String?, + registrationCreated: json['registration_created'] as bool, + verifyEmailSent: json['verify_email_sent'] as bool, + ); + +Map _$LoginResponseToJson(LoginResponse instance) => + { + if (instance.jwt case final value?) 'jwt': value, + 'registration_created': instance.registrationCreated, + 'verify_email_sent': instance.verifyEmailSent, + }; diff --git a/lib/src/models/v4/models.dart b/lib/src/models/v4/models.dart new file mode 100644 index 00000000..fa2386c1 --- /dev/null +++ b/lib/src/models/v4/models.dart @@ -0,0 +1,38 @@ +export 'account/account.dart'; +export 'account/account_view.dart'; +export 'account/account_vote_display_mode.dart'; +export 'account/full_account_view.dart'; +export 'comment/comment.dart'; +export 'comment/comment_aggregates.dart'; +export 'comment/comment_view.dart'; +export 'community/community.dart'; +export 'community/community_aggregates.dart'; +export 'community/community_follower_view.dart'; +export 'community/community_moderator_view.dart'; +export 'community/community_view.dart'; +export 'core/success_response.dart'; +export 'image/image_details.dart'; +export 'instance/instance.dart'; +export 'language/language.dart'; +export 'local_site/local_site.dart'; +export 'local_site/local_site_rate_limit.dart'; +export 'local_site/local_site_url_blocklist.dart'; +export 'login/login_response.dart'; +export 'oauth/oauth_provider.dart'; +export 'person/full_person_view.dart'; +export 'person/person.dart'; +export 'person/person_aggregates.dart'; +export 'person/person_view.dart'; +export 'post/full_post_view.dart'; +export 'post/post.dart'; +export 'post/post_aggregates.dart'; +export 'post/post_view.dart'; +export 'post/posts_response.dart'; +export 'site/full_site_view.dart'; +export 'site/site.dart'; +export 'site/site_aggregates.dart'; +export 'site/site_view.dart'; +export 'tagline/tagline.dart'; +export 'notification/unread_count_response.dart'; +export 'community/community_response.dart'; +export 'block/block_person_response.dart'; diff --git a/lib/src/models/v4/notification/unread_count_response.dart b/lib/src/models/v4/notification/unread_count_response.dart new file mode 100644 index 00000000..00eb2e7e --- /dev/null +++ b/lib/src/models/v4/notification/unread_count_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'unread_count_response.g.dart'; + +@JsonSerializable() +class UnreadCountResponse { + final int replies; + final int mentions; + final int privateMessages; + + UnreadCountResponse({ + required this.replies, + required this.mentions, + required this.privateMessages, + }); + + // From JSON + factory UnreadCountResponse.fromJson(Map json) => _$UnreadCountResponseFromJson(json); + + // To JSON + Map toJson() => _$UnreadCountResponseToJson(this); +} diff --git a/lib/src/models/v4/notification/unread_count_response.g.dart b/lib/src/models/v4/notification/unread_count_response.g.dart new file mode 100644 index 00000000..ce3cbe45 --- /dev/null +++ b/lib/src/models/v4/notification/unread_count_response.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'unread_count_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UnreadCountResponse _$UnreadCountResponseFromJson(Map json) => + UnreadCountResponse( + replies: (json['replies'] as num).toInt(), + mentions: (json['mentions'] as num).toInt(), + privateMessages: (json['private_messages'] as num).toInt(), + ); + +Map _$UnreadCountResponseToJson( + UnreadCountResponse instance) => + { + 'replies': instance.replies, + 'mentions': instance.mentions, + 'private_messages': instance.privateMessages, + }; diff --git a/lib/src/models/v4/oauth/oauth_provider.dart b/lib/src/models/v4/oauth/oauth_provider.dart new file mode 100644 index 00000000..09065728 --- /dev/null +++ b/lib/src/models/v4/oauth/oauth_provider.dart @@ -0,0 +1,46 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'oauth_provider.g.dart'; + +@JsonSerializable() +class OAuthProvider { + final int id; + final String displayName; + final String issuer; + final String authorizationEndpoint; + final String tokenEndpoint; + final String userinfoEndpoint; + final String idClaim; + final String clientId; + final String scopes; + final bool autoVerifyEmail; + final bool accountLinkingEnabled; + final bool enabled; + final DateTime published; + final DateTime? updated; + final bool usePkce; + + OAuthProvider({ + required this.id, + required this.displayName, + required this.issuer, + required this.authorizationEndpoint, + required this.tokenEndpoint, + required this.userinfoEndpoint, + required this.idClaim, + required this.clientId, + required this.scopes, + required this.autoVerifyEmail, + required this.accountLinkingEnabled, + required this.enabled, + required this.published, + this.updated, + required this.usePkce, + }); + + // From JSON + factory OAuthProvider.fromJson(Map json) => _$OAuthProviderFromJson(json); + + // To JSON + Map toJson() => _$OAuthProviderToJson(this); +} diff --git a/lib/src/models/v4/oauth/oauth_provider.g.dart b/lib/src/models/v4/oauth/oauth_provider.g.dart new file mode 100644 index 00000000..4bed600d --- /dev/null +++ b/lib/src/models/v4/oauth/oauth_provider.g.dart @@ -0,0 +1,48 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'oauth_provider.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +OAuthProvider _$OAuthProviderFromJson(Map json) => + OAuthProvider( + id: (json['id'] as num).toInt(), + displayName: json['display_name'] as String, + issuer: json['issuer'] as String, + authorizationEndpoint: json['authorization_endpoint'] as String, + tokenEndpoint: json['token_endpoint'] as String, + userinfoEndpoint: json['userinfo_endpoint'] as String, + idClaim: json['id_claim'] as String, + clientId: json['client_id'] as String, + scopes: json['scopes'] as String, + autoVerifyEmail: json['auto_verify_email'] as bool, + accountLinkingEnabled: json['account_linking_enabled'] as bool, + enabled: json['enabled'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + usePkce: json['use_pkce'] as bool, + ); + +Map _$OAuthProviderToJson(OAuthProvider instance) => + { + 'id': instance.id, + 'display_name': instance.displayName, + 'issuer': instance.issuer, + 'authorization_endpoint': instance.authorizationEndpoint, + 'token_endpoint': instance.tokenEndpoint, + 'userinfo_endpoint': instance.userinfoEndpoint, + 'id_claim': instance.idClaim, + 'client_id': instance.clientId, + 'scopes': instance.scopes, + 'auto_verify_email': instance.autoVerifyEmail, + 'account_linking_enabled': instance.accountLinkingEnabled, + 'enabled': instance.enabled, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'use_pkce': instance.usePkce, + }; diff --git a/lib/src/models/v4/person/full_person_view.dart b/lib/src/models/v4/person/full_person_view.dart new file mode 100644 index 00000000..92473fad --- /dev/null +++ b/lib/src/models/v4/person/full_person_view.dart @@ -0,0 +1,28 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'full_person_view.g.dart'; + +@JsonSerializable() +class FullPersonView { + final PersonView personView; + final Site? site; + final List comments; + final List posts; + final List moderates; + + FullPersonView({ + required this.personView, + this.site, + required this.comments, + required this.posts, + required this.moderates, + }); + + // From JSON + factory FullPersonView.fromJson(Map json) => _$FullPersonViewFromJson(json); + + // To JSON + Map toJson() => _$FullPersonViewToJson(this); +} diff --git a/lib/src/models/v4/person/full_person_view.g.dart b/lib/src/models/v4/person/full_person_view.g.dart new file mode 100644 index 00000000..ce0a18d8 --- /dev/null +++ b/lib/src/models/v4/person/full_person_view.g.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'full_person_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FullPersonView _$FullPersonViewFromJson(Map json) => + FullPersonView( + personView: + PersonView.fromJson(json['person_view'] as Map), + site: json['site'] == null + ? null + : Site.fromJson(json['site'] as Map), + comments: (json['comments'] as List) + .map((e) => CommentView.fromJson(e as Map)) + .toList(), + posts: (json['posts'] as List) + .map((e) => PostView.fromJson(e as Map)) + .toList(), + moderates: (json['moderates'] as List) + .map( + (e) => CommunityModeratorView.fromJson(e as Map)) + .toList(), + ); + +Map _$FullPersonViewToJson(FullPersonView instance) => + { + 'person_view': instance.personView, + if (instance.site case final value?) 'site': value, + 'comments': instance.comments, + 'posts': instance.posts, + 'moderates': instance.moderates, + }; diff --git a/lib/src/models/v4/person/person.dart b/lib/src/models/v4/person/person.dart new file mode 100644 index 00000000..acb0f550 --- /dev/null +++ b/lib/src/models/v4/person/person.dart @@ -0,0 +1,48 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'person.g.dart'; + +@JsonSerializable() +class Person { + final int id; + final String name; + final String? displayName; + final String? avatar; + final bool banned; + final DateTime published; + final DateTime? updated; + final String actorId; + final String? bio; + final bool local; + final String? banner; + final bool deleted; + final String? matrixUserId; + final bool botAccount; + final DateTime? banExpires; + final int instanceId; + + Person({ + required this.id, + required this.name, + this.displayName, + this.avatar, + required this.banned, + required this.published, + this.updated, + required this.actorId, + this.bio, + required this.local, + this.banner, + required this.deleted, + this.matrixUserId, + required this.botAccount, + this.banExpires, + required this.instanceId, + }); + + // From JSON + factory Person.fromJson(Map json) => _$PersonFromJson(json); + + // To JSON + Map toJson() => _$PersonToJson(this); +} diff --git a/lib/src/models/v4/person/person.g.dart b/lib/src/models/v4/person/person.g.dart new file mode 100644 index 00000000..53b7869f --- /dev/null +++ b/lib/src/models/v4/person/person.g.dart @@ -0,0 +1,51 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Person _$PersonFromJson(Map json) => Person( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + displayName: json['display_name'] as String?, + avatar: json['avatar'] as String?, + banned: json['banned'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + actorId: json['actor_id'] as String, + bio: json['bio'] as String?, + local: json['local'] as bool, + banner: json['banner'] as String?, + deleted: json['deleted'] as bool, + matrixUserId: json['matrix_user_id'] as String?, + botAccount: json['bot_account'] as bool, + banExpires: json['ban_expires'] == null + ? null + : DateTime.parse(json['ban_expires'] as String), + instanceId: (json['instance_id'] as num).toInt(), + ); + +Map _$PersonToJson(Person instance) => { + 'id': instance.id, + 'name': instance.name, + if (instance.displayName case final value?) 'display_name': value, + if (instance.avatar case final value?) 'avatar': value, + 'banned': instance.banned, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'actor_id': instance.actorId, + if (instance.bio case final value?) 'bio': value, + 'local': instance.local, + if (instance.banner case final value?) 'banner': value, + 'deleted': instance.deleted, + if (instance.matrixUserId case final value?) 'matrix_user_id': value, + 'bot_account': instance.botAccount, + if (instance.banExpires?.toIso8601String() case final value?) + 'ban_expires': value, + 'instance_id': instance.instanceId, + }; diff --git a/lib/src/models/v4/person/person_aggregates.dart b/lib/src/models/v4/person/person_aggregates.dart new file mode 100644 index 00000000..05495370 --- /dev/null +++ b/lib/src/models/v4/person/person_aggregates.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'person_aggregates.g.dart'; + +@JsonSerializable() +class PersonAggregates { + final int personId; + final int postCount; + final int commentCount; + + PersonAggregates({ + required this.personId, + required this.postCount, + required this.commentCount, + }); + + // From JSON + factory PersonAggregates.fromJson(Map json) => _$PersonAggregatesFromJson(json); + + // To JSON + Map toJson() => _$PersonAggregatesToJson(this); +} diff --git a/lib/src/models/v4/person/person_aggregates.g.dart b/lib/src/models/v4/person/person_aggregates.g.dart new file mode 100644 index 00000000..d52ff436 --- /dev/null +++ b/lib/src/models/v4/person/person_aggregates.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonAggregates _$PersonAggregatesFromJson(Map json) => + PersonAggregates( + personId: (json['person_id'] as num).toInt(), + postCount: (json['post_count'] as num).toInt(), + commentCount: (json['comment_count'] as num).toInt(), + ); + +Map _$PersonAggregatesToJson(PersonAggregates instance) => + { + 'person_id': instance.personId, + 'post_count': instance.postCount, + 'comment_count': instance.commentCount, + }; diff --git a/lib/src/models/v4/person/person_view.dart b/lib/src/models/v4/person/person_view.dart new file mode 100644 index 00000000..08bf3679 --- /dev/null +++ b/lib/src/models/v4/person/person_view.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'person_view.g.dart'; + +@JsonSerializable() +class PersonView { + final Person person; + final PersonAggregates counts; + final bool isAdmin; + + PersonView({ + required this.person, + required this.counts, + required this.isAdmin, + }); + + // From JSON + factory PersonView.fromJson(Map json) => _$PersonViewFromJson(json); + + // To JSON + Map toJson() => _$PersonViewToJson(this); +} diff --git a/lib/src/models/v4/person/person_view.g.dart b/lib/src/models/v4/person/person_view.g.dart new file mode 100644 index 00000000..4e006f68 --- /dev/null +++ b/lib/src/models/v4/person/person_view.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'person_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PersonView _$PersonViewFromJson(Map json) => PersonView( + person: Person.fromJson(json['person'] as Map), + counts: PersonAggregates.fromJson(json['counts'] as Map), + isAdmin: json['is_admin'] as bool, + ); + +Map _$PersonViewToJson(PersonView instance) => + { + 'person': instance.person, + 'counts': instance.counts, + 'is_admin': instance.isAdmin, + }; diff --git a/lib/src/models/v4/post/full_post_view.dart b/lib/src/models/v4/post/full_post_view.dart new file mode 100644 index 00000000..a8e02211 --- /dev/null +++ b/lib/src/models/v4/post/full_post_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'full_post_view.g.dart'; + +@JsonSerializable() +class FullPostView { + final PostView postView; + final CommunityView communityView; + final List moderators; + final List crossPosts; + + FullPostView({ + required this.postView, + required this.communityView, + required this.moderators, + required this.crossPosts, + }); + + // From JSON + factory FullPostView.fromJson(Map json) => _$FullPostViewFromJson(json); + + // To JSON + Map toJson() => _$FullPostViewToJson(this); +} diff --git a/lib/src/models/v4/post/full_post_view.g.dart b/lib/src/models/v4/post/full_post_view.g.dart new file mode 100644 index 00000000..512b0a34 --- /dev/null +++ b/lib/src/models/v4/post/full_post_view.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'full_post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FullPostView _$FullPostViewFromJson(Map json) => FullPostView( + postView: PostView.fromJson(json['post_view'] as Map), + communityView: CommunityView.fromJson( + json['community_view'] as Map), + moderators: (json['moderators'] as List) + .map( + (e) => CommunityModeratorView.fromJson(e as Map)) + .toList(), + crossPosts: (json['cross_posts'] as List) + .map((e) => PostView.fromJson(e as Map)) + .toList(), + ); + +Map _$FullPostViewToJson(FullPostView instance) => + { + 'post_view': instance.postView, + 'community_view': instance.communityView, + 'moderators': instance.moderators, + 'cross_posts': instance.crossPosts, + }; diff --git a/lib/src/models/v4/post/post.dart b/lib/src/models/v4/post/post.dart new file mode 100644 index 00000000..094c9359 --- /dev/null +++ b/lib/src/models/v4/post/post.dart @@ -0,0 +1,64 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'post.g.dart'; + +@JsonSerializable() +class Post { + final int id; + final String name; + final String? url; + final String? body; + final int creatorId; + final int communityId; + final bool removed; + final bool locked; + final DateTime published; + final DateTime? updated; + final bool deleted; + final bool nsfw; + final String? embedTitle; + final String? embedDescription; + final String? thumbnailUrl; + final String apId; + final bool local; + final String? embedVideoUrl; + final int languageId; + final bool featuredCommunity; + final bool featuredLocal; + final String? urlContentType; + final String? altText; + final String? scheduledPublishTime; + + Post({ + required this.id, + required this.name, + this.url, + this.body, + required this.creatorId, + required this.communityId, + required this.removed, + required this.locked, + required this.published, + this.updated, + required this.deleted, + required this.nsfw, + this.embedTitle, + this.embedDescription, + this.thumbnailUrl, + required this.apId, + required this.local, + this.embedVideoUrl, + required this.languageId, + required this.featuredCommunity, + required this.featuredLocal, + this.urlContentType, + this.altText, + this.scheduledPublishTime, + }); + + // From JSON + factory Post.fromJson(Map json) => _$PostFromJson(json); + + // To JSON + Map toJson() => _$PostToJson(this); +} diff --git a/lib/src/models/v4/post/post.g.dart b/lib/src/models/v4/post/post.g.dart new file mode 100644 index 00000000..69d0b1d2 --- /dev/null +++ b/lib/src/models/v4/post/post.g.dart @@ -0,0 +1,66 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Post _$PostFromJson(Map json) => Post( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + url: json['url'] as String?, + body: json['body'] as String?, + creatorId: (json['creator_id'] as num).toInt(), + communityId: (json['community_id'] as num).toInt(), + removed: json['removed'] as bool, + locked: json['locked'] as bool, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + deleted: json['deleted'] as bool, + nsfw: json['nsfw'] as bool, + embedTitle: json['embed_title'] as String?, + embedDescription: json['embed_description'] as String?, + thumbnailUrl: json['thumbnail_url'] as String?, + apId: json['ap_id'] as String, + local: json['local'] as bool, + embedVideoUrl: json['embed_video_url'] as String?, + languageId: (json['language_id'] as num).toInt(), + featuredCommunity: json['featured_community'] as bool, + featuredLocal: json['featured_local'] as bool, + urlContentType: json['url_content_type'] as String?, + altText: json['alt_text'] as String?, + scheduledPublishTime: json['scheduled_publish_time'] as String?, + ); + +Map _$PostToJson(Post instance) => { + 'id': instance.id, + 'name': instance.name, + if (instance.url case final value?) 'url': value, + if (instance.body case final value?) 'body': value, + 'creator_id': instance.creatorId, + 'community_id': instance.communityId, + 'removed': instance.removed, + 'locked': instance.locked, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + 'deleted': instance.deleted, + 'nsfw': instance.nsfw, + if (instance.embedTitle case final value?) 'embed_title': value, + if (instance.embedDescription case final value?) + 'embed_description': value, + if (instance.thumbnailUrl case final value?) 'thumbnail_url': value, + 'ap_id': instance.apId, + 'local': instance.local, + if (instance.embedVideoUrl case final value?) 'embed_video_url': value, + 'language_id': instance.languageId, + 'featured_community': instance.featuredCommunity, + 'featured_local': instance.featuredLocal, + if (instance.urlContentType case final value?) 'url_content_type': value, + if (instance.altText case final value?) 'alt_text': value, + if (instance.scheduledPublishTime case final value?) + 'scheduled_publish_time': value, + }; diff --git a/lib/src/models/v4/post/post_aggregates.dart b/lib/src/models/v4/post/post_aggregates.dart new file mode 100644 index 00000000..8c8c30a2 --- /dev/null +++ b/lib/src/models/v4/post/post_aggregates.dart @@ -0,0 +1,34 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'post_aggregates.g.dart'; + +@JsonSerializable() +class PostAggregates { + final int postId; + final int comments; + final int score; + final int upvotes; + final int downvotes; + final DateTime published; + final DateTime newestCommentTime; + final int? reportCount; + final int? unresolvedReportCount; + + PostAggregates({ + required this.postId, + required this.comments, + required this.score, + required this.upvotes, + required this.downvotes, + required this.published, + required this.newestCommentTime, + this.reportCount, + this.unresolvedReportCount, + }); + + // From JSON + factory PostAggregates.fromJson(Map json) => _$PostAggregatesFromJson(json); + + // To JSON + Map toJson() => _$PostAggregatesToJson(this); +} diff --git a/lib/src/models/v4/post/post_aggregates.g.dart b/lib/src/models/v4/post/post_aggregates.g.dart new file mode 100644 index 00000000..0545eab0 --- /dev/null +++ b/lib/src/models/v4/post/post_aggregates.g.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostAggregates _$PostAggregatesFromJson(Map json) => + PostAggregates( + postId: (json['post_id'] as num).toInt(), + comments: (json['comments'] as num).toInt(), + score: (json['score'] as num).toInt(), + upvotes: (json['upvotes'] as num).toInt(), + downvotes: (json['downvotes'] as num).toInt(), + published: DateTime.parse(json['published'] as String), + newestCommentTime: DateTime.parse(json['newest_comment_time'] as String), + reportCount: (json['report_count'] as num?)?.toInt(), + unresolvedReportCount: (json['unresolved_report_count'] as num?)?.toInt(), + ); + +Map _$PostAggregatesToJson(PostAggregates instance) => + { + 'post_id': instance.postId, + 'comments': instance.comments, + 'score': instance.score, + 'upvotes': instance.upvotes, + 'downvotes': instance.downvotes, + 'published': instance.published.toIso8601String(), + 'newest_comment_time': instance.newestCommentTime.toIso8601String(), + if (instance.reportCount case final value?) 'report_count': value, + if (instance.unresolvedReportCount case final value?) + 'unresolved_report_count': value, + }; diff --git a/lib/src/models/v4/post/post_view.dart b/lib/src/models/v4/post/post_view.dart new file mode 100644 index 00000000..bf53417c --- /dev/null +++ b/lib/src/models/v4/post/post_view.dart @@ -0,0 +1,53 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:lemmy_api_client/src/client/utils/serialization_methods.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'post_view.g.dart'; + +@JsonSerializable() +class PostView { + final Post post; + final Person creator; + final Community community; + final ImageDetails? imageDetails; + final bool creatorBannedFromCommunity; + final bool bannedFromCommunity; + final bool creatorIsModerator; + final bool creatorIsAdmin; + final PostAggregates counts; + @JsonKey(fromJson: lowercaseSubscribedTypeFromJson, toJson: capitalizeSubscribedTypeToJson) + final SubscribedType subscribed; + final bool saved; + final bool read; + final bool hidden; + final bool creatorBlocked; + final int? myVote; + final int unreadComments; + + PostView({ + required this.post, + required this.creator, + required this.community, + this.imageDetails, + required this.creatorBannedFromCommunity, + required this.bannedFromCommunity, + required this.creatorIsModerator, + required this.creatorIsAdmin, + required this.counts, + required this.subscribed, + required this.saved, + required this.read, + required this.hidden, + required this.creatorBlocked, + this.myVote, + required this.unreadComments, + }); + + // From JSON + factory PostView.fromJson(Map json) => _$PostViewFromJson(json); + + // To JSON + Map toJson() => _$PostViewToJson(this); +} diff --git a/lib/src/models/v4/post/post_view.g.dart b/lib/src/models/v4/post/post_view.g.dart new file mode 100644 index 00000000..cacecc60 --- /dev/null +++ b/lib/src/models/v4/post/post_view.g.dart @@ -0,0 +1,50 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'post_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostView _$PostViewFromJson(Map json) => PostView( + post: Post.fromJson(json['post'] as Map), + creator: Person.fromJson(json['creator'] as Map), + community: Community.fromJson(json['community'] as Map), + imageDetails: json['image_details'] == null + ? null + : ImageDetails.fromJson( + json['image_details'] as Map), + creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, + bannedFromCommunity: json['banned_from_community'] as bool, + creatorIsModerator: json['creator_is_moderator'] as bool, + creatorIsAdmin: json['creator_is_admin'] as bool, + counts: PostAggregates.fromJson(json['counts'] as Map), + subscribed: + lowercaseSubscribedTypeFromJson(json['subscribed'] as String?), + saved: json['saved'] as bool, + read: json['read'] as bool, + hidden: json['hidden'] as bool, + creatorBlocked: json['creator_blocked'] as bool, + myVote: (json['my_vote'] as num?)?.toInt(), + unreadComments: (json['unread_comments'] as num).toInt(), + ); + +Map _$PostViewToJson(PostView instance) => { + 'post': instance.post, + 'creator': instance.creator, + 'community': instance.community, + if (instance.imageDetails case final value?) 'image_details': value, + 'creator_banned_from_community': instance.creatorBannedFromCommunity, + 'banned_from_community': instance.bannedFromCommunity, + 'creator_is_moderator': instance.creatorIsModerator, + 'creator_is_admin': instance.creatorIsAdmin, + 'counts': instance.counts, + if (capitalizeSubscribedTypeToJson(instance.subscribed) case final value?) + 'subscribed': value, + 'saved': instance.saved, + 'read': instance.read, + 'hidden': instance.hidden, + 'creator_blocked': instance.creatorBlocked, + if (instance.myVote case final value?) 'my_vote': value, + 'unread_comments': instance.unreadComments, + }; diff --git a/lib/src/models/v4/post/posts_response.dart b/lib/src/models/v4/post/posts_response.dart new file mode 100644 index 00000000..cc05fbb3 --- /dev/null +++ b/lib/src/models/v4/post/posts_response.dart @@ -0,0 +1,22 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'posts_response.g.dart'; + +@JsonSerializable() +class PostsResponse { + final List posts; + final String? nextPage; + + PostsResponse({ + required this.posts, + this.nextPage, + }); + + // From JSON + factory PostsResponse.fromJson(Map json) => _$PostsResponseFromJson(json); + + // To JSON + Map toJson() => _$PostsResponseToJson(this); +} diff --git a/lib/src/models/v4/post/posts_response.g.dart b/lib/src/models/v4/post/posts_response.g.dart new file mode 100644 index 00000000..1f0a3d30 --- /dev/null +++ b/lib/src/models/v4/post/posts_response.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'posts_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PostsResponse _$PostsResponseFromJson(Map json) => + PostsResponse( + posts: (json['posts'] as List) + .map((e) => PostView.fromJson(e as Map)) + .toList(), + nextPage: json['next_page'] as String?, + ); + +Map _$PostsResponseToJson(PostsResponse instance) => + { + 'posts': instance.posts, + if (instance.nextPage case final value?) 'next_page': value, + }; diff --git a/lib/src/models/v4/site/full_site_view.dart b/lib/src/models/v4/site/full_site_view.dart new file mode 100644 index 00000000..35d38595 --- /dev/null +++ b/lib/src/models/v4/site/full_site_view.dart @@ -0,0 +1,36 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'full_site_view.g.dart'; + +@JsonSerializable() +class FullSiteView { + final SiteView siteView; + final List admins; + final String version; + final List allLanguages; + final List discussionLanguages; + final Tagline? tagline; + final List? oauthProviders; + final List? adminOAuthProviders; + final List blockedUrls; + + FullSiteView({ + required this.siteView, + required this.admins, + required this.version, + required this.allLanguages, + required this.discussionLanguages, + this.tagline, + this.oauthProviders, + this.adminOAuthProviders, + required this.blockedUrls, + }); + + // From JSON + factory FullSiteView.fromJson(Map json) => _$FullSiteViewFromJson(json); + + // To JSON + Map toJson() => _$FullSiteViewToJson(this); +} diff --git a/lib/src/models/v4/site/full_site_view.g.dart b/lib/src/models/v4/site/full_site_view.g.dart new file mode 100644 index 00000000..3906acbe --- /dev/null +++ b/lib/src/models/v4/site/full_site_view.g.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'full_site_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FullSiteView _$FullSiteViewFromJson(Map json) => FullSiteView( + siteView: SiteView.fromJson(json['site_view'] as Map), + admins: (json['admins'] as List) + .map((e) => PersonView.fromJson(e as Map)) + .toList(), + version: json['version'] as String, + allLanguages: (json['all_languages'] as List) + .map((e) => Language.fromJson(e as Map)) + .toList(), + discussionLanguages: (json['discussion_languages'] as List) + .map((e) => (e as num).toInt()) + .toList(), + tagline: json['tagline'] == null + ? null + : Tagline.fromJson(json['tagline'] as Map), + oauthProviders: (json['oauth_providers'] as List?) + ?.map((e) => OAuthProvider.fromJson(e as Map)) + .toList(), + adminOAuthProviders: (json['admin_o_auth_providers'] as List?) + ?.map((e) => OAuthProvider.fromJson(e as Map)) + .toList(), + blockedUrls: (json['blocked_urls'] as List) + .map((e) => LocalSiteUrlBlocklist.fromJson(e as Map)) + .toList(), + ); + +Map _$FullSiteViewToJson(FullSiteView instance) => + { + 'site_view': instance.siteView, + 'admins': instance.admins, + 'version': instance.version, + 'all_languages': instance.allLanguages, + 'discussion_languages': instance.discussionLanguages, + if (instance.tagline case final value?) 'tagline': value, + if (instance.oauthProviders case final value?) 'oauth_providers': value, + if (instance.adminOAuthProviders case final value?) + 'admin_o_auth_providers': value, + 'blocked_urls': instance.blockedUrls, + }; diff --git a/lib/src/models/v4/site/site.dart b/lib/src/models/v4/site/site.dart new file mode 100644 index 00000000..814a5d54 --- /dev/null +++ b/lib/src/models/v4/site/site.dart @@ -0,0 +1,44 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'site.g.dart'; + +@JsonSerializable() +class Site { + final int id; + final String name; + final String? sidebar; + final DateTime published; + final DateTime? updated; + final String? icon; + final String? banner; + final String? description; + final String actorId; + final DateTime lastRefreshedAt; + final String inboxUrl; + final String publicKey; + final int instanceId; + final String? contentWarning; + + Site({ + required this.id, + required this.name, + this.sidebar, + required this.published, + this.updated, + this.icon, + this.banner, + this.description, + required this.actorId, + required this.lastRefreshedAt, + required this.inboxUrl, + required this.publicKey, + required this.instanceId, + this.contentWarning, + }); + + // From JSON + factory Site.fromJson(Map json) => _$SiteFromJson(json); + + // To JSON + Map toJson() => _$SiteToJson(this); +} diff --git a/lib/src/models/v4/site/site.g.dart b/lib/src/models/v4/site/site.g.dart new file mode 100644 index 00000000..e5f2a54d --- /dev/null +++ b/lib/src/models/v4/site/site.g.dart @@ -0,0 +1,44 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Site _$SiteFromJson(Map json) => Site( + id: (json['id'] as num).toInt(), + name: json['name'] as String, + sidebar: json['sidebar'] as String?, + published: DateTime.parse(json['published'] as String), + updated: json['updated'] == null + ? null + : DateTime.parse(json['updated'] as String), + icon: json['icon'] as String?, + banner: json['banner'] as String?, + description: json['description'] as String?, + actorId: json['actor_id'] as String, + lastRefreshedAt: DateTime.parse(json['last_refreshed_at'] as String), + inboxUrl: json['inbox_url'] as String, + publicKey: json['public_key'] as String, + instanceId: (json['instance_id'] as num).toInt(), + contentWarning: json['content_warning'] as String?, + ); + +Map _$SiteToJson(Site instance) => { + 'id': instance.id, + 'name': instance.name, + if (instance.sidebar case final value?) 'sidebar': value, + 'published': instance.published.toIso8601String(), + if (instance.updated?.toIso8601String() case final value?) + 'updated': value, + if (instance.icon case final value?) 'icon': value, + if (instance.banner case final value?) 'banner': value, + if (instance.description case final value?) 'description': value, + 'actor_id': instance.actorId, + 'last_refreshed_at': instance.lastRefreshedAt.toIso8601String(), + 'inbox_url': instance.inboxUrl, + 'public_key': instance.publicKey, + 'instance_id': instance.instanceId, + if (instance.contentWarning case final value?) 'content_warning': value, + }; diff --git a/lib/src/models/v4/site/site_aggregates.dart b/lib/src/models/v4/site/site_aggregates.dart new file mode 100644 index 00000000..38a16185 --- /dev/null +++ b/lib/src/models/v4/site/site_aggregates.dart @@ -0,0 +1,35 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'site_aggregates.g.dart'; + +@JsonSerializable() +class SiteAggregates { + final int siteId; + final int users; + final int posts; + final int comments; + final int communities; + final int usersActiveDay; + final int usersActiveWeek; + final int usersActiveMonth; + final int usersActiveHalfYear; + + // Constructor + SiteAggregates({ + required this.siteId, + required this.users, + required this.posts, + required this.comments, + required this.communities, + required this.usersActiveDay, + required this.usersActiveWeek, + required this.usersActiveMonth, + required this.usersActiveHalfYear, + }); + + // From JSON + factory SiteAggregates.fromJson(Map json) => _$SiteAggregatesFromJson(json); + + // To JSON + Map toJson() => _$SiteAggregatesToJson(this); +} diff --git a/lib/src/models/v4/site/site_aggregates.g.dart b/lib/src/models/v4/site/site_aggregates.g.dart new file mode 100644 index 00000000..a832ad22 --- /dev/null +++ b/lib/src/models/v4/site/site_aggregates.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site_aggregates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SiteAggregates _$SiteAggregatesFromJson(Map json) => + SiteAggregates( + siteId: (json['site_id'] as num).toInt(), + users: (json['users'] as num).toInt(), + posts: (json['posts'] as num).toInt(), + comments: (json['comments'] as num).toInt(), + communities: (json['communities'] as num).toInt(), + usersActiveDay: (json['users_active_day'] as num).toInt(), + usersActiveWeek: (json['users_active_week'] as num).toInt(), + usersActiveMonth: (json['users_active_month'] as num).toInt(), + usersActiveHalfYear: (json['users_active_half_year'] as num).toInt(), + ); + +Map _$SiteAggregatesToJson(SiteAggregates instance) => + { + 'site_id': instance.siteId, + 'users': instance.users, + 'posts': instance.posts, + 'comments': instance.comments, + 'communities': instance.communities, + 'users_active_day': instance.usersActiveDay, + 'users_active_week': instance.usersActiveWeek, + 'users_active_month': instance.usersActiveMonth, + 'users_active_half_year': instance.usersActiveHalfYear, + }; diff --git a/lib/src/models/v4/site/site_view.dart b/lib/src/models/v4/site/site_view.dart new file mode 100644 index 00000000..41daa760 --- /dev/null +++ b/lib/src/models/v4/site/site_view.dart @@ -0,0 +1,26 @@ +import 'package:json_annotation/json_annotation.dart'; + +import 'package:lemmy_api_client/src/models/v4/models.dart'; + +part 'site_view.g.dart'; + +@JsonSerializable() +class SiteView { + final Site site; + final LocalSite localSite; + final LocalSiteRateLimit localSiteRateLimit; + final SiteAggregates counts; + + SiteView({ + required this.site, + required this.localSite, + required this.localSiteRateLimit, + required this.counts, + }); + + // From JSON + factory SiteView.fromJson(Map json) => _$SiteViewFromJson(json); + + // To JSON + Map toJson() => _$SiteViewToJson(this); +} diff --git a/lib/src/models/v4/site/site_view.g.dart b/lib/src/models/v4/site/site_view.g.dart new file mode 100644 index 00000000..d005cf7f --- /dev/null +++ b/lib/src/models/v4/site/site_view.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'site_view.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SiteView _$SiteViewFromJson(Map json) => SiteView( + site: Site.fromJson(json['site'] as Map), + localSite: LocalSite.fromJson(json['local_site'] as Map), + localSiteRateLimit: LocalSiteRateLimit.fromJson( + json['local_site_rate_limit'] as Map), + counts: SiteAggregates.fromJson(json['counts'] as Map), + ); + +Map _$SiteViewToJson(SiteView instance) => { + 'site': instance.site, + 'local_site': instance.localSite, + 'local_site_rate_limit': instance.localSiteRateLimit, + 'counts': instance.counts, + }; diff --git a/lib/src/models/v4/tagline/tagline.dart b/lib/src/models/v4/tagline/tagline.dart new file mode 100644 index 00000000..69f98c01 --- /dev/null +++ b/lib/src/models/v4/tagline/tagline.dart @@ -0,0 +1,24 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'tagline.g.dart'; + +@JsonSerializable() +class Tagline { + final int id; + final String content; + final String published; + final String? updated; + + Tagline({ + required this.id, + required this.content, + required this.published, + this.updated, + }); + + // From JSON + factory Tagline.fromJson(Map json) => _$TaglineFromJson(json); + + // To JSON + Map toJson() => _$TaglineToJson(this); +} diff --git a/lib/src/models/v4/tagline/tagline.g.dart b/lib/src/models/v4/tagline/tagline.g.dart new file mode 100644 index 00000000..fc15520f --- /dev/null +++ b/lib/src/models/v4/tagline/tagline.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'tagline.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Tagline _$TaglineFromJson(Map json) => Tagline( + id: (json['id'] as num).toInt(), + content: json['content'] as String, + published: json['published'] as String, + updated: json['updated'] as String?, + ); + +Map _$TaglineToJson(Tagline instance) => { + 'id': instance.id, + 'content': instance.content, + 'published': instance.published, + if (instance.updated case final value?) 'updated': value, + }; diff --git a/lib/src/pictrs.dart b/lib/src/pictrs.dart deleted file mode 100644 index 0dd28b6a..00000000 --- a/lib/src/pictrs.dart +++ /dev/null @@ -1,86 +0,0 @@ -import 'dart:convert'; - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:http/http.dart' as http; - -import 'exceptions.dart'; -import 'utils/response_ok.dart'; - -part 'pictrs.freezed.dart'; -part 'pictrs.g.dart'; - -class PictrsApi { - final String host; - final String extraPath = '/pictrs/image'; - - const PictrsApi(this.host); - - Future upload({ - required String filePath, - String? auth, - }) async { - final req = http.MultipartRequest('POST', Uri.https(host, extraPath)) - ..files.add(await http.MultipartFile.fromPath('images[]', filePath)); - req.headers['Cookie'] = 'jwt=$auth'; - - final res = await req.send(); - final Map body = - jsonDecode(utf8.decode(await res.stream.toBytes())); - body['instance_host'] = host; - - return PictrsUpload.fromJson(body); - } - - Future delete( - PictrsUploadFile pictrsFile, - String? auth, - ) async { - final res = await http.get( - Uri.https( - host, - '$extraPath/delete/${pictrsFile.deleteToken}/${pictrsFile.file}', - ), - headers: {'Authorization': 'Bearer $auth'}, - ); - - if (!res.ok) { - switch (res.statusCode) { - case 403: - throw const LemmyApiException('pictrs_wrong_delete_token'); - case 404: - throw const LemmyApiException('pictrs_not_found'); - default: - throw const LemmyApiException('pictrs_unknown_error'); - } - } - } -} - -/// Based on https://git.asonix.dog/asonix/pict-rs/ - -@freezed -class PictrsUploadFile with _$PictrsUploadFile { - @JsonSerializable(fieldRename: FieldRename.snake) - const factory PictrsUploadFile({ - required String deleteToken, - required String file, - }) = _PictrsUploadFile; - - const PictrsUploadFile._(); - factory PictrsUploadFile.fromJson(Map json) => - _$PictrsUploadFileFromJson(json); -} - -@freezed -class PictrsUpload with _$PictrsUpload { - @JsonSerializable(fieldRename: FieldRename.snake) - const factory PictrsUpload({ - required String msg, - required List files, - required String instanceHost, - }) = _PictrsUpload; - - const PictrsUpload._(); - factory PictrsUpload.fromJson(Map json) => - _$PictrsUploadFromJson(json); -} diff --git a/lib/src/pictrs.freezed.dart b/lib/src/pictrs.freezed.dart deleted file mode 100644 index 85ac28bf..00000000 --- a/lib/src/pictrs.freezed.dart +++ /dev/null @@ -1,386 +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 'pictrs.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'); - -PictrsUploadFile _$PictrsUploadFileFromJson(Map json) { - return _PictrsUploadFile.fromJson(json); -} - -/// @nodoc -mixin _$PictrsUploadFile { - String get deleteToken => throw _privateConstructorUsedError; - String get file => throw _privateConstructorUsedError; - - /// Serializes this PictrsUploadFile to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PictrsUploadFile - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PictrsUploadFileCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PictrsUploadFileCopyWith<$Res> { - factory $PictrsUploadFileCopyWith( - PictrsUploadFile value, $Res Function(PictrsUploadFile) then) = - _$PictrsUploadFileCopyWithImpl<$Res, PictrsUploadFile>; - @useResult - $Res call({String deleteToken, String file}); -} - -/// @nodoc -class _$PictrsUploadFileCopyWithImpl<$Res, $Val extends PictrsUploadFile> - implements $PictrsUploadFileCopyWith<$Res> { - _$PictrsUploadFileCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PictrsUploadFile - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? deleteToken = null, - Object? file = null, - }) { - return _then(_value.copyWith( - deleteToken: null == deleteToken - ? _value.deleteToken - : deleteToken // ignore: cast_nullable_to_non_nullable - as String, - file: null == file - ? _value.file - : file // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PictrsUploadFileImplCopyWith<$Res> - implements $PictrsUploadFileCopyWith<$Res> { - factory _$$PictrsUploadFileImplCopyWith(_$PictrsUploadFileImpl value, - $Res Function(_$PictrsUploadFileImpl) then) = - __$$PictrsUploadFileImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String deleteToken, String file}); -} - -/// @nodoc -class __$$PictrsUploadFileImplCopyWithImpl<$Res> - extends _$PictrsUploadFileCopyWithImpl<$Res, _$PictrsUploadFileImpl> - implements _$$PictrsUploadFileImplCopyWith<$Res> { - __$$PictrsUploadFileImplCopyWithImpl(_$PictrsUploadFileImpl _value, - $Res Function(_$PictrsUploadFileImpl) _then) - : super(_value, _then); - - /// Create a copy of PictrsUploadFile - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? deleteToken = null, - Object? file = null, - }) { - return _then(_$PictrsUploadFileImpl( - deleteToken: null == deleteToken - ? _value.deleteToken - : deleteToken // ignore: cast_nullable_to_non_nullable - as String, - file: null == file - ? _value.file - : file // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@JsonSerializable(fieldRename: FieldRename.snake) -class _$PictrsUploadFileImpl extends _PictrsUploadFile { - const _$PictrsUploadFileImpl({required this.deleteToken, required this.file}) - : super._(); - - factory _$PictrsUploadFileImpl.fromJson(Map json) => - _$$PictrsUploadFileImplFromJson(json); - - @override - final String deleteToken; - @override - final String file; - - @override - String toString() { - return 'PictrsUploadFile(deleteToken: $deleteToken, file: $file)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PictrsUploadFileImpl && - (identical(other.deleteToken, deleteToken) || - other.deleteToken == deleteToken) && - (identical(other.file, file) || other.file == file)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, deleteToken, file); - - /// Create a copy of PictrsUploadFile - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PictrsUploadFileImplCopyWith<_$PictrsUploadFileImpl> get copyWith => - __$$PictrsUploadFileImplCopyWithImpl<_$PictrsUploadFileImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PictrsUploadFileImplToJson( - this, - ); - } -} - -abstract class _PictrsUploadFile extends PictrsUploadFile { - const factory _PictrsUploadFile( - {required final String deleteToken, - required final String file}) = _$PictrsUploadFileImpl; - const _PictrsUploadFile._() : super._(); - - factory _PictrsUploadFile.fromJson(Map json) = - _$PictrsUploadFileImpl.fromJson; - - @override - String get deleteToken; - @override - String get file; - - /// Create a copy of PictrsUploadFile - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PictrsUploadFileImplCopyWith<_$PictrsUploadFileImpl> get copyWith => - throw _privateConstructorUsedError; -} - -PictrsUpload _$PictrsUploadFromJson(Map json) { - return _PictrsUpload.fromJson(json); -} - -/// @nodoc -mixin _$PictrsUpload { - String get msg => throw _privateConstructorUsedError; - List get files => throw _privateConstructorUsedError; - String get instanceHost => throw _privateConstructorUsedError; - - /// Serializes this PictrsUpload to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PictrsUpload - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PictrsUploadCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PictrsUploadCopyWith<$Res> { - factory $PictrsUploadCopyWith( - PictrsUpload value, $Res Function(PictrsUpload) then) = - _$PictrsUploadCopyWithImpl<$Res, PictrsUpload>; - @useResult - $Res call({String msg, List files, String instanceHost}); -} - -/// @nodoc -class _$PictrsUploadCopyWithImpl<$Res, $Val extends PictrsUpload> - implements $PictrsUploadCopyWith<$Res> { - _$PictrsUploadCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PictrsUpload - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? msg = null, - Object? files = null, - Object? instanceHost = null, - }) { - return _then(_value.copyWith( - msg: null == msg - ? _value.msg - : msg // ignore: cast_nullable_to_non_nullable - as String, - files: null == files - ? _value.files - : files // ignore: cast_nullable_to_non_nullable - as List, - instanceHost: null == instanceHost - ? _value.instanceHost - : instanceHost // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PictrsUploadImplCopyWith<$Res> - implements $PictrsUploadCopyWith<$Res> { - factory _$$PictrsUploadImplCopyWith( - _$PictrsUploadImpl value, $Res Function(_$PictrsUploadImpl) then) = - __$$PictrsUploadImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String msg, List files, String instanceHost}); -} - -/// @nodoc -class __$$PictrsUploadImplCopyWithImpl<$Res> - extends _$PictrsUploadCopyWithImpl<$Res, _$PictrsUploadImpl> - implements _$$PictrsUploadImplCopyWith<$Res> { - __$$PictrsUploadImplCopyWithImpl( - _$PictrsUploadImpl _value, $Res Function(_$PictrsUploadImpl) _then) - : super(_value, _then); - - /// Create a copy of PictrsUpload - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? msg = null, - Object? files = null, - Object? instanceHost = null, - }) { - return _then(_$PictrsUploadImpl( - msg: null == msg - ? _value.msg - : msg // ignore: cast_nullable_to_non_nullable - as String, - files: null == files - ? _value._files - : files // ignore: cast_nullable_to_non_nullable - as List, - instanceHost: null == instanceHost - ? _value.instanceHost - : instanceHost // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@JsonSerializable(fieldRename: FieldRename.snake) -class _$PictrsUploadImpl extends _PictrsUpload { - const _$PictrsUploadImpl( - {required this.msg, - required final List files, - required this.instanceHost}) - : _files = files, - super._(); - - factory _$PictrsUploadImpl.fromJson(Map json) => - _$$PictrsUploadImplFromJson(json); - - @override - final String msg; - final List _files; - @override - List get files { - if (_files is EqualUnmodifiableListView) return _files; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_files); - } - - @override - final String instanceHost; - - @override - String toString() { - return 'PictrsUpload(msg: $msg, files: $files, instanceHost: $instanceHost)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PictrsUploadImpl && - (identical(other.msg, msg) || other.msg == msg) && - const DeepCollectionEquality().equals(other._files, _files) && - (identical(other.instanceHost, instanceHost) || - other.instanceHost == instanceHost)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, msg, - const DeepCollectionEquality().hash(_files), instanceHost); - - /// Create a copy of PictrsUpload - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PictrsUploadImplCopyWith<_$PictrsUploadImpl> get copyWith => - __$$PictrsUploadImplCopyWithImpl<_$PictrsUploadImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PictrsUploadImplToJson( - this, - ); - } -} - -abstract class _PictrsUpload extends PictrsUpload { - const factory _PictrsUpload( - {required final String msg, - required final List files, - required final String instanceHost}) = _$PictrsUploadImpl; - const _PictrsUpload._() : super._(); - - factory _PictrsUpload.fromJson(Map json) = - _$PictrsUploadImpl.fromJson; - - @override - String get msg; - @override - List get files; - @override - String get instanceHost; - - /// Create a copy of PictrsUpload - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PictrsUploadImplCopyWith<_$PictrsUploadImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/pictrs.g.dart b/lib/src/pictrs.g.dart deleted file mode 100644 index a0619115..00000000 --- a/lib/src/pictrs.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'pictrs.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PictrsUploadFileImpl _$$PictrsUploadFileImplFromJson( - Map json) => - _$PictrsUploadFileImpl( - deleteToken: json['delete_token'] as String, - file: json['file'] as String, - ); - -Map _$$PictrsUploadFileImplToJson( - _$PictrsUploadFileImpl instance) => - { - 'delete_token': instance.deleteToken, - 'file': instance.file, - }; - -_$PictrsUploadImpl _$$PictrsUploadImplFromJson(Map json) => - _$PictrsUploadImpl( - msg: json['msg'] as String, - files: (json['files'] as List) - .map((e) => PictrsUploadFile.fromJson(e as Map)) - .toList(), - instanceHost: json['instance_host'] as String, - ); - -Map _$$PictrsUploadImplToJson(_$PictrsUploadImpl instance) => - { - 'msg': instance.msg, - 'files': instance.files.map((e) => e.toJson()).toList(), - 'instance_host': instance.instanceHost, - }; diff --git a/lib/src/utils/force_utc_datetime.dart b/lib/src/utils/force_utc_datetime.dart deleted file mode 100644 index 78cd41c4..00000000 --- a/lib/src/utils/force_utc_datetime.dart +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; - -class ForceUtcDateTime implements JsonConverter { - const ForceUtcDateTime(); - - @override - DateTime fromJson(String json) => - DateTime.parse('$json${json.endsWith('Z') ? '' : 'Z'}'); - - @override - String toJson(DateTime json) => json.toIso8601String(); -} diff --git a/lib/src/utils/response_ok.dart b/lib/src/utils/response_ok.dart deleted file mode 100644 index 77d6bf0b..00000000 --- a/lib/src/utils/response_ok.dart +++ /dev/null @@ -1,5 +0,0 @@ -import 'package:http/http.dart'; - -extension ResponseOk on Response { - bool get ok => statusCode >= 200 && statusCode < 300; -} diff --git a/lib/src/utils/serde.dart b/lib/src/utils/serde.dart deleted file mode 100644 index 0be8d62d..00000000 --- a/lib/src/utils/serde.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; - -import 'force_utc_datetime.dart'; - -const modelSerde = JsonSerializable( - fieldRename: FieldRename.snake, - converters: [ForceUtcDateTime()], -); - -const apiSerde = JsonSerializable( - fieldRename: FieldRename.snake, - includeIfNull: false, -); diff --git a/lib/src/v3/api/admin/admin.dart b/lib/src/v3/api/admin/admin.dart deleted file mode 100644 index 1d4fb5d4..00000000 --- a/lib/src/v3/api/admin/admin.dart +++ /dev/null @@ -1,290 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../v3.dart'; -import '../../../utils/serde.dart'; - -part 'admin.freezed.dart'; -part 'admin.g.dart'; - -/// Add an admin to your site. -/// -/// `HTTP.POST /admin/add` -@freezed -class AddAdmin - with _$AddAdmin - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory AddAdmin({ - required int personId, // v0.18.0 - required bool added, // v0.18.0 - String? auth, - }) = _AddAdmin; - - const AddAdmin._(); - factory AddAdmin.fromJson(Map json) => - _$AddAdminFromJson(json); - - final path = '/admin/add'; - - final httpMethod = HttpMethod.post; - - @override - AddAdminResponse responseFactory(Map json) => - AddAdminResponse.fromJson(json); -} - -/// Get the unread registration applications count. -/// -/// `HTTP.GET /admin/registration_application/count` -@freezed -class GetUnreadRegistrationApplicationCount - with _$GetUnreadRegistrationApplicationCount - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetUnreadRegistrationApplicationCount({ - String? auth, - }) = _GetUnreadRegistrationApplicationCount; - - const GetUnreadRegistrationApplicationCount._(); - factory GetUnreadRegistrationApplicationCount.fromJson( - Map json, - ) => - _$GetUnreadRegistrationApplicationCountFromJson(json); - - final path = '/admin/registration_application/count'; - - final httpMethod = HttpMethod.get; - - @override - GetUnreadRegistrationApplicationCountResponse responseFactory( - Map json, - ) => - GetUnreadRegistrationApplicationCountResponse.fromJson(json); -} - -/// List the registration applications. -/// -/// `HTTP.GET /admin/registration_application/list` -@freezed -class ListRegistrationApplications - with _$ListRegistrationApplications - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListRegistrationApplications({ - bool? unreadOnly, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - String? auth, - }) = _ListRegistrationApplications; - - const ListRegistrationApplications._(); - factory ListRegistrationApplications.fromJson(Map json) => - _$ListRegistrationApplicationsFromJson(json); - - final path = '/admin/registration_application/list'; - - final httpMethod = HttpMethod.get; - - @override - ListRegistrationApplicationsResponse responseFactory( - Map json, - ) => - ListRegistrationApplicationsResponse.fromJson(json); -} - -/// Approve a registration application -/// -/// `HTTP.PUT /admin/registration_application/approve` -@freezed -class ApproveRegistrationApplication - with _$ApproveRegistrationApplication - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ApproveRegistrationApplication({ - required int id, // v0.18.0 - required bool approve, // v0.18.0 - String? denyReason, // v0.18.0 - String? auth, - }) = _ApproveRegistrationApplication; - - const ApproveRegistrationApplication._(); - factory ApproveRegistrationApplication.fromJson(Map json) => - _$ApproveRegistrationApplicationFromJson(json); - - final path = '/admin/registration_application/approve'; - - final httpMethod = HttpMethod.put; - - @override - RegistrationApplicationResponse responseFactory(Map json) => - RegistrationApplicationResponse.fromJson(json); -} - -/// Get the application a user submitted when they first registered their account -/// -/// `HTTP.GET /admin/registration_application` -@freezed -class GetRegistrationApplication - with _$GetRegistrationApplication - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetRegistrationApplication({ - required int personId, // v0.19.6 (required) - String? auth, - }) = _GetRegistrationApplication; - - const GetRegistrationApplication._(); - factory GetRegistrationApplication.fromJson(Map json) => - _$GetRegistrationApplicationFromJson(json); - - final path = '/admin/registration_application'; - - final httpMethod = HttpMethod.get; - - @override - RegistrationApplicationResponse responseFactory(Map json) => - RegistrationApplicationResponse.fromJson(json); -} - -/// Purge / Delete a person from the database. -/// -/// `HTTP.POST /admin/purge/person` -@freezed -class PurgePerson - with _$PurgePerson - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory PurgePerson({ - required int personId, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _PurgePerson; - - const PurgePerson._(); - factory PurgePerson.fromJson(Map json) => - _$PurgePersonFromJson(json); - - final path = '/admin/purge/person'; - - final httpMethod = HttpMethod.post; - - @override - PurgeItemResponse responseFactory(Map json) => - PurgeItemResponse.fromJson(json); -} - -/// Purge / Delete a community from the database. -/// -/// `HTTP.POST /admin/purge/community` -@freezed -class PurgeCommunity - with _$PurgeCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory PurgeCommunity({ - required int communityId, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _PurgeCommunity; - - const PurgeCommunity._(); - factory PurgeCommunity.fromJson(Map json) => - _$PurgeCommunityFromJson(json); - - final path = '/admin/purge/community'; - - final httpMethod = HttpMethod.post; - - @override - PurgeItemResponse responseFactory(Map json) => - PurgeItemResponse.fromJson(json); -} - -/// Purge / Delete a post from the database. -/// -/// `HTTP.POST /admin/purge/post` -@freezed -class PurgePost - with _$PurgePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory PurgePost({ - required int postId, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _PurgePost; - - const PurgePost._(); - factory PurgePost.fromJson(Map json) => - _$PurgePostFromJson(json); - - final path = '/admin/purge/post'; - - final httpMethod = HttpMethod.post; - - @override - PurgeItemResponse responseFactory(Map json) => - PurgeItemResponse.fromJson(json); -} - -/// Purge / Delete a comment from the database. -/// -/// `HTTP.POST /admin/purge/comment` -@freezed -class PurgeComment - with _$PurgeComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory PurgeComment({ - required int commentId, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _PurgeComment; - - const PurgeComment._(); - factory PurgeComment.fromJson(Map json) => - _$PurgeCommentFromJson(json); - - final path = '/admin/purge/comment'; - - final httpMethod = HttpMethod.post; - - @override - PurgeItemResponse responseFactory(Map json) => - PurgeItemResponse.fromJson(json); -} - -/// List all the media known to your instance. -/// -/// `HTTP.GET /admin/list_all_media` -@freezed -class ListAllMedia - with _$ListAllMedia - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListAllMedia({ - int? page, // v0.19.4 (optional) - int? limit, // v0.19.4 (optional) - String? auth, - }) = _ListAllMedia; - - const ListAllMedia._(); - factory ListAllMedia.fromJson(Map json) => - _$ListAllMediaFromJson(json); - - final path = '/admin/list_all_media'; - - final httpMethod = HttpMethod.get; - - @override - ListMediaResponse responseFactory(Map json) => - ListMediaResponse.fromJson(json); -} diff --git a/lib/src/v3/api/admin/admin.freezed.dart b/lib/src/v3/api/admin/admin.freezed.dart deleted file mode 100644 index c30bd259..00000000 --- a/lib/src/v3/api/admin/admin.freezed.dart +++ /dev/null @@ -1,1942 +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 'admin.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'); - -AddAdmin _$AddAdminFromJson(Map json) { - return _AddAdmin.fromJson(json); -} - -/// @nodoc -mixin _$AddAdmin { - int get personId => throw _privateConstructorUsedError; // v0.18.0 - bool get added => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this AddAdmin to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AddAdmin - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AddAdminCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AddAdminCopyWith<$Res> { - factory $AddAdminCopyWith(AddAdmin value, $Res Function(AddAdmin) then) = - _$AddAdminCopyWithImpl<$Res, AddAdmin>; - @useResult - $Res call({int personId, bool added, String? auth}); -} - -/// @nodoc -class _$AddAdminCopyWithImpl<$Res, $Val extends AddAdmin> - implements $AddAdminCopyWith<$Res> { - _$AddAdminCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AddAdmin - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? added = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - added: null == added - ? _value.added - : added // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AddAdminImplCopyWith<$Res> - implements $AddAdminCopyWith<$Res> { - factory _$$AddAdminImplCopyWith( - _$AddAdminImpl value, $Res Function(_$AddAdminImpl) then) = - __$$AddAdminImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int personId, bool added, String? auth}); -} - -/// @nodoc -class __$$AddAdminImplCopyWithImpl<$Res> - extends _$AddAdminCopyWithImpl<$Res, _$AddAdminImpl> - implements _$$AddAdminImplCopyWith<$Res> { - __$$AddAdminImplCopyWithImpl( - _$AddAdminImpl _value, $Res Function(_$AddAdminImpl) _then) - : super(_value, _then); - - /// Create a copy of AddAdmin - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? added = null, - Object? auth = freezed, - }) { - return _then(_$AddAdminImpl( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - added: null == added - ? _value.added - : added // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$AddAdminImpl extends _AddAdmin { - const _$AddAdminImpl({required this.personId, required this.added, this.auth}) - : super._(); - - factory _$AddAdminImpl.fromJson(Map json) => - _$$AddAdminImplFromJson(json); - - @override - final int personId; -// v0.18.0 - @override - final bool added; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'AddAdmin(personId: $personId, added: $added, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AddAdminImpl && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.added, added) || other.added == added) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personId, added, auth); - - /// Create a copy of AddAdmin - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AddAdminImplCopyWith<_$AddAdminImpl> get copyWith => - __$$AddAdminImplCopyWithImpl<_$AddAdminImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AddAdminImplToJson( - this, - ); - } -} - -abstract class _AddAdmin extends AddAdmin { - const factory _AddAdmin( - {required final int personId, - required final bool added, - final String? auth}) = _$AddAdminImpl; - const _AddAdmin._() : super._(); - - factory _AddAdmin.fromJson(Map json) = - _$AddAdminImpl.fromJson; - - @override - int get personId; // v0.18.0 - @override - bool get added; // v0.18.0 - @override - String? get auth; - - /// Create a copy of AddAdmin - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AddAdminImplCopyWith<_$AddAdminImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetUnreadRegistrationApplicationCount - _$GetUnreadRegistrationApplicationCountFromJson(Map json) { - return _GetUnreadRegistrationApplicationCount.fromJson(json); -} - -/// @nodoc -mixin _$GetUnreadRegistrationApplicationCount { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetUnreadRegistrationApplicationCount to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetUnreadRegistrationApplicationCount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetUnreadRegistrationApplicationCountCopyWith< - GetUnreadRegistrationApplicationCount> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetUnreadRegistrationApplicationCountCopyWith<$Res> { - factory $GetUnreadRegistrationApplicationCountCopyWith( - GetUnreadRegistrationApplicationCount value, - $Res Function(GetUnreadRegistrationApplicationCount) then) = - _$GetUnreadRegistrationApplicationCountCopyWithImpl<$Res, - GetUnreadRegistrationApplicationCount>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GetUnreadRegistrationApplicationCountCopyWithImpl<$Res, - $Val extends GetUnreadRegistrationApplicationCount> - implements $GetUnreadRegistrationApplicationCountCopyWith<$Res> { - _$GetUnreadRegistrationApplicationCountCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetUnreadRegistrationApplicationCount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetUnreadRegistrationApplicationCountImplCopyWith<$Res> - implements $GetUnreadRegistrationApplicationCountCopyWith<$Res> { - factory _$$GetUnreadRegistrationApplicationCountImplCopyWith( - _$GetUnreadRegistrationApplicationCountImpl value, - $Res Function(_$GetUnreadRegistrationApplicationCountImpl) then) = - __$$GetUnreadRegistrationApplicationCountImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GetUnreadRegistrationApplicationCountImplCopyWithImpl<$Res> - extends _$GetUnreadRegistrationApplicationCountCopyWithImpl<$Res, - _$GetUnreadRegistrationApplicationCountImpl> - implements _$$GetUnreadRegistrationApplicationCountImplCopyWith<$Res> { - __$$GetUnreadRegistrationApplicationCountImplCopyWithImpl( - _$GetUnreadRegistrationApplicationCountImpl _value, - $Res Function(_$GetUnreadRegistrationApplicationCountImpl) _then) - : super(_value, _then); - - /// Create a copy of GetUnreadRegistrationApplicationCount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GetUnreadRegistrationApplicationCountImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetUnreadRegistrationApplicationCountImpl - extends _GetUnreadRegistrationApplicationCount { - const _$GetUnreadRegistrationApplicationCountImpl({this.auth}) : super._(); - - factory _$GetUnreadRegistrationApplicationCountImpl.fromJson( - Map json) => - _$$GetUnreadRegistrationApplicationCountImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GetUnreadRegistrationApplicationCount(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetUnreadRegistrationApplicationCountImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GetUnreadRegistrationApplicationCount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetUnreadRegistrationApplicationCountImplCopyWith< - _$GetUnreadRegistrationApplicationCountImpl> - get copyWith => __$$GetUnreadRegistrationApplicationCountImplCopyWithImpl< - _$GetUnreadRegistrationApplicationCountImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetUnreadRegistrationApplicationCountImplToJson( - this, - ); - } -} - -abstract class _GetUnreadRegistrationApplicationCount - extends GetUnreadRegistrationApplicationCount { - const factory _GetUnreadRegistrationApplicationCount({final String? auth}) = - _$GetUnreadRegistrationApplicationCountImpl; - const _GetUnreadRegistrationApplicationCount._() : super._(); - - factory _GetUnreadRegistrationApplicationCount.fromJson( - Map json) = - _$GetUnreadRegistrationApplicationCountImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GetUnreadRegistrationApplicationCount - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetUnreadRegistrationApplicationCountImplCopyWith< - _$GetUnreadRegistrationApplicationCountImpl> - get copyWith => throw _privateConstructorUsedError; -} - -ListRegistrationApplications _$ListRegistrationApplicationsFromJson( - Map json) { - return _ListRegistrationApplications.fromJson(json); -} - -/// @nodoc -mixin _$ListRegistrationApplications { - bool? get unreadOnly => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListRegistrationApplications to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListRegistrationApplications - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListRegistrationApplicationsCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListRegistrationApplicationsCopyWith<$Res> { - factory $ListRegistrationApplicationsCopyWith( - ListRegistrationApplications value, - $Res Function(ListRegistrationApplications) then) = - _$ListRegistrationApplicationsCopyWithImpl<$Res, - ListRegistrationApplications>; - @useResult - $Res call({bool? unreadOnly, int? page, int? limit, String? auth}); -} - -/// @nodoc -class _$ListRegistrationApplicationsCopyWithImpl<$Res, - $Val extends ListRegistrationApplications> - implements $ListRegistrationApplicationsCopyWith<$Res> { - _$ListRegistrationApplicationsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListRegistrationApplications - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? unreadOnly = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListRegistrationApplicationsImplCopyWith<$Res> - implements $ListRegistrationApplicationsCopyWith<$Res> { - factory _$$ListRegistrationApplicationsImplCopyWith( - _$ListRegistrationApplicationsImpl value, - $Res Function(_$ListRegistrationApplicationsImpl) then) = - __$$ListRegistrationApplicationsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool? unreadOnly, int? page, int? limit, String? auth}); -} - -/// @nodoc -class __$$ListRegistrationApplicationsImplCopyWithImpl<$Res> - extends _$ListRegistrationApplicationsCopyWithImpl<$Res, - _$ListRegistrationApplicationsImpl> - implements _$$ListRegistrationApplicationsImplCopyWith<$Res> { - __$$ListRegistrationApplicationsImplCopyWithImpl( - _$ListRegistrationApplicationsImpl _value, - $Res Function(_$ListRegistrationApplicationsImpl) _then) - : super(_value, _then); - - /// Create a copy of ListRegistrationApplications - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? unreadOnly = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_$ListRegistrationApplicationsImpl( - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListRegistrationApplicationsImpl extends _ListRegistrationApplications { - const _$ListRegistrationApplicationsImpl( - {this.unreadOnly, this.page, this.limit, this.auth}) - : super._(); - - factory _$ListRegistrationApplicationsImpl.fromJson( - Map json) => - _$$ListRegistrationApplicationsImplFromJson(json); - - @override - final bool? unreadOnly; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ListRegistrationApplications(unreadOnly: $unreadOnly, page: $page, limit: $limit, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListRegistrationApplicationsImpl && - (identical(other.unreadOnly, unreadOnly) || - other.unreadOnly == unreadOnly) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, unreadOnly, page, limit, auth); - - /// Create a copy of ListRegistrationApplications - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListRegistrationApplicationsImplCopyWith< - _$ListRegistrationApplicationsImpl> - get copyWith => __$$ListRegistrationApplicationsImplCopyWithImpl< - _$ListRegistrationApplicationsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListRegistrationApplicationsImplToJson( - this, - ); - } -} - -abstract class _ListRegistrationApplications - extends ListRegistrationApplications { - const factory _ListRegistrationApplications( - {final bool? unreadOnly, - final int? page, - final int? limit, - final String? auth}) = _$ListRegistrationApplicationsImpl; - const _ListRegistrationApplications._() : super._(); - - factory _ListRegistrationApplications.fromJson(Map json) = - _$ListRegistrationApplicationsImpl.fromJson; - - @override - bool? get unreadOnly; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ListRegistrationApplications - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListRegistrationApplicationsImplCopyWith< - _$ListRegistrationApplicationsImpl> - get copyWith => throw _privateConstructorUsedError; -} - -ApproveRegistrationApplication _$ApproveRegistrationApplicationFromJson( - Map json) { - return _ApproveRegistrationApplication.fromJson(json); -} - -/// @nodoc -mixin _$ApproveRegistrationApplication { - int get id => throw _privateConstructorUsedError; // v0.18.0 - bool get approve => throw _privateConstructorUsedError; // v0.18.0 - String? get denyReason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ApproveRegistrationApplication to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ApproveRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ApproveRegistrationApplicationCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ApproveRegistrationApplicationCopyWith<$Res> { - factory $ApproveRegistrationApplicationCopyWith( - ApproveRegistrationApplication value, - $Res Function(ApproveRegistrationApplication) then) = - _$ApproveRegistrationApplicationCopyWithImpl<$Res, - ApproveRegistrationApplication>; - @useResult - $Res call({int id, bool approve, String? denyReason, String? auth}); -} - -/// @nodoc -class _$ApproveRegistrationApplicationCopyWithImpl<$Res, - $Val extends ApproveRegistrationApplication> - implements $ApproveRegistrationApplicationCopyWith<$Res> { - _$ApproveRegistrationApplicationCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ApproveRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? approve = null, - Object? denyReason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - approve: null == approve - ? _value.approve - : approve // ignore: cast_nullable_to_non_nullable - as bool, - denyReason: freezed == denyReason - ? _value.denyReason - : denyReason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ApproveRegistrationApplicationImplCopyWith<$Res> - implements $ApproveRegistrationApplicationCopyWith<$Res> { - factory _$$ApproveRegistrationApplicationImplCopyWith( - _$ApproveRegistrationApplicationImpl value, - $Res Function(_$ApproveRegistrationApplicationImpl) then) = - __$$ApproveRegistrationApplicationImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int id, bool approve, String? denyReason, String? auth}); -} - -/// @nodoc -class __$$ApproveRegistrationApplicationImplCopyWithImpl<$Res> - extends _$ApproveRegistrationApplicationCopyWithImpl<$Res, - _$ApproveRegistrationApplicationImpl> - implements _$$ApproveRegistrationApplicationImplCopyWith<$Res> { - __$$ApproveRegistrationApplicationImplCopyWithImpl( - _$ApproveRegistrationApplicationImpl _value, - $Res Function(_$ApproveRegistrationApplicationImpl) _then) - : super(_value, _then); - - /// Create a copy of ApproveRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? approve = null, - Object? denyReason = freezed, - Object? auth = freezed, - }) { - return _then(_$ApproveRegistrationApplicationImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - approve: null == approve - ? _value.approve - : approve // ignore: cast_nullable_to_non_nullable - as bool, - denyReason: freezed == denyReason - ? _value.denyReason - : denyReason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ApproveRegistrationApplicationImpl - extends _ApproveRegistrationApplication { - const _$ApproveRegistrationApplicationImpl( - {required this.id, required this.approve, this.denyReason, this.auth}) - : super._(); - - factory _$ApproveRegistrationApplicationImpl.fromJson( - Map json) => - _$$ApproveRegistrationApplicationImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final bool approve; -// v0.18.0 - @override - final String? denyReason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ApproveRegistrationApplication(id: $id, approve: $approve, denyReason: $denyReason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ApproveRegistrationApplicationImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.approve, approve) || other.approve == approve) && - (identical(other.denyReason, denyReason) || - other.denyReason == denyReason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, approve, denyReason, auth); - - /// Create a copy of ApproveRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ApproveRegistrationApplicationImplCopyWith< - _$ApproveRegistrationApplicationImpl> - get copyWith => __$$ApproveRegistrationApplicationImplCopyWithImpl< - _$ApproveRegistrationApplicationImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ApproveRegistrationApplicationImplToJson( - this, - ); - } -} - -abstract class _ApproveRegistrationApplication - extends ApproveRegistrationApplication { - const factory _ApproveRegistrationApplication( - {required final int id, - required final bool approve, - final String? denyReason, - final String? auth}) = _$ApproveRegistrationApplicationImpl; - const _ApproveRegistrationApplication._() : super._(); - - factory _ApproveRegistrationApplication.fromJson(Map json) = - _$ApproveRegistrationApplicationImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - bool get approve; // v0.18.0 - @override - String? get denyReason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ApproveRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ApproveRegistrationApplicationImplCopyWith< - _$ApproveRegistrationApplicationImpl> - get copyWith => throw _privateConstructorUsedError; -} - -GetRegistrationApplication _$GetRegistrationApplicationFromJson( - Map json) { - return _GetRegistrationApplication.fromJson(json); -} - -/// @nodoc -mixin _$GetRegistrationApplication { - int get personId => throw _privateConstructorUsedError; // v0.19.6 (required) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetRegistrationApplication to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetRegistrationApplicationCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetRegistrationApplicationCopyWith<$Res> { - factory $GetRegistrationApplicationCopyWith(GetRegistrationApplication value, - $Res Function(GetRegistrationApplication) then) = - _$GetRegistrationApplicationCopyWithImpl<$Res, - GetRegistrationApplication>; - @useResult - $Res call({int personId, String? auth}); -} - -/// @nodoc -class _$GetRegistrationApplicationCopyWithImpl<$Res, - $Val extends GetRegistrationApplication> - implements $GetRegistrationApplicationCopyWith<$Res> { - _$GetRegistrationApplicationCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetRegistrationApplicationImplCopyWith<$Res> - implements $GetRegistrationApplicationCopyWith<$Res> { - factory _$$GetRegistrationApplicationImplCopyWith( - _$GetRegistrationApplicationImpl value, - $Res Function(_$GetRegistrationApplicationImpl) then) = - __$$GetRegistrationApplicationImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int personId, String? auth}); -} - -/// @nodoc -class __$$GetRegistrationApplicationImplCopyWithImpl<$Res> - extends _$GetRegistrationApplicationCopyWithImpl<$Res, - _$GetRegistrationApplicationImpl> - implements _$$GetRegistrationApplicationImplCopyWith<$Res> { - __$$GetRegistrationApplicationImplCopyWithImpl( - _$GetRegistrationApplicationImpl _value, - $Res Function(_$GetRegistrationApplicationImpl) _then) - : super(_value, _then); - - /// Create a copy of GetRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? auth = freezed, - }) { - return _then(_$GetRegistrationApplicationImpl( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetRegistrationApplicationImpl extends _GetRegistrationApplication { - const _$GetRegistrationApplicationImpl({required this.personId, this.auth}) - : super._(); - - factory _$GetRegistrationApplicationImpl.fromJson( - Map json) => - _$$GetRegistrationApplicationImplFromJson(json); - - @override - final int personId; -// v0.19.6 (required) - @override - final String? auth; - - @override - String toString() { - return 'GetRegistrationApplication(personId: $personId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetRegistrationApplicationImpl && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personId, auth); - - /// Create a copy of GetRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetRegistrationApplicationImplCopyWith<_$GetRegistrationApplicationImpl> - get copyWith => __$$GetRegistrationApplicationImplCopyWithImpl< - _$GetRegistrationApplicationImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetRegistrationApplicationImplToJson( - this, - ); - } -} - -abstract class _GetRegistrationApplication extends GetRegistrationApplication { - const factory _GetRegistrationApplication( - {required final int personId, - final String? auth}) = _$GetRegistrationApplicationImpl; - const _GetRegistrationApplication._() : super._(); - - factory _GetRegistrationApplication.fromJson(Map json) = - _$GetRegistrationApplicationImpl.fromJson; - - @override - int get personId; // v0.19.6 (required) - @override - String? get auth; - - /// Create a copy of GetRegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetRegistrationApplicationImplCopyWith<_$GetRegistrationApplicationImpl> - get copyWith => throw _privateConstructorUsedError; -} - -PurgePerson _$PurgePersonFromJson(Map json) { - return _PurgePerson.fromJson(json); -} - -/// @nodoc -mixin _$PurgePerson { - int get personId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this PurgePerson to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PurgePerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PurgePersonCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PurgePersonCopyWith<$Res> { - factory $PurgePersonCopyWith( - PurgePerson value, $Res Function(PurgePerson) then) = - _$PurgePersonCopyWithImpl<$Res, PurgePerson>; - @useResult - $Res call({int personId, String? reason, String? auth}); -} - -/// @nodoc -class _$PurgePersonCopyWithImpl<$Res, $Val extends PurgePerson> - implements $PurgePersonCopyWith<$Res> { - _$PurgePersonCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PurgePerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PurgePersonImplCopyWith<$Res> - implements $PurgePersonCopyWith<$Res> { - factory _$$PurgePersonImplCopyWith( - _$PurgePersonImpl value, $Res Function(_$PurgePersonImpl) then) = - __$$PurgePersonImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int personId, String? reason, String? auth}); -} - -/// @nodoc -class __$$PurgePersonImplCopyWithImpl<$Res> - extends _$PurgePersonCopyWithImpl<$Res, _$PurgePersonImpl> - implements _$$PurgePersonImplCopyWith<$Res> { - __$$PurgePersonImplCopyWithImpl( - _$PurgePersonImpl _value, $Res Function(_$PurgePersonImpl) _then) - : super(_value, _then); - - /// Create a copy of PurgePerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$PurgePersonImpl( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$PurgePersonImpl extends _PurgePerson { - const _$PurgePersonImpl({required this.personId, this.reason, this.auth}) - : super._(); - - factory _$PurgePersonImpl.fromJson(Map json) => - _$$PurgePersonImplFromJson(json); - - @override - final int personId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'PurgePerson(personId: $personId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PurgePersonImpl && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personId, reason, auth); - - /// Create a copy of PurgePerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PurgePersonImplCopyWith<_$PurgePersonImpl> get copyWith => - __$$PurgePersonImplCopyWithImpl<_$PurgePersonImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PurgePersonImplToJson( - this, - ); - } -} - -abstract class _PurgePerson extends PurgePerson { - const factory _PurgePerson( - {required final int personId, - final String? reason, - final String? auth}) = _$PurgePersonImpl; - const _PurgePerson._() : super._(); - - factory _PurgePerson.fromJson(Map json) = - _$PurgePersonImpl.fromJson; - - @override - int get personId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of PurgePerson - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PurgePersonImplCopyWith<_$PurgePersonImpl> get copyWith => - throw _privateConstructorUsedError; -} - -PurgeCommunity _$PurgeCommunityFromJson(Map json) { - return _PurgeCommunity.fromJson(json); -} - -/// @nodoc -mixin _$PurgeCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this PurgeCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PurgeCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PurgeCommunityCopyWith<$Res> { - factory $PurgeCommunityCopyWith( - PurgeCommunity value, $Res Function(PurgeCommunity) then) = - _$PurgeCommunityCopyWithImpl<$Res, PurgeCommunity>; - @useResult - $Res call({int communityId, String? reason, String? auth}); -} - -/// @nodoc -class _$PurgeCommunityCopyWithImpl<$Res, $Val extends PurgeCommunity> - implements $PurgeCommunityCopyWith<$Res> { - _$PurgeCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PurgeCommunityImplCopyWith<$Res> - implements $PurgeCommunityCopyWith<$Res> { - factory _$$PurgeCommunityImplCopyWith(_$PurgeCommunityImpl value, - $Res Function(_$PurgeCommunityImpl) then) = - __$$PurgeCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, String? reason, String? auth}); -} - -/// @nodoc -class __$$PurgeCommunityImplCopyWithImpl<$Res> - extends _$PurgeCommunityCopyWithImpl<$Res, _$PurgeCommunityImpl> - implements _$$PurgeCommunityImplCopyWith<$Res> { - __$$PurgeCommunityImplCopyWithImpl( - _$PurgeCommunityImpl _value, $Res Function(_$PurgeCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of PurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$PurgeCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$PurgeCommunityImpl extends _PurgeCommunity { - const _$PurgeCommunityImpl( - {required this.communityId, this.reason, this.auth}) - : super._(); - - factory _$PurgeCommunityImpl.fromJson(Map json) => - _$$PurgeCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'PurgeCommunity(communityId: $communityId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PurgeCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, reason, auth); - - /// Create a copy of PurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PurgeCommunityImplCopyWith<_$PurgeCommunityImpl> get copyWith => - __$$PurgeCommunityImplCopyWithImpl<_$PurgeCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PurgeCommunityImplToJson( - this, - ); - } -} - -abstract class _PurgeCommunity extends PurgeCommunity { - const factory _PurgeCommunity( - {required final int communityId, - final String? reason, - final String? auth}) = _$PurgeCommunityImpl; - const _PurgeCommunity._() : super._(); - - factory _PurgeCommunity.fromJson(Map json) = - _$PurgeCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of PurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PurgeCommunityImplCopyWith<_$PurgeCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -PurgePost _$PurgePostFromJson(Map json) { - return _PurgePost.fromJson(json); -} - -/// @nodoc -mixin _$PurgePost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this PurgePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PurgePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PurgePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PurgePostCopyWith<$Res> { - factory $PurgePostCopyWith(PurgePost value, $Res Function(PurgePost) then) = - _$PurgePostCopyWithImpl<$Res, PurgePost>; - @useResult - $Res call({int postId, String? reason, String? auth}); -} - -/// @nodoc -class _$PurgePostCopyWithImpl<$Res, $Val extends PurgePost> - implements $PurgePostCopyWith<$Res> { - _$PurgePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PurgePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PurgePostImplCopyWith<$Res> - implements $PurgePostCopyWith<$Res> { - factory _$$PurgePostImplCopyWith( - _$PurgePostImpl value, $Res Function(_$PurgePostImpl) then) = - __$$PurgePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, String? reason, String? auth}); -} - -/// @nodoc -class __$$PurgePostImplCopyWithImpl<$Res> - extends _$PurgePostCopyWithImpl<$Res, _$PurgePostImpl> - implements _$$PurgePostImplCopyWith<$Res> { - __$$PurgePostImplCopyWithImpl( - _$PurgePostImpl _value, $Res Function(_$PurgePostImpl) _then) - : super(_value, _then); - - /// Create a copy of PurgePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$PurgePostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$PurgePostImpl extends _PurgePost { - const _$PurgePostImpl({required this.postId, this.reason, this.auth}) - : super._(); - - factory _$PurgePostImpl.fromJson(Map json) => - _$$PurgePostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'PurgePost(postId: $postId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PurgePostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, reason, auth); - - /// Create a copy of PurgePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PurgePostImplCopyWith<_$PurgePostImpl> get copyWith => - __$$PurgePostImplCopyWithImpl<_$PurgePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PurgePostImplToJson( - this, - ); - } -} - -abstract class _PurgePost extends PurgePost { - const factory _PurgePost( - {required final int postId, - final String? reason, - final String? auth}) = _$PurgePostImpl; - const _PurgePost._() : super._(); - - factory _PurgePost.fromJson(Map json) = - _$PurgePostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of PurgePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PurgePostImplCopyWith<_$PurgePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -PurgeComment _$PurgeCommentFromJson(Map json) { - return _PurgeComment.fromJson(json); -} - -/// @nodoc -mixin _$PurgeComment { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this PurgeComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PurgeComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PurgeCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PurgeCommentCopyWith<$Res> { - factory $PurgeCommentCopyWith( - PurgeComment value, $Res Function(PurgeComment) then) = - _$PurgeCommentCopyWithImpl<$Res, PurgeComment>; - @useResult - $Res call({int commentId, String? reason, String? auth}); -} - -/// @nodoc -class _$PurgeCommentCopyWithImpl<$Res, $Val extends PurgeComment> - implements $PurgeCommentCopyWith<$Res> { - _$PurgeCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PurgeComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PurgeCommentImplCopyWith<$Res> - implements $PurgeCommentCopyWith<$Res> { - factory _$$PurgeCommentImplCopyWith( - _$PurgeCommentImpl value, $Res Function(_$PurgeCommentImpl) then) = - __$$PurgeCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, String? reason, String? auth}); -} - -/// @nodoc -class __$$PurgeCommentImplCopyWithImpl<$Res> - extends _$PurgeCommentCopyWithImpl<$Res, _$PurgeCommentImpl> - implements _$$PurgeCommentImplCopyWith<$Res> { - __$$PurgeCommentImplCopyWithImpl( - _$PurgeCommentImpl _value, $Res Function(_$PurgeCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of PurgeComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$PurgeCommentImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$PurgeCommentImpl extends _PurgeComment { - const _$PurgeCommentImpl({required this.commentId, this.reason, this.auth}) - : super._(); - - factory _$PurgeCommentImpl.fromJson(Map json) => - _$$PurgeCommentImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'PurgeComment(commentId: $commentId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PurgeCommentImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, reason, auth); - - /// Create a copy of PurgeComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PurgeCommentImplCopyWith<_$PurgeCommentImpl> get copyWith => - __$$PurgeCommentImplCopyWithImpl<_$PurgeCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PurgeCommentImplToJson( - this, - ); - } -} - -abstract class _PurgeComment extends PurgeComment { - const factory _PurgeComment( - {required final int commentId, - final String? reason, - final String? auth}) = _$PurgeCommentImpl; - const _PurgeComment._() : super._(); - - factory _PurgeComment.fromJson(Map json) = - _$PurgeCommentImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of PurgeComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PurgeCommentImplCopyWith<_$PurgeCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ListAllMedia _$ListAllMediaFromJson(Map json) { - return _ListAllMedia.fromJson(json); -} - -/// @nodoc -mixin _$ListAllMedia { - int? get page => throw _privateConstructorUsedError; // v0.19.4 (optional) - int? get limit => throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListAllMedia to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListAllMedia - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListAllMediaCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListAllMediaCopyWith<$Res> { - factory $ListAllMediaCopyWith( - ListAllMedia value, $Res Function(ListAllMedia) then) = - _$ListAllMediaCopyWithImpl<$Res, ListAllMedia>; - @useResult - $Res call({int? page, int? limit, String? auth}); -} - -/// @nodoc -class _$ListAllMediaCopyWithImpl<$Res, $Val extends ListAllMedia> - implements $ListAllMediaCopyWith<$Res> { - _$ListAllMediaCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListAllMedia - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListAllMediaImplCopyWith<$Res> - implements $ListAllMediaCopyWith<$Res> { - factory _$$ListAllMediaImplCopyWith( - _$ListAllMediaImpl value, $Res Function(_$ListAllMediaImpl) then) = - __$$ListAllMediaImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? page, int? limit, String? auth}); -} - -/// @nodoc -class __$$ListAllMediaImplCopyWithImpl<$Res> - extends _$ListAllMediaCopyWithImpl<$Res, _$ListAllMediaImpl> - implements _$$ListAllMediaImplCopyWith<$Res> { - __$$ListAllMediaImplCopyWithImpl( - _$ListAllMediaImpl _value, $Res Function(_$ListAllMediaImpl) _then) - : super(_value, _then); - - /// Create a copy of ListAllMedia - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_$ListAllMediaImpl( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListAllMediaImpl extends _ListAllMedia { - const _$ListAllMediaImpl({this.page, this.limit, this.auth}) : super._(); - - factory _$ListAllMediaImpl.fromJson(Map json) => - _$$ListAllMediaImplFromJson(json); - - @override - final int? page; -// v0.19.4 (optional) - @override - final int? limit; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'ListAllMedia(page: $page, limit: $limit, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListAllMediaImpl && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, page, limit, auth); - - /// Create a copy of ListAllMedia - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListAllMediaImplCopyWith<_$ListAllMediaImpl> get copyWith => - __$$ListAllMediaImplCopyWithImpl<_$ListAllMediaImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListAllMediaImplToJson( - this, - ); - } -} - -abstract class _ListAllMedia extends ListAllMedia { - const factory _ListAllMedia( - {final int? page, - final int? limit, - final String? auth}) = _$ListAllMediaImpl; - const _ListAllMedia._() : super._(); - - factory _ListAllMedia.fromJson(Map json) = - _$ListAllMediaImpl.fromJson; - - @override - int? get page; // v0.19.4 (optional) - @override - int? get limit; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of ListAllMedia - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListAllMediaImplCopyWith<_$ListAllMediaImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/admin/admin.g.dart b/lib/src/v3/api/admin/admin.g.dart deleted file mode 100644 index 1c385b2f..00000000 --- a/lib/src/v3/api/admin/admin.g.dart +++ /dev/null @@ -1,242 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AddAdminImpl _$$AddAdminImplFromJson(Map json) => - _$AddAdminImpl( - personId: (json['person_id'] as num).toInt(), - added: json['added'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$AddAdminImplToJson(_$AddAdminImpl instance) { - final val = { - 'person_id': instance.personId, - 'added': instance.added, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$GetUnreadRegistrationApplicationCountImpl - _$$GetUnreadRegistrationApplicationCountImplFromJson( - Map json) => - _$GetUnreadRegistrationApplicationCountImpl( - auth: json['auth'] as String?, - ); - -Map _$$GetUnreadRegistrationApplicationCountImplToJson( - _$GetUnreadRegistrationApplicationCountImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListRegistrationApplicationsImpl _$$ListRegistrationApplicationsImplFromJson( - Map json) => - _$ListRegistrationApplicationsImpl( - unreadOnly: json['unread_only'] as bool?, - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListRegistrationApplicationsImplToJson( - _$ListRegistrationApplicationsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('unread_only', instance.unreadOnly); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('auth', instance.auth); - return val; -} - -_$ApproveRegistrationApplicationImpl - _$$ApproveRegistrationApplicationImplFromJson(Map json) => - _$ApproveRegistrationApplicationImpl( - id: (json['id'] as num).toInt(), - approve: json['approve'] as bool, - denyReason: json['deny_reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$ApproveRegistrationApplicationImplToJson( - _$ApproveRegistrationApplicationImpl instance) { - final val = { - 'id': instance.id, - 'approve': instance.approve, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('deny_reason', instance.denyReason); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetRegistrationApplicationImpl _$$GetRegistrationApplicationImplFromJson( - Map json) => - _$GetRegistrationApplicationImpl( - personId: (json['person_id'] as num).toInt(), - auth: json['auth'] as String?, - ); - -Map _$$GetRegistrationApplicationImplToJson( - _$GetRegistrationApplicationImpl instance) { - final val = { - 'person_id': instance.personId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$PurgePersonImpl _$$PurgePersonImplFromJson(Map json) => - _$PurgePersonImpl( - personId: (json['person_id'] as num).toInt(), - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$PurgePersonImplToJson(_$PurgePersonImpl instance) { - final val = { - 'person_id': instance.personId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$PurgeCommunityImpl _$$PurgeCommunityImplFromJson(Map json) => - _$PurgeCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$PurgeCommunityImplToJson( - _$PurgeCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$PurgePostImpl _$$PurgePostImplFromJson(Map json) => - _$PurgePostImpl( - postId: (json['post_id'] as num).toInt(), - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$PurgePostImplToJson(_$PurgePostImpl instance) { - final val = { - 'post_id': instance.postId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$PurgeCommentImpl _$$PurgeCommentImplFromJson(Map json) => - _$PurgeCommentImpl( - commentId: (json['comment_id'] as num).toInt(), - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$PurgeCommentImplToJson(_$PurgeCommentImpl instance) { - final val = { - 'comment_id': instance.commentId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$ListAllMediaImpl _$$ListAllMediaImplFromJson(Map json) => - _$ListAllMediaImpl( - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListAllMediaImplToJson(_$ListAllMediaImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/api.dart b/lib/src/v3/api/api.dart deleted file mode 100644 index 03a95604..00000000 --- a/lib/src/v3/api/api.dart +++ /dev/null @@ -1,12 +0,0 @@ -export 'admin/admin.dart'; -export 'comment/comment.dart'; -export 'community/community.dart'; -export 'custom_emoji/custom_emoji.dart'; -export 'federated_instances/federated_instances.dart'; -export 'modlog/modlog.dart'; -export 'post/post.dart'; -export 'private_message/private_message.dart'; -export 'resolve_object/resolve_object.dart'; -export 'search/search.dart'; -export 'site/site.dart'; -export 'user/user.dart'; diff --git a/lib/src/v3/api/comment/comment.dart b/lib/src/v3/api/comment/comment.dart deleted file mode 100644 index ca9e3028..00000000 --- a/lib/src/v3/api/comment/comment.dart +++ /dev/null @@ -1,416 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'comment.freezed.dart'; -part 'comment.g.dart'; - -/// Create a comment. -/// -/// `HTTP.POST /comment` -@freezed -class CreateComment - with _$CreateComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreateComment({ - required String content, // v0.18.0 - required int postId, // v0.18.0 - int? parentId, // v0.18.0 - int? languageId, // v0.18.0 - @deprecated String? formId, // v0.18.0 [deprecated in v0.19.0] - String? auth, - }) = _CreateComment; - - const CreateComment._(); - factory CreateComment.fromJson(Map json) => - _$CreateCommentFromJson(json); - - final path = '/comment'; - - final httpMethod = HttpMethod.post; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Edit a comment. -/// -/// `HTTP.PUT /comment` -@freezed -class EditComment - with _$EditComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory EditComment({ - required int commentId, // v0.18.0 - String? content, // v0.18.0 - int? languageId, // v0.18.0 - @deprecated String? formId, // v0.18.0 [deprecated in v0.19.0] - String? auth, - }) = _EditComment; - - const EditComment._(); - factory EditComment.fromJson(Map json) => - _$EditCommentFromJson(json); - - final path = '/comment'; - - final httpMethod = HttpMethod.put; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Delete a comment. -/// -/// `HTTP.POST /comment/delete` -@freezed -class DeleteComment - with _$DeleteComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory DeleteComment({ - required int commentId, // v0.18.0 - required bool deleted, // v0.18.0 - String? auth, - }) = _DeleteComment; - - const DeleteComment._(); - factory DeleteComment.fromJson(Map json) => - _$DeleteCommentFromJson(json); - - final path = '/comment/delete'; - - final httpMethod = HttpMethod.post; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// A moderator remove for a comment. -/// -/// `HTTP.POST /comment/remove` -@freezed -class RemoveComment - with _$RemoveComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory RemoveComment({ - required int commentId, // v0.18.0 - required bool removed, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _RemoveComment; - - const RemoveComment._(); - factory RemoveComment.fromJson(Map json) => - _$RemoveCommentFromJson(json); - - final path = '/comment/remove'; - - final httpMethod = HttpMethod.post; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Mark a comment as read. -/// -/// `HTTP.POST /comment/mark_as_read` -@freezed -class MarkCommentReplyAsRead - with _$MarkCommentReplyAsRead - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory MarkCommentReplyAsRead({ - required int commentReplyId, // v0.18.0 - required bool read, // v0.18.0 - String? auth, - }) = _MarkCommentReplyAsRead; - - const MarkCommentReplyAsRead._(); - factory MarkCommentReplyAsRead.fromJson(Map json) => - _$MarkCommentReplyAsReadFromJson(json); - - final path = '/comment/mark_as_read'; - - final httpMethod = HttpMethod.post; - - @override - CommentReplyResponse responseFactory(Map json) => - CommentReplyResponse.fromJson(json); -} - -/// Like / vote on a comment. -/// -/// `HTTP.POST /comment/like` -@freezed -class CreateCommentLike - with _$CreateCommentLike - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreateCommentLike({ - required int commentId, // v0.18.0 - required num score, // v0.18.0 - String? auth, - }) = _CreateCommentLike; - - const CreateCommentLike._(); - factory CreateCommentLike.fromJson(Map json) => - _$CreateCommentLikeFromJson(json); - - final path = '/comment/like'; - - final httpMethod = HttpMethod.post; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.2 and above -/// -/// List a comment's likes. Admin-only. -/// -/// `HTTP.GET /comment/like/list` -@freezed -class ListCommentLikes - with _$ListCommentLikes - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListCommentLikes({ - required int commentId, // v0.19.2 (required) - int? page, // v0.19.2 (optional) - int? limit, // v0.19.2 (optional) - String? auth, - }) = _ListCommentLikes; - - const ListCommentLikes._(); - factory ListCommentLikes.fromJson(Map json) => - _$ListCommentLikesFromJson(json); - - final path = '/comment/like/list'; - - final httpMethod = HttpMethod.get; - - @override - ListCommentLikesResponse responseFactory(Map json) => - ListCommentLikesResponse.fromJson(json); -} - -/// Save a comment. -/// -/// `HTTP.PUT /comment/save` -@freezed -class SaveComment - with _$SaveComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory SaveComment({ - required int commentId, // v0.18.0 - required bool save, // v0.18.0 - String? auth, - }) = _SaveComment; - - const SaveComment._(); - factory SaveComment.fromJson(Map json) => - _$SaveCommentFromJson(json); - - final path = '/comment/save'; - - final httpMethod = HttpMethod.put; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Distinguishes a comment (speak as moderator) -/// -/// `HTTP.POST /comment/distinguish` -@freezed -class DistinguishComment - with _$DistinguishComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory DistinguishComment({ - required int commentId, // v0.18.0 - required bool distinguished, // v0.18.0 - String? auth, - }) = _DistinguishComment; - - const DistinguishComment._(); - factory DistinguishComment.fromJson(Map json) => - _$DistinguishCommentFromJson(json); - - final path = '/comment/distinguish'; - - final httpMethod = HttpMethod.post; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Get / fetch comments. -/// -/// `HTTP.GET /comment/list` -@freezed -class GetComments - with _$GetComments - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetComments({ - @JsonKey(name: 'type_') ListingType? type, // v0.18.0 - CommentSortType? sort, // v0.18.0 - int? maxDepth, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - int? communityId, // v0.18.0 - String? communityName, // v0.18.0 - int? postId, // v0.18.0 - int? parentId, // v0.18.0 - bool? savedOnly, // v0.18.0 - bool? likedOnly, // v0.19.0 (optional) - bool? dislikedOnly, // v0.19.0 (optional) - String? auth, - }) = _GetComments; - - const GetComments._(); - factory GetComments.fromJson(Map json) => - _$GetCommentsFromJson(json); - - final path = '/comment/list'; - - final httpMethod = HttpMethod.get; - - @override - GetCommentsResponse responseFactory(Map json) => - GetCommentsResponse.fromJson(json); -} - -/// Get / fetch a comment. -/// -/// `HTTP.GET /comment` -@freezed -class GetComment - with _$GetComment - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetComment({ - required int id, // v0.18.0 - String? auth, - }) = _GetComment; - - const GetComment._(); - factory GetComment.fromJson(Map json) => - _$GetCommentFromJson(json); - - final path = '/comment'; - - final httpMethod = HttpMethod.get; - - @override - CommentResponse responseFactory(Map json) => - CommentResponse.fromJson(json); -} - -/// Report a comment. -/// -/// `HTTP.POST /comment/report` -@freezed -class CreateCommentReport - with _$CreateCommentReport - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreateCommentReport({ - required int commentId, // v0.18.0 - required String reason, // v0.18.0 - String? auth, - }) = _CreateCommentReport; - - const CreateCommentReport._(); - factory CreateCommentReport.fromJson(Map json) => - _$CreateCommentReportFromJson(json); - - final path = '/comment/report'; - - final httpMethod = HttpMethod.post; - - @override - CommentReportResponse responseFactory(Map json) => - CommentReportResponse.fromJson(json); -} - -/// Resolve a comment report. Only a mod can do this. -/// -/// `HTTP.PUT /comment/report/resolve` -@freezed -class ResolveCommentReport - with _$ResolveCommentReport - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ResolveCommentReport({ - required int reportId, // v0.18.0 - required bool resolved, // v0.18.0 - String? auth, - }) = _ResolveCommentReport; - - const ResolveCommentReport._(); - factory ResolveCommentReport.fromJson(Map json) => - _$ResolveCommentReportFromJson(json); - - final path = '/comment/report/resolve'; - - final httpMethod = HttpMethod.put; - - @override - CommentReportResponse responseFactory(Map json) => - CommentReportResponse.fromJson(json); -} - -/// List comment reports. -/// -/// `HTTP.GET /comment/report/list` -@freezed -class ListCommentReports - with _$ListCommentReports - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListCommentReports({ - int? commentId, // v0.19.4 (optional) - int? page, // v0.18.0 - int? limit, // v0.18.0 - bool? unresolvedOnly, // v0.18.0 - int? communityId, // v0.18.0 - String? auth, - }) = _ListCommentReports; - - const ListCommentReports._(); - factory ListCommentReports.fromJson(Map json) => - _$ListCommentReportsFromJson(json); - - final path = '/comment/report/list'; - - final httpMethod = HttpMethod.get; - - @override - ListCommentReportsResponse responseFactory(Map json) => - ListCommentReportsResponse.fromJson(json); -} diff --git a/lib/src/v3/api/comment/comment.freezed.dart b/lib/src/v3/api/comment/comment.freezed.dart deleted file mode 100644 index 6be6747c..00000000 --- a/lib/src/v3/api/comment/comment.freezed.dart +++ /dev/null @@ -1,3171 +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 'comment.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'); - -CreateComment _$CreateCommentFromJson(Map json) { - return _CreateComment.fromJson(json); -} - -/// @nodoc -mixin _$CreateComment { - String get content => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - int? get parentId => throw _privateConstructorUsedError; // v0.18.0 - int? get languageId => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get formId => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreateComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreateCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreateCommentCopyWith<$Res> { - factory $CreateCommentCopyWith( - CreateComment value, $Res Function(CreateComment) then) = - _$CreateCommentCopyWithImpl<$Res, CreateComment>; - @useResult - $Res call( - {String content, - int postId, - int? parentId, - int? languageId, - @deprecated String? formId, - String? auth}); -} - -/// @nodoc -class _$CreateCommentCopyWithImpl<$Res, $Val extends CreateComment> - implements $CreateCommentCopyWith<$Res> { - _$CreateCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreateComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? content = null, - Object? postId = null, - Object? parentId = freezed, - Object? languageId = freezed, - Object? formId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - parentId: freezed == parentId - ? _value.parentId - : parentId // ignore: cast_nullable_to_non_nullable - as int?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - formId: freezed == formId - ? _value.formId - : formId // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreateCommentImplCopyWith<$Res> - implements $CreateCommentCopyWith<$Res> { - factory _$$CreateCommentImplCopyWith( - _$CreateCommentImpl value, $Res Function(_$CreateCommentImpl) then) = - __$$CreateCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String content, - int postId, - int? parentId, - int? languageId, - @deprecated String? formId, - String? auth}); -} - -/// @nodoc -class __$$CreateCommentImplCopyWithImpl<$Res> - extends _$CreateCommentCopyWithImpl<$Res, _$CreateCommentImpl> - implements _$$CreateCommentImplCopyWith<$Res> { - __$$CreateCommentImplCopyWithImpl( - _$CreateCommentImpl _value, $Res Function(_$CreateCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of CreateComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? content = null, - Object? postId = null, - Object? parentId = freezed, - Object? languageId = freezed, - Object? formId = freezed, - Object? auth = freezed, - }) { - return _then(_$CreateCommentImpl( - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - parentId: freezed == parentId - ? _value.parentId - : parentId // ignore: cast_nullable_to_non_nullable - as int?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - formId: freezed == formId - ? _value.formId - : formId // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreateCommentImpl extends _CreateComment { - const _$CreateCommentImpl( - {required this.content, - required this.postId, - this.parentId, - this.languageId, - @deprecated this.formId, - this.auth}) - : super._(); - - factory _$CreateCommentImpl.fromJson(Map json) => - _$$CreateCommentImplFromJson(json); - - @override - final String content; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final int? parentId; -// v0.18.0 - @override - final int? languageId; -// v0.18.0 - @override - @deprecated - final String? formId; -// v0.18.0 [deprecated in v0.19.0] - @override - final String? auth; - - @override - String toString() { - return 'CreateComment(content: $content, postId: $postId, parentId: $parentId, languageId: $languageId, formId: $formId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreateCommentImpl && - (identical(other.content, content) || other.content == content) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.parentId, parentId) || - other.parentId == parentId) && - (identical(other.languageId, languageId) || - other.languageId == languageId) && - (identical(other.formId, formId) || other.formId == formId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, content, postId, parentId, languageId, formId, auth); - - /// Create a copy of CreateComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreateCommentImplCopyWith<_$CreateCommentImpl> get copyWith => - __$$CreateCommentImplCopyWithImpl<_$CreateCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CreateCommentImplToJson( - this, - ); - } -} - -abstract class _CreateComment extends CreateComment { - const factory _CreateComment( - {required final String content, - required final int postId, - final int? parentId, - final int? languageId, - @deprecated final String? formId, - final String? auth}) = _$CreateCommentImpl; - const _CreateComment._() : super._(); - - factory _CreateComment.fromJson(Map json) = - _$CreateCommentImpl.fromJson; - - @override - String get content; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - int? get parentId; // v0.18.0 - @override - int? get languageId; // v0.18.0 - @override - @deprecated - String? get formId; // v0.18.0 [deprecated in v0.19.0] - @override - String? get auth; - - /// Create a copy of CreateComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreateCommentImplCopyWith<_$CreateCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -EditComment _$EditCommentFromJson(Map json) { - return _EditComment.fromJson(json); -} - -/// @nodoc -mixin _$EditComment { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - String? get content => throw _privateConstructorUsedError; // v0.18.0 - int? get languageId => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get formId => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this EditComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of EditComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $EditCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $EditCommentCopyWith<$Res> { - factory $EditCommentCopyWith( - EditComment value, $Res Function(EditComment) then) = - _$EditCommentCopyWithImpl<$Res, EditComment>; - @useResult - $Res call( - {int commentId, - String? content, - int? languageId, - @deprecated String? formId, - String? auth}); -} - -/// @nodoc -class _$EditCommentCopyWithImpl<$Res, $Val extends EditComment> - implements $EditCommentCopyWith<$Res> { - _$EditCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of EditComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? content = freezed, - Object? languageId = freezed, - Object? formId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - content: freezed == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - formId: freezed == formId - ? _value.formId - : formId // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$EditCommentImplCopyWith<$Res> - implements $EditCommentCopyWith<$Res> { - factory _$$EditCommentImplCopyWith( - _$EditCommentImpl value, $Res Function(_$EditCommentImpl) then) = - __$$EditCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int commentId, - String? content, - int? languageId, - @deprecated String? formId, - String? auth}); -} - -/// @nodoc -class __$$EditCommentImplCopyWithImpl<$Res> - extends _$EditCommentCopyWithImpl<$Res, _$EditCommentImpl> - implements _$$EditCommentImplCopyWith<$Res> { - __$$EditCommentImplCopyWithImpl( - _$EditCommentImpl _value, $Res Function(_$EditCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of EditComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? content = freezed, - Object? languageId = freezed, - Object? formId = freezed, - Object? auth = freezed, - }) { - return _then(_$EditCommentImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - content: freezed == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - formId: freezed == formId - ? _value.formId - : formId // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$EditCommentImpl extends _EditComment { - const _$EditCommentImpl( - {required this.commentId, - this.content, - this.languageId, - @deprecated this.formId, - this.auth}) - : super._(); - - factory _$EditCommentImpl.fromJson(Map json) => - _$$EditCommentImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final String? content; -// v0.18.0 - @override - final int? languageId; -// v0.18.0 - @override - @deprecated - final String? formId; -// v0.18.0 [deprecated in v0.19.0] - @override - final String? auth; - - @override - String toString() { - return 'EditComment(commentId: $commentId, content: $content, languageId: $languageId, formId: $formId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditCommentImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.content, content) || other.content == content) && - (identical(other.languageId, languageId) || - other.languageId == languageId) && - (identical(other.formId, formId) || other.formId == formId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, commentId, content, languageId, formId, auth); - - /// Create a copy of EditComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$EditCommentImplCopyWith<_$EditCommentImpl> get copyWith => - __$$EditCommentImplCopyWithImpl<_$EditCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$EditCommentImplToJson( - this, - ); - } -} - -abstract class _EditComment extends EditComment { - const factory _EditComment( - {required final int commentId, - final String? content, - final int? languageId, - @deprecated final String? formId, - final String? auth}) = _$EditCommentImpl; - const _EditComment._() : super._(); - - factory _EditComment.fromJson(Map json) = - _$EditCommentImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - String? get content; // v0.18.0 - @override - int? get languageId; // v0.18.0 - @override - @deprecated - String? get formId; // v0.18.0 [deprecated in v0.19.0] - @override - String? get auth; - - /// Create a copy of EditComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$EditCommentImplCopyWith<_$EditCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DeleteComment _$DeleteCommentFromJson(Map json) { - return _DeleteComment.fromJson(json); -} - -/// @nodoc -mixin _$DeleteComment { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DeleteComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeleteComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeleteCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeleteCommentCopyWith<$Res> { - factory $DeleteCommentCopyWith( - DeleteComment value, $Res Function(DeleteComment) then) = - _$DeleteCommentCopyWithImpl<$Res, DeleteComment>; - @useResult - $Res call({int commentId, bool deleted, String? auth}); -} - -/// @nodoc -class _$DeleteCommentCopyWithImpl<$Res, $Val extends DeleteComment> - implements $DeleteCommentCopyWith<$Res> { - _$DeleteCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeleteComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeleteCommentImplCopyWith<$Res> - implements $DeleteCommentCopyWith<$Res> { - factory _$$DeleteCommentImplCopyWith( - _$DeleteCommentImpl value, $Res Function(_$DeleteCommentImpl) then) = - __$$DeleteCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, bool deleted, String? auth}); -} - -/// @nodoc -class __$$DeleteCommentImplCopyWithImpl<$Res> - extends _$DeleteCommentCopyWithImpl<$Res, _$DeleteCommentImpl> - implements _$$DeleteCommentImplCopyWith<$Res> { - __$$DeleteCommentImplCopyWithImpl( - _$DeleteCommentImpl _value, $Res Function(_$DeleteCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of DeleteComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_$DeleteCommentImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DeleteCommentImpl extends _DeleteComment { - const _$DeleteCommentImpl( - {required this.commentId, required this.deleted, this.auth}) - : super._(); - - factory _$DeleteCommentImpl.fromJson(Map json) => - _$$DeleteCommentImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'DeleteComment(commentId: $commentId, deleted: $deleted, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeleteCommentImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, deleted, auth); - - /// Create a copy of DeleteComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeleteCommentImplCopyWith<_$DeleteCommentImpl> get copyWith => - __$$DeleteCommentImplCopyWithImpl<_$DeleteCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DeleteCommentImplToJson( - this, - ); - } -} - -abstract class _DeleteComment extends DeleteComment { - const factory _DeleteComment( - {required final int commentId, - required final bool deleted, - final String? auth}) = _$DeleteCommentImpl; - const _DeleteComment._() : super._(); - - factory _DeleteComment.fromJson(Map json) = - _$DeleteCommentImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - String? get auth; - - /// Create a copy of DeleteComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeleteCommentImplCopyWith<_$DeleteCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -RemoveComment _$RemoveCommentFromJson(Map json) { - return _RemoveComment.fromJson(json); -} - -/// @nodoc -mixin _$RemoveComment { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this RemoveComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of RemoveComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RemoveCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RemoveCommentCopyWith<$Res> { - factory $RemoveCommentCopyWith( - RemoveComment value, $Res Function(RemoveComment) then) = - _$RemoveCommentCopyWithImpl<$Res, RemoveComment>; - @useResult - $Res call({int commentId, bool removed, String? reason, String? auth}); -} - -/// @nodoc -class _$RemoveCommentCopyWithImpl<$Res, $Val extends RemoveComment> - implements $RemoveCommentCopyWith<$Res> { - _$RemoveCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of RemoveComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? removed = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$RemoveCommentImplCopyWith<$Res> - implements $RemoveCommentCopyWith<$Res> { - factory _$$RemoveCommentImplCopyWith( - _$RemoveCommentImpl value, $Res Function(_$RemoveCommentImpl) then) = - __$$RemoveCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, bool removed, String? reason, String? auth}); -} - -/// @nodoc -class __$$RemoveCommentImplCopyWithImpl<$Res> - extends _$RemoveCommentCopyWithImpl<$Res, _$RemoveCommentImpl> - implements _$$RemoveCommentImplCopyWith<$Res> { - __$$RemoveCommentImplCopyWithImpl( - _$RemoveCommentImpl _value, $Res Function(_$RemoveCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of RemoveComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? removed = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$RemoveCommentImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$RemoveCommentImpl extends _RemoveComment { - const _$RemoveCommentImpl( - {required this.commentId, required this.removed, this.reason, this.auth}) - : super._(); - - factory _$RemoveCommentImpl.fromJson(Map json) => - _$$RemoveCommentImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'RemoveComment(commentId: $commentId, removed: $removed, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RemoveCommentImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, commentId, removed, reason, auth); - - /// Create a copy of RemoveComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RemoveCommentImplCopyWith<_$RemoveCommentImpl> get copyWith => - __$$RemoveCommentImplCopyWithImpl<_$RemoveCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RemoveCommentImplToJson( - this, - ); - } -} - -abstract class _RemoveComment extends RemoveComment { - const factory _RemoveComment( - {required final int commentId, - required final bool removed, - final String? reason, - final String? auth}) = _$RemoveCommentImpl; - const _RemoveComment._() : super._(); - - factory _RemoveComment.fromJson(Map json) = - _$RemoveCommentImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of RemoveComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RemoveCommentImplCopyWith<_$RemoveCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -MarkCommentReplyAsRead _$MarkCommentReplyAsReadFromJson( - Map json) { - return _MarkCommentReplyAsRead.fromJson(json); -} - -/// @nodoc -mixin _$MarkCommentReplyAsRead { - int get commentReplyId => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this MarkCommentReplyAsRead to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MarkCommentReplyAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MarkCommentReplyAsReadCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MarkCommentReplyAsReadCopyWith<$Res> { - factory $MarkCommentReplyAsReadCopyWith(MarkCommentReplyAsRead value, - $Res Function(MarkCommentReplyAsRead) then) = - _$MarkCommentReplyAsReadCopyWithImpl<$Res, MarkCommentReplyAsRead>; - @useResult - $Res call({int commentReplyId, bool read, String? auth}); -} - -/// @nodoc -class _$MarkCommentReplyAsReadCopyWithImpl<$Res, - $Val extends MarkCommentReplyAsRead> - implements $MarkCommentReplyAsReadCopyWith<$Res> { - _$MarkCommentReplyAsReadCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MarkCommentReplyAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReplyId = null, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentReplyId: null == commentReplyId - ? _value.commentReplyId - : commentReplyId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$MarkCommentReplyAsReadImplCopyWith<$Res> - implements $MarkCommentReplyAsReadCopyWith<$Res> { - factory _$$MarkCommentReplyAsReadImplCopyWith( - _$MarkCommentReplyAsReadImpl value, - $Res Function(_$MarkCommentReplyAsReadImpl) then) = - __$$MarkCommentReplyAsReadImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentReplyId, bool read, String? auth}); -} - -/// @nodoc -class __$$MarkCommentReplyAsReadImplCopyWithImpl<$Res> - extends _$MarkCommentReplyAsReadCopyWithImpl<$Res, - _$MarkCommentReplyAsReadImpl> - implements _$$MarkCommentReplyAsReadImplCopyWith<$Res> { - __$$MarkCommentReplyAsReadImplCopyWithImpl( - _$MarkCommentReplyAsReadImpl _value, - $Res Function(_$MarkCommentReplyAsReadImpl) _then) - : super(_value, _then); - - /// Create a copy of MarkCommentReplyAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReplyId = null, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_$MarkCommentReplyAsReadImpl( - commentReplyId: null == commentReplyId - ? _value.commentReplyId - : commentReplyId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$MarkCommentReplyAsReadImpl extends _MarkCommentReplyAsRead { - const _$MarkCommentReplyAsReadImpl( - {required this.commentReplyId, required this.read, this.auth}) - : super._(); - - factory _$MarkCommentReplyAsReadImpl.fromJson(Map json) => - _$$MarkCommentReplyAsReadImplFromJson(json); - - @override - final int commentReplyId; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'MarkCommentReplyAsRead(commentReplyId: $commentReplyId, read: $read, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MarkCommentReplyAsReadImpl && - (identical(other.commentReplyId, commentReplyId) || - other.commentReplyId == commentReplyId) && - (identical(other.read, read) || other.read == read) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentReplyId, read, auth); - - /// Create a copy of MarkCommentReplyAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MarkCommentReplyAsReadImplCopyWith<_$MarkCommentReplyAsReadImpl> - get copyWith => __$$MarkCommentReplyAsReadImplCopyWithImpl< - _$MarkCommentReplyAsReadImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MarkCommentReplyAsReadImplToJson( - this, - ); - } -} - -abstract class _MarkCommentReplyAsRead extends MarkCommentReplyAsRead { - const factory _MarkCommentReplyAsRead( - {required final int commentReplyId, - required final bool read, - final String? auth}) = _$MarkCommentReplyAsReadImpl; - const _MarkCommentReplyAsRead._() : super._(); - - factory _MarkCommentReplyAsRead.fromJson(Map json) = - _$MarkCommentReplyAsReadImpl.fromJson; - - @override - int get commentReplyId; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - String? get auth; - - /// Create a copy of MarkCommentReplyAsRead - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MarkCommentReplyAsReadImplCopyWith<_$MarkCommentReplyAsReadImpl> - get copyWith => throw _privateConstructorUsedError; -} - -CreateCommentLike _$CreateCommentLikeFromJson(Map json) { - return _CreateCommentLike.fromJson(json); -} - -/// @nodoc -mixin _$CreateCommentLike { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - num get score => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreateCommentLike to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateCommentLike - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreateCommentLikeCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreateCommentLikeCopyWith<$Res> { - factory $CreateCommentLikeCopyWith( - CreateCommentLike value, $Res Function(CreateCommentLike) then) = - _$CreateCommentLikeCopyWithImpl<$Res, CreateCommentLike>; - @useResult - $Res call({int commentId, num score, String? auth}); -} - -/// @nodoc -class _$CreateCommentLikeCopyWithImpl<$Res, $Val extends CreateCommentLike> - implements $CreateCommentLikeCopyWith<$Res> { - _$CreateCommentLikeCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreateCommentLike - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? score = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as num, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreateCommentLikeImplCopyWith<$Res> - implements $CreateCommentLikeCopyWith<$Res> { - factory _$$CreateCommentLikeImplCopyWith(_$CreateCommentLikeImpl value, - $Res Function(_$CreateCommentLikeImpl) then) = - __$$CreateCommentLikeImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, num score, String? auth}); -} - -/// @nodoc -class __$$CreateCommentLikeImplCopyWithImpl<$Res> - extends _$CreateCommentLikeCopyWithImpl<$Res, _$CreateCommentLikeImpl> - implements _$$CreateCommentLikeImplCopyWith<$Res> { - __$$CreateCommentLikeImplCopyWithImpl(_$CreateCommentLikeImpl _value, - $Res Function(_$CreateCommentLikeImpl) _then) - : super(_value, _then); - - /// Create a copy of CreateCommentLike - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? score = null, - Object? auth = freezed, - }) { - return _then(_$CreateCommentLikeImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as num, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreateCommentLikeImpl extends _CreateCommentLike { - const _$CreateCommentLikeImpl( - {required this.commentId, required this.score, this.auth}) - : super._(); - - factory _$CreateCommentLikeImpl.fromJson(Map json) => - _$$CreateCommentLikeImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final num score; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreateCommentLike(commentId: $commentId, score: $score, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreateCommentLikeImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.score, score) || other.score == score) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, score, auth); - - /// Create a copy of CreateCommentLike - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreateCommentLikeImplCopyWith<_$CreateCommentLikeImpl> get copyWith => - __$$CreateCommentLikeImplCopyWithImpl<_$CreateCommentLikeImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreateCommentLikeImplToJson( - this, - ); - } -} - -abstract class _CreateCommentLike extends CreateCommentLike { - const factory _CreateCommentLike( - {required final int commentId, - required final num score, - final String? auth}) = _$CreateCommentLikeImpl; - const _CreateCommentLike._() : super._(); - - factory _CreateCommentLike.fromJson(Map json) = - _$CreateCommentLikeImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - num get score; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreateCommentLike - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreateCommentLikeImplCopyWith<_$CreateCommentLikeImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ListCommentLikes _$ListCommentLikesFromJson(Map json) { - return _ListCommentLikes.fromJson(json); -} - -/// @nodoc -mixin _$ListCommentLikes { - int get commentId => throw _privateConstructorUsedError; // v0.19.2 (required) - int? get page => throw _privateConstructorUsedError; // v0.19.2 (optional) - int? get limit => throw _privateConstructorUsedError; // v0.19.2 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListCommentLikes to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListCommentLikes - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListCommentLikesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListCommentLikesCopyWith<$Res> { - factory $ListCommentLikesCopyWith( - ListCommentLikes value, $Res Function(ListCommentLikes) then) = - _$ListCommentLikesCopyWithImpl<$Res, ListCommentLikes>; - @useResult - $Res call({int commentId, int? page, int? limit, String? auth}); -} - -/// @nodoc -class _$ListCommentLikesCopyWithImpl<$Res, $Val extends ListCommentLikes> - implements $ListCommentLikesCopyWith<$Res> { - _$ListCommentLikesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListCommentLikes - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListCommentLikesImplCopyWith<$Res> - implements $ListCommentLikesCopyWith<$Res> { - factory _$$ListCommentLikesImplCopyWith(_$ListCommentLikesImpl value, - $Res Function(_$ListCommentLikesImpl) then) = - __$$ListCommentLikesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, int? page, int? limit, String? auth}); -} - -/// @nodoc -class __$$ListCommentLikesImplCopyWithImpl<$Res> - extends _$ListCommentLikesCopyWithImpl<$Res, _$ListCommentLikesImpl> - implements _$$ListCommentLikesImplCopyWith<$Res> { - __$$ListCommentLikesImplCopyWithImpl(_$ListCommentLikesImpl _value, - $Res Function(_$ListCommentLikesImpl) _then) - : super(_value, _then); - - /// Create a copy of ListCommentLikes - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_$ListCommentLikesImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListCommentLikesImpl extends _ListCommentLikes { - const _$ListCommentLikesImpl( - {required this.commentId, this.page, this.limit, this.auth}) - : super._(); - - factory _$ListCommentLikesImpl.fromJson(Map json) => - _$$ListCommentLikesImplFromJson(json); - - @override - final int commentId; -// v0.19.2 (required) - @override - final int? page; -// v0.19.2 (optional) - @override - final int? limit; -// v0.19.2 (optional) - @override - final String? auth; - - @override - String toString() { - return 'ListCommentLikes(commentId: $commentId, page: $page, limit: $limit, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListCommentLikesImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, page, limit, auth); - - /// Create a copy of ListCommentLikes - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListCommentLikesImplCopyWith<_$ListCommentLikesImpl> get copyWith => - __$$ListCommentLikesImplCopyWithImpl<_$ListCommentLikesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ListCommentLikesImplToJson( - this, - ); - } -} - -abstract class _ListCommentLikes extends ListCommentLikes { - const factory _ListCommentLikes( - {required final int commentId, - final int? page, - final int? limit, - final String? auth}) = _$ListCommentLikesImpl; - const _ListCommentLikes._() : super._(); - - factory _ListCommentLikes.fromJson(Map json) = - _$ListCommentLikesImpl.fromJson; - - @override - int get commentId; // v0.19.2 (required) - @override - int? get page; // v0.19.2 (optional) - @override - int? get limit; // v0.19.2 (optional) - @override - String? get auth; - - /// Create a copy of ListCommentLikes - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListCommentLikesImplCopyWith<_$ListCommentLikesImpl> get copyWith => - throw _privateConstructorUsedError; -} - -SaveComment _$SaveCommentFromJson(Map json) { - return _SaveComment.fromJson(json); -} - -/// @nodoc -mixin _$SaveComment { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - bool get save => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this SaveComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SaveComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SaveCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SaveCommentCopyWith<$Res> { - factory $SaveCommentCopyWith( - SaveComment value, $Res Function(SaveComment) then) = - _$SaveCommentCopyWithImpl<$Res, SaveComment>; - @useResult - $Res call({int commentId, bool save, String? auth}); -} - -/// @nodoc -class _$SaveCommentCopyWithImpl<$Res, $Val extends SaveComment> - implements $SaveCommentCopyWith<$Res> { - _$SaveCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SaveComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? save = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - save: null == save - ? _value.save - : save // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SaveCommentImplCopyWith<$Res> - implements $SaveCommentCopyWith<$Res> { - factory _$$SaveCommentImplCopyWith( - _$SaveCommentImpl value, $Res Function(_$SaveCommentImpl) then) = - __$$SaveCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, bool save, String? auth}); -} - -/// @nodoc -class __$$SaveCommentImplCopyWithImpl<$Res> - extends _$SaveCommentCopyWithImpl<$Res, _$SaveCommentImpl> - implements _$$SaveCommentImplCopyWith<$Res> { - __$$SaveCommentImplCopyWithImpl( - _$SaveCommentImpl _value, $Res Function(_$SaveCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of SaveComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? save = null, - Object? auth = freezed, - }) { - return _then(_$SaveCommentImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - save: null == save - ? _value.save - : save // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$SaveCommentImpl extends _SaveComment { - const _$SaveCommentImpl( - {required this.commentId, required this.save, this.auth}) - : super._(); - - factory _$SaveCommentImpl.fromJson(Map json) => - _$$SaveCommentImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final bool save; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'SaveComment(commentId: $commentId, save: $save, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SaveCommentImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.save, save) || other.save == save) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, save, auth); - - /// Create a copy of SaveComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SaveCommentImplCopyWith<_$SaveCommentImpl> get copyWith => - __$$SaveCommentImplCopyWithImpl<_$SaveCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SaveCommentImplToJson( - this, - ); - } -} - -abstract class _SaveComment extends SaveComment { - const factory _SaveComment( - {required final int commentId, - required final bool save, - final String? auth}) = _$SaveCommentImpl; - const _SaveComment._() : super._(); - - factory _SaveComment.fromJson(Map json) = - _$SaveCommentImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - bool get save; // v0.18.0 - @override - String? get auth; - - /// Create a copy of SaveComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SaveCommentImplCopyWith<_$SaveCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DistinguishComment _$DistinguishCommentFromJson(Map json) { - return _DistinguishComment.fromJson(json); -} - -/// @nodoc -mixin _$DistinguishComment { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - bool get distinguished => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DistinguishComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DistinguishComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DistinguishCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DistinguishCommentCopyWith<$Res> { - factory $DistinguishCommentCopyWith( - DistinguishComment value, $Res Function(DistinguishComment) then) = - _$DistinguishCommentCopyWithImpl<$Res, DistinguishComment>; - @useResult - $Res call({int commentId, bool distinguished, String? auth}); -} - -/// @nodoc -class _$DistinguishCommentCopyWithImpl<$Res, $Val extends DistinguishComment> - implements $DistinguishCommentCopyWith<$Res> { - _$DistinguishCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DistinguishComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? distinguished = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - distinguished: null == distinguished - ? _value.distinguished - : distinguished // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DistinguishCommentImplCopyWith<$Res> - implements $DistinguishCommentCopyWith<$Res> { - factory _$$DistinguishCommentImplCopyWith(_$DistinguishCommentImpl value, - $Res Function(_$DistinguishCommentImpl) then) = - __$$DistinguishCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, bool distinguished, String? auth}); -} - -/// @nodoc -class __$$DistinguishCommentImplCopyWithImpl<$Res> - extends _$DistinguishCommentCopyWithImpl<$Res, _$DistinguishCommentImpl> - implements _$$DistinguishCommentImplCopyWith<$Res> { - __$$DistinguishCommentImplCopyWithImpl(_$DistinguishCommentImpl _value, - $Res Function(_$DistinguishCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of DistinguishComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? distinguished = null, - Object? auth = freezed, - }) { - return _then(_$DistinguishCommentImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - distinguished: null == distinguished - ? _value.distinguished - : distinguished // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DistinguishCommentImpl extends _DistinguishComment { - const _$DistinguishCommentImpl( - {required this.commentId, required this.distinguished, this.auth}) - : super._(); - - factory _$DistinguishCommentImpl.fromJson(Map json) => - _$$DistinguishCommentImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final bool distinguished; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'DistinguishComment(commentId: $commentId, distinguished: $distinguished, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DistinguishCommentImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.distinguished, distinguished) || - other.distinguished == distinguished) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, distinguished, auth); - - /// Create a copy of DistinguishComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DistinguishCommentImplCopyWith<_$DistinguishCommentImpl> get copyWith => - __$$DistinguishCommentImplCopyWithImpl<_$DistinguishCommentImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$DistinguishCommentImplToJson( - this, - ); - } -} - -abstract class _DistinguishComment extends DistinguishComment { - const factory _DistinguishComment( - {required final int commentId, - required final bool distinguished, - final String? auth}) = _$DistinguishCommentImpl; - const _DistinguishComment._() : super._(); - - factory _DistinguishComment.fromJson(Map json) = - _$DistinguishCommentImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - bool get distinguished; // v0.18.0 - @override - String? get auth; - - /// Create a copy of DistinguishComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DistinguishCommentImplCopyWith<_$DistinguishCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetComments _$GetCommentsFromJson(Map json) { - return _GetComments.fromJson(json); -} - -/// @nodoc -mixin _$GetComments { - @JsonKey(name: 'type_') - ListingType? get type => throw _privateConstructorUsedError; // v0.18.0 - CommentSortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - int? get maxDepth => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get communityName => throw _privateConstructorUsedError; // v0.18.0 - int? get postId => throw _privateConstructorUsedError; // v0.18.0 - int? get parentId => throw _privateConstructorUsedError; // v0.18.0 - bool? get savedOnly => throw _privateConstructorUsedError; // v0.18.0 - bool? get likedOnly => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get dislikedOnly => - throw _privateConstructorUsedError; // v0.19.0 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetComments to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetComments - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCommentsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCommentsCopyWith<$Res> { - factory $GetCommentsCopyWith( - GetComments value, $Res Function(GetComments) then) = - _$GetCommentsCopyWithImpl<$Res, GetComments>; - @useResult - $Res call( - {@JsonKey(name: 'type_') ListingType? type, - CommentSortType? sort, - int? maxDepth, - int? page, - int? limit, - int? communityId, - String? communityName, - int? postId, - int? parentId, - bool? savedOnly, - bool? likedOnly, - bool? dislikedOnly, - String? auth}); -} - -/// @nodoc -class _$GetCommentsCopyWithImpl<$Res, $Val extends GetComments> - implements $GetCommentsCopyWith<$Res> { - _$GetCommentsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetComments - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sort = freezed, - Object? maxDepth = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? communityId = freezed, - Object? communityName = freezed, - Object? postId = freezed, - Object? parentId = freezed, - Object? savedOnly = freezed, - Object? likedOnly = freezed, - Object? dislikedOnly = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ListingType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as CommentSortType?, - maxDepth: freezed == maxDepth - ? _value.maxDepth - : maxDepth // ignore: cast_nullable_to_non_nullable - as int?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - communityName: freezed == communityName - ? _value.communityName - : communityName // ignore: cast_nullable_to_non_nullable - as String?, - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - parentId: freezed == parentId - ? _value.parentId - : parentId // ignore: cast_nullable_to_non_nullable - as int?, - savedOnly: freezed == savedOnly - ? _value.savedOnly - : savedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - likedOnly: freezed == likedOnly - ? _value.likedOnly - : likedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - dislikedOnly: freezed == dislikedOnly - ? _value.dislikedOnly - : dislikedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetCommentsImplCopyWith<$Res> - implements $GetCommentsCopyWith<$Res> { - factory _$$GetCommentsImplCopyWith( - _$GetCommentsImpl value, $Res Function(_$GetCommentsImpl) then) = - __$$GetCommentsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@JsonKey(name: 'type_') ListingType? type, - CommentSortType? sort, - int? maxDepth, - int? page, - int? limit, - int? communityId, - String? communityName, - int? postId, - int? parentId, - bool? savedOnly, - bool? likedOnly, - bool? dislikedOnly, - String? auth}); -} - -/// @nodoc -class __$$GetCommentsImplCopyWithImpl<$Res> - extends _$GetCommentsCopyWithImpl<$Res, _$GetCommentsImpl> - implements _$$GetCommentsImplCopyWith<$Res> { - __$$GetCommentsImplCopyWithImpl( - _$GetCommentsImpl _value, $Res Function(_$GetCommentsImpl) _then) - : super(_value, _then); - - /// Create a copy of GetComments - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sort = freezed, - Object? maxDepth = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? communityId = freezed, - Object? communityName = freezed, - Object? postId = freezed, - Object? parentId = freezed, - Object? savedOnly = freezed, - Object? likedOnly = freezed, - Object? dislikedOnly = freezed, - Object? auth = freezed, - }) { - return _then(_$GetCommentsImpl( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ListingType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as CommentSortType?, - maxDepth: freezed == maxDepth - ? _value.maxDepth - : maxDepth // ignore: cast_nullable_to_non_nullable - as int?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - communityName: freezed == communityName - ? _value.communityName - : communityName // ignore: cast_nullable_to_non_nullable - as String?, - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - parentId: freezed == parentId - ? _value.parentId - : parentId // ignore: cast_nullable_to_non_nullable - as int?, - savedOnly: freezed == savedOnly - ? _value.savedOnly - : savedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - likedOnly: freezed == likedOnly - ? _value.likedOnly - : likedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - dislikedOnly: freezed == dislikedOnly - ? _value.dislikedOnly - : dislikedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetCommentsImpl extends _GetComments { - const _$GetCommentsImpl( - {@JsonKey(name: 'type_') this.type, - this.sort, - this.maxDepth, - this.page, - this.limit, - this.communityId, - this.communityName, - this.postId, - this.parentId, - this.savedOnly, - this.likedOnly, - this.dislikedOnly, - this.auth}) - : super._(); - - factory _$GetCommentsImpl.fromJson(Map json) => - _$$GetCommentsImplFromJson(json); - - @override - @JsonKey(name: 'type_') - final ListingType? type; -// v0.18.0 - @override - final CommentSortType? sort; -// v0.18.0 - @override - final int? maxDepth; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final String? communityName; -// v0.18.0 - @override - final int? postId; -// v0.18.0 - @override - final int? parentId; -// v0.18.0 - @override - final bool? savedOnly; -// v0.18.0 - @override - final bool? likedOnly; -// v0.19.0 (optional) - @override - final bool? dislikedOnly; -// v0.19.0 (optional) - @override - final String? auth; - - @override - String toString() { - return 'GetComments(type: $type, sort: $sort, maxDepth: $maxDepth, page: $page, limit: $limit, communityId: $communityId, communityName: $communityName, postId: $postId, parentId: $parentId, savedOnly: $savedOnly, likedOnly: $likedOnly, dislikedOnly: $dislikedOnly, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCommentsImpl && - (identical(other.type, type) || other.type == type) && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.maxDepth, maxDepth) || - other.maxDepth == maxDepth) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.communityName, communityName) || - other.communityName == communityName) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.parentId, parentId) || - other.parentId == parentId) && - (identical(other.savedOnly, savedOnly) || - other.savedOnly == savedOnly) && - (identical(other.likedOnly, likedOnly) || - other.likedOnly == likedOnly) && - (identical(other.dislikedOnly, dislikedOnly) || - other.dislikedOnly == dislikedOnly) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - type, - sort, - maxDepth, - page, - limit, - communityId, - communityName, - postId, - parentId, - savedOnly, - likedOnly, - dislikedOnly, - auth); - - /// Create a copy of GetComments - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCommentsImplCopyWith<_$GetCommentsImpl> get copyWith => - __$$GetCommentsImplCopyWithImpl<_$GetCommentsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetCommentsImplToJson( - this, - ); - } -} - -abstract class _GetComments extends GetComments { - const factory _GetComments( - {@JsonKey(name: 'type_') final ListingType? type, - final CommentSortType? sort, - final int? maxDepth, - final int? page, - final int? limit, - final int? communityId, - final String? communityName, - final int? postId, - final int? parentId, - final bool? savedOnly, - final bool? likedOnly, - final bool? dislikedOnly, - final String? auth}) = _$GetCommentsImpl; - const _GetComments._() : super._(); - - factory _GetComments.fromJson(Map json) = - _$GetCommentsImpl.fromJson; - - @override - @JsonKey(name: 'type_') - ListingType? get type; // v0.18.0 - @override - CommentSortType? get sort; // v0.18.0 - @override - int? get maxDepth; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - String? get communityName; // v0.18.0 - @override - int? get postId; // v0.18.0 - @override - int? get parentId; // v0.18.0 - @override - bool? get savedOnly; // v0.18.0 - @override - bool? get likedOnly; // v0.19.0 (optional) - @override - bool? get dislikedOnly; // v0.19.0 (optional) - @override - String? get auth; - - /// Create a copy of GetComments - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCommentsImplCopyWith<_$GetCommentsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetComment _$GetCommentFromJson(Map json) { - return _GetComment.fromJson(json); -} - -/// @nodoc -mixin _$GetComment { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCommentCopyWith<$Res> { - factory $GetCommentCopyWith( - GetComment value, $Res Function(GetComment) then) = - _$GetCommentCopyWithImpl<$Res, GetComment>; - @useResult - $Res call({int id, String? auth}); -} - -/// @nodoc -class _$GetCommentCopyWithImpl<$Res, $Val extends GetComment> - implements $GetCommentCopyWith<$Res> { - _$GetCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetCommentImplCopyWith<$Res> - implements $GetCommentCopyWith<$Res> { - factory _$$GetCommentImplCopyWith( - _$GetCommentImpl value, $Res Function(_$GetCommentImpl) then) = - __$$GetCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int id, String? auth}); -} - -/// @nodoc -class __$$GetCommentImplCopyWithImpl<$Res> - extends _$GetCommentCopyWithImpl<$Res, _$GetCommentImpl> - implements _$$GetCommentImplCopyWith<$Res> { - __$$GetCommentImplCopyWithImpl( - _$GetCommentImpl _value, $Res Function(_$GetCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of GetComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? auth = freezed, - }) { - return _then(_$GetCommentImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetCommentImpl extends _GetComment { - const _$GetCommentImpl({required this.id, this.auth}) : super._(); - - factory _$GetCommentImpl.fromJson(Map json) => - _$$GetCommentImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetComment(id: $id, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCommentImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, auth); - - /// Create a copy of GetComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCommentImplCopyWith<_$GetCommentImpl> get copyWith => - __$$GetCommentImplCopyWithImpl<_$GetCommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetCommentImplToJson( - this, - ); - } -} - -abstract class _GetComment extends GetComment { - const factory _GetComment({required final int id, final String? auth}) = - _$GetCommentImpl; - const _GetComment._() : super._(); - - factory _GetComment.fromJson(Map json) = - _$GetCommentImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCommentImplCopyWith<_$GetCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} - -CreateCommentReport _$CreateCommentReportFromJson(Map json) { - return _CreateCommentReport.fromJson(json); -} - -/// @nodoc -mixin _$CreateCommentReport { - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - String get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreateCommentReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateCommentReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreateCommentReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreateCommentReportCopyWith<$Res> { - factory $CreateCommentReportCopyWith( - CreateCommentReport value, $Res Function(CreateCommentReport) then) = - _$CreateCommentReportCopyWithImpl<$Res, CreateCommentReport>; - @useResult - $Res call({int commentId, String reason, String? auth}); -} - -/// @nodoc -class _$CreateCommentReportCopyWithImpl<$Res, $Val extends CreateCommentReport> - implements $CreateCommentReportCopyWith<$Res> { - _$CreateCommentReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreateCommentReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? reason = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreateCommentReportImplCopyWith<$Res> - implements $CreateCommentReportCopyWith<$Res> { - factory _$$CreateCommentReportImplCopyWith(_$CreateCommentReportImpl value, - $Res Function(_$CreateCommentReportImpl) then) = - __$$CreateCommentReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int commentId, String reason, String? auth}); -} - -/// @nodoc -class __$$CreateCommentReportImplCopyWithImpl<$Res> - extends _$CreateCommentReportCopyWithImpl<$Res, _$CreateCommentReportImpl> - implements _$$CreateCommentReportImplCopyWith<$Res> { - __$$CreateCommentReportImplCopyWithImpl(_$CreateCommentReportImpl _value, - $Res Function(_$CreateCommentReportImpl) _then) - : super(_value, _then); - - /// Create a copy of CreateCommentReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = null, - Object? reason = null, - Object? auth = freezed, - }) { - return _then(_$CreateCommentReportImpl( - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreateCommentReportImpl extends _CreateCommentReport { - const _$CreateCommentReportImpl( - {required this.commentId, required this.reason, this.auth}) - : super._(); - - factory _$CreateCommentReportImpl.fromJson(Map json) => - _$$CreateCommentReportImplFromJson(json); - - @override - final int commentId; -// v0.18.0 - @override - final String reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreateCommentReport(commentId: $commentId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreateCommentReportImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentId, reason, auth); - - /// Create a copy of CreateCommentReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreateCommentReportImplCopyWith<_$CreateCommentReportImpl> get copyWith => - __$$CreateCommentReportImplCopyWithImpl<_$CreateCommentReportImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreateCommentReportImplToJson( - this, - ); - } -} - -abstract class _CreateCommentReport extends CreateCommentReport { - const factory _CreateCommentReport( - {required final int commentId, - required final String reason, - final String? auth}) = _$CreateCommentReportImpl; - const _CreateCommentReport._() : super._(); - - factory _CreateCommentReport.fromJson(Map json) = - _$CreateCommentReportImpl.fromJson; - - @override - int get commentId; // v0.18.0 - @override - String get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreateCommentReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreateCommentReportImplCopyWith<_$CreateCommentReportImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ResolveCommentReport _$ResolveCommentReportFromJson(Map json) { - return _ResolveCommentReport.fromJson(json); -} - -/// @nodoc -mixin _$ResolveCommentReport { - int get reportId => throw _privateConstructorUsedError; // v0.18.0 - bool get resolved => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ResolveCommentReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ResolveCommentReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ResolveCommentReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ResolveCommentReportCopyWith<$Res> { - factory $ResolveCommentReportCopyWith(ResolveCommentReport value, - $Res Function(ResolveCommentReport) then) = - _$ResolveCommentReportCopyWithImpl<$Res, ResolveCommentReport>; - @useResult - $Res call({int reportId, bool resolved, String? auth}); -} - -/// @nodoc -class _$ResolveCommentReportCopyWithImpl<$Res, - $Val extends ResolveCommentReport> - implements $ResolveCommentReportCopyWith<$Res> { - _$ResolveCommentReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ResolveCommentReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? reportId = null, - Object? resolved = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - reportId: null == reportId - ? _value.reportId - : reportId // ignore: cast_nullable_to_non_nullable - as int, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ResolveCommentReportImplCopyWith<$Res> - implements $ResolveCommentReportCopyWith<$Res> { - factory _$$ResolveCommentReportImplCopyWith(_$ResolveCommentReportImpl value, - $Res Function(_$ResolveCommentReportImpl) then) = - __$$ResolveCommentReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int reportId, bool resolved, String? auth}); -} - -/// @nodoc -class __$$ResolveCommentReportImplCopyWithImpl<$Res> - extends _$ResolveCommentReportCopyWithImpl<$Res, _$ResolveCommentReportImpl> - implements _$$ResolveCommentReportImplCopyWith<$Res> { - __$$ResolveCommentReportImplCopyWithImpl(_$ResolveCommentReportImpl _value, - $Res Function(_$ResolveCommentReportImpl) _then) - : super(_value, _then); - - /// Create a copy of ResolveCommentReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? reportId = null, - Object? resolved = null, - Object? auth = freezed, - }) { - return _then(_$ResolveCommentReportImpl( - reportId: null == reportId - ? _value.reportId - : reportId // ignore: cast_nullable_to_non_nullable - as int, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ResolveCommentReportImpl extends _ResolveCommentReport { - const _$ResolveCommentReportImpl( - {required this.reportId, required this.resolved, this.auth}) - : super._(); - - factory _$ResolveCommentReportImpl.fromJson(Map json) => - _$$ResolveCommentReportImplFromJson(json); - - @override - final int reportId; -// v0.18.0 - @override - final bool resolved; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ResolveCommentReport(reportId: $reportId, resolved: $resolved, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ResolveCommentReportImpl && - (identical(other.reportId, reportId) || - other.reportId == reportId) && - (identical(other.resolved, resolved) || - other.resolved == resolved) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, reportId, resolved, auth); - - /// Create a copy of ResolveCommentReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ResolveCommentReportImplCopyWith<_$ResolveCommentReportImpl> - get copyWith => - __$$ResolveCommentReportImplCopyWithImpl<_$ResolveCommentReportImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ResolveCommentReportImplToJson( - this, - ); - } -} - -abstract class _ResolveCommentReport extends ResolveCommentReport { - const factory _ResolveCommentReport( - {required final int reportId, - required final bool resolved, - final String? auth}) = _$ResolveCommentReportImpl; - const _ResolveCommentReport._() : super._(); - - factory _ResolveCommentReport.fromJson(Map json) = - _$ResolveCommentReportImpl.fromJson; - - @override - int get reportId; // v0.18.0 - @override - bool get resolved; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ResolveCommentReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ResolveCommentReportImplCopyWith<_$ResolveCommentReportImpl> - get copyWith => throw _privateConstructorUsedError; -} - -ListCommentReports _$ListCommentReportsFromJson(Map json) { - return _ListCommentReports.fromJson(json); -} - -/// @nodoc -mixin _$ListCommentReports { - int? get commentId => - throw _privateConstructorUsedError; // v0.19.4 (optional) - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - bool? get unresolvedOnly => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListCommentReports to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListCommentReports - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListCommentReportsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListCommentReportsCopyWith<$Res> { - factory $ListCommentReportsCopyWith( - ListCommentReports value, $Res Function(ListCommentReports) then) = - _$ListCommentReportsCopyWithImpl<$Res, ListCommentReports>; - @useResult - $Res call( - {int? commentId, - int? page, - int? limit, - bool? unresolvedOnly, - int? communityId, - String? auth}); -} - -/// @nodoc -class _$ListCommentReportsCopyWithImpl<$Res, $Val extends ListCommentReports> - implements $ListCommentReportsCopyWith<$Res> { - _$ListCommentReportsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListCommentReports - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? unresolvedOnly = freezed, - Object? communityId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - commentId: freezed == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unresolvedOnly: freezed == unresolvedOnly - ? _value.unresolvedOnly - : unresolvedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListCommentReportsImplCopyWith<$Res> - implements $ListCommentReportsCopyWith<$Res> { - factory _$$ListCommentReportsImplCopyWith(_$ListCommentReportsImpl value, - $Res Function(_$ListCommentReportsImpl) then) = - __$$ListCommentReportsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? commentId, - int? page, - int? limit, - bool? unresolvedOnly, - int? communityId, - String? auth}); -} - -/// @nodoc -class __$$ListCommentReportsImplCopyWithImpl<$Res> - extends _$ListCommentReportsCopyWithImpl<$Res, _$ListCommentReportsImpl> - implements _$$ListCommentReportsImplCopyWith<$Res> { - __$$ListCommentReportsImplCopyWithImpl(_$ListCommentReportsImpl _value, - $Res Function(_$ListCommentReportsImpl) _then) - : super(_value, _then); - - /// Create a copy of ListCommentReports - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentId = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? unresolvedOnly = freezed, - Object? communityId = freezed, - Object? auth = freezed, - }) { - return _then(_$ListCommentReportsImpl( - commentId: freezed == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unresolvedOnly: freezed == unresolvedOnly - ? _value.unresolvedOnly - : unresolvedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListCommentReportsImpl extends _ListCommentReports { - const _$ListCommentReportsImpl( - {this.commentId, - this.page, - this.limit, - this.unresolvedOnly, - this.communityId, - this.auth}) - : super._(); - - factory _$ListCommentReportsImpl.fromJson(Map json) => - _$$ListCommentReportsImplFromJson(json); - - @override - final int? commentId; -// v0.19.4 (optional) - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final bool? unresolvedOnly; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ListCommentReports(commentId: $commentId, page: $page, limit: $limit, unresolvedOnly: $unresolvedOnly, communityId: $communityId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListCommentReportsImpl && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.unresolvedOnly, unresolvedOnly) || - other.unresolvedOnly == unresolvedOnly) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, commentId, page, limit, unresolvedOnly, communityId, auth); - - /// Create a copy of ListCommentReports - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListCommentReportsImplCopyWith<_$ListCommentReportsImpl> get copyWith => - __$$ListCommentReportsImplCopyWithImpl<_$ListCommentReportsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ListCommentReportsImplToJson( - this, - ); - } -} - -abstract class _ListCommentReports extends ListCommentReports { - const factory _ListCommentReports( - {final int? commentId, - final int? page, - final int? limit, - final bool? unresolvedOnly, - final int? communityId, - final String? auth}) = _$ListCommentReportsImpl; - const _ListCommentReports._() : super._(); - - factory _ListCommentReports.fromJson(Map json) = - _$ListCommentReportsImpl.fromJson; - - @override - int? get commentId; // v0.19.4 (optional) - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - bool? get unresolvedOnly; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ListCommentReports - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListCommentReportsImplCopyWith<_$ListCommentReportsImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/comment/comment.g.dart b/lib/src/v3/api/comment/comment.g.dart deleted file mode 100644 index ffde10bc..00000000 --- a/lib/src/v3/api/comment/comment.g.dart +++ /dev/null @@ -1,380 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CreateCommentImpl _$$CreateCommentImplFromJson(Map json) => - _$CreateCommentImpl( - content: json['content'] as String, - postId: (json['post_id'] as num).toInt(), - parentId: (json['parent_id'] as num?)?.toInt(), - languageId: (json['language_id'] as num?)?.toInt(), - formId: json['form_id'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$CreateCommentImplToJson(_$CreateCommentImpl instance) { - final val = { - 'content': instance.content, - 'post_id': instance.postId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('parent_id', instance.parentId); - writeNotNull('language_id', instance.languageId); - writeNotNull('form_id', instance.formId); - writeNotNull('auth', instance.auth); - return val; -} - -_$EditCommentImpl _$$EditCommentImplFromJson(Map json) => - _$EditCommentImpl( - commentId: (json['comment_id'] as num).toInt(), - content: json['content'] as String?, - languageId: (json['language_id'] as num?)?.toInt(), - formId: json['form_id'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$EditCommentImplToJson(_$EditCommentImpl instance) { - final val = { - 'comment_id': instance.commentId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('content', instance.content); - writeNotNull('language_id', instance.languageId); - writeNotNull('form_id', instance.formId); - writeNotNull('auth', instance.auth); - return val; -} - -_$DeleteCommentImpl _$$DeleteCommentImplFromJson(Map json) => - _$DeleteCommentImpl( - commentId: (json['comment_id'] as num).toInt(), - deleted: json['deleted'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$DeleteCommentImplToJson(_$DeleteCommentImpl instance) { - final val = { - 'comment_id': instance.commentId, - 'deleted': instance.deleted, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$RemoveCommentImpl _$$RemoveCommentImplFromJson(Map json) => - _$RemoveCommentImpl( - commentId: (json['comment_id'] as num).toInt(), - removed: json['removed'] as bool, - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$RemoveCommentImplToJson(_$RemoveCommentImpl instance) { - final val = { - 'comment_id': instance.commentId, - 'removed': instance.removed, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$MarkCommentReplyAsReadImpl _$$MarkCommentReplyAsReadImplFromJson( - Map json) => - _$MarkCommentReplyAsReadImpl( - commentReplyId: (json['comment_reply_id'] as num).toInt(), - read: json['read'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$MarkCommentReplyAsReadImplToJson( - _$MarkCommentReplyAsReadImpl instance) { - final val = { - 'comment_reply_id': instance.commentReplyId, - 'read': instance.read, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$CreateCommentLikeImpl _$$CreateCommentLikeImplFromJson( - Map json) => - _$CreateCommentLikeImpl( - commentId: (json['comment_id'] as num).toInt(), - score: json['score'] as num, - auth: json['auth'] as String?, - ); - -Map _$$CreateCommentLikeImplToJson( - _$CreateCommentLikeImpl instance) { - final val = { - 'comment_id': instance.commentId, - 'score': instance.score, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListCommentLikesImpl _$$ListCommentLikesImplFromJson( - Map json) => - _$ListCommentLikesImpl( - commentId: (json['comment_id'] as num).toInt(), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListCommentLikesImplToJson( - _$ListCommentLikesImpl instance) { - final val = { - 'comment_id': instance.commentId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('auth', instance.auth); - return val; -} - -_$SaveCommentImpl _$$SaveCommentImplFromJson(Map json) => - _$SaveCommentImpl( - commentId: (json['comment_id'] as num).toInt(), - save: json['save'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$SaveCommentImplToJson(_$SaveCommentImpl instance) { - final val = { - 'comment_id': instance.commentId, - 'save': instance.save, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$DistinguishCommentImpl _$$DistinguishCommentImplFromJson( - Map json) => - _$DistinguishCommentImpl( - commentId: (json['comment_id'] as num).toInt(), - distinguished: json['distinguished'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$DistinguishCommentImplToJson( - _$DistinguishCommentImpl instance) { - final val = { - 'comment_id': instance.commentId, - 'distinguished': instance.distinguished, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$GetCommentsImpl _$$GetCommentsImplFromJson(Map json) => - _$GetCommentsImpl( - type: json['type_'] == null ? null : ListingType.fromJson(json['type_']), - sort: - json['sort'] == null ? null : CommentSortType.fromJson(json['sort']), - maxDepth: (json['max_depth'] as num?)?.toInt(), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - communityId: (json['community_id'] as num?)?.toInt(), - communityName: json['community_name'] as String?, - postId: (json['post_id'] as num?)?.toInt(), - parentId: (json['parent_id'] as num?)?.toInt(), - savedOnly: json['saved_only'] as bool?, - likedOnly: json['liked_only'] as bool?, - dislikedOnly: json['disliked_only'] as bool?, - auth: json['auth'] as String?, - ); - -Map _$$GetCommentsImplToJson(_$GetCommentsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('type_', instance.type?.toJson()); - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('max_depth', instance.maxDepth); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('community_id', instance.communityId); - writeNotNull('community_name', instance.communityName); - writeNotNull('post_id', instance.postId); - writeNotNull('parent_id', instance.parentId); - writeNotNull('saved_only', instance.savedOnly); - writeNotNull('liked_only', instance.likedOnly); - writeNotNull('disliked_only', instance.dislikedOnly); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetCommentImpl _$$GetCommentImplFromJson(Map json) => - _$GetCommentImpl( - id: (json['id'] as num).toInt(), - auth: json['auth'] as String?, - ); - -Map _$$GetCommentImplToJson(_$GetCommentImpl instance) { - final val = { - 'id': instance.id, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$CreateCommentReportImpl _$$CreateCommentReportImplFromJson( - Map json) => - _$CreateCommentReportImpl( - commentId: (json['comment_id'] as num).toInt(), - reason: json['reason'] as String, - auth: json['auth'] as String?, - ); - -Map _$$CreateCommentReportImplToJson( - _$CreateCommentReportImpl instance) { - final val = { - 'comment_id': instance.commentId, - 'reason': instance.reason, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ResolveCommentReportImpl _$$ResolveCommentReportImplFromJson( - Map json) => - _$ResolveCommentReportImpl( - reportId: (json['report_id'] as num).toInt(), - resolved: json['resolved'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$ResolveCommentReportImplToJson( - _$ResolveCommentReportImpl instance) { - final val = { - 'report_id': instance.reportId, - 'resolved': instance.resolved, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListCommentReportsImpl _$$ListCommentReportsImplFromJson( - Map json) => - _$ListCommentReportsImpl( - commentId: (json['comment_id'] as num?)?.toInt(), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - unresolvedOnly: json['unresolved_only'] as bool?, - communityId: (json['community_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListCommentReportsImplToJson( - _$ListCommentReportsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('comment_id', instance.commentId); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('unresolved_only', instance.unresolvedOnly); - writeNotNull('community_id', instance.communityId); - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/community/community.dart b/lib/src/v3/api/community/community.dart deleted file mode 100644 index e0512aa7..00000000 --- a/lib/src/v3/api/community/community.dart +++ /dev/null @@ -1,370 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'community.freezed.dart'; -part 'community.g.dart'; - -/// Get / fetch a community. -/// -/// `HTTP.GET /community` -@freezed -class GetCommunity - with _$GetCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetCommunity({ - int? id, // v0.18.0 - String? name, // v0.18.0 - String? auth, - }) = _GetCommunity; - - const GetCommunity._(); - factory GetCommunity.fromJson(Map json) => - _$GetCommunityFromJson(json); - - final path = '/community'; - - final httpMethod = HttpMethod.get; - - @override - GetCommunityResponse responseFactory(Map json) => - GetCommunityResponse.fromJson(json); -} - -/// Create a new community. -/// -/// `HTTP.POST /community` -@freezed -class CreateCommunity - with _$CreateCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreateCommunity({ - required String name, // v0.18.0 - required String title, // v0.18.0 - String? description, // v0.18.0 - String? icon, // v0.18.0 - String? banner, // v0.18.0 - bool? nsfw, // v0.18.0 - bool? postingRestrictedToMods, // v0.18.0 - List? discussionLanguages, // v0.18.0 - CommunityVisibility? visibility, // v0.19.4 (optional) - String? auth, - }) = _CreateCommunity; - - const CreateCommunity._(); - factory CreateCommunity.fromJson(Map json) => - _$CreateCommunityFromJson(json); - - final path = '/community'; - - final httpMethod = HttpMethod.post; - - @override - CommunityResponse responseFactory(Map json) => - CommunityResponse.fromJson(json); -} - -/// Edit a community. -/// -/// `HTTP.PUT /community` -@freezed -class EditCommunity - with _$EditCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory EditCommunity({ - required int communityId, // v0.18.0 - String? title, // v0.18.0 - String? description, // v0.18.0 - String? icon, // v0.18.0 - String? banner, // v0.18.0 - bool? nsfw, // v0.18.0 - bool? postingRestrictedToMods, // v0.18.0 - List? discussionLanguages, // v0.18.0 - CommunityVisibility? visibility, // v0.19.4 (required) - String? auth, - }) = _EditCommunity; - - const EditCommunity._(); - factory EditCommunity.fromJson(Map json) => - _$EditCommunityFromJson(json); - - final path = '/community'; - - final httpMethod = HttpMethod.put; - - @override - CommunityResponse responseFactory(Map json) => - CommunityResponse.fromJson(json); -} - -/// List communities, with various filters. -/// -/// `HTTP.GET /community/list` -@freezed -class ListCommunities - with _$ListCommunities - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListCommunities({ - @JsonKey(name: 'type_') ListingType? type, // v0.18.0 - SortType? sort, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - bool? showNsfw, // v0.18.1 - String? auth, - }) = _ListCommunities; - - const ListCommunities._(); - factory ListCommunities.fromJson(Map json) => - _$ListCommunitiesFromJson(json); - - final path = '/community/list'; - - final httpMethod = HttpMethod.get; - - @override - ListCommunitiesResponse responseFactory(Map json) => - ListCommunitiesResponse.fromJson(json); -} - -/// Follow / subscribe to a community. -/// -/// `HTTP.POST /community/follow` -@freezed -class FollowCommunity - with _$FollowCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory FollowCommunity({ - required int communityId, // v0.18.0 - required bool follow, // v0.18.0 - String? auth, - }) = _FollowCommunity; - - const FollowCommunity._(); - factory FollowCommunity.fromJson(Map json) => - _$FollowCommunityFromJson(json); - - final path = '/community/follow'; - - final httpMethod = HttpMethod.post; - - @override - CommunityResponse responseFactory(Map json) => - CommunityResponse.fromJson(json); -} - -/// Block a community. -/// -/// `HTTP.POST /community/block` -@freezed -class BlockCommunity - with _$BlockCommunity - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory BlockCommunity({ - required int communityId, // v0.18.0 - required bool block, // v0.18.0 - String? auth, - }) = _BlockCommunity; - - const BlockCommunity._(); - factory BlockCommunity.fromJson(Map json) => - _$BlockCommunityFromJson(json); - - final path = '/community/block'; - - final httpMethod = HttpMethod.post; - - @override - BlockCommunityResponse responseFactory(Map json) => - BlockCommunityResponse.fromJson(json); -} - -/// Delete a community. -/// -/// `HTTP.POST /community/delete` -@freezed -class DeleteCommunity - with _$DeleteCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory DeleteCommunity({ - required int communityId, // v0.18.0 - required bool deleted, // v0.18.0 - String? auth, - }) = _DeleteCommunity; - - const DeleteCommunity._(); - factory DeleteCommunity.fromJson(Map json) => - _$DeleteCommunityFromJson(json); - - final path = '/community/delete'; - - final httpMethod = HttpMethod.post; - - @override - CommunityResponse responseFactory(Map json) => - CommunityResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Hide a community from public / "All" view. Admins only. -/// -/// `HTTP.PUT /community/hide` -@freezed -class HideCommunity - with _$HideCommunity - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory HideCommunity({ - required int communityId, // v0.18.0 - required bool hidden, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _HideCommunity; - - const HideCommunity._(); - factory HideCommunity.fromJson(Map json) => - _$HideCommunityFromJson(json); - - final path = '/community/hide'; - - final httpMethod = HttpMethod.put; - - @override - HideCommunityResponse responseFactory(Map json) => - HideCommunityResponse.fromJson(json); -} - -/// A moderator remove for a community. -/// -/// `HTTP.POST /community/remove` -@freezed -class RemoveCommunity - with _$RemoveCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory RemoveCommunity({ - required int communityId, // v0.18.0 - required bool removed, // v0.18.0 - String? reason, // v0.18.0 - @deprecated int? expires, // v0.18.0 [deprecated in v0.19.0] - String? auth, - }) = _RemoveCommunity; - - const RemoveCommunity._(); - factory RemoveCommunity.fromJson(Map json) => - _$RemoveCommunityFromJson(json); - - final path = '/community/remove'; - - final httpMethod = HttpMethod.post; - - @override - CommunityResponse responseFactory(Map json) => - CommunityResponse.fromJson(json); -} - -/// Transfer your community to an existing moderator. -/// -/// `HTTP.POST /community/transfer` -@freezed -class TransferCommunity - with _$TransferCommunity - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory TransferCommunity({ - required int communityId, // v0.18.0 - required int personId, // v0.18.0 - String? auth, - }) = _TransferCommunity; - - const TransferCommunity._(); - factory TransferCommunity.fromJson(Map json) => - _$TransferCommunityFromJson(json); - - final path = '/community/transfer'; - - final httpMethod = HttpMethod.post; - - @override - GetCommunityResponse responseFactory(Map json) => - GetCommunityResponse.fromJson(json); -} - -/// Ban a user from a community. -/// -/// `HTTP.POST /community/ban_user` -@freezed -class BanFromCommunity - with _$BanFromCommunity - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory BanFromCommunity({ - required int communityId, // v0.18.0 - required int personId, // v0.18.0 - required bool ban, // v0.18.0 - bool? removeData, // v0.18.0 - String? reason, // v0.18.0 - int? expires, // v0.18.0 - String? auth, - }) = _BanFromCommunity; - - const BanFromCommunity._(); - factory BanFromCommunity.fromJson(Map json) => - _$BanFromCommunityFromJson(json); - - final path = '/community/ban_user'; - - final httpMethod = HttpMethod.post; - - @override - BanFromCommunityResponse responseFactory(Map json) => - BanFromCommunityResponse.fromJson(json); -} - -/// Add a moderator to your community. -/// -/// `HTTP.POST /community/mod` -@freezed -class AddModToCommunity - with _$AddModToCommunity - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory AddModToCommunity({ - required int communityId, // v0.18.0 - required int personId, // v0.18.0 - required bool added, // v0.18.0 - String? auth, - }) = _AddModToCommunity; - - const AddModToCommunity._(); - factory AddModToCommunity.fromJson(Map json) => - _$AddModToCommunityFromJson(json); - - final path = '/community/mod'; - - final httpMethod = HttpMethod.post; - - @override - AddModToCommunityResponse responseFactory(Map json) => - AddModToCommunityResponse.fromJson(json); -} diff --git a/lib/src/v3/api/community/community.freezed.dart b/lib/src/v3/api/community/community.freezed.dart deleted file mode 100644 index 0e6a2aa1..00000000 --- a/lib/src/v3/api/community/community.freezed.dart +++ /dev/null @@ -1,2950 +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 'community.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'); - -GetCommunity _$GetCommunityFromJson(Map json) { - return _GetCommunity.fromJson(json); -} - -/// @nodoc -mixin _$GetCommunity { - int? get id => throw _privateConstructorUsedError; // v0.18.0 - String? get name => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCommunityCopyWith<$Res> { - factory $GetCommunityCopyWith( - GetCommunity value, $Res Function(GetCommunity) then) = - _$GetCommunityCopyWithImpl<$Res, GetCommunity>; - @useResult - $Res call({int? id, String? name, String? auth}); -} - -/// @nodoc -class _$GetCommunityCopyWithImpl<$Res, $Val extends GetCommunity> - implements $GetCommunityCopyWith<$Res> { - _$GetCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? name = freezed, - Object? auth = 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?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetCommunityImplCopyWith<$Res> - implements $GetCommunityCopyWith<$Res> { - factory _$$GetCommunityImplCopyWith( - _$GetCommunityImpl value, $Res Function(_$GetCommunityImpl) then) = - __$$GetCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? id, String? name, String? auth}); -} - -/// @nodoc -class __$$GetCommunityImplCopyWithImpl<$Res> - extends _$GetCommunityCopyWithImpl<$Res, _$GetCommunityImpl> - implements _$$GetCommunityImplCopyWith<$Res> { - __$$GetCommunityImplCopyWithImpl( - _$GetCommunityImpl _value, $Res Function(_$GetCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of GetCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? name = freezed, - Object? auth = freezed, - }) { - return _then(_$GetCommunityImpl( - 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?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetCommunityImpl extends _GetCommunity { - const _$GetCommunityImpl({this.id, this.name, this.auth}) : super._(); - - factory _$GetCommunityImpl.fromJson(Map json) => - _$$GetCommunityImplFromJson(json); - - @override - final int? id; -// v0.18.0 - @override - final String? name; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetCommunity(id: $id, name: $name, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, name, auth); - - /// Create a copy of GetCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCommunityImplCopyWith<_$GetCommunityImpl> get copyWith => - __$$GetCommunityImplCopyWithImpl<_$GetCommunityImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetCommunityImplToJson( - this, - ); - } -} - -abstract class _GetCommunity extends GetCommunity { - const factory _GetCommunity( - {final int? id, - final String? name, - final String? auth}) = _$GetCommunityImpl; - const _GetCommunity._() : super._(); - - factory _GetCommunity.fromJson(Map json) = - _$GetCommunityImpl.fromJson; - - @override - int? get id; // v0.18.0 - @override - String? get name; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCommunityImplCopyWith<_$GetCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -CreateCommunity _$CreateCommunityFromJson(Map json) { - return _CreateCommunity.fromJson(json); -} - -/// @nodoc -mixin _$CreateCommunity { - String get name => throw _privateConstructorUsedError; // v0.18.0 - String get title => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - String? get icon => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - bool? get nsfw => throw _privateConstructorUsedError; // v0.18.0 - bool? get postingRestrictedToMods => - throw _privateConstructorUsedError; // v0.18.0 - List? get discussionLanguages => - throw _privateConstructorUsedError; // v0.18.0 - CommunityVisibility? get visibility => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreateCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreateCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreateCommunityCopyWith<$Res> { - factory $CreateCommunityCopyWith( - CreateCommunity value, $Res Function(CreateCommunity) then) = - _$CreateCommunityCopyWithImpl<$Res, CreateCommunity>; - @useResult - $Res call( - {String name, - String title, - String? description, - String? icon, - String? banner, - bool? nsfw, - bool? postingRestrictedToMods, - List? discussionLanguages, - CommunityVisibility? visibility, - String? auth}); -} - -/// @nodoc -class _$CreateCommunityCopyWithImpl<$Res, $Val extends CreateCommunity> - implements $CreateCommunityCopyWith<$Res> { - _$CreateCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreateCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? title = null, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? nsfw = freezed, - Object? postingRestrictedToMods = freezed, - Object? discussionLanguages = freezed, - Object? visibility = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - title: null == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - postingRestrictedToMods: freezed == postingRestrictedToMods - ? _value.postingRestrictedToMods - : postingRestrictedToMods // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - visibility: freezed == visibility - ? _value.visibility - : visibility // ignore: cast_nullable_to_non_nullable - as CommunityVisibility?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreateCommunityImplCopyWith<$Res> - implements $CreateCommunityCopyWith<$Res> { - factory _$$CreateCommunityImplCopyWith(_$CreateCommunityImpl value, - $Res Function(_$CreateCommunityImpl) then) = - __$$CreateCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String name, - String title, - String? description, - String? icon, - String? banner, - bool? nsfw, - bool? postingRestrictedToMods, - List? discussionLanguages, - CommunityVisibility? visibility, - String? auth}); -} - -/// @nodoc -class __$$CreateCommunityImplCopyWithImpl<$Res> - extends _$CreateCommunityCopyWithImpl<$Res, _$CreateCommunityImpl> - implements _$$CreateCommunityImplCopyWith<$Res> { - __$$CreateCommunityImplCopyWithImpl( - _$CreateCommunityImpl _value, $Res Function(_$CreateCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of CreateCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? title = null, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? nsfw = freezed, - Object? postingRestrictedToMods = freezed, - Object? discussionLanguages = freezed, - Object? visibility = freezed, - Object? auth = freezed, - }) { - return _then(_$CreateCommunityImpl( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - title: null == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - postingRestrictedToMods: freezed == postingRestrictedToMods - ? _value.postingRestrictedToMods - : postingRestrictedToMods // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - visibility: freezed == visibility - ? _value.visibility - : visibility // ignore: cast_nullable_to_non_nullable - as CommunityVisibility?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreateCommunityImpl extends _CreateCommunity { - const _$CreateCommunityImpl( - {required this.name, - required this.title, - this.description, - this.icon, - this.banner, - this.nsfw, - this.postingRestrictedToMods, - final List? discussionLanguages, - this.visibility, - this.auth}) - : _discussionLanguages = discussionLanguages, - super._(); - - factory _$CreateCommunityImpl.fromJson(Map json) => - _$$CreateCommunityImplFromJson(json); - - @override - final String name; -// v0.18.0 - @override - final String title; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final String? icon; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final bool? nsfw; -// v0.18.0 - @override - final bool? postingRestrictedToMods; -// v0.18.0 - final List? _discussionLanguages; -// v0.18.0 - @override - List? get discussionLanguages { - final value = _discussionLanguages; - if (value == null) return null; - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - final CommunityVisibility? visibility; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'CreateCommunity(name: $name, title: $title, description: $description, icon: $icon, banner: $banner, nsfw: $nsfw, postingRestrictedToMods: $postingRestrictedToMods, discussionLanguages: $discussionLanguages, visibility: $visibility, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreateCommunityImpl && - (identical(other.name, name) || other.name == name) && - (identical(other.title, title) || other.title == title) && - (identical(other.description, description) || - other.description == description) && - (identical(other.icon, icon) || other.icon == icon) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.nsfw, nsfw) || other.nsfw == nsfw) && - (identical( - other.postingRestrictedToMods, postingRestrictedToMods) || - other.postingRestrictedToMods == postingRestrictedToMods) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - (identical(other.visibility, visibility) || - other.visibility == visibility) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - name, - title, - description, - icon, - banner, - nsfw, - postingRestrictedToMods, - const DeepCollectionEquality().hash(_discussionLanguages), - visibility, - auth); - - /// Create a copy of CreateCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreateCommunityImplCopyWith<_$CreateCommunityImpl> get copyWith => - __$$CreateCommunityImplCopyWithImpl<_$CreateCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreateCommunityImplToJson( - this, - ); - } -} - -abstract class _CreateCommunity extends CreateCommunity { - const factory _CreateCommunity( - {required final String name, - required final String title, - final String? description, - final String? icon, - final String? banner, - final bool? nsfw, - final bool? postingRestrictedToMods, - final List? discussionLanguages, - final CommunityVisibility? visibility, - final String? auth}) = _$CreateCommunityImpl; - const _CreateCommunity._() : super._(); - - factory _CreateCommunity.fromJson(Map json) = - _$CreateCommunityImpl.fromJson; - - @override - String get name; // v0.18.0 - @override - String get title; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - String? get icon; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - bool? get nsfw; // v0.18.0 - @override - bool? get postingRestrictedToMods; // v0.18.0 - @override - List? get discussionLanguages; // v0.18.0 - @override - CommunityVisibility? get visibility; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of CreateCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreateCommunityImplCopyWith<_$CreateCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -EditCommunity _$EditCommunityFromJson(Map json) { - return _EditCommunity.fromJson(json); -} - -/// @nodoc -mixin _$EditCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get title => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - String? get icon => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - bool? get nsfw => throw _privateConstructorUsedError; // v0.18.0 - bool? get postingRestrictedToMods => - throw _privateConstructorUsedError; // v0.18.0 - List? get discussionLanguages => - throw _privateConstructorUsedError; // v0.18.0 - CommunityVisibility? get visibility => - throw _privateConstructorUsedError; // v0.19.4 (required) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this EditCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of EditCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $EditCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $EditCommunityCopyWith<$Res> { - factory $EditCommunityCopyWith( - EditCommunity value, $Res Function(EditCommunity) then) = - _$EditCommunityCopyWithImpl<$Res, EditCommunity>; - @useResult - $Res call( - {int communityId, - String? title, - String? description, - String? icon, - String? banner, - bool? nsfw, - bool? postingRestrictedToMods, - List? discussionLanguages, - CommunityVisibility? visibility, - String? auth}); -} - -/// @nodoc -class _$EditCommunityCopyWithImpl<$Res, $Val extends EditCommunity> - implements $EditCommunityCopyWith<$Res> { - _$EditCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of EditCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? title = freezed, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? nsfw = freezed, - Object? postingRestrictedToMods = freezed, - Object? discussionLanguages = freezed, - Object? visibility = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - postingRestrictedToMods: freezed == postingRestrictedToMods - ? _value.postingRestrictedToMods - : postingRestrictedToMods // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - visibility: freezed == visibility - ? _value.visibility - : visibility // ignore: cast_nullable_to_non_nullable - as CommunityVisibility?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$EditCommunityImplCopyWith<$Res> - implements $EditCommunityCopyWith<$Res> { - factory _$$EditCommunityImplCopyWith( - _$EditCommunityImpl value, $Res Function(_$EditCommunityImpl) then) = - __$$EditCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int communityId, - String? title, - String? description, - String? icon, - String? banner, - bool? nsfw, - bool? postingRestrictedToMods, - List? discussionLanguages, - CommunityVisibility? visibility, - String? auth}); -} - -/// @nodoc -class __$$EditCommunityImplCopyWithImpl<$Res> - extends _$EditCommunityCopyWithImpl<$Res, _$EditCommunityImpl> - implements _$$EditCommunityImplCopyWith<$Res> { - __$$EditCommunityImplCopyWithImpl( - _$EditCommunityImpl _value, $Res Function(_$EditCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of EditCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? title = freezed, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? nsfw = freezed, - Object? postingRestrictedToMods = freezed, - Object? discussionLanguages = freezed, - Object? visibility = freezed, - Object? auth = freezed, - }) { - return _then(_$EditCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - postingRestrictedToMods: freezed == postingRestrictedToMods - ? _value.postingRestrictedToMods - : postingRestrictedToMods // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - visibility: freezed == visibility - ? _value.visibility - : visibility // ignore: cast_nullable_to_non_nullable - as CommunityVisibility?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$EditCommunityImpl extends _EditCommunity { - const _$EditCommunityImpl( - {required this.communityId, - this.title, - this.description, - this.icon, - this.banner, - this.nsfw, - this.postingRestrictedToMods, - final List? discussionLanguages, - this.visibility, - this.auth}) - : _discussionLanguages = discussionLanguages, - super._(); - - factory _$EditCommunityImpl.fromJson(Map json) => - _$$EditCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final String? title; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final String? icon; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final bool? nsfw; -// v0.18.0 - @override - final bool? postingRestrictedToMods; -// v0.18.0 - final List? _discussionLanguages; -// v0.18.0 - @override - List? get discussionLanguages { - final value = _discussionLanguages; - if (value == null) return null; - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - final CommunityVisibility? visibility; -// v0.19.4 (required) - @override - final String? auth; - - @override - String toString() { - return 'EditCommunity(communityId: $communityId, title: $title, description: $description, icon: $icon, banner: $banner, nsfw: $nsfw, postingRestrictedToMods: $postingRestrictedToMods, discussionLanguages: $discussionLanguages, visibility: $visibility, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.title, title) || other.title == title) && - (identical(other.description, description) || - other.description == description) && - (identical(other.icon, icon) || other.icon == icon) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.nsfw, nsfw) || other.nsfw == nsfw) && - (identical( - other.postingRestrictedToMods, postingRestrictedToMods) || - other.postingRestrictedToMods == postingRestrictedToMods) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - (identical(other.visibility, visibility) || - other.visibility == visibility) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - communityId, - title, - description, - icon, - banner, - nsfw, - postingRestrictedToMods, - const DeepCollectionEquality().hash(_discussionLanguages), - visibility, - auth); - - /// Create a copy of EditCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$EditCommunityImplCopyWith<_$EditCommunityImpl> get copyWith => - __$$EditCommunityImplCopyWithImpl<_$EditCommunityImpl>(this, _$identity); - - @override - Map toJson() { - return _$$EditCommunityImplToJson( - this, - ); - } -} - -abstract class _EditCommunity extends EditCommunity { - const factory _EditCommunity( - {required final int communityId, - final String? title, - final String? description, - final String? icon, - final String? banner, - final bool? nsfw, - final bool? postingRestrictedToMods, - final List? discussionLanguages, - final CommunityVisibility? visibility, - final String? auth}) = _$EditCommunityImpl; - const _EditCommunity._() : super._(); - - factory _EditCommunity.fromJson(Map json) = - _$EditCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - String? get title; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - String? get icon; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - bool? get nsfw; // v0.18.0 - @override - bool? get postingRestrictedToMods; // v0.18.0 - @override - List? get discussionLanguages; // v0.18.0 - @override - CommunityVisibility? get visibility; // v0.19.4 (required) - @override - String? get auth; - - /// Create a copy of EditCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$EditCommunityImplCopyWith<_$EditCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ListCommunities _$ListCommunitiesFromJson(Map json) { - return _ListCommunities.fromJson(json); -} - -/// @nodoc -mixin _$ListCommunities { - @JsonKey(name: 'type_') - ListingType? get type => throw _privateConstructorUsedError; // v0.18.0 - SortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - bool? get showNsfw => throw _privateConstructorUsedError; // v0.18.1 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListCommunities to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListCommunities - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListCommunitiesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListCommunitiesCopyWith<$Res> { - factory $ListCommunitiesCopyWith( - ListCommunities value, $Res Function(ListCommunities) then) = - _$ListCommunitiesCopyWithImpl<$Res, ListCommunities>; - @useResult - $Res call( - {@JsonKey(name: 'type_') ListingType? type, - SortType? sort, - int? page, - int? limit, - bool? showNsfw, - String? auth}); -} - -/// @nodoc -class _$ListCommunitiesCopyWithImpl<$Res, $Val extends ListCommunities> - implements $ListCommunitiesCopyWith<$Res> { - _$ListCommunitiesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListCommunities - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? showNsfw = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ListingType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListCommunitiesImplCopyWith<$Res> - implements $ListCommunitiesCopyWith<$Res> { - factory _$$ListCommunitiesImplCopyWith(_$ListCommunitiesImpl value, - $Res Function(_$ListCommunitiesImpl) then) = - __$$ListCommunitiesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@JsonKey(name: 'type_') ListingType? type, - SortType? sort, - int? page, - int? limit, - bool? showNsfw, - String? auth}); -} - -/// @nodoc -class __$$ListCommunitiesImplCopyWithImpl<$Res> - extends _$ListCommunitiesCopyWithImpl<$Res, _$ListCommunitiesImpl> - implements _$$ListCommunitiesImplCopyWith<$Res> { - __$$ListCommunitiesImplCopyWithImpl( - _$ListCommunitiesImpl _value, $Res Function(_$ListCommunitiesImpl) _then) - : super(_value, _then); - - /// Create a copy of ListCommunities - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? showNsfw = freezed, - Object? auth = freezed, - }) { - return _then(_$ListCommunitiesImpl( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ListingType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListCommunitiesImpl extends _ListCommunities { - const _$ListCommunitiesImpl( - {@JsonKey(name: 'type_') this.type, - this.sort, - this.page, - this.limit, - this.showNsfw, - this.auth}) - : super._(); - - factory _$ListCommunitiesImpl.fromJson(Map json) => - _$$ListCommunitiesImplFromJson(json); - - @override - @JsonKey(name: 'type_') - final ListingType? type; -// v0.18.0 - @override - final SortType? sort; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final bool? showNsfw; -// v0.18.1 - @override - final String? auth; - - @override - String toString() { - return 'ListCommunities(type: $type, sort: $sort, page: $page, limit: $limit, showNsfw: $showNsfw, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListCommunitiesImpl && - (identical(other.type, type) || other.type == type) && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.showNsfw, showNsfw) || - other.showNsfw == showNsfw) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, type, sort, page, limit, showNsfw, auth); - - /// Create a copy of ListCommunities - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListCommunitiesImplCopyWith<_$ListCommunitiesImpl> get copyWith => - __$$ListCommunitiesImplCopyWithImpl<_$ListCommunitiesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ListCommunitiesImplToJson( - this, - ); - } -} - -abstract class _ListCommunities extends ListCommunities { - const factory _ListCommunities( - {@JsonKey(name: 'type_') final ListingType? type, - final SortType? sort, - final int? page, - final int? limit, - final bool? showNsfw, - final String? auth}) = _$ListCommunitiesImpl; - const _ListCommunities._() : super._(); - - factory _ListCommunities.fromJson(Map json) = - _$ListCommunitiesImpl.fromJson; - - @override - @JsonKey(name: 'type_') - ListingType? get type; // v0.18.0 - @override - SortType? get sort; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - bool? get showNsfw; // v0.18.1 - @override - String? get auth; - - /// Create a copy of ListCommunities - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListCommunitiesImplCopyWith<_$ListCommunitiesImpl> get copyWith => - throw _privateConstructorUsedError; -} - -FollowCommunity _$FollowCommunityFromJson(Map json) { - return _FollowCommunity.fromJson(json); -} - -/// @nodoc -mixin _$FollowCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get follow => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this FollowCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FollowCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $FollowCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $FollowCommunityCopyWith<$Res> { - factory $FollowCommunityCopyWith( - FollowCommunity value, $Res Function(FollowCommunity) then) = - _$FollowCommunityCopyWithImpl<$Res, FollowCommunity>; - @useResult - $Res call({int communityId, bool follow, String? auth}); -} - -/// @nodoc -class _$FollowCommunityCopyWithImpl<$Res, $Val extends FollowCommunity> - implements $FollowCommunityCopyWith<$Res> { - _$FollowCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of FollowCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? follow = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - follow: null == follow - ? _value.follow - : follow // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$FollowCommunityImplCopyWith<$Res> - implements $FollowCommunityCopyWith<$Res> { - factory _$$FollowCommunityImplCopyWith(_$FollowCommunityImpl value, - $Res Function(_$FollowCommunityImpl) then) = - __$$FollowCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, bool follow, String? auth}); -} - -/// @nodoc -class __$$FollowCommunityImplCopyWithImpl<$Res> - extends _$FollowCommunityCopyWithImpl<$Res, _$FollowCommunityImpl> - implements _$$FollowCommunityImplCopyWith<$Res> { - __$$FollowCommunityImplCopyWithImpl( - _$FollowCommunityImpl _value, $Res Function(_$FollowCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of FollowCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? follow = null, - Object? auth = freezed, - }) { - return _then(_$FollowCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - follow: null == follow - ? _value.follow - : follow // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$FollowCommunityImpl extends _FollowCommunity { - const _$FollowCommunityImpl( - {required this.communityId, required this.follow, this.auth}) - : super._(); - - factory _$FollowCommunityImpl.fromJson(Map json) => - _$$FollowCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final bool follow; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'FollowCommunity(communityId: $communityId, follow: $follow, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FollowCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.follow, follow) || other.follow == follow) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, follow, auth); - - /// Create a copy of FollowCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$FollowCommunityImplCopyWith<_$FollowCommunityImpl> get copyWith => - __$$FollowCommunityImplCopyWithImpl<_$FollowCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$FollowCommunityImplToJson( - this, - ); - } -} - -abstract class _FollowCommunity extends FollowCommunity { - const factory _FollowCommunity( - {required final int communityId, - required final bool follow, - final String? auth}) = _$FollowCommunityImpl; - const _FollowCommunity._() : super._(); - - factory _FollowCommunity.fromJson(Map json) = - _$FollowCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - bool get follow; // v0.18.0 - @override - String? get auth; - - /// Create a copy of FollowCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$FollowCommunityImplCopyWith<_$FollowCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -BlockCommunity _$BlockCommunityFromJson(Map json) { - return _BlockCommunity.fromJson(json); -} - -/// @nodoc -mixin _$BlockCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get block => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this BlockCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BlockCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BlockCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BlockCommunityCopyWith<$Res> { - factory $BlockCommunityCopyWith( - BlockCommunity value, $Res Function(BlockCommunity) then) = - _$BlockCommunityCopyWithImpl<$Res, BlockCommunity>; - @useResult - $Res call({int communityId, bool block, String? auth}); -} - -/// @nodoc -class _$BlockCommunityCopyWithImpl<$Res, $Val extends BlockCommunity> - implements $BlockCommunityCopyWith<$Res> { - _$BlockCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BlockCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? block = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - block: null == block - ? _value.block - : block // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BlockCommunityImplCopyWith<$Res> - implements $BlockCommunityCopyWith<$Res> { - factory _$$BlockCommunityImplCopyWith(_$BlockCommunityImpl value, - $Res Function(_$BlockCommunityImpl) then) = - __$$BlockCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, bool block, String? auth}); -} - -/// @nodoc -class __$$BlockCommunityImplCopyWithImpl<$Res> - extends _$BlockCommunityCopyWithImpl<$Res, _$BlockCommunityImpl> - implements _$$BlockCommunityImplCopyWith<$Res> { - __$$BlockCommunityImplCopyWithImpl( - _$BlockCommunityImpl _value, $Res Function(_$BlockCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of BlockCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? block = null, - Object? auth = freezed, - }) { - return _then(_$BlockCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - block: null == block - ? _value.block - : block // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$BlockCommunityImpl extends _BlockCommunity { - const _$BlockCommunityImpl( - {required this.communityId, required this.block, this.auth}) - : super._(); - - factory _$BlockCommunityImpl.fromJson(Map json) => - _$$BlockCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final bool block; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'BlockCommunity(communityId: $communityId, block: $block, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BlockCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.block, block) || other.block == block) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, block, auth); - - /// Create a copy of BlockCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BlockCommunityImplCopyWith<_$BlockCommunityImpl> get copyWith => - __$$BlockCommunityImplCopyWithImpl<_$BlockCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$BlockCommunityImplToJson( - this, - ); - } -} - -abstract class _BlockCommunity extends BlockCommunity { - const factory _BlockCommunity( - {required final int communityId, - required final bool block, - final String? auth}) = _$BlockCommunityImpl; - const _BlockCommunity._() : super._(); - - factory _BlockCommunity.fromJson(Map json) = - _$BlockCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - bool get block; // v0.18.0 - @override - String? get auth; - - /// Create a copy of BlockCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BlockCommunityImplCopyWith<_$BlockCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DeleteCommunity _$DeleteCommunityFromJson(Map json) { - return _DeleteCommunity.fromJson(json); -} - -/// @nodoc -mixin _$DeleteCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DeleteCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeleteCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeleteCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeleteCommunityCopyWith<$Res> { - factory $DeleteCommunityCopyWith( - DeleteCommunity value, $Res Function(DeleteCommunity) then) = - _$DeleteCommunityCopyWithImpl<$Res, DeleteCommunity>; - @useResult - $Res call({int communityId, bool deleted, String? auth}); -} - -/// @nodoc -class _$DeleteCommunityCopyWithImpl<$Res, $Val extends DeleteCommunity> - implements $DeleteCommunityCopyWith<$Res> { - _$DeleteCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeleteCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeleteCommunityImplCopyWith<$Res> - implements $DeleteCommunityCopyWith<$Res> { - factory _$$DeleteCommunityImplCopyWith(_$DeleteCommunityImpl value, - $Res Function(_$DeleteCommunityImpl) then) = - __$$DeleteCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, bool deleted, String? auth}); -} - -/// @nodoc -class __$$DeleteCommunityImplCopyWithImpl<$Res> - extends _$DeleteCommunityCopyWithImpl<$Res, _$DeleteCommunityImpl> - implements _$$DeleteCommunityImplCopyWith<$Res> { - __$$DeleteCommunityImplCopyWithImpl( - _$DeleteCommunityImpl _value, $Res Function(_$DeleteCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of DeleteCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_$DeleteCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DeleteCommunityImpl extends _DeleteCommunity { - const _$DeleteCommunityImpl( - {required this.communityId, required this.deleted, this.auth}) - : super._(); - - factory _$DeleteCommunityImpl.fromJson(Map json) => - _$$DeleteCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'DeleteCommunity(communityId: $communityId, deleted: $deleted, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeleteCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, deleted, auth); - - /// Create a copy of DeleteCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeleteCommunityImplCopyWith<_$DeleteCommunityImpl> get copyWith => - __$$DeleteCommunityImplCopyWithImpl<_$DeleteCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$DeleteCommunityImplToJson( - this, - ); - } -} - -abstract class _DeleteCommunity extends DeleteCommunity { - const factory _DeleteCommunity( - {required final int communityId, - required final bool deleted, - final String? auth}) = _$DeleteCommunityImpl; - const _DeleteCommunity._() : super._(); - - factory _DeleteCommunity.fromJson(Map json) = - _$DeleteCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - String? get auth; - - /// Create a copy of DeleteCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeleteCommunityImplCopyWith<_$DeleteCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -HideCommunity _$HideCommunityFromJson(Map json) { - return _HideCommunity.fromJson(json); -} - -/// @nodoc -mixin _$HideCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get hidden => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this HideCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of HideCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $HideCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $HideCommunityCopyWith<$Res> { - factory $HideCommunityCopyWith( - HideCommunity value, $Res Function(HideCommunity) then) = - _$HideCommunityCopyWithImpl<$Res, HideCommunity>; - @useResult - $Res call({int communityId, bool hidden, String? reason, String? auth}); -} - -/// @nodoc -class _$HideCommunityCopyWithImpl<$Res, $Val extends HideCommunity> - implements $HideCommunityCopyWith<$Res> { - _$HideCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of HideCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? hidden = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - hidden: null == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$HideCommunityImplCopyWith<$Res> - implements $HideCommunityCopyWith<$Res> { - factory _$$HideCommunityImplCopyWith( - _$HideCommunityImpl value, $Res Function(_$HideCommunityImpl) then) = - __$$HideCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, bool hidden, String? reason, String? auth}); -} - -/// @nodoc -class __$$HideCommunityImplCopyWithImpl<$Res> - extends _$HideCommunityCopyWithImpl<$Res, _$HideCommunityImpl> - implements _$$HideCommunityImplCopyWith<$Res> { - __$$HideCommunityImplCopyWithImpl( - _$HideCommunityImpl _value, $Res Function(_$HideCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of HideCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? hidden = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$HideCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - hidden: null == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$HideCommunityImpl extends _HideCommunity { - const _$HideCommunityImpl( - {required this.communityId, required this.hidden, this.reason, this.auth}) - : super._(); - - factory _$HideCommunityImpl.fromJson(Map json) => - _$$HideCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final bool hidden; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'HideCommunity(communityId: $communityId, hidden: $hidden, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$HideCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.hidden, hidden) || other.hidden == hidden) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, communityId, hidden, reason, auth); - - /// Create a copy of HideCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$HideCommunityImplCopyWith<_$HideCommunityImpl> get copyWith => - __$$HideCommunityImplCopyWithImpl<_$HideCommunityImpl>(this, _$identity); - - @override - Map toJson() { - return _$$HideCommunityImplToJson( - this, - ); - } -} - -abstract class _HideCommunity extends HideCommunity { - const factory _HideCommunity( - {required final int communityId, - required final bool hidden, - final String? reason, - final String? auth}) = _$HideCommunityImpl; - const _HideCommunity._() : super._(); - - factory _HideCommunity.fromJson(Map json) = - _$HideCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - bool get hidden; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of HideCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$HideCommunityImplCopyWith<_$HideCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -RemoveCommunity _$RemoveCommunityFromJson(Map json) { - return _RemoveCommunity.fromJson(json); -} - -/// @nodoc -mixin _$RemoveCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get expires => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this RemoveCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of RemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RemoveCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RemoveCommunityCopyWith<$Res> { - factory $RemoveCommunityCopyWith( - RemoveCommunity value, $Res Function(RemoveCommunity) then) = - _$RemoveCommunityCopyWithImpl<$Res, RemoveCommunity>; - @useResult - $Res call( - {int communityId, - bool removed, - String? reason, - @deprecated int? expires, - String? auth}); -} - -/// @nodoc -class _$RemoveCommunityCopyWithImpl<$Res, $Val extends RemoveCommunity> - implements $RemoveCommunityCopyWith<$Res> { - _$RemoveCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of RemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? removed = null, - Object? reason = freezed, - Object? expires = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$RemoveCommunityImplCopyWith<$Res> - implements $RemoveCommunityCopyWith<$Res> { - factory _$$RemoveCommunityImplCopyWith(_$RemoveCommunityImpl value, - $Res Function(_$RemoveCommunityImpl) then) = - __$$RemoveCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int communityId, - bool removed, - String? reason, - @deprecated int? expires, - String? auth}); -} - -/// @nodoc -class __$$RemoveCommunityImplCopyWithImpl<$Res> - extends _$RemoveCommunityCopyWithImpl<$Res, _$RemoveCommunityImpl> - implements _$$RemoveCommunityImplCopyWith<$Res> { - __$$RemoveCommunityImplCopyWithImpl( - _$RemoveCommunityImpl _value, $Res Function(_$RemoveCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of RemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? removed = null, - Object? reason = freezed, - Object? expires = freezed, - Object? auth = freezed, - }) { - return _then(_$RemoveCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$RemoveCommunityImpl extends _RemoveCommunity { - const _$RemoveCommunityImpl( - {required this.communityId, - required this.removed, - this.reason, - @deprecated this.expires, - this.auth}) - : super._(); - - factory _$RemoveCommunityImpl.fromJson(Map json) => - _$$RemoveCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - @deprecated - final int? expires; -// v0.18.0 [deprecated in v0.19.0] - @override - final String? auth; - - @override - String toString() { - return 'RemoveCommunity(communityId: $communityId, removed: $removed, reason: $reason, expires: $expires, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RemoveCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.expires, expires) || other.expires == expires) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, communityId, removed, reason, expires, auth); - - /// Create a copy of RemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RemoveCommunityImplCopyWith<_$RemoveCommunityImpl> get copyWith => - __$$RemoveCommunityImplCopyWithImpl<_$RemoveCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$RemoveCommunityImplToJson( - this, - ); - } -} - -abstract class _RemoveCommunity extends RemoveCommunity { - const factory _RemoveCommunity( - {required final int communityId, - required final bool removed, - final String? reason, - @deprecated final int? expires, - final String? auth}) = _$RemoveCommunityImpl; - const _RemoveCommunity._() : super._(); - - factory _RemoveCommunity.fromJson(Map json) = - _$RemoveCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - @deprecated - int? get expires; // v0.18.0 [deprecated in v0.19.0] - @override - String? get auth; - - /// Create a copy of RemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RemoveCommunityImplCopyWith<_$RemoveCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -TransferCommunity _$TransferCommunityFromJson(Map json) { - return _TransferCommunity.fromJson(json); -} - -/// @nodoc -mixin _$TransferCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - int get personId => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this TransferCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of TransferCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $TransferCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $TransferCommunityCopyWith<$Res> { - factory $TransferCommunityCopyWith( - TransferCommunity value, $Res Function(TransferCommunity) then) = - _$TransferCommunityCopyWithImpl<$Res, TransferCommunity>; - @useResult - $Res call({int communityId, int personId, String? auth}); -} - -/// @nodoc -class _$TransferCommunityCopyWithImpl<$Res, $Val extends TransferCommunity> - implements $TransferCommunityCopyWith<$Res> { - _$TransferCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of TransferCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? personId = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$TransferCommunityImplCopyWith<$Res> - implements $TransferCommunityCopyWith<$Res> { - factory _$$TransferCommunityImplCopyWith(_$TransferCommunityImpl value, - $Res Function(_$TransferCommunityImpl) then) = - __$$TransferCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, int personId, String? auth}); -} - -/// @nodoc -class __$$TransferCommunityImplCopyWithImpl<$Res> - extends _$TransferCommunityCopyWithImpl<$Res, _$TransferCommunityImpl> - implements _$$TransferCommunityImplCopyWith<$Res> { - __$$TransferCommunityImplCopyWithImpl(_$TransferCommunityImpl _value, - $Res Function(_$TransferCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of TransferCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? personId = null, - Object? auth = freezed, - }) { - return _then(_$TransferCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$TransferCommunityImpl extends _TransferCommunity { - const _$TransferCommunityImpl( - {required this.communityId, required this.personId, this.auth}) - : super._(); - - factory _$TransferCommunityImpl.fromJson(Map json) => - _$$TransferCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final int personId; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'TransferCommunity(communityId: $communityId, personId: $personId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$TransferCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, personId, auth); - - /// Create a copy of TransferCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$TransferCommunityImplCopyWith<_$TransferCommunityImpl> get copyWith => - __$$TransferCommunityImplCopyWithImpl<_$TransferCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$TransferCommunityImplToJson( - this, - ); - } -} - -abstract class _TransferCommunity extends TransferCommunity { - const factory _TransferCommunity( - {required final int communityId, - required final int personId, - final String? auth}) = _$TransferCommunityImpl; - const _TransferCommunity._() : super._(); - - factory _TransferCommunity.fromJson(Map json) = - _$TransferCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - int get personId; // v0.18.0 - @override - String? get auth; - - /// Create a copy of TransferCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$TransferCommunityImplCopyWith<_$TransferCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -BanFromCommunity _$BanFromCommunityFromJson(Map json) { - return _BanFromCommunity.fromJson(json); -} - -/// @nodoc -mixin _$BanFromCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - int get personId => throw _privateConstructorUsedError; // v0.18.0 - bool get ban => throw _privateConstructorUsedError; // v0.18.0 - bool? get removeData => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - int? get expires => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this BanFromCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BanFromCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BanFromCommunityCopyWith<$Res> { - factory $BanFromCommunityCopyWith( - BanFromCommunity value, $Res Function(BanFromCommunity) then) = - _$BanFromCommunityCopyWithImpl<$Res, BanFromCommunity>; - @useResult - $Res call( - {int communityId, - int personId, - bool ban, - bool? removeData, - String? reason, - int? expires, - String? auth}); -} - -/// @nodoc -class _$BanFromCommunityCopyWithImpl<$Res, $Val extends BanFromCommunity> - implements $BanFromCommunityCopyWith<$Res> { - _$BanFromCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? personId = null, - Object? ban = null, - Object? removeData = freezed, - Object? reason = freezed, - Object? expires = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - ban: null == ban - ? _value.ban - : ban // ignore: cast_nullable_to_non_nullable - as bool, - removeData: freezed == removeData - ? _value.removeData - : removeData // ignore: cast_nullable_to_non_nullable - as bool?, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BanFromCommunityImplCopyWith<$Res> - implements $BanFromCommunityCopyWith<$Res> { - factory _$$BanFromCommunityImplCopyWith(_$BanFromCommunityImpl value, - $Res Function(_$BanFromCommunityImpl) then) = - __$$BanFromCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int communityId, - int personId, - bool ban, - bool? removeData, - String? reason, - int? expires, - String? auth}); -} - -/// @nodoc -class __$$BanFromCommunityImplCopyWithImpl<$Res> - extends _$BanFromCommunityCopyWithImpl<$Res, _$BanFromCommunityImpl> - implements _$$BanFromCommunityImplCopyWith<$Res> { - __$$BanFromCommunityImplCopyWithImpl(_$BanFromCommunityImpl _value, - $Res Function(_$BanFromCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of BanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? personId = null, - Object? ban = null, - Object? removeData = freezed, - Object? reason = freezed, - Object? expires = freezed, - Object? auth = freezed, - }) { - return _then(_$BanFromCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - ban: null == ban - ? _value.ban - : ban // ignore: cast_nullable_to_non_nullable - as bool, - removeData: freezed == removeData - ? _value.removeData - : removeData // ignore: cast_nullable_to_non_nullable - as bool?, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$BanFromCommunityImpl extends _BanFromCommunity { - const _$BanFromCommunityImpl( - {required this.communityId, - required this.personId, - required this.ban, - this.removeData, - this.reason, - this.expires, - this.auth}) - : super._(); - - factory _$BanFromCommunityImpl.fromJson(Map json) => - _$$BanFromCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final int personId; -// v0.18.0 - @override - final bool ban; -// v0.18.0 - @override - final bool? removeData; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final int? expires; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'BanFromCommunity(communityId: $communityId, personId: $personId, ban: $ban, removeData: $removeData, reason: $reason, expires: $expires, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BanFromCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.ban, ban) || other.ban == ban) && - (identical(other.removeData, removeData) || - other.removeData == removeData) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.expires, expires) || other.expires == expires) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, personId, ban, - removeData, reason, expires, auth); - - /// Create a copy of BanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BanFromCommunityImplCopyWith<_$BanFromCommunityImpl> get copyWith => - __$$BanFromCommunityImplCopyWithImpl<_$BanFromCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$BanFromCommunityImplToJson( - this, - ); - } -} - -abstract class _BanFromCommunity extends BanFromCommunity { - const factory _BanFromCommunity( - {required final int communityId, - required final int personId, - required final bool ban, - final bool? removeData, - final String? reason, - final int? expires, - final String? auth}) = _$BanFromCommunityImpl; - const _BanFromCommunity._() : super._(); - - factory _BanFromCommunity.fromJson(Map json) = - _$BanFromCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - int get personId; // v0.18.0 - @override - bool get ban; // v0.18.0 - @override - bool? get removeData; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - int? get expires; // v0.18.0 - @override - String? get auth; - - /// Create a copy of BanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BanFromCommunityImplCopyWith<_$BanFromCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} - -AddModToCommunity _$AddModToCommunityFromJson(Map json) { - return _AddModToCommunity.fromJson(json); -} - -/// @nodoc -mixin _$AddModToCommunity { - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - int get personId => throw _privateConstructorUsedError; // v0.18.0 - bool get added => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this AddModToCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AddModToCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AddModToCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AddModToCommunityCopyWith<$Res> { - factory $AddModToCommunityCopyWith( - AddModToCommunity value, $Res Function(AddModToCommunity) then) = - _$AddModToCommunityCopyWithImpl<$Res, AddModToCommunity>; - @useResult - $Res call({int communityId, int personId, bool added, String? auth}); -} - -/// @nodoc -class _$AddModToCommunityCopyWithImpl<$Res, $Val extends AddModToCommunity> - implements $AddModToCommunityCopyWith<$Res> { - _$AddModToCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AddModToCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? personId = null, - Object? added = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - added: null == added - ? _value.added - : added // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AddModToCommunityImplCopyWith<$Res> - implements $AddModToCommunityCopyWith<$Res> { - factory _$$AddModToCommunityImplCopyWith(_$AddModToCommunityImpl value, - $Res Function(_$AddModToCommunityImpl) then) = - __$$AddModToCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int communityId, int personId, bool added, String? auth}); -} - -/// @nodoc -class __$$AddModToCommunityImplCopyWithImpl<$Res> - extends _$AddModToCommunityCopyWithImpl<$Res, _$AddModToCommunityImpl> - implements _$$AddModToCommunityImplCopyWith<$Res> { - __$$AddModToCommunityImplCopyWithImpl(_$AddModToCommunityImpl _value, - $Res Function(_$AddModToCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of AddModToCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = null, - Object? personId = null, - Object? added = null, - Object? auth = freezed, - }) { - return _then(_$AddModToCommunityImpl( - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - added: null == added - ? _value.added - : added // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$AddModToCommunityImpl extends _AddModToCommunity { - const _$AddModToCommunityImpl( - {required this.communityId, - required this.personId, - required this.added, - this.auth}) - : super._(); - - factory _$AddModToCommunityImpl.fromJson(Map json) => - _$$AddModToCommunityImplFromJson(json); - - @override - final int communityId; -// v0.18.0 - @override - final int personId; -// v0.18.0 - @override - final bool added; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'AddModToCommunity(communityId: $communityId, personId: $personId, added: $added, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AddModToCommunityImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.added, added) || other.added == added) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, communityId, personId, added, auth); - - /// Create a copy of AddModToCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AddModToCommunityImplCopyWith<_$AddModToCommunityImpl> get copyWith => - __$$AddModToCommunityImplCopyWithImpl<_$AddModToCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AddModToCommunityImplToJson( - this, - ); - } -} - -abstract class _AddModToCommunity extends AddModToCommunity { - const factory _AddModToCommunity( - {required final int communityId, - required final int personId, - required final bool added, - final String? auth}) = _$AddModToCommunityImpl; - const _AddModToCommunity._() : super._(); - - factory _AddModToCommunity.fromJson(Map json) = - _$AddModToCommunityImpl.fromJson; - - @override - int get communityId; // v0.18.0 - @override - int get personId; // v0.18.0 - @override - bool get added; // v0.18.0 - @override - String? get auth; - - /// Create a copy of AddModToCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AddModToCommunityImplCopyWith<_$AddModToCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/community/community.g.dart b/lib/src/v3/api/community/community.g.dart deleted file mode 100644 index 2d2e67d2..00000000 --- a/lib/src/v3/api/community/community.g.dart +++ /dev/null @@ -1,356 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetCommunityImpl _$$GetCommunityImplFromJson(Map json) => - _$GetCommunityImpl( - id: (json['id'] as num?)?.toInt(), - name: json['name'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$GetCommunityImplToJson(_$GetCommunityImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('id', instance.id); - writeNotNull('name', instance.name); - writeNotNull('auth', instance.auth); - return val; -} - -_$CreateCommunityImpl _$$CreateCommunityImplFromJson( - Map json) => - _$CreateCommunityImpl( - name: json['name'] as String, - title: json['title'] as String, - description: json['description'] as String?, - icon: json['icon'] as String?, - banner: json['banner'] as String?, - nsfw: json['nsfw'] as bool?, - postingRestrictedToMods: json['posting_restricted_to_mods'] as bool?, - discussionLanguages: (json['discussion_languages'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - visibility: json['visibility'] == null - ? null - : CommunityVisibility.fromJson(json['visibility']), - auth: json['auth'] as String?, - ); - -Map _$$CreateCommunityImplToJson( - _$CreateCommunityImpl instance) { - final val = { - 'name': instance.name, - 'title': instance.title, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('description', instance.description); - writeNotNull('icon', instance.icon); - writeNotNull('banner', instance.banner); - writeNotNull('nsfw', instance.nsfw); - writeNotNull('posting_restricted_to_mods', instance.postingRestrictedToMods); - writeNotNull('discussion_languages', instance.discussionLanguages); - writeNotNull('visibility', instance.visibility?.toJson()); - writeNotNull('auth', instance.auth); - return val; -} - -_$EditCommunityImpl _$$EditCommunityImplFromJson(Map json) => - _$EditCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - title: json['title'] as String?, - description: json['description'] as String?, - icon: json['icon'] as String?, - banner: json['banner'] as String?, - nsfw: json['nsfw'] as bool?, - postingRestrictedToMods: json['posting_restricted_to_mods'] as bool?, - discussionLanguages: (json['discussion_languages'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - visibility: json['visibility'] == null - ? null - : CommunityVisibility.fromJson(json['visibility']), - auth: json['auth'] as String?, - ); - -Map _$$EditCommunityImplToJson(_$EditCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('title', instance.title); - writeNotNull('description', instance.description); - writeNotNull('icon', instance.icon); - writeNotNull('banner', instance.banner); - writeNotNull('nsfw', instance.nsfw); - writeNotNull('posting_restricted_to_mods', instance.postingRestrictedToMods); - writeNotNull('discussion_languages', instance.discussionLanguages); - writeNotNull('visibility', instance.visibility?.toJson()); - writeNotNull('auth', instance.auth); - return val; -} - -_$ListCommunitiesImpl _$$ListCommunitiesImplFromJson( - Map json) => - _$ListCommunitiesImpl( - type: json['type_'] == null ? null : ListingType.fromJson(json['type_']), - sort: json['sort'] == null ? null : SortType.fromJson(json['sort']), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - showNsfw: json['show_nsfw'] as bool?, - auth: json['auth'] as String?, - ); - -Map _$$ListCommunitiesImplToJson( - _$ListCommunitiesImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('type_', instance.type?.toJson()); - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('show_nsfw', instance.showNsfw); - writeNotNull('auth', instance.auth); - return val; -} - -_$FollowCommunityImpl _$$FollowCommunityImplFromJson( - Map json) => - _$FollowCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - follow: json['follow'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$FollowCommunityImplToJson( - _$FollowCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'follow': instance.follow, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$BlockCommunityImpl _$$BlockCommunityImplFromJson(Map json) => - _$BlockCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - block: json['block'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$BlockCommunityImplToJson( - _$BlockCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'block': instance.block, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$DeleteCommunityImpl _$$DeleteCommunityImplFromJson( - Map json) => - _$DeleteCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - deleted: json['deleted'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$DeleteCommunityImplToJson( - _$DeleteCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'deleted': instance.deleted, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$HideCommunityImpl _$$HideCommunityImplFromJson(Map json) => - _$HideCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - hidden: json['hidden'] as bool, - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$HideCommunityImplToJson(_$HideCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'hidden': instance.hidden, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$RemoveCommunityImpl _$$RemoveCommunityImplFromJson( - Map json) => - _$RemoveCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - removed: json['removed'] as bool, - reason: json['reason'] as String?, - expires: (json['expires'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$RemoveCommunityImplToJson( - _$RemoveCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'removed': instance.removed, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('expires', instance.expires); - writeNotNull('auth', instance.auth); - return val; -} - -_$TransferCommunityImpl _$$TransferCommunityImplFromJson( - Map json) => - _$TransferCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - personId: (json['person_id'] as num).toInt(), - auth: json['auth'] as String?, - ); - -Map _$$TransferCommunityImplToJson( - _$TransferCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'person_id': instance.personId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$BanFromCommunityImpl _$$BanFromCommunityImplFromJson( - Map json) => - _$BanFromCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - personId: (json['person_id'] as num).toInt(), - ban: json['ban'] as bool, - removeData: json['remove_data'] as bool?, - reason: json['reason'] as String?, - expires: (json['expires'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$BanFromCommunityImplToJson( - _$BanFromCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'person_id': instance.personId, - 'ban': instance.ban, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('remove_data', instance.removeData); - writeNotNull('reason', instance.reason); - writeNotNull('expires', instance.expires); - writeNotNull('auth', instance.auth); - return val; -} - -_$AddModToCommunityImpl _$$AddModToCommunityImplFromJson( - Map json) => - _$AddModToCommunityImpl( - communityId: (json['community_id'] as num).toInt(), - personId: (json['person_id'] as num).toInt(), - added: json['added'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$AddModToCommunityImplToJson( - _$AddModToCommunityImpl instance) { - final val = { - 'community_id': instance.communityId, - 'person_id': instance.personId, - 'added': instance.added, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/custom_emoji/custom_emoji.dart b/lib/src/v3/api/custom_emoji/custom_emoji.dart deleted file mode 100644 index 97b1949f..00000000 --- a/lib/src/v3/api/custom_emoji/custom_emoji.dart +++ /dev/null @@ -1,96 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'custom_emoji.freezed.dart'; -part 'custom_emoji.g.dart'; - -/// Create a new custom emoji -/// -/// `HTTP.POST /custom_emoji` -@freezed -class CreateCustomEmoji - with _$CreateCustomEmoji - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreateCustomEmoji({ - required String category, // v0.18.0 - required String shortcode, // v0.18.0 - required String imageUrl, // v0.18.0 - required String altText, // v0.18.0 - required List keywords, // v0.18.0 - String? auth, - }) = _CreateCustomEmoji; - - const CreateCustomEmoji._(); - factory CreateCustomEmoji.fromJson(Map json) => - _$CreateCustomEmojiFromJson(json); - - final path = '/custom_emoji'; - - final httpMethod = HttpMethod.post; - - @override - CustomEmojiResponse responseFactory(Map json) => - CustomEmojiResponse.fromJson(json); -} - -/// Edit an existing custom emoji -/// -/// `HTTP.PUT /custom_emoji` -@freezed -class EditCustomEmoji - with _$EditCustomEmoji - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory EditCustomEmoji({ - required int id, // v0.18.0 - required String category, // v0.18.0 - required String imageUrl, // v0.18.0 - required String altText, // v0.18.0 - required List keywords, // v0.18.0 - String? auth, - }) = _EditCustomEmoji; - - const EditCustomEmoji._(); - factory EditCustomEmoji.fromJson(Map json) => - _$EditCustomEmojiFromJson(json); - - final path = '/custom_emoji'; - - final httpMethod = HttpMethod.put; - - @override - CustomEmojiResponse responseFactory(Map json) => - CustomEmojiResponse.fromJson(json); -} - -/// Delete a custom emoji -/// -/// `HTTP.Post /custom_emoji/delete` -@freezed -class DeleteCustomEmoji - with _$DeleteCustomEmoji - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory DeleteCustomEmoji({ - required int id, // v0.18.0 - String? auth, - }) = _DeleteCustomEmoji; - - const DeleteCustomEmoji._(); - factory DeleteCustomEmoji.fromJson(Map json) => - _$DeleteCustomEmojiFromJson(json); - - final path = '/custom_emoji/delete'; - - final httpMethod = HttpMethod.post; - - @override - DeleteCustomEmojiResponse responseFactory(Map json) => - DeleteCustomEmojiResponse.fromJson(json); -} diff --git a/lib/src/v3/api/custom_emoji/custom_emoji.freezed.dart b/lib/src/v3/api/custom_emoji/custom_emoji.freezed.dart deleted file mode 100644 index a8c6bded..00000000 --- a/lib/src/v3/api/custom_emoji/custom_emoji.freezed.dart +++ /dev/null @@ -1,732 +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 'custom_emoji.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'); - -CreateCustomEmoji _$CreateCustomEmojiFromJson(Map json) { - return _CreateCustomEmoji.fromJson(json); -} - -/// @nodoc -mixin _$CreateCustomEmoji { - String get category => throw _privateConstructorUsedError; // v0.18.0 - String get shortcode => throw _privateConstructorUsedError; // v0.18.0 - String get imageUrl => throw _privateConstructorUsedError; // v0.18.0 - String get altText => throw _privateConstructorUsedError; // v0.18.0 - List get keywords => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreateCustomEmoji to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreateCustomEmojiCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreateCustomEmojiCopyWith<$Res> { - factory $CreateCustomEmojiCopyWith( - CreateCustomEmoji value, $Res Function(CreateCustomEmoji) then) = - _$CreateCustomEmojiCopyWithImpl<$Res, CreateCustomEmoji>; - @useResult - $Res call( - {String category, - String shortcode, - String imageUrl, - String altText, - List keywords, - String? auth}); -} - -/// @nodoc -class _$CreateCustomEmojiCopyWithImpl<$Res, $Val extends CreateCustomEmoji> - implements $CreateCustomEmojiCopyWith<$Res> { - _$CreateCustomEmojiCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreateCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? category = null, - Object? shortcode = null, - Object? imageUrl = null, - Object? altText = null, - Object? keywords = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - category: null == category - ? _value.category - : category // ignore: cast_nullable_to_non_nullable - as String, - shortcode: null == shortcode - ? _value.shortcode - : shortcode // ignore: cast_nullable_to_non_nullable - as String, - imageUrl: null == imageUrl - ? _value.imageUrl - : imageUrl // ignore: cast_nullable_to_non_nullable - as String, - altText: null == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String, - keywords: null == keywords - ? _value.keywords - : keywords // ignore: cast_nullable_to_non_nullable - as List, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreateCustomEmojiImplCopyWith<$Res> - implements $CreateCustomEmojiCopyWith<$Res> { - factory _$$CreateCustomEmojiImplCopyWith(_$CreateCustomEmojiImpl value, - $Res Function(_$CreateCustomEmojiImpl) then) = - __$$CreateCustomEmojiImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String category, - String shortcode, - String imageUrl, - String altText, - List keywords, - String? auth}); -} - -/// @nodoc -class __$$CreateCustomEmojiImplCopyWithImpl<$Res> - extends _$CreateCustomEmojiCopyWithImpl<$Res, _$CreateCustomEmojiImpl> - implements _$$CreateCustomEmojiImplCopyWith<$Res> { - __$$CreateCustomEmojiImplCopyWithImpl(_$CreateCustomEmojiImpl _value, - $Res Function(_$CreateCustomEmojiImpl) _then) - : super(_value, _then); - - /// Create a copy of CreateCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? category = null, - Object? shortcode = null, - Object? imageUrl = null, - Object? altText = null, - Object? keywords = null, - Object? auth = freezed, - }) { - return _then(_$CreateCustomEmojiImpl( - category: null == category - ? _value.category - : category // ignore: cast_nullable_to_non_nullable - as String, - shortcode: null == shortcode - ? _value.shortcode - : shortcode // ignore: cast_nullable_to_non_nullable - as String, - imageUrl: null == imageUrl - ? _value.imageUrl - : imageUrl // ignore: cast_nullable_to_non_nullable - as String, - altText: null == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String, - keywords: null == keywords - ? _value._keywords - : keywords // ignore: cast_nullable_to_non_nullable - as List, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreateCustomEmojiImpl extends _CreateCustomEmoji { - const _$CreateCustomEmojiImpl( - {required this.category, - required this.shortcode, - required this.imageUrl, - required this.altText, - required final List keywords, - this.auth}) - : _keywords = keywords, - super._(); - - factory _$CreateCustomEmojiImpl.fromJson(Map json) => - _$$CreateCustomEmojiImplFromJson(json); - - @override - final String category; -// v0.18.0 - @override - final String shortcode; -// v0.18.0 - @override - final String imageUrl; -// v0.18.0 - @override - final String altText; -// v0.18.0 - final List _keywords; -// v0.18.0 - @override - List get keywords { - if (_keywords is EqualUnmodifiableListView) return _keywords; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_keywords); - } - -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreateCustomEmoji(category: $category, shortcode: $shortcode, imageUrl: $imageUrl, altText: $altText, keywords: $keywords, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreateCustomEmojiImpl && - (identical(other.category, category) || - other.category == category) && - (identical(other.shortcode, shortcode) || - other.shortcode == shortcode) && - (identical(other.imageUrl, imageUrl) || - other.imageUrl == imageUrl) && - (identical(other.altText, altText) || other.altText == altText) && - const DeepCollectionEquality().equals(other._keywords, _keywords) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, category, shortcode, imageUrl, - altText, const DeepCollectionEquality().hash(_keywords), auth); - - /// Create a copy of CreateCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreateCustomEmojiImplCopyWith<_$CreateCustomEmojiImpl> get copyWith => - __$$CreateCustomEmojiImplCopyWithImpl<_$CreateCustomEmojiImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreateCustomEmojiImplToJson( - this, - ); - } -} - -abstract class _CreateCustomEmoji extends CreateCustomEmoji { - const factory _CreateCustomEmoji( - {required final String category, - required final String shortcode, - required final String imageUrl, - required final String altText, - required final List keywords, - final String? auth}) = _$CreateCustomEmojiImpl; - const _CreateCustomEmoji._() : super._(); - - factory _CreateCustomEmoji.fromJson(Map json) = - _$CreateCustomEmojiImpl.fromJson; - - @override - String get category; // v0.18.0 - @override - String get shortcode; // v0.18.0 - @override - String get imageUrl; // v0.18.0 - @override - String get altText; // v0.18.0 - @override - List get keywords; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreateCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreateCustomEmojiImplCopyWith<_$CreateCustomEmojiImpl> get copyWith => - throw _privateConstructorUsedError; -} - -EditCustomEmoji _$EditCustomEmojiFromJson(Map json) { - return _EditCustomEmoji.fromJson(json); -} - -/// @nodoc -mixin _$EditCustomEmoji { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get category => throw _privateConstructorUsedError; // v0.18.0 - String get imageUrl => throw _privateConstructorUsedError; // v0.18.0 - String get altText => throw _privateConstructorUsedError; // v0.18.0 - List get keywords => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this EditCustomEmoji to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of EditCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $EditCustomEmojiCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $EditCustomEmojiCopyWith<$Res> { - factory $EditCustomEmojiCopyWith( - EditCustomEmoji value, $Res Function(EditCustomEmoji) then) = - _$EditCustomEmojiCopyWithImpl<$Res, EditCustomEmoji>; - @useResult - $Res call( - {int id, - String category, - String imageUrl, - String altText, - List keywords, - String? auth}); -} - -/// @nodoc -class _$EditCustomEmojiCopyWithImpl<$Res, $Val extends EditCustomEmoji> - implements $EditCustomEmojiCopyWith<$Res> { - _$EditCustomEmojiCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of EditCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? category = null, - Object? imageUrl = null, - Object? altText = null, - Object? keywords = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - category: null == category - ? _value.category - : category // ignore: cast_nullable_to_non_nullable - as String, - imageUrl: null == imageUrl - ? _value.imageUrl - : imageUrl // ignore: cast_nullable_to_non_nullable - as String, - altText: null == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String, - keywords: null == keywords - ? _value.keywords - : keywords // ignore: cast_nullable_to_non_nullable - as List, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$EditCustomEmojiImplCopyWith<$Res> - implements $EditCustomEmojiCopyWith<$Res> { - factory _$$EditCustomEmojiImplCopyWith(_$EditCustomEmojiImpl value, - $Res Function(_$EditCustomEmojiImpl) then) = - __$$EditCustomEmojiImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String category, - String imageUrl, - String altText, - List keywords, - String? auth}); -} - -/// @nodoc -class __$$EditCustomEmojiImplCopyWithImpl<$Res> - extends _$EditCustomEmojiCopyWithImpl<$Res, _$EditCustomEmojiImpl> - implements _$$EditCustomEmojiImplCopyWith<$Res> { - __$$EditCustomEmojiImplCopyWithImpl( - _$EditCustomEmojiImpl _value, $Res Function(_$EditCustomEmojiImpl) _then) - : super(_value, _then); - - /// Create a copy of EditCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? category = null, - Object? imageUrl = null, - Object? altText = null, - Object? keywords = null, - Object? auth = freezed, - }) { - return _then(_$EditCustomEmojiImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - category: null == category - ? _value.category - : category // ignore: cast_nullable_to_non_nullable - as String, - imageUrl: null == imageUrl - ? _value.imageUrl - : imageUrl // ignore: cast_nullable_to_non_nullable - as String, - altText: null == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String, - keywords: null == keywords - ? _value._keywords - : keywords // ignore: cast_nullable_to_non_nullable - as List, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$EditCustomEmojiImpl extends _EditCustomEmoji { - const _$EditCustomEmojiImpl( - {required this.id, - required this.category, - required this.imageUrl, - required this.altText, - required final List keywords, - this.auth}) - : _keywords = keywords, - super._(); - - factory _$EditCustomEmojiImpl.fromJson(Map json) => - _$$EditCustomEmojiImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String category; -// v0.18.0 - @override - final String imageUrl; -// v0.18.0 - @override - final String altText; -// v0.18.0 - final List _keywords; -// v0.18.0 - @override - List get keywords { - if (_keywords is EqualUnmodifiableListView) return _keywords; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_keywords); - } - -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'EditCustomEmoji(id: $id, category: $category, imageUrl: $imageUrl, altText: $altText, keywords: $keywords, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditCustomEmojiImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.category, category) || - other.category == category) && - (identical(other.imageUrl, imageUrl) || - other.imageUrl == imageUrl) && - (identical(other.altText, altText) || other.altText == altText) && - const DeepCollectionEquality().equals(other._keywords, _keywords) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, category, imageUrl, altText, - const DeepCollectionEquality().hash(_keywords), auth); - - /// Create a copy of EditCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$EditCustomEmojiImplCopyWith<_$EditCustomEmojiImpl> get copyWith => - __$$EditCustomEmojiImplCopyWithImpl<_$EditCustomEmojiImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$EditCustomEmojiImplToJson( - this, - ); - } -} - -abstract class _EditCustomEmoji extends EditCustomEmoji { - const factory _EditCustomEmoji( - {required final int id, - required final String category, - required final String imageUrl, - required final String altText, - required final List keywords, - final String? auth}) = _$EditCustomEmojiImpl; - const _EditCustomEmoji._() : super._(); - - factory _EditCustomEmoji.fromJson(Map json) = - _$EditCustomEmojiImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get category; // v0.18.0 - @override - String get imageUrl; // v0.18.0 - @override - String get altText; // v0.18.0 - @override - List get keywords; // v0.18.0 - @override - String? get auth; - - /// Create a copy of EditCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$EditCustomEmojiImplCopyWith<_$EditCustomEmojiImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DeleteCustomEmoji _$DeleteCustomEmojiFromJson(Map json) { - return _DeleteCustomEmoji.fromJson(json); -} - -/// @nodoc -mixin _$DeleteCustomEmoji { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DeleteCustomEmoji to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeleteCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeleteCustomEmojiCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeleteCustomEmojiCopyWith<$Res> { - factory $DeleteCustomEmojiCopyWith( - DeleteCustomEmoji value, $Res Function(DeleteCustomEmoji) then) = - _$DeleteCustomEmojiCopyWithImpl<$Res, DeleteCustomEmoji>; - @useResult - $Res call({int id, String? auth}); -} - -/// @nodoc -class _$DeleteCustomEmojiCopyWithImpl<$Res, $Val extends DeleteCustomEmoji> - implements $DeleteCustomEmojiCopyWith<$Res> { - _$DeleteCustomEmojiCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeleteCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeleteCustomEmojiImplCopyWith<$Res> - implements $DeleteCustomEmojiCopyWith<$Res> { - factory _$$DeleteCustomEmojiImplCopyWith(_$DeleteCustomEmojiImpl value, - $Res Function(_$DeleteCustomEmojiImpl) then) = - __$$DeleteCustomEmojiImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int id, String? auth}); -} - -/// @nodoc -class __$$DeleteCustomEmojiImplCopyWithImpl<$Res> - extends _$DeleteCustomEmojiCopyWithImpl<$Res, _$DeleteCustomEmojiImpl> - implements _$$DeleteCustomEmojiImplCopyWith<$Res> { - __$$DeleteCustomEmojiImplCopyWithImpl(_$DeleteCustomEmojiImpl _value, - $Res Function(_$DeleteCustomEmojiImpl) _then) - : super(_value, _then); - - /// Create a copy of DeleteCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? auth = freezed, - }) { - return _then(_$DeleteCustomEmojiImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DeleteCustomEmojiImpl extends _DeleteCustomEmoji { - const _$DeleteCustomEmojiImpl({required this.id, this.auth}) : super._(); - - factory _$DeleteCustomEmojiImpl.fromJson(Map json) => - _$$DeleteCustomEmojiImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'DeleteCustomEmoji(id: $id, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeleteCustomEmojiImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, auth); - - /// Create a copy of DeleteCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeleteCustomEmojiImplCopyWith<_$DeleteCustomEmojiImpl> get copyWith => - __$$DeleteCustomEmojiImplCopyWithImpl<_$DeleteCustomEmojiImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$DeleteCustomEmojiImplToJson( - this, - ); - } -} - -abstract class _DeleteCustomEmoji extends DeleteCustomEmoji { - const factory _DeleteCustomEmoji( - {required final int id, final String? auth}) = _$DeleteCustomEmojiImpl; - const _DeleteCustomEmoji._() : super._(); - - factory _DeleteCustomEmoji.fromJson(Map json) = - _$DeleteCustomEmojiImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String? get auth; - - /// Create a copy of DeleteCustomEmoji - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeleteCustomEmojiImplCopyWith<_$DeleteCustomEmojiImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/custom_emoji/custom_emoji.g.dart b/lib/src/v3/api/custom_emoji/custom_emoji.g.dart deleted file mode 100644 index 38abe812..00000000 --- a/lib/src/v3/api/custom_emoji/custom_emoji.g.dart +++ /dev/null @@ -1,94 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'custom_emoji.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CreateCustomEmojiImpl _$$CreateCustomEmojiImplFromJson( - Map json) => - _$CreateCustomEmojiImpl( - category: json['category'] as String, - shortcode: json['shortcode'] as String, - imageUrl: json['image_url'] as String, - altText: json['alt_text'] as String, - keywords: - (json['keywords'] as List).map((e) => e as String).toList(), - auth: json['auth'] as String?, - ); - -Map _$$CreateCustomEmojiImplToJson( - _$CreateCustomEmojiImpl instance) { - final val = { - 'category': instance.category, - 'shortcode': instance.shortcode, - 'image_url': instance.imageUrl, - 'alt_text': instance.altText, - 'keywords': instance.keywords, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$EditCustomEmojiImpl _$$EditCustomEmojiImplFromJson( - Map json) => - _$EditCustomEmojiImpl( - id: (json['id'] as num).toInt(), - category: json['category'] as String, - imageUrl: json['image_url'] as String, - altText: json['alt_text'] as String, - keywords: - (json['keywords'] as List).map((e) => e as String).toList(), - auth: json['auth'] as String?, - ); - -Map _$$EditCustomEmojiImplToJson( - _$EditCustomEmojiImpl instance) { - final val = { - 'id': instance.id, - 'category': instance.category, - 'image_url': instance.imageUrl, - 'alt_text': instance.altText, - 'keywords': instance.keywords, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$DeleteCustomEmojiImpl _$$DeleteCustomEmojiImplFromJson( - Map json) => - _$DeleteCustomEmojiImpl( - id: (json['id'] as num).toInt(), - auth: json['auth'] as String?, - ); - -Map _$$DeleteCustomEmojiImplToJson( - _$DeleteCustomEmojiImpl instance) { - final val = { - 'id': instance.id, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/federated_instances/federated_instances.dart b/lib/src/v3/api/federated_instances/federated_instances.dart deleted file mode 100644 index a5ae3aa3..00000000 --- a/lib/src/v3/api/federated_instances/federated_instances.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'federated_instances.freezed.dart'; -part 'federated_instances.g.dart'; - -/// Get the federated_instances. -/// -/// `HTTP.GET /federated_instances` -@freezed -class GetFederatedInstances - with _$GetFederatedInstances - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetFederatedInstances({ - String? auth, - }) = _GetFederatedInstances; - - const GetFederatedInstances._(); - factory GetFederatedInstances.fromJson(Map json) => - _$GetFederatedInstancesFromJson(json); - - final path = '/federated_instances'; - - final httpMethod = HttpMethod.get; - - @override - GetFederatedInstancesResponse responseFactory(Map json) => - GetFederatedInstancesResponse.fromJson(json); -} diff --git a/lib/src/v3/api/federated_instances/federated_instances.freezed.dart b/lib/src/v3/api/federated_instances/federated_instances.freezed.dart deleted file mode 100644 index 3777b793..00000000 --- a/lib/src/v3/api/federated_instances/federated_instances.freezed.dart +++ /dev/null @@ -1,172 +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 'federated_instances.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'); - -GetFederatedInstances _$GetFederatedInstancesFromJson( - Map json) { - return _GetFederatedInstances.fromJson(json); -} - -/// @nodoc -mixin _$GetFederatedInstances { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetFederatedInstances to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetFederatedInstances - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetFederatedInstancesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetFederatedInstancesCopyWith<$Res> { - factory $GetFederatedInstancesCopyWith(GetFederatedInstances value, - $Res Function(GetFederatedInstances) then) = - _$GetFederatedInstancesCopyWithImpl<$Res, GetFederatedInstances>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GetFederatedInstancesCopyWithImpl<$Res, - $Val extends GetFederatedInstances> - implements $GetFederatedInstancesCopyWith<$Res> { - _$GetFederatedInstancesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetFederatedInstances - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetFederatedInstancesImplCopyWith<$Res> - implements $GetFederatedInstancesCopyWith<$Res> { - factory _$$GetFederatedInstancesImplCopyWith( - _$GetFederatedInstancesImpl value, - $Res Function(_$GetFederatedInstancesImpl) then) = - __$$GetFederatedInstancesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GetFederatedInstancesImplCopyWithImpl<$Res> - extends _$GetFederatedInstancesCopyWithImpl<$Res, - _$GetFederatedInstancesImpl> - implements _$$GetFederatedInstancesImplCopyWith<$Res> { - __$$GetFederatedInstancesImplCopyWithImpl(_$GetFederatedInstancesImpl _value, - $Res Function(_$GetFederatedInstancesImpl) _then) - : super(_value, _then); - - /// Create a copy of GetFederatedInstances - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GetFederatedInstancesImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetFederatedInstancesImpl extends _GetFederatedInstances { - const _$GetFederatedInstancesImpl({this.auth}) : super._(); - - factory _$GetFederatedInstancesImpl.fromJson(Map json) => - _$$GetFederatedInstancesImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GetFederatedInstances(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetFederatedInstancesImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GetFederatedInstances - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetFederatedInstancesImplCopyWith<_$GetFederatedInstancesImpl> - get copyWith => __$$GetFederatedInstancesImplCopyWithImpl< - _$GetFederatedInstancesImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetFederatedInstancesImplToJson( - this, - ); - } -} - -abstract class _GetFederatedInstances extends GetFederatedInstances { - const factory _GetFederatedInstances({final String? auth}) = - _$GetFederatedInstancesImpl; - const _GetFederatedInstances._() : super._(); - - factory _GetFederatedInstances.fromJson(Map json) = - _$GetFederatedInstancesImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GetFederatedInstances - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetFederatedInstancesImplCopyWith<_$GetFederatedInstancesImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/federated_instances/federated_instances.g.dart b/lib/src/v3/api/federated_instances/federated_instances.g.dart deleted file mode 100644 index b71fa241..00000000 --- a/lib/src/v3/api/federated_instances/federated_instances.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'federated_instances.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetFederatedInstancesImpl _$$GetFederatedInstancesImplFromJson( - Map json) => - _$GetFederatedInstancesImpl( - auth: json['auth'] as String?, - ); - -Map _$$GetFederatedInstancesImplToJson( - _$GetFederatedInstancesImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/modlog/modlog.dart b/lib/src/v3/api/modlog/modlog.dart deleted file mode 100644 index febbda82..00000000 --- a/lib/src/v3/api/modlog/modlog.dart +++ /dev/null @@ -1,42 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'modlog.freezed.dart'; -part 'modlog.g.dart'; - -/// Get the modlog. -/// -/// `HTTP.GET /modlog` -@freezed -class GetModlog - with _$GetModlog - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetModlog({ - int? modPersonId, // v0.18.0 - int? communityId, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - @JsonKey(name: 'type_') ModlogActionType? type, // v0.18.0 - int? otherPersonId, // v0.18.0 - int? postId, // v0.19.4 (optional) - int? commentId, // v0.19.4 (optional) - String? auth, - }) = _GetModlog; - - const GetModlog._(); - factory GetModlog.fromJson(Map json) => - _$GetModlogFromJson(json); - - final path = '/modlog'; - - final httpMethod = HttpMethod.get; - - @override - GetModlogResponse responseFactory(Map json) => - GetModlogResponse.fromJson(json); -} diff --git a/lib/src/v3/api/modlog/modlog.freezed.dart b/lib/src/v3/api/modlog/modlog.freezed.dart deleted file mode 100644 index dac46256..00000000 --- a/lib/src/v3/api/modlog/modlog.freezed.dart +++ /dev/null @@ -1,347 +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 'modlog.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'); - -GetModlog _$GetModlogFromJson(Map json) { - return _GetModlog.fromJson(json); -} - -/// @nodoc -mixin _$GetModlog { - int? get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'type_') - ModlogActionType? get type => throw _privateConstructorUsedError; // v0.18.0 - int? get otherPersonId => throw _privateConstructorUsedError; // v0.18.0 - int? get postId => throw _privateConstructorUsedError; // v0.19.4 (optional) - int? get commentId => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetModlog to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetModlog - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetModlogCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetModlogCopyWith<$Res> { - factory $GetModlogCopyWith(GetModlog value, $Res Function(GetModlog) then) = - _$GetModlogCopyWithImpl<$Res, GetModlog>; - @useResult - $Res call( - {int? modPersonId, - int? communityId, - int? page, - int? limit, - @JsonKey(name: 'type_') ModlogActionType? type, - int? otherPersonId, - int? postId, - int? commentId, - String? auth}); -} - -/// @nodoc -class _$GetModlogCopyWithImpl<$Res, $Val extends GetModlog> - implements $GetModlogCopyWith<$Res> { - _$GetModlogCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetModlog - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modPersonId = freezed, - Object? communityId = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? type = freezed, - Object? otherPersonId = freezed, - Object? postId = freezed, - Object? commentId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - modPersonId: freezed == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ModlogActionType?, - otherPersonId: freezed == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int?, - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - commentId: freezed == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetModlogImplCopyWith<$Res> - implements $GetModlogCopyWith<$Res> { - factory _$$GetModlogImplCopyWith( - _$GetModlogImpl value, $Res Function(_$GetModlogImpl) then) = - __$$GetModlogImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? modPersonId, - int? communityId, - int? page, - int? limit, - @JsonKey(name: 'type_') ModlogActionType? type, - int? otherPersonId, - int? postId, - int? commentId, - String? auth}); -} - -/// @nodoc -class __$$GetModlogImplCopyWithImpl<$Res> - extends _$GetModlogCopyWithImpl<$Res, _$GetModlogImpl> - implements _$$GetModlogImplCopyWith<$Res> { - __$$GetModlogImplCopyWithImpl( - _$GetModlogImpl _value, $Res Function(_$GetModlogImpl) _then) - : super(_value, _then); - - /// Create a copy of GetModlog - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modPersonId = freezed, - Object? communityId = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? type = freezed, - Object? otherPersonId = freezed, - Object? postId = freezed, - Object? commentId = freezed, - Object? auth = freezed, - }) { - return _then(_$GetModlogImpl( - modPersonId: freezed == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ModlogActionType?, - otherPersonId: freezed == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int?, - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - commentId: freezed == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetModlogImpl extends _GetModlog { - const _$GetModlogImpl( - {this.modPersonId, - this.communityId, - this.page, - this.limit, - @JsonKey(name: 'type_') this.type, - this.otherPersonId, - this.postId, - this.commentId, - this.auth}) - : super._(); - - factory _$GetModlogImpl.fromJson(Map json) => - _$$GetModlogImplFromJson(json); - - @override - final int? modPersonId; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - @JsonKey(name: 'type_') - final ModlogActionType? type; -// v0.18.0 - @override - final int? otherPersonId; -// v0.18.0 - @override - final int? postId; -// v0.19.4 (optional) - @override - final int? commentId; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'GetModlog(modPersonId: $modPersonId, communityId: $communityId, page: $page, limit: $limit, type: $type, otherPersonId: $otherPersonId, postId: $postId, commentId: $commentId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetModlogImpl && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.type, type) || other.type == type) && - (identical(other.otherPersonId, otherPersonId) || - other.otherPersonId == otherPersonId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, modPersonId, communityId, page, - limit, type, otherPersonId, postId, commentId, auth); - - /// Create a copy of GetModlog - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetModlogImplCopyWith<_$GetModlogImpl> get copyWith => - __$$GetModlogImplCopyWithImpl<_$GetModlogImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetModlogImplToJson( - this, - ); - } -} - -abstract class _GetModlog extends GetModlog { - const factory _GetModlog( - {final int? modPersonId, - final int? communityId, - final int? page, - final int? limit, - @JsonKey(name: 'type_') final ModlogActionType? type, - final int? otherPersonId, - final int? postId, - final int? commentId, - final String? auth}) = _$GetModlogImpl; - const _GetModlog._() : super._(); - - factory _GetModlog.fromJson(Map json) = - _$GetModlogImpl.fromJson; - - @override - int? get modPersonId; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - @JsonKey(name: 'type_') - ModlogActionType? get type; // v0.18.0 - @override - int? get otherPersonId; // v0.18.0 - @override - int? get postId; // v0.19.4 (optional) - @override - int? get commentId; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of GetModlog - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetModlogImplCopyWith<_$GetModlogImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/modlog/modlog.g.dart b/lib/src/v3/api/modlog/modlog.g.dart deleted file mode 100644 index 2f35a090..00000000 --- a/lib/src/v3/api/modlog/modlog.g.dart +++ /dev/null @@ -1,43 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'modlog.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetModlogImpl _$$GetModlogImplFromJson(Map json) => - _$GetModlogImpl( - modPersonId: (json['mod_person_id'] as num?)?.toInt(), - communityId: (json['community_id'] as num?)?.toInt(), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - type: json['type_'] == null - ? null - : ModlogActionType.fromJson(json['type_'] as String), - otherPersonId: (json['other_person_id'] as num?)?.toInt(), - postId: (json['post_id'] as num?)?.toInt(), - commentId: (json['comment_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$GetModlogImplToJson(_$GetModlogImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('mod_person_id', instance.modPersonId); - writeNotNull('community_id', instance.communityId); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('type_', instance.type?.toJson()); - writeNotNull('other_person_id', instance.otherPersonId); - writeNotNull('post_id', instance.postId); - writeNotNull('comment_id', instance.commentId); - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/post/post.dart b/lib/src/v3/api/post/post.dart deleted file mode 100644 index 18d6f79f..00000000 --- a/lib/src/v3/api/post/post.dart +++ /dev/null @@ -1,510 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'post.freezed.dart'; -part 'post.g.dart'; - -/// Create a post. -/// -/// `HTTP.POST /post` -@freezed -class CreatePost - with _$CreatePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreatePost({ - required String name, // v0.18.0 - required int communityId, // v0.18.0 - String? url, // v0.18.0 - String? body, // v0.18.0 - String? altText, // v0.19.4 (optional) - String? honeypot, // v0.18.0 - bool? nsfw, // v0.18.0 - int? languageId, // v0.18.0 - String? customThumbnail, // v0.19.4 (optional) - String? auth, - }) = _CreatePost; - - const CreatePost._(); - factory CreatePost.fromJson(Map json) => - _$CreatePostFromJson(json); - - final path = '/post'; - - final httpMethod = HttpMethod.post; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// Get / fetch a post. -/// -/// `HTTP.GET /post` -@freezed -class GetPost - with _$GetPost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetPost({ - int? id, // v0.18.0 - int? commentId, // v0.18.0 - String? auth, - }) = _GetPost; - - const GetPost._(); - factory GetPost.fromJson(Map json) => - _$GetPostFromJson(json); - - final path = '/post'; - - final httpMethod = HttpMethod.get; - - @override - GetPostResponse responseFactory(Map json) => - GetPostResponse.fromJson(json); -} - -/// Edit a post. -/// -/// `HTTP.PUT /post` -@freezed -class EditPost - with _$EditPost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory EditPost({ - required int postId, // v0.18.0 - String? name, // v0.18.0 - String? url, // v0.18.0 - String? body, // v0.18.0 - String? altText, // v0.19.4 (optional) - bool? nsfw, // v0.18.0 - int? languageId, // v0.18.0 - String? customThumbnail, // v0.19.4 (optional) - String? auth, - }) = _EditPost; - - const EditPost._(); - factory EditPost.fromJson(Map json) => - _$EditPostFromJson(json); - - final path = '/post'; - - final httpMethod = HttpMethod.put; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// Delete a post. -/// -/// `HTTP.POST /post/delete` -@freezed -class DeletePost - with _$DeletePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory DeletePost({ - required int postId, // v0.18.0 - required bool deleted, // v0.18.0 - String? auth, - }) = _DeletePost; - - const DeletePost._(); - factory DeletePost.fromJson(Map json) => - _$DeletePostFromJson(json); - - final path = '/post/delete'; - - final httpMethod = HttpMethod.post; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// A moderator remove for a post. -/// -/// `HTTP.POST /post/remove` -@freezed -class RemovePost - with _$RemovePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory RemovePost({ - required int postId, // v0.18.0 - required bool removed, // v0.18.0 - String? reason, // v0.18.0 - String? auth, - }) = _RemovePost; - - const RemovePost._(); - factory RemovePost.fromJson(Map json) => - _$RemovePostFromJson(json); - - final path = '/post/remove'; - - final httpMethod = HttpMethod.post; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// Mark a post as read. -/// -/// `HTTP.POST /post/mark_as_read` -@freezed -class MarkPostAsRead - with _$MarkPostAsRead - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory MarkPostAsRead({ - @deprecated - int? - postId, // v0.18.0 (required), v0.19.0 (optional) [deprecated in v0.19.4] - List? postIds, // v0.19.0 (optional) - required bool read, // v0.18.0 - String? auth, - }) = _MarkPostAsRead; - - const MarkPostAsRead._(); - factory MarkPostAsRead.fromJson(Map json) => - _$MarkPostAsReadFromJson(json); - - final path = '/post/mark_as_read'; - - final httpMethod = HttpMethod.post; - - @override - MarkPostAsReadResponse responseFactory(Map json) => - MarkPostAsReadResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.4 and above -/// -/// Hide a post from list views. -/// -/// `HTTP.POST /post/hide` -@freezed -class HidePost - with _$HidePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory HidePost({ - required List postIds, // v0.19.4 (required) - required bool hide, // v0.19.4 (required) - String? auth, - }) = _HidePost; - - const HidePost._(); - factory HidePost.fromJson(Map json) => - _$HidePostFromJson(json); - - final path = '/post/hide'; - - final httpMethod = HttpMethod.post; - - @override - SuccessResponse responseFactory(Map json) => - SuccessResponse.fromJson(json); -} - -/// A moderator can lock a post ( IE disable new comments ). -/// -/// `HTTP.POST /post/lock` -@freezed -class LockPost - with _$LockPost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory LockPost({ - required int postId, // v0.18.0 - required bool locked, // v0.18.0 - String? auth, - }) = _LockPost; - - const LockPost._(); - factory LockPost.fromJson(Map json) => - _$LockPostFromJson(json); - - final path = '/post/lock'; - - final httpMethod = HttpMethod.post; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// A moderator can feature a community post ( IE stick it to the top of a community ). -/// -/// `HTTP.POST /post/feature` -@freezed -class FeaturePost - with _$FeaturePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory FeaturePost({ - required int postId, // v0.18.0 - required bool featured, // v0.18.0 - required PostFeatureType featureType, // v0.18.0 - String? auth, - }) = _FeaturePost; - - const FeaturePost._(); - factory FeaturePost.fromJson(Map json) => - _$FeaturePostFromJson(json); - - final path = '/post/feature'; - - final httpMethod = HttpMethod.post; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// Get / fetch posts, with various filters. -/// -/// `HTTP.GET /post/list` -@freezed -class GetPosts - with _$GetPosts - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetPosts({ - @JsonKey(name: 'type_') ListingType? type, // v0.18.0 - SortType? sort, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - int? communityId, // v0.18.0 - String? communityName, // v0.18.0 - bool? savedOnly, // v0.18.0 - @deprecated bool? moderatorView, // v0.18.3 [deprecated in v0.19.0] - String? auth, - bool? likedOnly, // v0.19.0 (optional) - bool? dislikedOnly, // v0.19.0 (optional) - bool? showHidden, // v0.19.4 (optional) - bool? showRead, // v0.19.6 (optional) - bool? showNsfw, // v0.19.6 (optional) - String? pageCursor, // v0.19.0 (optional) - }) = _GetPosts; - - const GetPosts._(); - factory GetPosts.fromJson(Map json) => - _$GetPostsFromJson(json); - - final path = '/post/list'; - - final httpMethod = HttpMethod.get; - - @override - GetPostsResponse responseFactory(Map json) => - GetPostsResponse.fromJson(json); -} - -/// Like / vote on a post. -/// -/// `HTTP.POST /post/like` -@freezed -class CreatePostLike - with _$CreatePostLike - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreatePostLike({ - required int postId, // v0.18.0 - required num score, // v0.18.0 - String? auth, - }) = _CreatePostLike; - - const CreatePostLike._(); - factory CreatePostLike.fromJson(Map json) => - _$CreatePostLikeFromJson(json); - - final path = '/post/like'; - - final httpMethod = HttpMethod.post; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.2 and above -/// -/// List a post's likes. Admin-only. -/// -/// `HTTP.GET /post/like/list` -@freezed -class ListPostLikes - with _$ListPostLikes - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListPostLikes({ - required int postId, // v0.19.2 (required) - int? page, // v0.19.2 (optional) - int? limit, // v0.19.2 (optional) - String? auth, - }) = _ListPostLikes; - - const ListPostLikes._(); - factory ListPostLikes.fromJson(Map json) => - _$ListPostLikesFromJson(json); - - final path = '/post/like/list'; - - final httpMethod = HttpMethod.get; - - @override - ListPostLikesResponse responseFactory(Map json) => - ListPostLikesResponse.fromJson(json); -} - -/// Save a post. -/// -/// `HTTP.PUT /post/save` -@freezed -class SavePost - with _$SavePost - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory SavePost({ - required int postId, // v0.18.0 - required bool save, // v0.18.0 - String? auth, - }) = _SavePost; - - const SavePost._(); - factory SavePost.fromJson(Map json) => - _$SavePostFromJson(json); - - final path = '/post/save'; - - final httpMethod = HttpMethod.put; - - @override - PostResponse responseFactory(Map json) => - PostResponse.fromJson(json); -} - -/// Report a post. -/// -/// `HTTP.POST /post/report` -@freezed -class CreatePostReport - with _$CreatePostReport - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreatePostReport({ - required int postId, // v0.18.0 - required String reason, // v0.18.0 - String? auth, - }) = _CreatePostReport; - - const CreatePostReport._(); - factory CreatePostReport.fromJson(Map json) => - _$CreatePostReportFromJson(json); - - final path = '/post/report'; - - final httpMethod = HttpMethod.post; - - @override - PostReportResponse responseFactory(Map json) => - PostReportResponse.fromJson(json); -} - -/// Resolve a post report. Only a mod can do this. -/// -/// `HTTP.PUT /post/report/resolve` -@freezed -class ResolvePostReport - with _$ResolvePostReport - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory ResolvePostReport({ - required int reportId, // v0.18.0 - required bool resolved, // v0.18.0 - String? auth, - }) = _ResolvePostReport; - - const ResolvePostReport._(); - factory ResolvePostReport.fromJson(Map json) => - _$ResolvePostReportFromJson(json); - - final path = '/post/report/resolve'; - - final httpMethod = HttpMethod.put; - - @override - PostReportResponse responseFactory(Map json) => - PostReportResponse.fromJson(json); -} - -/// List post reports. -/// -/// `HTTP.GET /post/report/list` -@freezed -class ListPostReports - with _$ListPostReports - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListPostReports({ - int? page, // v0.18.0 - int? limit, // v0.18.0 - bool? unresolvedOnly, // v0.18.0 - int? communityId, // v0.18.0 - int? postId, // v0.19.4 (optional) - String? auth, - }) = _ListPostReports; - - const ListPostReports._(); - factory ListPostReports.fromJson(Map json) => - _$ListPostReportsFromJson(json); - - final path = '/post/report/list'; - - final httpMethod = HttpMethod.get; - - @override - ListPostReportsResponse responseFactory(Map json) => - ListPostReportsResponse.fromJson(json); -} - -/// Fetch metadata for any given site. -/// -/// `HTTP.GET /post/site_metadata` -@freezed -class GetSiteMetadata - with _$GetSiteMetadata - implements LemmyApiQuery { - @apiSerde - const factory GetSiteMetadata({ - required String url, // v0.18.0 - }) = _GetSiteMetadata; - - const GetSiteMetadata._(); - factory GetSiteMetadata.fromJson(Map json) => - _$GetSiteMetadataFromJson(json); - - final path = '/post/site_metadata'; - - final httpMethod = HttpMethod.get; - - @override - GetSiteMetadataResponse responseFactory(Map json) => - GetSiteMetadataResponse.fromJson(json); -} diff --git a/lib/src/v3/api/post/post.freezed.dart b/lib/src/v3/api/post/post.freezed.dart deleted file mode 100644 index 9fbb85ab..00000000 --- a/lib/src/v3/api/post/post.freezed.dart +++ /dev/null @@ -1,3987 +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 'post.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'); - -CreatePost _$CreatePostFromJson(Map json) { - return _CreatePost.fromJson(json); -} - -/// @nodoc -mixin _$CreatePost { - String get name => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get url => throw _privateConstructorUsedError; // v0.18.0 - String? get body => throw _privateConstructorUsedError; // v0.18.0 - String? get altText => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get honeypot => throw _privateConstructorUsedError; // v0.18.0 - bool? get nsfw => throw _privateConstructorUsedError; // v0.18.0 - int? get languageId => throw _privateConstructorUsedError; // v0.18.0 - String? get customThumbnail => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreatePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreatePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreatePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreatePostCopyWith<$Res> { - factory $CreatePostCopyWith( - CreatePost value, $Res Function(CreatePost) then) = - _$CreatePostCopyWithImpl<$Res, CreatePost>; - @useResult - $Res call( - {String name, - int communityId, - String? url, - String? body, - String? altText, - String? honeypot, - bool? nsfw, - int? languageId, - String? customThumbnail, - String? auth}); -} - -/// @nodoc -class _$CreatePostCopyWithImpl<$Res, $Val extends CreatePost> - implements $CreatePostCopyWith<$Res> { - _$CreatePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreatePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? communityId = null, - Object? url = freezed, - Object? body = freezed, - Object? altText = freezed, - Object? honeypot = freezed, - Object? nsfw = freezed, - Object? languageId = freezed, - Object? customThumbnail = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - body: freezed == body - ? _value.body - : body // ignore: cast_nullable_to_non_nullable - as String?, - altText: freezed == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String?, - honeypot: freezed == honeypot - ? _value.honeypot - : honeypot // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - customThumbnail: freezed == customThumbnail - ? _value.customThumbnail - : customThumbnail // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreatePostImplCopyWith<$Res> - implements $CreatePostCopyWith<$Res> { - factory _$$CreatePostImplCopyWith( - _$CreatePostImpl value, $Res Function(_$CreatePostImpl) then) = - __$$CreatePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String name, - int communityId, - String? url, - String? body, - String? altText, - String? honeypot, - bool? nsfw, - int? languageId, - String? customThumbnail, - String? auth}); -} - -/// @nodoc -class __$$CreatePostImplCopyWithImpl<$Res> - extends _$CreatePostCopyWithImpl<$Res, _$CreatePostImpl> - implements _$$CreatePostImplCopyWith<$Res> { - __$$CreatePostImplCopyWithImpl( - _$CreatePostImpl _value, $Res Function(_$CreatePostImpl) _then) - : super(_value, _then); - - /// Create a copy of CreatePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? communityId = null, - Object? url = freezed, - Object? body = freezed, - Object? altText = freezed, - Object? honeypot = freezed, - Object? nsfw = freezed, - Object? languageId = freezed, - Object? customThumbnail = freezed, - Object? auth = freezed, - }) { - return _then(_$CreatePostImpl( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - body: freezed == body - ? _value.body - : body // ignore: cast_nullable_to_non_nullable - as String?, - altText: freezed == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String?, - honeypot: freezed == honeypot - ? _value.honeypot - : honeypot // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - customThumbnail: freezed == customThumbnail - ? _value.customThumbnail - : customThumbnail // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreatePostImpl extends _CreatePost { - const _$CreatePostImpl( - {required this.name, - required this.communityId, - this.url, - this.body, - this.altText, - this.honeypot, - this.nsfw, - this.languageId, - this.customThumbnail, - this.auth}) - : super._(); - - factory _$CreatePostImpl.fromJson(Map json) => - _$$CreatePostImplFromJson(json); - - @override - final String name; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final String? url; -// v0.18.0 - @override - final String? body; -// v0.18.0 - @override - final String? altText; -// v0.19.4 (optional) - @override - final String? honeypot; -// v0.18.0 - @override - final bool? nsfw; -// v0.18.0 - @override - final int? languageId; -// v0.18.0 - @override - final String? customThumbnail; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'CreatePost(name: $name, communityId: $communityId, url: $url, body: $body, altText: $altText, honeypot: $honeypot, nsfw: $nsfw, languageId: $languageId, customThumbnail: $customThumbnail, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreatePostImpl && - (identical(other.name, name) || other.name == name) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.url, url) || other.url == url) && - (identical(other.body, body) || other.body == body) && - (identical(other.altText, altText) || other.altText == altText) && - (identical(other.honeypot, honeypot) || - other.honeypot == honeypot) && - (identical(other.nsfw, nsfw) || other.nsfw == nsfw) && - (identical(other.languageId, languageId) || - other.languageId == languageId) && - (identical(other.customThumbnail, customThumbnail) || - other.customThumbnail == customThumbnail) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, name, communityId, url, body, - altText, honeypot, nsfw, languageId, customThumbnail, auth); - - /// Create a copy of CreatePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreatePostImplCopyWith<_$CreatePostImpl> get copyWith => - __$$CreatePostImplCopyWithImpl<_$CreatePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CreatePostImplToJson( - this, - ); - } -} - -abstract class _CreatePost extends CreatePost { - const factory _CreatePost( - {required final String name, - required final int communityId, - final String? url, - final String? body, - final String? altText, - final String? honeypot, - final bool? nsfw, - final int? languageId, - final String? customThumbnail, - final String? auth}) = _$CreatePostImpl; - const _CreatePost._() : super._(); - - factory _CreatePost.fromJson(Map json) = - _$CreatePostImpl.fromJson; - - @override - String get name; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - String? get url; // v0.18.0 - @override - String? get body; // v0.18.0 - @override - String? get altText; // v0.19.4 (optional) - @override - String? get honeypot; // v0.18.0 - @override - bool? get nsfw; // v0.18.0 - @override - int? get languageId; // v0.18.0 - @override - String? get customThumbnail; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of CreatePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreatePostImplCopyWith<_$CreatePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetPost _$GetPostFromJson(Map json) { - return _GetPost.fromJson(json); -} - -/// @nodoc -mixin _$GetPost { - int? get id => throw _privateConstructorUsedError; // v0.18.0 - int? get commentId => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetPost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPostCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPostCopyWith<$Res> { - factory $GetPostCopyWith(GetPost value, $Res Function(GetPost) then) = - _$GetPostCopyWithImpl<$Res, GetPost>; - @useResult - $Res call({int? id, int? commentId, String? auth}); -} - -/// @nodoc -class _$GetPostCopyWithImpl<$Res, $Val extends GetPost> - implements $GetPostCopyWith<$Res> { - _$GetPostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? commentId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - commentId: freezed == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPostImplCopyWith<$Res> implements $GetPostCopyWith<$Res> { - factory _$$GetPostImplCopyWith( - _$GetPostImpl value, $Res Function(_$GetPostImpl) then) = - __$$GetPostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? id, int? commentId, String? auth}); -} - -/// @nodoc -class __$$GetPostImplCopyWithImpl<$Res> - extends _$GetPostCopyWithImpl<$Res, _$GetPostImpl> - implements _$$GetPostImplCopyWith<$Res> { - __$$GetPostImplCopyWithImpl( - _$GetPostImpl _value, $Res Function(_$GetPostImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? commentId = freezed, - Object? auth = freezed, - }) { - return _then(_$GetPostImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - commentId: freezed == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetPostImpl extends _GetPost { - const _$GetPostImpl({this.id, this.commentId, this.auth}) : super._(); - - factory _$GetPostImpl.fromJson(Map json) => - _$$GetPostImplFromJson(json); - - @override - final int? id; -// v0.18.0 - @override - final int? commentId; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetPost(id: $id, commentId: $commentId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPostImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, commentId, auth); - - /// Create a copy of GetPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPostImplCopyWith<_$GetPostImpl> get copyWith => - __$$GetPostImplCopyWithImpl<_$GetPostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetPostImplToJson( - this, - ); - } -} - -abstract class _GetPost extends GetPost { - const factory _GetPost( - {final int? id, - final int? commentId, - final String? auth}) = _$GetPostImpl; - const _GetPost._() : super._(); - - factory _GetPost.fromJson(Map json) = _$GetPostImpl.fromJson; - - @override - int? get id; // v0.18.0 - @override - int? get commentId; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetPost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPostImplCopyWith<_$GetPostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -EditPost _$EditPostFromJson(Map json) { - return _EditPost.fromJson(json); -} - -/// @nodoc -mixin _$EditPost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String? get name => throw _privateConstructorUsedError; // v0.18.0 - String? get url => throw _privateConstructorUsedError; // v0.18.0 - String? get body => throw _privateConstructorUsedError; // v0.18.0 - String? get altText => - throw _privateConstructorUsedError; // v0.19.4 (optional) - bool? get nsfw => throw _privateConstructorUsedError; // v0.18.0 - int? get languageId => throw _privateConstructorUsedError; // v0.18.0 - String? get customThumbnail => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this EditPost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of EditPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $EditPostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $EditPostCopyWith<$Res> { - factory $EditPostCopyWith(EditPost value, $Res Function(EditPost) then) = - _$EditPostCopyWithImpl<$Res, EditPost>; - @useResult - $Res call( - {int postId, - String? name, - String? url, - String? body, - String? altText, - bool? nsfw, - int? languageId, - String? customThumbnail, - String? auth}); -} - -/// @nodoc -class _$EditPostCopyWithImpl<$Res, $Val extends EditPost> - implements $EditPostCopyWith<$Res> { - _$EditPostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of EditPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? name = freezed, - Object? url = freezed, - Object? body = freezed, - Object? altText = freezed, - Object? nsfw = freezed, - Object? languageId = freezed, - Object? customThumbnail = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - body: freezed == body - ? _value.body - : body // ignore: cast_nullable_to_non_nullable - as String?, - altText: freezed == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - customThumbnail: freezed == customThumbnail - ? _value.customThumbnail - : customThumbnail // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$EditPostImplCopyWith<$Res> - implements $EditPostCopyWith<$Res> { - factory _$$EditPostImplCopyWith( - _$EditPostImpl value, $Res Function(_$EditPostImpl) then) = - __$$EditPostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int postId, - String? name, - String? url, - String? body, - String? altText, - bool? nsfw, - int? languageId, - String? customThumbnail, - String? auth}); -} - -/// @nodoc -class __$$EditPostImplCopyWithImpl<$Res> - extends _$EditPostCopyWithImpl<$Res, _$EditPostImpl> - implements _$$EditPostImplCopyWith<$Res> { - __$$EditPostImplCopyWithImpl( - _$EditPostImpl _value, $Res Function(_$EditPostImpl) _then) - : super(_value, _then); - - /// Create a copy of EditPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? name = freezed, - Object? url = freezed, - Object? body = freezed, - Object? altText = freezed, - Object? nsfw = freezed, - Object? languageId = freezed, - Object? customThumbnail = freezed, - Object? auth = freezed, - }) { - return _then(_$EditPostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - body: freezed == body - ? _value.body - : body // ignore: cast_nullable_to_non_nullable - as String?, - altText: freezed == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String?, - nsfw: freezed == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool?, - languageId: freezed == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int?, - customThumbnail: freezed == customThumbnail - ? _value.customThumbnail - : customThumbnail // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$EditPostImpl extends _EditPost { - const _$EditPostImpl( - {required this.postId, - this.name, - this.url, - this.body, - this.altText, - this.nsfw, - this.languageId, - this.customThumbnail, - this.auth}) - : super._(); - - factory _$EditPostImpl.fromJson(Map json) => - _$$EditPostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final String? name; -// v0.18.0 - @override - final String? url; -// v0.18.0 - @override - final String? body; -// v0.18.0 - @override - final String? altText; -// v0.19.4 (optional) - @override - final bool? nsfw; -// v0.18.0 - @override - final int? languageId; -// v0.18.0 - @override - final String? customThumbnail; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'EditPost(postId: $postId, name: $name, url: $url, body: $body, altText: $altText, nsfw: $nsfw, languageId: $languageId, customThumbnail: $customThumbnail, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditPostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.name, name) || other.name == name) && - (identical(other.url, url) || other.url == url) && - (identical(other.body, body) || other.body == body) && - (identical(other.altText, altText) || other.altText == altText) && - (identical(other.nsfw, nsfw) || other.nsfw == nsfw) && - (identical(other.languageId, languageId) || - other.languageId == languageId) && - (identical(other.customThumbnail, customThumbnail) || - other.customThumbnail == customThumbnail) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, name, url, body, altText, - nsfw, languageId, customThumbnail, auth); - - /// Create a copy of EditPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$EditPostImplCopyWith<_$EditPostImpl> get copyWith => - __$$EditPostImplCopyWithImpl<_$EditPostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$EditPostImplToJson( - this, - ); - } -} - -abstract class _EditPost extends EditPost { - const factory _EditPost( - {required final int postId, - final String? name, - final String? url, - final String? body, - final String? altText, - final bool? nsfw, - final int? languageId, - final String? customThumbnail, - final String? auth}) = _$EditPostImpl; - const _EditPost._() : super._(); - - factory _EditPost.fromJson(Map json) = - _$EditPostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - String? get name; // v0.18.0 - @override - String? get url; // v0.18.0 - @override - String? get body; // v0.18.0 - @override - String? get altText; // v0.19.4 (optional) - @override - bool? get nsfw; // v0.18.0 - @override - int? get languageId; // v0.18.0 - @override - String? get customThumbnail; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of EditPost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$EditPostImplCopyWith<_$EditPostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DeletePost _$DeletePostFromJson(Map json) { - return _DeletePost.fromJson(json); -} - -/// @nodoc -mixin _$DeletePost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DeletePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeletePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeletePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeletePostCopyWith<$Res> { - factory $DeletePostCopyWith( - DeletePost value, $Res Function(DeletePost) then) = - _$DeletePostCopyWithImpl<$Res, DeletePost>; - @useResult - $Res call({int postId, bool deleted, String? auth}); -} - -/// @nodoc -class _$DeletePostCopyWithImpl<$Res, $Val extends DeletePost> - implements $DeletePostCopyWith<$Res> { - _$DeletePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeletePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeletePostImplCopyWith<$Res> - implements $DeletePostCopyWith<$Res> { - factory _$$DeletePostImplCopyWith( - _$DeletePostImpl value, $Res Function(_$DeletePostImpl) then) = - __$$DeletePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, bool deleted, String? auth}); -} - -/// @nodoc -class __$$DeletePostImplCopyWithImpl<$Res> - extends _$DeletePostCopyWithImpl<$Res, _$DeletePostImpl> - implements _$$DeletePostImplCopyWith<$Res> { - __$$DeletePostImplCopyWithImpl( - _$DeletePostImpl _value, $Res Function(_$DeletePostImpl) _then) - : super(_value, _then); - - /// Create a copy of DeletePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_$DeletePostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DeletePostImpl extends _DeletePost { - const _$DeletePostImpl( - {required this.postId, required this.deleted, this.auth}) - : super._(); - - factory _$DeletePostImpl.fromJson(Map json) => - _$$DeletePostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'DeletePost(postId: $postId, deleted: $deleted, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeletePostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, deleted, auth); - - /// Create a copy of DeletePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeletePostImplCopyWith<_$DeletePostImpl> get copyWith => - __$$DeletePostImplCopyWithImpl<_$DeletePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DeletePostImplToJson( - this, - ); - } -} - -abstract class _DeletePost extends DeletePost { - const factory _DeletePost( - {required final int postId, - required final bool deleted, - final String? auth}) = _$DeletePostImpl; - const _DeletePost._() : super._(); - - factory _DeletePost.fromJson(Map json) = - _$DeletePostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - String? get auth; - - /// Create a copy of DeletePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeletePostImplCopyWith<_$DeletePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -RemovePost _$RemovePostFromJson(Map json) { - return _RemovePost.fromJson(json); -} - -/// @nodoc -mixin _$RemovePost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this RemovePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of RemovePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RemovePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RemovePostCopyWith<$Res> { - factory $RemovePostCopyWith( - RemovePost value, $Res Function(RemovePost) then) = - _$RemovePostCopyWithImpl<$Res, RemovePost>; - @useResult - $Res call({int postId, bool removed, String? reason, String? auth}); -} - -/// @nodoc -class _$RemovePostCopyWithImpl<$Res, $Val extends RemovePost> - implements $RemovePostCopyWith<$Res> { - _$RemovePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of RemovePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? removed = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$RemovePostImplCopyWith<$Res> - implements $RemovePostCopyWith<$Res> { - factory _$$RemovePostImplCopyWith( - _$RemovePostImpl value, $Res Function(_$RemovePostImpl) then) = - __$$RemovePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, bool removed, String? reason, String? auth}); -} - -/// @nodoc -class __$$RemovePostImplCopyWithImpl<$Res> - extends _$RemovePostCopyWithImpl<$Res, _$RemovePostImpl> - implements _$$RemovePostImplCopyWith<$Res> { - __$$RemovePostImplCopyWithImpl( - _$RemovePostImpl _value, $Res Function(_$RemovePostImpl) _then) - : super(_value, _then); - - /// Create a copy of RemovePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? removed = null, - Object? reason = freezed, - Object? auth = freezed, - }) { - return _then(_$RemovePostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$RemovePostImpl extends _RemovePost { - const _$RemovePostImpl( - {required this.postId, required this.removed, this.reason, this.auth}) - : super._(); - - factory _$RemovePostImpl.fromJson(Map json) => - _$$RemovePostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'RemovePost(postId: $postId, removed: $removed, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RemovePostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, removed, reason, auth); - - /// Create a copy of RemovePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RemovePostImplCopyWith<_$RemovePostImpl> get copyWith => - __$$RemovePostImplCopyWithImpl<_$RemovePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RemovePostImplToJson( - this, - ); - } -} - -abstract class _RemovePost extends RemovePost { - const factory _RemovePost( - {required final int postId, - required final bool removed, - final String? reason, - final String? auth}) = _$RemovePostImpl; - const _RemovePost._() : super._(); - - factory _RemovePost.fromJson(Map json) = - _$RemovePostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of RemovePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RemovePostImplCopyWith<_$RemovePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -MarkPostAsRead _$MarkPostAsReadFromJson(Map json) { - return _MarkPostAsRead.fromJson(json); -} - -/// @nodoc -mixin _$MarkPostAsRead { - @deprecated - int? get postId => - throw _privateConstructorUsedError; // v0.18.0 (required), v0.19.0 (optional) [deprecated in v0.19.4] - List? get postIds => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool get read => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this MarkPostAsRead to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MarkPostAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MarkPostAsReadCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MarkPostAsReadCopyWith<$Res> { - factory $MarkPostAsReadCopyWith( - MarkPostAsRead value, $Res Function(MarkPostAsRead) then) = - _$MarkPostAsReadCopyWithImpl<$Res, MarkPostAsRead>; - @useResult - $Res call( - {@deprecated int? postId, List? postIds, bool read, String? auth}); -} - -/// @nodoc -class _$MarkPostAsReadCopyWithImpl<$Res, $Val extends MarkPostAsRead> - implements $MarkPostAsReadCopyWith<$Res> { - _$MarkPostAsReadCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MarkPostAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = freezed, - Object? postIds = freezed, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - postIds: freezed == postIds - ? _value.postIds - : postIds // ignore: cast_nullable_to_non_nullable - as List?, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$MarkPostAsReadImplCopyWith<$Res> - implements $MarkPostAsReadCopyWith<$Res> { - factory _$$MarkPostAsReadImplCopyWith(_$MarkPostAsReadImpl value, - $Res Function(_$MarkPostAsReadImpl) then) = - __$$MarkPostAsReadImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? postId, List? postIds, bool read, String? auth}); -} - -/// @nodoc -class __$$MarkPostAsReadImplCopyWithImpl<$Res> - extends _$MarkPostAsReadCopyWithImpl<$Res, _$MarkPostAsReadImpl> - implements _$$MarkPostAsReadImplCopyWith<$Res> { - __$$MarkPostAsReadImplCopyWithImpl( - _$MarkPostAsReadImpl _value, $Res Function(_$MarkPostAsReadImpl) _then) - : super(_value, _then); - - /// Create a copy of MarkPostAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = freezed, - Object? postIds = freezed, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_$MarkPostAsReadImpl( - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - postIds: freezed == postIds - ? _value._postIds - : postIds // ignore: cast_nullable_to_non_nullable - as List?, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$MarkPostAsReadImpl extends _MarkPostAsRead { - const _$MarkPostAsReadImpl( - {@deprecated this.postId, - final List? postIds, - required this.read, - this.auth}) - : _postIds = postIds, - super._(); - - factory _$MarkPostAsReadImpl.fromJson(Map json) => - _$$MarkPostAsReadImplFromJson(json); - - @override - @deprecated - final int? postId; -// v0.18.0 (required), v0.19.0 (optional) [deprecated in v0.19.4] - final List? _postIds; -// v0.18.0 (required), v0.19.0 (optional) [deprecated in v0.19.4] - @override - List? get postIds { - final value = _postIds; - if (value == null) return null; - if (_postIds is EqualUnmodifiableListView) return _postIds; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.19.0 (optional) - @override - final bool read; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'MarkPostAsRead(postId: $postId, postIds: $postIds, read: $read, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MarkPostAsReadImpl && - (identical(other.postId, postId) || other.postId == postId) && - const DeepCollectionEquality().equals(other._postIds, _postIds) && - (identical(other.read, read) || other.read == read) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, - const DeepCollectionEquality().hash(_postIds), read, auth); - - /// Create a copy of MarkPostAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MarkPostAsReadImplCopyWith<_$MarkPostAsReadImpl> get copyWith => - __$$MarkPostAsReadImplCopyWithImpl<_$MarkPostAsReadImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$MarkPostAsReadImplToJson( - this, - ); - } -} - -abstract class _MarkPostAsRead extends MarkPostAsRead { - const factory _MarkPostAsRead( - {@deprecated final int? postId, - final List? postIds, - required final bool read, - final String? auth}) = _$MarkPostAsReadImpl; - const _MarkPostAsRead._() : super._(); - - factory _MarkPostAsRead.fromJson(Map json) = - _$MarkPostAsReadImpl.fromJson; - - @override - @deprecated - int? - get postId; // v0.18.0 (required), v0.19.0 (optional) [deprecated in v0.19.4] - @override - List? get postIds; // v0.19.0 (optional) - @override - bool get read; // v0.18.0 - @override - String? get auth; - - /// Create a copy of MarkPostAsRead - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MarkPostAsReadImplCopyWith<_$MarkPostAsReadImpl> get copyWith => - throw _privateConstructorUsedError; -} - -HidePost _$HidePostFromJson(Map json) { - return _HidePost.fromJson(json); -} - -/// @nodoc -mixin _$HidePost { - List get postIds => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool get hide => throw _privateConstructorUsedError; // v0.19.4 (required) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this HidePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of HidePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $HidePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $HidePostCopyWith<$Res> { - factory $HidePostCopyWith(HidePost value, $Res Function(HidePost) then) = - _$HidePostCopyWithImpl<$Res, HidePost>; - @useResult - $Res call({List postIds, bool hide, String? auth}); -} - -/// @nodoc -class _$HidePostCopyWithImpl<$Res, $Val extends HidePost> - implements $HidePostCopyWith<$Res> { - _$HidePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of HidePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postIds = null, - Object? hide = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postIds: null == postIds - ? _value.postIds - : postIds // ignore: cast_nullable_to_non_nullable - as List, - hide: null == hide - ? _value.hide - : hide // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$HidePostImplCopyWith<$Res> - implements $HidePostCopyWith<$Res> { - factory _$$HidePostImplCopyWith( - _$HidePostImpl value, $Res Function(_$HidePostImpl) then) = - __$$HidePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List postIds, bool hide, String? auth}); -} - -/// @nodoc -class __$$HidePostImplCopyWithImpl<$Res> - extends _$HidePostCopyWithImpl<$Res, _$HidePostImpl> - implements _$$HidePostImplCopyWith<$Res> { - __$$HidePostImplCopyWithImpl( - _$HidePostImpl _value, $Res Function(_$HidePostImpl) _then) - : super(_value, _then); - - /// Create a copy of HidePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postIds = null, - Object? hide = null, - Object? auth = freezed, - }) { - return _then(_$HidePostImpl( - postIds: null == postIds - ? _value._postIds - : postIds // ignore: cast_nullable_to_non_nullable - as List, - hide: null == hide - ? _value.hide - : hide // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$HidePostImpl extends _HidePost { - const _$HidePostImpl( - {required final List postIds, required this.hide, this.auth}) - : _postIds = postIds, - super._(); - - factory _$HidePostImpl.fromJson(Map json) => - _$$HidePostImplFromJson(json); - - final List _postIds; - @override - List get postIds { - if (_postIds is EqualUnmodifiableListView) return _postIds; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_postIds); - } - -// v0.19.4 (required) - @override - final bool hide; -// v0.19.4 (required) - @override - final String? auth; - - @override - String toString() { - return 'HidePost(postIds: $postIds, hide: $hide, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$HidePostImpl && - const DeepCollectionEquality().equals(other._postIds, _postIds) && - (identical(other.hide, hide) || other.hide == hide) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_postIds), hide, auth); - - /// Create a copy of HidePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$HidePostImplCopyWith<_$HidePostImpl> get copyWith => - __$$HidePostImplCopyWithImpl<_$HidePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$HidePostImplToJson( - this, - ); - } -} - -abstract class _HidePost extends HidePost { - const factory _HidePost( - {required final List postIds, - required final bool hide, - final String? auth}) = _$HidePostImpl; - const _HidePost._() : super._(); - - factory _HidePost.fromJson(Map json) = - _$HidePostImpl.fromJson; - - @override - List get postIds; // v0.19.4 (required) - @override - bool get hide; // v0.19.4 (required) - @override - String? get auth; - - /// Create a copy of HidePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$HidePostImplCopyWith<_$HidePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -LockPost _$LockPostFromJson(Map json) { - return _LockPost.fromJson(json); -} - -/// @nodoc -mixin _$LockPost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get locked => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this LockPost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LockPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LockPostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LockPostCopyWith<$Res> { - factory $LockPostCopyWith(LockPost value, $Res Function(LockPost) then) = - _$LockPostCopyWithImpl<$Res, LockPost>; - @useResult - $Res call({int postId, bool locked, String? auth}); -} - -/// @nodoc -class _$LockPostCopyWithImpl<$Res, $Val extends LockPost> - implements $LockPostCopyWith<$Res> { - _$LockPostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LockPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? locked = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - locked: null == locked - ? _value.locked - : locked // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LockPostImplCopyWith<$Res> - implements $LockPostCopyWith<$Res> { - factory _$$LockPostImplCopyWith( - _$LockPostImpl value, $Res Function(_$LockPostImpl) then) = - __$$LockPostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, bool locked, String? auth}); -} - -/// @nodoc -class __$$LockPostImplCopyWithImpl<$Res> - extends _$LockPostCopyWithImpl<$Res, _$LockPostImpl> - implements _$$LockPostImplCopyWith<$Res> { - __$$LockPostImplCopyWithImpl( - _$LockPostImpl _value, $Res Function(_$LockPostImpl) _then) - : super(_value, _then); - - /// Create a copy of LockPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? locked = null, - Object? auth = freezed, - }) { - return _then(_$LockPostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - locked: null == locked - ? _value.locked - : locked // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$LockPostImpl extends _LockPost { - const _$LockPostImpl({required this.postId, required this.locked, this.auth}) - : super._(); - - factory _$LockPostImpl.fromJson(Map json) => - _$$LockPostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final bool locked; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'LockPost(postId: $postId, locked: $locked, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LockPostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.locked, locked) || other.locked == locked) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, locked, auth); - - /// Create a copy of LockPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LockPostImplCopyWith<_$LockPostImpl> get copyWith => - __$$LockPostImplCopyWithImpl<_$LockPostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LockPostImplToJson( - this, - ); - } -} - -abstract class _LockPost extends LockPost { - const factory _LockPost( - {required final int postId, - required final bool locked, - final String? auth}) = _$LockPostImpl; - const _LockPost._() : super._(); - - factory _LockPost.fromJson(Map json) = - _$LockPostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - bool get locked; // v0.18.0 - @override - String? get auth; - - /// Create a copy of LockPost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LockPostImplCopyWith<_$LockPostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -FeaturePost _$FeaturePostFromJson(Map json) { - return _FeaturePost.fromJson(json); -} - -/// @nodoc -mixin _$FeaturePost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get featured => throw _privateConstructorUsedError; // v0.18.0 - PostFeatureType get featureType => - throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this FeaturePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FeaturePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $FeaturePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $FeaturePostCopyWith<$Res> { - factory $FeaturePostCopyWith( - FeaturePost value, $Res Function(FeaturePost) then) = - _$FeaturePostCopyWithImpl<$Res, FeaturePost>; - @useResult - $Res call( - {int postId, bool featured, PostFeatureType featureType, String? auth}); -} - -/// @nodoc -class _$FeaturePostCopyWithImpl<$Res, $Val extends FeaturePost> - implements $FeaturePostCopyWith<$Res> { - _$FeaturePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of FeaturePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? featured = null, - Object? featureType = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - featured: null == featured - ? _value.featured - : featured // ignore: cast_nullable_to_non_nullable - as bool, - featureType: null == featureType - ? _value.featureType - : featureType // ignore: cast_nullable_to_non_nullable - as PostFeatureType, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$FeaturePostImplCopyWith<$Res> - implements $FeaturePostCopyWith<$Res> { - factory _$$FeaturePostImplCopyWith( - _$FeaturePostImpl value, $Res Function(_$FeaturePostImpl) then) = - __$$FeaturePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int postId, bool featured, PostFeatureType featureType, String? auth}); -} - -/// @nodoc -class __$$FeaturePostImplCopyWithImpl<$Res> - extends _$FeaturePostCopyWithImpl<$Res, _$FeaturePostImpl> - implements _$$FeaturePostImplCopyWith<$Res> { - __$$FeaturePostImplCopyWithImpl( - _$FeaturePostImpl _value, $Res Function(_$FeaturePostImpl) _then) - : super(_value, _then); - - /// Create a copy of FeaturePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? featured = null, - Object? featureType = null, - Object? auth = freezed, - }) { - return _then(_$FeaturePostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - featured: null == featured - ? _value.featured - : featured // ignore: cast_nullable_to_non_nullable - as bool, - featureType: null == featureType - ? _value.featureType - : featureType // ignore: cast_nullable_to_non_nullable - as PostFeatureType, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$FeaturePostImpl extends _FeaturePost { - const _$FeaturePostImpl( - {required this.postId, - required this.featured, - required this.featureType, - this.auth}) - : super._(); - - factory _$FeaturePostImpl.fromJson(Map json) => - _$$FeaturePostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final bool featured; -// v0.18.0 - @override - final PostFeatureType featureType; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'FeaturePost(postId: $postId, featured: $featured, featureType: $featureType, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FeaturePostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.featured, featured) || - other.featured == featured) && - (identical(other.featureType, featureType) || - other.featureType == featureType) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, postId, featured, featureType, auth); - - /// Create a copy of FeaturePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$FeaturePostImplCopyWith<_$FeaturePostImpl> get copyWith => - __$$FeaturePostImplCopyWithImpl<_$FeaturePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$FeaturePostImplToJson( - this, - ); - } -} - -abstract class _FeaturePost extends FeaturePost { - const factory _FeaturePost( - {required final int postId, - required final bool featured, - required final PostFeatureType featureType, - final String? auth}) = _$FeaturePostImpl; - const _FeaturePost._() : super._(); - - factory _FeaturePost.fromJson(Map json) = - _$FeaturePostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - bool get featured; // v0.18.0 - @override - PostFeatureType get featureType; // v0.18.0 - @override - String? get auth; - - /// Create a copy of FeaturePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$FeaturePostImplCopyWith<_$FeaturePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetPosts _$GetPostsFromJson(Map json) { - return _GetPosts.fromJson(json); -} - -/// @nodoc -mixin _$GetPosts { - @JsonKey(name: 'type_') - ListingType? get type => throw _privateConstructorUsedError; // v0.18.0 - SortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get communityName => throw _privateConstructorUsedError; // v0.18.0 - bool? get savedOnly => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - bool? get moderatorView => - throw _privateConstructorUsedError; // v0.18.3 [deprecated in v0.19.0] - String? get auth => throw _privateConstructorUsedError; - bool? get likedOnly => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get dislikedOnly => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get showHidden => - throw _privateConstructorUsedError; // v0.19.4 (optional) - bool? get showRead => - throw _privateConstructorUsedError; // v0.19.6 (optional) - bool? get showNsfw => - throw _privateConstructorUsedError; // v0.19.6 (optional) - String? get pageCursor => throw _privateConstructorUsedError; - - /// Serializes this GetPosts to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPosts - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPostsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPostsCopyWith<$Res> { - factory $GetPostsCopyWith(GetPosts value, $Res Function(GetPosts) then) = - _$GetPostsCopyWithImpl<$Res, GetPosts>; - @useResult - $Res call( - {@JsonKey(name: 'type_') ListingType? type, - SortType? sort, - int? page, - int? limit, - int? communityId, - String? communityName, - bool? savedOnly, - @deprecated bool? moderatorView, - String? auth, - bool? likedOnly, - bool? dislikedOnly, - bool? showHidden, - bool? showRead, - bool? showNsfw, - String? pageCursor}); -} - -/// @nodoc -class _$GetPostsCopyWithImpl<$Res, $Val extends GetPosts> - implements $GetPostsCopyWith<$Res> { - _$GetPostsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPosts - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? communityId = freezed, - Object? communityName = freezed, - Object? savedOnly = freezed, - Object? moderatorView = freezed, - Object? auth = freezed, - Object? likedOnly = freezed, - Object? dislikedOnly = freezed, - Object? showHidden = freezed, - Object? showRead = freezed, - Object? showNsfw = freezed, - Object? pageCursor = freezed, - }) { - return _then(_value.copyWith( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ListingType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - communityName: freezed == communityName - ? _value.communityName - : communityName // ignore: cast_nullable_to_non_nullable - as String?, - savedOnly: freezed == savedOnly - ? _value.savedOnly - : savedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - moderatorView: freezed == moderatorView - ? _value.moderatorView - : moderatorView // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - likedOnly: freezed == likedOnly - ? _value.likedOnly - : likedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - dislikedOnly: freezed == dislikedOnly - ? _value.dislikedOnly - : dislikedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - showHidden: freezed == showHidden - ? _value.showHidden - : showHidden // ignore: cast_nullable_to_non_nullable - as bool?, - showRead: freezed == showRead - ? _value.showRead - : showRead // ignore: cast_nullable_to_non_nullable - as bool?, - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - pageCursor: freezed == pageCursor - ? _value.pageCursor - : pageCursor // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPostsImplCopyWith<$Res> - implements $GetPostsCopyWith<$Res> { - factory _$$GetPostsImplCopyWith( - _$GetPostsImpl value, $Res Function(_$GetPostsImpl) then) = - __$$GetPostsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@JsonKey(name: 'type_') ListingType? type, - SortType? sort, - int? page, - int? limit, - int? communityId, - String? communityName, - bool? savedOnly, - @deprecated bool? moderatorView, - String? auth, - bool? likedOnly, - bool? dislikedOnly, - bool? showHidden, - bool? showRead, - bool? showNsfw, - String? pageCursor}); -} - -/// @nodoc -class __$$GetPostsImplCopyWithImpl<$Res> - extends _$GetPostsCopyWithImpl<$Res, _$GetPostsImpl> - implements _$$GetPostsImplCopyWith<$Res> { - __$$GetPostsImplCopyWithImpl( - _$GetPostsImpl _value, $Res Function(_$GetPostsImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPosts - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? communityId = freezed, - Object? communityName = freezed, - Object? savedOnly = freezed, - Object? moderatorView = freezed, - Object? auth = freezed, - Object? likedOnly = freezed, - Object? dislikedOnly = freezed, - Object? showHidden = freezed, - Object? showRead = freezed, - Object? showNsfw = freezed, - Object? pageCursor = freezed, - }) { - return _then(_$GetPostsImpl( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as ListingType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - communityName: freezed == communityName - ? _value.communityName - : communityName // ignore: cast_nullable_to_non_nullable - as String?, - savedOnly: freezed == savedOnly - ? _value.savedOnly - : savedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - moderatorView: freezed == moderatorView - ? _value.moderatorView - : moderatorView // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - likedOnly: freezed == likedOnly - ? _value.likedOnly - : likedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - dislikedOnly: freezed == dislikedOnly - ? _value.dislikedOnly - : dislikedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - showHidden: freezed == showHidden - ? _value.showHidden - : showHidden // ignore: cast_nullable_to_non_nullable - as bool?, - showRead: freezed == showRead - ? _value.showRead - : showRead // ignore: cast_nullable_to_non_nullable - as bool?, - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - pageCursor: freezed == pageCursor - ? _value.pageCursor - : pageCursor // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetPostsImpl extends _GetPosts { - const _$GetPostsImpl( - {@JsonKey(name: 'type_') this.type, - this.sort, - this.page, - this.limit, - this.communityId, - this.communityName, - this.savedOnly, - @deprecated this.moderatorView, - this.auth, - this.likedOnly, - this.dislikedOnly, - this.showHidden, - this.showRead, - this.showNsfw, - this.pageCursor}) - : super._(); - - factory _$GetPostsImpl.fromJson(Map json) => - _$$GetPostsImplFromJson(json); - - @override - @JsonKey(name: 'type_') - final ListingType? type; -// v0.18.0 - @override - final SortType? sort; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final String? communityName; -// v0.18.0 - @override - final bool? savedOnly; -// v0.18.0 - @override - @deprecated - final bool? moderatorView; -// v0.18.3 [deprecated in v0.19.0] - @override - final String? auth; - @override - final bool? likedOnly; -// v0.19.0 (optional) - @override - final bool? dislikedOnly; -// v0.19.0 (optional) - @override - final bool? showHidden; -// v0.19.4 (optional) - @override - final bool? showRead; -// v0.19.6 (optional) - @override - final bool? showNsfw; -// v0.19.6 (optional) - @override - final String? pageCursor; - - @override - String toString() { - return 'GetPosts(type: $type, sort: $sort, page: $page, limit: $limit, communityId: $communityId, communityName: $communityName, savedOnly: $savedOnly, moderatorView: $moderatorView, auth: $auth, likedOnly: $likedOnly, dislikedOnly: $dislikedOnly, showHidden: $showHidden, showRead: $showRead, showNsfw: $showNsfw, pageCursor: $pageCursor)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPostsImpl && - (identical(other.type, type) || other.type == type) && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.communityName, communityName) || - other.communityName == communityName) && - (identical(other.savedOnly, savedOnly) || - other.savedOnly == savedOnly) && - (identical(other.moderatorView, moderatorView) || - other.moderatorView == moderatorView) && - (identical(other.auth, auth) || other.auth == auth) && - (identical(other.likedOnly, likedOnly) || - other.likedOnly == likedOnly) && - (identical(other.dislikedOnly, dislikedOnly) || - other.dislikedOnly == dislikedOnly) && - (identical(other.showHidden, showHidden) || - other.showHidden == showHidden) && - (identical(other.showRead, showRead) || - other.showRead == showRead) && - (identical(other.showNsfw, showNsfw) || - other.showNsfw == showNsfw) && - (identical(other.pageCursor, pageCursor) || - other.pageCursor == pageCursor)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - type, - sort, - page, - limit, - communityId, - communityName, - savedOnly, - moderatorView, - auth, - likedOnly, - dislikedOnly, - showHidden, - showRead, - showNsfw, - pageCursor); - - /// Create a copy of GetPosts - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPostsImplCopyWith<_$GetPostsImpl> get copyWith => - __$$GetPostsImplCopyWithImpl<_$GetPostsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetPostsImplToJson( - this, - ); - } -} - -abstract class _GetPosts extends GetPosts { - const factory _GetPosts( - {@JsonKey(name: 'type_') final ListingType? type, - final SortType? sort, - final int? page, - final int? limit, - final int? communityId, - final String? communityName, - final bool? savedOnly, - @deprecated final bool? moderatorView, - final String? auth, - final bool? likedOnly, - final bool? dislikedOnly, - final bool? showHidden, - final bool? showRead, - final bool? showNsfw, - final String? pageCursor}) = _$GetPostsImpl; - const _GetPosts._() : super._(); - - factory _GetPosts.fromJson(Map json) = - _$GetPostsImpl.fromJson; - - @override - @JsonKey(name: 'type_') - ListingType? get type; // v0.18.0 - @override - SortType? get sort; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - String? get communityName; // v0.18.0 - @override - bool? get savedOnly; // v0.18.0 - @override - @deprecated - bool? get moderatorView; // v0.18.3 [deprecated in v0.19.0] - @override - String? get auth; - @override - bool? get likedOnly; // v0.19.0 (optional) - @override - bool? get dislikedOnly; // v0.19.0 (optional) - @override - bool? get showHidden; // v0.19.4 (optional) - @override - bool? get showRead; // v0.19.6 (optional) - @override - bool? get showNsfw; // v0.19.6 (optional) - @override - String? get pageCursor; - - /// Create a copy of GetPosts - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPostsImplCopyWith<_$GetPostsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -CreatePostLike _$CreatePostLikeFromJson(Map json) { - return _CreatePostLike.fromJson(json); -} - -/// @nodoc -mixin _$CreatePostLike { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - num get score => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreatePostLike to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreatePostLike - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreatePostLikeCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreatePostLikeCopyWith<$Res> { - factory $CreatePostLikeCopyWith( - CreatePostLike value, $Res Function(CreatePostLike) then) = - _$CreatePostLikeCopyWithImpl<$Res, CreatePostLike>; - @useResult - $Res call({int postId, num score, String? auth}); -} - -/// @nodoc -class _$CreatePostLikeCopyWithImpl<$Res, $Val extends CreatePostLike> - implements $CreatePostLikeCopyWith<$Res> { - _$CreatePostLikeCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreatePostLike - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? score = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as num, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreatePostLikeImplCopyWith<$Res> - implements $CreatePostLikeCopyWith<$Res> { - factory _$$CreatePostLikeImplCopyWith(_$CreatePostLikeImpl value, - $Res Function(_$CreatePostLikeImpl) then) = - __$$CreatePostLikeImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, num score, String? auth}); -} - -/// @nodoc -class __$$CreatePostLikeImplCopyWithImpl<$Res> - extends _$CreatePostLikeCopyWithImpl<$Res, _$CreatePostLikeImpl> - implements _$$CreatePostLikeImplCopyWith<$Res> { - __$$CreatePostLikeImplCopyWithImpl( - _$CreatePostLikeImpl _value, $Res Function(_$CreatePostLikeImpl) _then) - : super(_value, _then); - - /// Create a copy of CreatePostLike - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? score = null, - Object? auth = freezed, - }) { - return _then(_$CreatePostLikeImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as num, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreatePostLikeImpl extends _CreatePostLike { - const _$CreatePostLikeImpl( - {required this.postId, required this.score, this.auth}) - : super._(); - - factory _$CreatePostLikeImpl.fromJson(Map json) => - _$$CreatePostLikeImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final num score; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreatePostLike(postId: $postId, score: $score, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreatePostLikeImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.score, score) || other.score == score) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, score, auth); - - /// Create a copy of CreatePostLike - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreatePostLikeImplCopyWith<_$CreatePostLikeImpl> get copyWith => - __$$CreatePostLikeImplCopyWithImpl<_$CreatePostLikeImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreatePostLikeImplToJson( - this, - ); - } -} - -abstract class _CreatePostLike extends CreatePostLike { - const factory _CreatePostLike( - {required final int postId, - required final num score, - final String? auth}) = _$CreatePostLikeImpl; - const _CreatePostLike._() : super._(); - - factory _CreatePostLike.fromJson(Map json) = - _$CreatePostLikeImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - num get score; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreatePostLike - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreatePostLikeImplCopyWith<_$CreatePostLikeImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ListPostLikes _$ListPostLikesFromJson(Map json) { - return _ListPostLikes.fromJson(json); -} - -/// @nodoc -mixin _$ListPostLikes { - int get postId => throw _privateConstructorUsedError; // v0.19.2 (required) - int? get page => throw _privateConstructorUsedError; // v0.19.2 (optional) - int? get limit => throw _privateConstructorUsedError; // v0.19.2 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListPostLikes to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListPostLikes - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListPostLikesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListPostLikesCopyWith<$Res> { - factory $ListPostLikesCopyWith( - ListPostLikes value, $Res Function(ListPostLikes) then) = - _$ListPostLikesCopyWithImpl<$Res, ListPostLikes>; - @useResult - $Res call({int postId, int? page, int? limit, String? auth}); -} - -/// @nodoc -class _$ListPostLikesCopyWithImpl<$Res, $Val extends ListPostLikes> - implements $ListPostLikesCopyWith<$Res> { - _$ListPostLikesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListPostLikes - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListPostLikesImplCopyWith<$Res> - implements $ListPostLikesCopyWith<$Res> { - factory _$$ListPostLikesImplCopyWith( - _$ListPostLikesImpl value, $Res Function(_$ListPostLikesImpl) then) = - __$$ListPostLikesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, int? page, int? limit, String? auth}); -} - -/// @nodoc -class __$$ListPostLikesImplCopyWithImpl<$Res> - extends _$ListPostLikesCopyWithImpl<$Res, _$ListPostLikesImpl> - implements _$$ListPostLikesImplCopyWith<$Res> { - __$$ListPostLikesImplCopyWithImpl( - _$ListPostLikesImpl _value, $Res Function(_$ListPostLikesImpl) _then) - : super(_value, _then); - - /// Create a copy of ListPostLikes - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_$ListPostLikesImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListPostLikesImpl extends _ListPostLikes { - const _$ListPostLikesImpl( - {required this.postId, this.page, this.limit, this.auth}) - : super._(); - - factory _$ListPostLikesImpl.fromJson(Map json) => - _$$ListPostLikesImplFromJson(json); - - @override - final int postId; -// v0.19.2 (required) - @override - final int? page; -// v0.19.2 (optional) - @override - final int? limit; -// v0.19.2 (optional) - @override - final String? auth; - - @override - String toString() { - return 'ListPostLikes(postId: $postId, page: $page, limit: $limit, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPostLikesImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, page, limit, auth); - - /// Create a copy of ListPostLikes - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListPostLikesImplCopyWith<_$ListPostLikesImpl> get copyWith => - __$$ListPostLikesImplCopyWithImpl<_$ListPostLikesImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListPostLikesImplToJson( - this, - ); - } -} - -abstract class _ListPostLikes extends ListPostLikes { - const factory _ListPostLikes( - {required final int postId, - final int? page, - final int? limit, - final String? auth}) = _$ListPostLikesImpl; - const _ListPostLikes._() : super._(); - - factory _ListPostLikes.fromJson(Map json) = - _$ListPostLikesImpl.fromJson; - - @override - int get postId; // v0.19.2 (required) - @override - int? get page; // v0.19.2 (optional) - @override - int? get limit; // v0.19.2 (optional) - @override - String? get auth; - - /// Create a copy of ListPostLikes - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListPostLikesImplCopyWith<_$ListPostLikesImpl> get copyWith => - throw _privateConstructorUsedError; -} - -SavePost _$SavePostFromJson(Map json) { - return _SavePost.fromJson(json); -} - -/// @nodoc -mixin _$SavePost { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get save => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this SavePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SavePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SavePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SavePostCopyWith<$Res> { - factory $SavePostCopyWith(SavePost value, $Res Function(SavePost) then) = - _$SavePostCopyWithImpl<$Res, SavePost>; - @useResult - $Res call({int postId, bool save, String? auth}); -} - -/// @nodoc -class _$SavePostCopyWithImpl<$Res, $Val extends SavePost> - implements $SavePostCopyWith<$Res> { - _$SavePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SavePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? save = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - save: null == save - ? _value.save - : save // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SavePostImplCopyWith<$Res> - implements $SavePostCopyWith<$Res> { - factory _$$SavePostImplCopyWith( - _$SavePostImpl value, $Res Function(_$SavePostImpl) then) = - __$$SavePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, bool save, String? auth}); -} - -/// @nodoc -class __$$SavePostImplCopyWithImpl<$Res> - extends _$SavePostCopyWithImpl<$Res, _$SavePostImpl> - implements _$$SavePostImplCopyWith<$Res> { - __$$SavePostImplCopyWithImpl( - _$SavePostImpl _value, $Res Function(_$SavePostImpl) _then) - : super(_value, _then); - - /// Create a copy of SavePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? save = null, - Object? auth = freezed, - }) { - return _then(_$SavePostImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - save: null == save - ? _value.save - : save // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$SavePostImpl extends _SavePost { - const _$SavePostImpl({required this.postId, required this.save, this.auth}) - : super._(); - - factory _$SavePostImpl.fromJson(Map json) => - _$$SavePostImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final bool save; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'SavePost(postId: $postId, save: $save, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SavePostImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.save, save) || other.save == save) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, save, auth); - - /// Create a copy of SavePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SavePostImplCopyWith<_$SavePostImpl> get copyWith => - __$$SavePostImplCopyWithImpl<_$SavePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SavePostImplToJson( - this, - ); - } -} - -abstract class _SavePost extends SavePost { - const factory _SavePost( - {required final int postId, - required final bool save, - final String? auth}) = _$SavePostImpl; - const _SavePost._() : super._(); - - factory _SavePost.fromJson(Map json) = - _$SavePostImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - bool get save; // v0.18.0 - @override - String? get auth; - - /// Create a copy of SavePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SavePostImplCopyWith<_$SavePostImpl> get copyWith => - throw _privateConstructorUsedError; -} - -CreatePostReport _$CreatePostReportFromJson(Map json) { - return _CreatePostReport.fromJson(json); -} - -/// @nodoc -mixin _$CreatePostReport { - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreatePostReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreatePostReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreatePostReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreatePostReportCopyWith<$Res> { - factory $CreatePostReportCopyWith( - CreatePostReport value, $Res Function(CreatePostReport) then) = - _$CreatePostReportCopyWithImpl<$Res, CreatePostReport>; - @useResult - $Res call({int postId, String reason, String? auth}); -} - -/// @nodoc -class _$CreatePostReportCopyWithImpl<$Res, $Val extends CreatePostReport> - implements $CreatePostReportCopyWith<$Res> { - _$CreatePostReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreatePostReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? reason = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreatePostReportImplCopyWith<$Res> - implements $CreatePostReportCopyWith<$Res> { - factory _$$CreatePostReportImplCopyWith(_$CreatePostReportImpl value, - $Res Function(_$CreatePostReportImpl) then) = - __$$CreatePostReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int postId, String reason, String? auth}); -} - -/// @nodoc -class __$$CreatePostReportImplCopyWithImpl<$Res> - extends _$CreatePostReportCopyWithImpl<$Res, _$CreatePostReportImpl> - implements _$$CreatePostReportImplCopyWith<$Res> { - __$$CreatePostReportImplCopyWithImpl(_$CreatePostReportImpl _value, - $Res Function(_$CreatePostReportImpl) _then) - : super(_value, _then); - - /// Create a copy of CreatePostReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postId = null, - Object? reason = null, - Object? auth = freezed, - }) { - return _then(_$CreatePostReportImpl( - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreatePostReportImpl extends _CreatePostReport { - const _$CreatePostReportImpl( - {required this.postId, required this.reason, this.auth}) - : super._(); - - factory _$CreatePostReportImpl.fromJson(Map json) => - _$$CreatePostReportImplFromJson(json); - - @override - final int postId; -// v0.18.0 - @override - final String reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreatePostReport(postId: $postId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreatePostReportImpl && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postId, reason, auth); - - /// Create a copy of CreatePostReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreatePostReportImplCopyWith<_$CreatePostReportImpl> get copyWith => - __$$CreatePostReportImplCopyWithImpl<_$CreatePostReportImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreatePostReportImplToJson( - this, - ); - } -} - -abstract class _CreatePostReport extends CreatePostReport { - const factory _CreatePostReport( - {required final int postId, - required final String reason, - final String? auth}) = _$CreatePostReportImpl; - const _CreatePostReport._() : super._(); - - factory _CreatePostReport.fromJson(Map json) = - _$CreatePostReportImpl.fromJson; - - @override - int get postId; // v0.18.0 - @override - String get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreatePostReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreatePostReportImplCopyWith<_$CreatePostReportImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ResolvePostReport _$ResolvePostReportFromJson(Map json) { - return _ResolvePostReport.fromJson(json); -} - -/// @nodoc -mixin _$ResolvePostReport { - int get reportId => throw _privateConstructorUsedError; // v0.18.0 - bool get resolved => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ResolvePostReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ResolvePostReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ResolvePostReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ResolvePostReportCopyWith<$Res> { - factory $ResolvePostReportCopyWith( - ResolvePostReport value, $Res Function(ResolvePostReport) then) = - _$ResolvePostReportCopyWithImpl<$Res, ResolvePostReport>; - @useResult - $Res call({int reportId, bool resolved, String? auth}); -} - -/// @nodoc -class _$ResolvePostReportCopyWithImpl<$Res, $Val extends ResolvePostReport> - implements $ResolvePostReportCopyWith<$Res> { - _$ResolvePostReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ResolvePostReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? reportId = null, - Object? resolved = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - reportId: null == reportId - ? _value.reportId - : reportId // ignore: cast_nullable_to_non_nullable - as int, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ResolvePostReportImplCopyWith<$Res> - implements $ResolvePostReportCopyWith<$Res> { - factory _$$ResolvePostReportImplCopyWith(_$ResolvePostReportImpl value, - $Res Function(_$ResolvePostReportImpl) then) = - __$$ResolvePostReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int reportId, bool resolved, String? auth}); -} - -/// @nodoc -class __$$ResolvePostReportImplCopyWithImpl<$Res> - extends _$ResolvePostReportCopyWithImpl<$Res, _$ResolvePostReportImpl> - implements _$$ResolvePostReportImplCopyWith<$Res> { - __$$ResolvePostReportImplCopyWithImpl(_$ResolvePostReportImpl _value, - $Res Function(_$ResolvePostReportImpl) _then) - : super(_value, _then); - - /// Create a copy of ResolvePostReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? reportId = null, - Object? resolved = null, - Object? auth = freezed, - }) { - return _then(_$ResolvePostReportImpl( - reportId: null == reportId - ? _value.reportId - : reportId // ignore: cast_nullable_to_non_nullable - as int, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ResolvePostReportImpl extends _ResolvePostReport { - const _$ResolvePostReportImpl( - {required this.reportId, required this.resolved, this.auth}) - : super._(); - - factory _$ResolvePostReportImpl.fromJson(Map json) => - _$$ResolvePostReportImplFromJson(json); - - @override - final int reportId; -// v0.18.0 - @override - final bool resolved; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ResolvePostReport(reportId: $reportId, resolved: $resolved, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ResolvePostReportImpl && - (identical(other.reportId, reportId) || - other.reportId == reportId) && - (identical(other.resolved, resolved) || - other.resolved == resolved) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, reportId, resolved, auth); - - /// Create a copy of ResolvePostReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ResolvePostReportImplCopyWith<_$ResolvePostReportImpl> get copyWith => - __$$ResolvePostReportImplCopyWithImpl<_$ResolvePostReportImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ResolvePostReportImplToJson( - this, - ); - } -} - -abstract class _ResolvePostReport extends ResolvePostReport { - const factory _ResolvePostReport( - {required final int reportId, - required final bool resolved, - final String? auth}) = _$ResolvePostReportImpl; - const _ResolvePostReport._() : super._(); - - factory _ResolvePostReport.fromJson(Map json) = - _$ResolvePostReportImpl.fromJson; - - @override - int get reportId; // v0.18.0 - @override - bool get resolved; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ResolvePostReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ResolvePostReportImplCopyWith<_$ResolvePostReportImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ListPostReports _$ListPostReportsFromJson(Map json) { - return _ListPostReports.fromJson(json); -} - -/// @nodoc -mixin _$ListPostReports { - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - bool? get unresolvedOnly => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - int? get postId => throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListPostReports to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListPostReports - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListPostReportsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListPostReportsCopyWith<$Res> { - factory $ListPostReportsCopyWith( - ListPostReports value, $Res Function(ListPostReports) then) = - _$ListPostReportsCopyWithImpl<$Res, ListPostReports>; - @useResult - $Res call( - {int? page, - int? limit, - bool? unresolvedOnly, - int? communityId, - int? postId, - String? auth}); -} - -/// @nodoc -class _$ListPostReportsCopyWithImpl<$Res, $Val extends ListPostReports> - implements $ListPostReportsCopyWith<$Res> { - _$ListPostReportsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListPostReports - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? unresolvedOnly = freezed, - Object? communityId = freezed, - Object? postId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unresolvedOnly: freezed == unresolvedOnly - ? _value.unresolvedOnly - : unresolvedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListPostReportsImplCopyWith<$Res> - implements $ListPostReportsCopyWith<$Res> { - factory _$$ListPostReportsImplCopyWith(_$ListPostReportsImpl value, - $Res Function(_$ListPostReportsImpl) then) = - __$$ListPostReportsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? page, - int? limit, - bool? unresolvedOnly, - int? communityId, - int? postId, - String? auth}); -} - -/// @nodoc -class __$$ListPostReportsImplCopyWithImpl<$Res> - extends _$ListPostReportsCopyWithImpl<$Res, _$ListPostReportsImpl> - implements _$$ListPostReportsImplCopyWith<$Res> { - __$$ListPostReportsImplCopyWithImpl( - _$ListPostReportsImpl _value, $Res Function(_$ListPostReportsImpl) _then) - : super(_value, _then); - - /// Create a copy of ListPostReports - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? unresolvedOnly = freezed, - Object? communityId = freezed, - Object? postId = freezed, - Object? auth = freezed, - }) { - return _then(_$ListPostReportsImpl( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unresolvedOnly: freezed == unresolvedOnly - ? _value.unresolvedOnly - : unresolvedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - postId: freezed == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListPostReportsImpl extends _ListPostReports { - const _$ListPostReportsImpl( - {this.page, - this.limit, - this.unresolvedOnly, - this.communityId, - this.postId, - this.auth}) - : super._(); - - factory _$ListPostReportsImpl.fromJson(Map json) => - _$$ListPostReportsImplFromJson(json); - - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final bool? unresolvedOnly; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final int? postId; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'ListPostReports(page: $page, limit: $limit, unresolvedOnly: $unresolvedOnly, communityId: $communityId, postId: $postId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPostReportsImpl && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.unresolvedOnly, unresolvedOnly) || - other.unresolvedOnly == unresolvedOnly) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, page, limit, unresolvedOnly, communityId, postId, auth); - - /// Create a copy of ListPostReports - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListPostReportsImplCopyWith<_$ListPostReportsImpl> get copyWith => - __$$ListPostReportsImplCopyWithImpl<_$ListPostReportsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ListPostReportsImplToJson( - this, - ); - } -} - -abstract class _ListPostReports extends ListPostReports { - const factory _ListPostReports( - {final int? page, - final int? limit, - final bool? unresolvedOnly, - final int? communityId, - final int? postId, - final String? auth}) = _$ListPostReportsImpl; - const _ListPostReports._() : super._(); - - factory _ListPostReports.fromJson(Map json) = - _$ListPostReportsImpl.fromJson; - - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - bool? get unresolvedOnly; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - int? get postId; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of ListPostReports - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListPostReportsImplCopyWith<_$ListPostReportsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetSiteMetadata _$GetSiteMetadataFromJson(Map json) { - return _GetSiteMetadata.fromJson(json); -} - -/// @nodoc -mixin _$GetSiteMetadata { - String get url => throw _privateConstructorUsedError; - - /// Serializes this GetSiteMetadata to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetSiteMetadata - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetSiteMetadataCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetSiteMetadataCopyWith<$Res> { - factory $GetSiteMetadataCopyWith( - GetSiteMetadata value, $Res Function(GetSiteMetadata) then) = - _$GetSiteMetadataCopyWithImpl<$Res, GetSiteMetadata>; - @useResult - $Res call({String url}); -} - -/// @nodoc -class _$GetSiteMetadataCopyWithImpl<$Res, $Val extends GetSiteMetadata> - implements $GetSiteMetadataCopyWith<$Res> { - _$GetSiteMetadataCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetSiteMetadata - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? url = null, - }) { - return _then(_value.copyWith( - url: null == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetSiteMetadataImplCopyWith<$Res> - implements $GetSiteMetadataCopyWith<$Res> { - factory _$$GetSiteMetadataImplCopyWith(_$GetSiteMetadataImpl value, - $Res Function(_$GetSiteMetadataImpl) then) = - __$$GetSiteMetadataImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String url}); -} - -/// @nodoc -class __$$GetSiteMetadataImplCopyWithImpl<$Res> - extends _$GetSiteMetadataCopyWithImpl<$Res, _$GetSiteMetadataImpl> - implements _$$GetSiteMetadataImplCopyWith<$Res> { - __$$GetSiteMetadataImplCopyWithImpl( - _$GetSiteMetadataImpl _value, $Res Function(_$GetSiteMetadataImpl) _then) - : super(_value, _then); - - /// Create a copy of GetSiteMetadata - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? url = null, - }) { - return _then(_$GetSiteMetadataImpl( - url: null == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetSiteMetadataImpl extends _GetSiteMetadata { - const _$GetSiteMetadataImpl({required this.url}) : super._(); - - factory _$GetSiteMetadataImpl.fromJson(Map json) => - _$$GetSiteMetadataImplFromJson(json); - - @override - final String url; - - @override - String toString() { - return 'GetSiteMetadata(url: $url)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetSiteMetadataImpl && - (identical(other.url, url) || other.url == url)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, url); - - /// Create a copy of GetSiteMetadata - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetSiteMetadataImplCopyWith<_$GetSiteMetadataImpl> get copyWith => - __$$GetSiteMetadataImplCopyWithImpl<_$GetSiteMetadataImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetSiteMetadataImplToJson( - this, - ); - } -} - -abstract class _GetSiteMetadata extends GetSiteMetadata { - const factory _GetSiteMetadata({required final String url}) = - _$GetSiteMetadataImpl; - const _GetSiteMetadata._() : super._(); - - factory _GetSiteMetadata.fromJson(Map json) = - _$GetSiteMetadataImpl.fromJson; - - @override - String get url; - - /// Create a copy of GetSiteMetadata - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetSiteMetadataImplCopyWith<_$GetSiteMetadataImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/post/post.g.dart b/lib/src/v3/api/post/post.g.dart deleted file mode 100644 index c2ec74ed..00000000 --- a/lib/src/v3/api/post/post.g.dart +++ /dev/null @@ -1,459 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CreatePostImpl _$$CreatePostImplFromJson(Map json) => - _$CreatePostImpl( - name: json['name'] as String, - communityId: (json['community_id'] as num).toInt(), - url: json['url'] as String?, - body: json['body'] as String?, - altText: json['alt_text'] as String?, - honeypot: json['honeypot'] as String?, - nsfw: json['nsfw'] as bool?, - languageId: (json['language_id'] as num?)?.toInt(), - customThumbnail: json['custom_thumbnail'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$CreatePostImplToJson(_$CreatePostImpl instance) { - final val = { - 'name': instance.name, - 'community_id': instance.communityId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('url', instance.url); - writeNotNull('body', instance.body); - writeNotNull('alt_text', instance.altText); - writeNotNull('honeypot', instance.honeypot); - writeNotNull('nsfw', instance.nsfw); - writeNotNull('language_id', instance.languageId); - writeNotNull('custom_thumbnail', instance.customThumbnail); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetPostImpl _$$GetPostImplFromJson(Map json) => - _$GetPostImpl( - id: (json['id'] as num?)?.toInt(), - commentId: (json['comment_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$GetPostImplToJson(_$GetPostImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('id', instance.id); - writeNotNull('comment_id', instance.commentId); - writeNotNull('auth', instance.auth); - return val; -} - -_$EditPostImpl _$$EditPostImplFromJson(Map json) => - _$EditPostImpl( - postId: (json['post_id'] as num).toInt(), - name: json['name'] as String?, - url: json['url'] as String?, - body: json['body'] as String?, - altText: json['alt_text'] as String?, - nsfw: json['nsfw'] as bool?, - languageId: (json['language_id'] as num?)?.toInt(), - customThumbnail: json['custom_thumbnail'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$EditPostImplToJson(_$EditPostImpl instance) { - final val = { - 'post_id': instance.postId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('name', instance.name); - writeNotNull('url', instance.url); - writeNotNull('body', instance.body); - writeNotNull('alt_text', instance.altText); - writeNotNull('nsfw', instance.nsfw); - writeNotNull('language_id', instance.languageId); - writeNotNull('custom_thumbnail', instance.customThumbnail); - writeNotNull('auth', instance.auth); - return val; -} - -_$DeletePostImpl _$$DeletePostImplFromJson(Map json) => - _$DeletePostImpl( - postId: (json['post_id'] as num).toInt(), - deleted: json['deleted'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$DeletePostImplToJson(_$DeletePostImpl instance) { - final val = { - 'post_id': instance.postId, - 'deleted': instance.deleted, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$RemovePostImpl _$$RemovePostImplFromJson(Map json) => - _$RemovePostImpl( - postId: (json['post_id'] as num).toInt(), - removed: json['removed'] as bool, - reason: json['reason'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$RemovePostImplToJson(_$RemovePostImpl instance) { - final val = { - 'post_id': instance.postId, - 'removed': instance.removed, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('reason', instance.reason); - writeNotNull('auth', instance.auth); - return val; -} - -_$MarkPostAsReadImpl _$$MarkPostAsReadImplFromJson(Map json) => - _$MarkPostAsReadImpl( - postId: (json['post_id'] as num?)?.toInt(), - postIds: (json['post_ids'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - read: json['read'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$MarkPostAsReadImplToJson( - _$MarkPostAsReadImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('post_id', instance.postId); - writeNotNull('post_ids', instance.postIds); - val['read'] = instance.read; - writeNotNull('auth', instance.auth); - return val; -} - -_$HidePostImpl _$$HidePostImplFromJson(Map json) => - _$HidePostImpl( - postIds: (json['post_ids'] as List) - .map((e) => (e as num).toInt()) - .toList(), - hide: json['hide'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$HidePostImplToJson(_$HidePostImpl instance) { - final val = { - 'post_ids': instance.postIds, - 'hide': instance.hide, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$LockPostImpl _$$LockPostImplFromJson(Map json) => - _$LockPostImpl( - postId: (json['post_id'] as num).toInt(), - locked: json['locked'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$LockPostImplToJson(_$LockPostImpl instance) { - final val = { - 'post_id': instance.postId, - 'locked': instance.locked, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$FeaturePostImpl _$$FeaturePostImplFromJson(Map json) => - _$FeaturePostImpl( - postId: (json['post_id'] as num).toInt(), - featured: json['featured'] as bool, - featureType: PostFeatureType.fromJson(json['feature_type'] as String), - auth: json['auth'] as String?, - ); - -Map _$$FeaturePostImplToJson(_$FeaturePostImpl instance) { - final val = { - 'post_id': instance.postId, - 'featured': instance.featured, - 'feature_type': instance.featureType.toJson(), - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$GetPostsImpl _$$GetPostsImplFromJson(Map json) => - _$GetPostsImpl( - type: json['type_'] == null ? null : ListingType.fromJson(json['type_']), - sort: json['sort'] == null ? null : SortType.fromJson(json['sort']), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - communityId: (json['community_id'] as num?)?.toInt(), - communityName: json['community_name'] as String?, - savedOnly: json['saved_only'] as bool?, - moderatorView: json['moderator_view'] as bool?, - auth: json['auth'] as String?, - likedOnly: json['liked_only'] as bool?, - dislikedOnly: json['disliked_only'] as bool?, - showHidden: json['show_hidden'] as bool?, - showRead: json['show_read'] as bool?, - showNsfw: json['show_nsfw'] as bool?, - pageCursor: json['page_cursor'] as String?, - ); - -Map _$$GetPostsImplToJson(_$GetPostsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('type_', instance.type?.toJson()); - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('community_id', instance.communityId); - writeNotNull('community_name', instance.communityName); - writeNotNull('saved_only', instance.savedOnly); - writeNotNull('moderator_view', instance.moderatorView); - writeNotNull('auth', instance.auth); - writeNotNull('liked_only', instance.likedOnly); - writeNotNull('disliked_only', instance.dislikedOnly); - writeNotNull('show_hidden', instance.showHidden); - writeNotNull('show_read', instance.showRead); - writeNotNull('show_nsfw', instance.showNsfw); - writeNotNull('page_cursor', instance.pageCursor); - return val; -} - -_$CreatePostLikeImpl _$$CreatePostLikeImplFromJson(Map json) => - _$CreatePostLikeImpl( - postId: (json['post_id'] as num).toInt(), - score: json['score'] as num, - auth: json['auth'] as String?, - ); - -Map _$$CreatePostLikeImplToJson( - _$CreatePostLikeImpl instance) { - final val = { - 'post_id': instance.postId, - 'score': instance.score, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListPostLikesImpl _$$ListPostLikesImplFromJson(Map json) => - _$ListPostLikesImpl( - postId: (json['post_id'] as num).toInt(), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListPostLikesImplToJson(_$ListPostLikesImpl instance) { - final val = { - 'post_id': instance.postId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('auth', instance.auth); - return val; -} - -_$SavePostImpl _$$SavePostImplFromJson(Map json) => - _$SavePostImpl( - postId: (json['post_id'] as num).toInt(), - save: json['save'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$SavePostImplToJson(_$SavePostImpl instance) { - final val = { - 'post_id': instance.postId, - 'save': instance.save, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$CreatePostReportImpl _$$CreatePostReportImplFromJson( - Map json) => - _$CreatePostReportImpl( - postId: (json['post_id'] as num).toInt(), - reason: json['reason'] as String, - auth: json['auth'] as String?, - ); - -Map _$$CreatePostReportImplToJson( - _$CreatePostReportImpl instance) { - final val = { - 'post_id': instance.postId, - 'reason': instance.reason, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ResolvePostReportImpl _$$ResolvePostReportImplFromJson( - Map json) => - _$ResolvePostReportImpl( - reportId: (json['report_id'] as num).toInt(), - resolved: json['resolved'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$ResolvePostReportImplToJson( - _$ResolvePostReportImpl instance) { - final val = { - 'report_id': instance.reportId, - 'resolved': instance.resolved, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListPostReportsImpl _$$ListPostReportsImplFromJson( - Map json) => - _$ListPostReportsImpl( - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - unresolvedOnly: json['unresolved_only'] as bool?, - communityId: (json['community_id'] as num?)?.toInt(), - postId: (json['post_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListPostReportsImplToJson( - _$ListPostReportsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('unresolved_only', instance.unresolvedOnly); - writeNotNull('community_id', instance.communityId); - writeNotNull('post_id', instance.postId); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetSiteMetadataImpl _$$GetSiteMetadataImplFromJson( - Map json) => - _$GetSiteMetadataImpl( - url: json['url'] as String, - ); - -Map _$$GetSiteMetadataImplToJson( - _$GetSiteMetadataImpl instance) => - { - 'url': instance.url, - }; diff --git a/lib/src/v3/api/private_message/private_message.dart b/lib/src/v3/api/private_message/private_message.dart deleted file mode 100644 index dd2ed122..00000000 --- a/lib/src/v3/api/private_message/private_message.dart +++ /dev/null @@ -1,246 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'private_message.freezed.dart'; -part 'private_message.g.dart'; - -/// Get / fetch private messages. -/// -/// `HTTP.GET /private_message/list` -@freezed -class GetPrivateMessages - with _$GetPrivateMessages - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetPrivateMessages({ - bool? unreadOnly, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - int? creatorId, // v0.19.0 (optional) - String? auth, - }) = _GetPrivateMessages; - - const GetPrivateMessages._(); - factory GetPrivateMessages.fromJson(Map json) => - _$GetPrivateMessagesFromJson(json); - - final path = '/private_message/list'; - - final httpMethod = HttpMethod.get; - - @override - PrivateMessagesResponse responseFactory(Map json) => - PrivateMessagesResponse.fromJson(json); -} - -/// Create a private_message. -/// -/// `HTTP.POST /private_message` -@freezed -class CreatePrivateMessage - with _$CreatePrivateMessage - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreatePrivateMessage({ - required String content, // v0.18.0 - required int recipientId, // v0.18.0 - String? auth, - }) = _CreatePrivateMessage; - - const CreatePrivateMessage._(); - factory CreatePrivateMessage.fromJson(Map json) => - _$CreatePrivateMessageFromJson(json); - - final path = '/private_message'; - - final httpMethod = HttpMethod.post; - - @override - PrivateMessageResponse responseFactory(Map json) => - PrivateMessageResponse.fromJson(json); -} - -/// Edit a private_message. -/// -/// `HTTP.PUT /private_message` -@freezed -class EditPrivateMessage - with _$EditPrivateMessage - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory EditPrivateMessage({ - required int privateMessageId, // v0.18.0 - required String content, // v0.18.0 - String? auth, - }) = _EditPrivateMessage; - - const EditPrivateMessage._(); - factory EditPrivateMessage.fromJson(Map json) => - _$EditPrivateMessageFromJson(json); - - final path = '/private_message'; - - final httpMethod = HttpMethod.put; - - @override - PrivateMessageResponse responseFactory(Map json) => - PrivateMessageResponse.fromJson(json); -} - -/// Delete a private_message. -/// -/// `HTTP.POST /private_message/delete` -@freezed -class DeletePrivateMessage - with _$DeletePrivateMessage - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory DeletePrivateMessage({ - required int privateMessageId, // v0.18.0 - required bool deleted, // v0.18.0 - String? auth, - }) = _DeletePrivateMessage; - - const DeletePrivateMessage._(); - factory DeletePrivateMessage.fromJson(Map json) => - _$DeletePrivateMessageFromJson(json); - - final path = '/private_message/delete'; - - final httpMethod = HttpMethod.post; - - @override - PrivateMessageResponse responseFactory(Map json) => - PrivateMessageResponse.fromJson(json); -} - -/// Mark a private_message as read. -/// -/// `HTTP.POST /private_message/mark_as_read` -@freezed -class MarkPrivateMessageAsRead - with _$MarkPrivateMessageAsRead - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory MarkPrivateMessageAsRead({ - required int privateMessageId, // v0.18.0 - required bool read, // v0.18.0 - String? auth, - }) = _MarkPrivateMessageAsRead; - - const MarkPrivateMessageAsRead._(); - factory MarkPrivateMessageAsRead.fromJson(Map json) => - _$MarkPrivateMessageAsReadFromJson(json); - - final path = '/private_message/mark_as_read'; - - final httpMethod = HttpMethod.post; - - @override - PrivateMessageResponse responseFactory(Map json) => - PrivateMessageResponse.fromJson(json); -} - -/// Create a report for a private message. -/// -/// `HTTP.POST /private_message/report` -@freezed -class CreatePrivateMessageReport - with _$CreatePrivateMessageReport - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreatePrivateMessageReport({ - required int privateMessageId, // v0.18.0 - required String reason, // v0.18.0 - String? auth, - }) = _CreatePrivateMessageReport; - - const CreatePrivateMessageReport._(); - factory CreatePrivateMessageReport.fromJson(Map json) => - _$CreatePrivateMessageReportFromJson(json); - - final path = '/private_message/report'; - - final httpMethod = HttpMethod.post; - - @override - PrivateMessageReportResponse responseFactory(Map json) => - PrivateMessageReportResponse.fromJson(json); -} - -/// Resolve a report for a private message. -/// -/// `HTTP.PUT /private_message/report/resolve` -@freezed -class ResolvePrivateMessageReport - with _$ResolvePrivateMessageReport - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ResolvePrivateMessageReport({ - required int reportId, // v0.18.0 - required bool resolved, // v0.18.0 - String? auth, - }) = _ResolvePrivateMessageReport; - - const ResolvePrivateMessageReport._(); - factory ResolvePrivateMessageReport.fromJson(Map json) => - _$ResolvePrivateMessageReportFromJson(json); - - final path = '/private_message/report/resolve'; - - final httpMethod = HttpMethod.put; - - @override - PrivateMessageReportResponse responseFactory(Map json) => - PrivateMessageReportResponse.fromJson(json); -} - -/// List private_message reports. -/// -/// `HTTP.GET /private_message/report/list` -@freezed -class ListPrivateMessageReports - with _$ListPrivateMessageReports - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListPrivateMessageReports({ - int? page, // v0.18.0 - int? limit, // v0.18.0 - bool? unresolvedOnly, // v0.18.0 - int? communityId, - String? auth, - }) = _ListPrivateMessageReports; - - const ListPrivateMessageReports._(); - factory ListPrivateMessageReports.fromJson(Map json) => - _$ListPrivateMessageReportsFromJson(json); - - final path = '/private_message/report/list'; - - final httpMethod = HttpMethod.get; - - @override - ListPrivateMessageReportsResponse responseFactory( - Map json, - ) => - ListPrivateMessageReportsResponse.fromJson(json); -} diff --git a/lib/src/v3/api/private_message/private_message.freezed.dart b/lib/src/v3/api/private_message/private_message.freezed.dart deleted file mode 100644 index ebdf9258..00000000 --- a/lib/src/v3/api/private_message/private_message.freezed.dart +++ /dev/null @@ -1,1670 +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 'private_message.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'); - -GetPrivateMessages _$GetPrivateMessagesFromJson(Map json) { - return _GetPrivateMessages.fromJson(json); -} - -/// @nodoc -mixin _$GetPrivateMessages { - bool? get unreadOnly => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - int? get creatorId => - throw _privateConstructorUsedError; // v0.19.0 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetPrivateMessages to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPrivateMessages - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPrivateMessagesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPrivateMessagesCopyWith<$Res> { - factory $GetPrivateMessagesCopyWith( - GetPrivateMessages value, $Res Function(GetPrivateMessages) then) = - _$GetPrivateMessagesCopyWithImpl<$Res, GetPrivateMessages>; - @useResult - $Res call( - {bool? unreadOnly, int? page, int? limit, int? creatorId, String? auth}); -} - -/// @nodoc -class _$GetPrivateMessagesCopyWithImpl<$Res, $Val extends GetPrivateMessages> - implements $GetPrivateMessagesCopyWith<$Res> { - _$GetPrivateMessagesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPrivateMessages - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? unreadOnly = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? creatorId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - creatorId: freezed == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPrivateMessagesImplCopyWith<$Res> - implements $GetPrivateMessagesCopyWith<$Res> { - factory _$$GetPrivateMessagesImplCopyWith(_$GetPrivateMessagesImpl value, - $Res Function(_$GetPrivateMessagesImpl) then) = - __$$GetPrivateMessagesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {bool? unreadOnly, int? page, int? limit, int? creatorId, String? auth}); -} - -/// @nodoc -class __$$GetPrivateMessagesImplCopyWithImpl<$Res> - extends _$GetPrivateMessagesCopyWithImpl<$Res, _$GetPrivateMessagesImpl> - implements _$$GetPrivateMessagesImplCopyWith<$Res> { - __$$GetPrivateMessagesImplCopyWithImpl(_$GetPrivateMessagesImpl _value, - $Res Function(_$GetPrivateMessagesImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPrivateMessages - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? unreadOnly = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? creatorId = freezed, - Object? auth = freezed, - }) { - return _then(_$GetPrivateMessagesImpl( - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - creatorId: freezed == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetPrivateMessagesImpl extends _GetPrivateMessages { - const _$GetPrivateMessagesImpl( - {this.unreadOnly, this.page, this.limit, this.creatorId, this.auth}) - : super._(); - - factory _$GetPrivateMessagesImpl.fromJson(Map json) => - _$$GetPrivateMessagesImplFromJson(json); - - @override - final bool? unreadOnly; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final int? creatorId; -// v0.19.0 (optional) - @override - final String? auth; - - @override - String toString() { - return 'GetPrivateMessages(unreadOnly: $unreadOnly, page: $page, limit: $limit, creatorId: $creatorId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPrivateMessagesImpl && - (identical(other.unreadOnly, unreadOnly) || - other.unreadOnly == unreadOnly) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, unreadOnly, page, limit, creatorId, auth); - - /// Create a copy of GetPrivateMessages - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPrivateMessagesImplCopyWith<_$GetPrivateMessagesImpl> get copyWith => - __$$GetPrivateMessagesImplCopyWithImpl<_$GetPrivateMessagesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetPrivateMessagesImplToJson( - this, - ); - } -} - -abstract class _GetPrivateMessages extends GetPrivateMessages { - const factory _GetPrivateMessages( - {final bool? unreadOnly, - final int? page, - final int? limit, - final int? creatorId, - final String? auth}) = _$GetPrivateMessagesImpl; - const _GetPrivateMessages._() : super._(); - - factory _GetPrivateMessages.fromJson(Map json) = - _$GetPrivateMessagesImpl.fromJson; - - @override - bool? get unreadOnly; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - int? get creatorId; // v0.19.0 (optional) - @override - String? get auth; - - /// Create a copy of GetPrivateMessages - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPrivateMessagesImplCopyWith<_$GetPrivateMessagesImpl> get copyWith => - throw _privateConstructorUsedError; -} - -CreatePrivateMessage _$CreatePrivateMessageFromJson(Map json) { - return _CreatePrivateMessage.fromJson(json); -} - -/// @nodoc -mixin _$CreatePrivateMessage { - String get content => throw _privateConstructorUsedError; // v0.18.0 - int get recipientId => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreatePrivateMessage to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreatePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreatePrivateMessageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreatePrivateMessageCopyWith<$Res> { - factory $CreatePrivateMessageCopyWith(CreatePrivateMessage value, - $Res Function(CreatePrivateMessage) then) = - _$CreatePrivateMessageCopyWithImpl<$Res, CreatePrivateMessage>; - @useResult - $Res call({String content, int recipientId, String? auth}); -} - -/// @nodoc -class _$CreatePrivateMessageCopyWithImpl<$Res, - $Val extends CreatePrivateMessage> - implements $CreatePrivateMessageCopyWith<$Res> { - _$CreatePrivateMessageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreatePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? content = null, - Object? recipientId = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreatePrivateMessageImplCopyWith<$Res> - implements $CreatePrivateMessageCopyWith<$Res> { - factory _$$CreatePrivateMessageImplCopyWith(_$CreatePrivateMessageImpl value, - $Res Function(_$CreatePrivateMessageImpl) then) = - __$$CreatePrivateMessageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String content, int recipientId, String? auth}); -} - -/// @nodoc -class __$$CreatePrivateMessageImplCopyWithImpl<$Res> - extends _$CreatePrivateMessageCopyWithImpl<$Res, _$CreatePrivateMessageImpl> - implements _$$CreatePrivateMessageImplCopyWith<$Res> { - __$$CreatePrivateMessageImplCopyWithImpl(_$CreatePrivateMessageImpl _value, - $Res Function(_$CreatePrivateMessageImpl) _then) - : super(_value, _then); - - /// Create a copy of CreatePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? content = null, - Object? recipientId = null, - Object? auth = freezed, - }) { - return _then(_$CreatePrivateMessageImpl( - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreatePrivateMessageImpl extends _CreatePrivateMessage { - const _$CreatePrivateMessageImpl( - {required this.content, required this.recipientId, this.auth}) - : super._(); - - factory _$CreatePrivateMessageImpl.fromJson(Map json) => - _$$CreatePrivateMessageImplFromJson(json); - - @override - final String content; -// v0.18.0 - @override - final int recipientId; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreatePrivateMessage(content: $content, recipientId: $recipientId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreatePrivateMessageImpl && - (identical(other.content, content) || other.content == content) && - (identical(other.recipientId, recipientId) || - other.recipientId == recipientId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, content, recipientId, auth); - - /// Create a copy of CreatePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreatePrivateMessageImplCopyWith<_$CreatePrivateMessageImpl> - get copyWith => - __$$CreatePrivateMessageImplCopyWithImpl<_$CreatePrivateMessageImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CreatePrivateMessageImplToJson( - this, - ); - } -} - -abstract class _CreatePrivateMessage extends CreatePrivateMessage { - const factory _CreatePrivateMessage( - {required final String content, - required final int recipientId, - final String? auth}) = _$CreatePrivateMessageImpl; - const _CreatePrivateMessage._() : super._(); - - factory _CreatePrivateMessage.fromJson(Map json) = - _$CreatePrivateMessageImpl.fromJson; - - @override - String get content; // v0.18.0 - @override - int get recipientId; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreatePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreatePrivateMessageImplCopyWith<_$CreatePrivateMessageImpl> - get copyWith => throw _privateConstructorUsedError; -} - -EditPrivateMessage _$EditPrivateMessageFromJson(Map json) { - return _EditPrivateMessage.fromJson(json); -} - -/// @nodoc -mixin _$EditPrivateMessage { - int get privateMessageId => throw _privateConstructorUsedError; // v0.18.0 - String get content => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this EditPrivateMessage to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of EditPrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $EditPrivateMessageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $EditPrivateMessageCopyWith<$Res> { - factory $EditPrivateMessageCopyWith( - EditPrivateMessage value, $Res Function(EditPrivateMessage) then) = - _$EditPrivateMessageCopyWithImpl<$Res, EditPrivateMessage>; - @useResult - $Res call({int privateMessageId, String content, String? auth}); -} - -/// @nodoc -class _$EditPrivateMessageCopyWithImpl<$Res, $Val extends EditPrivateMessage> - implements $EditPrivateMessageCopyWith<$Res> { - _$EditPrivateMessageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of EditPrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? content = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$EditPrivateMessageImplCopyWith<$Res> - implements $EditPrivateMessageCopyWith<$Res> { - factory _$$EditPrivateMessageImplCopyWith(_$EditPrivateMessageImpl value, - $Res Function(_$EditPrivateMessageImpl) then) = - __$$EditPrivateMessageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int privateMessageId, String content, String? auth}); -} - -/// @nodoc -class __$$EditPrivateMessageImplCopyWithImpl<$Res> - extends _$EditPrivateMessageCopyWithImpl<$Res, _$EditPrivateMessageImpl> - implements _$$EditPrivateMessageImplCopyWith<$Res> { - __$$EditPrivateMessageImplCopyWithImpl(_$EditPrivateMessageImpl _value, - $Res Function(_$EditPrivateMessageImpl) _then) - : super(_value, _then); - - /// Create a copy of EditPrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? content = null, - Object? auth = freezed, - }) { - return _then(_$EditPrivateMessageImpl( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$EditPrivateMessageImpl extends _EditPrivateMessage { - const _$EditPrivateMessageImpl( - {required this.privateMessageId, required this.content, this.auth}) - : super._(); - - factory _$EditPrivateMessageImpl.fromJson(Map json) => - _$$EditPrivateMessageImplFromJson(json); - - @override - final int privateMessageId; -// v0.18.0 - @override - final String content; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'EditPrivateMessage(privateMessageId: $privateMessageId, content: $content, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditPrivateMessageImpl && - (identical(other.privateMessageId, privateMessageId) || - other.privateMessageId == privateMessageId) && - (identical(other.content, content) || other.content == content) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageId, content, auth); - - /// Create a copy of EditPrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$EditPrivateMessageImplCopyWith<_$EditPrivateMessageImpl> get copyWith => - __$$EditPrivateMessageImplCopyWithImpl<_$EditPrivateMessageImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$EditPrivateMessageImplToJson( - this, - ); - } -} - -abstract class _EditPrivateMessage extends EditPrivateMessage { - const factory _EditPrivateMessage( - {required final int privateMessageId, - required final String content, - final String? auth}) = _$EditPrivateMessageImpl; - const _EditPrivateMessage._() : super._(); - - factory _EditPrivateMessage.fromJson(Map json) = - _$EditPrivateMessageImpl.fromJson; - - @override - int get privateMessageId; // v0.18.0 - @override - String get content; // v0.18.0 - @override - String? get auth; - - /// Create a copy of EditPrivateMessage - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$EditPrivateMessageImplCopyWith<_$EditPrivateMessageImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DeletePrivateMessage _$DeletePrivateMessageFromJson(Map json) { - return _DeletePrivateMessage.fromJson(json); -} - -/// @nodoc -mixin _$DeletePrivateMessage { - int get privateMessageId => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DeletePrivateMessage to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeletePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeletePrivateMessageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeletePrivateMessageCopyWith<$Res> { - factory $DeletePrivateMessageCopyWith(DeletePrivateMessage value, - $Res Function(DeletePrivateMessage) then) = - _$DeletePrivateMessageCopyWithImpl<$Res, DeletePrivateMessage>; - @useResult - $Res call({int privateMessageId, bool deleted, String? auth}); -} - -/// @nodoc -class _$DeletePrivateMessageCopyWithImpl<$Res, - $Val extends DeletePrivateMessage> - implements $DeletePrivateMessageCopyWith<$Res> { - _$DeletePrivateMessageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeletePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeletePrivateMessageImplCopyWith<$Res> - implements $DeletePrivateMessageCopyWith<$Res> { - factory _$$DeletePrivateMessageImplCopyWith(_$DeletePrivateMessageImpl value, - $Res Function(_$DeletePrivateMessageImpl) then) = - __$$DeletePrivateMessageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int privateMessageId, bool deleted, String? auth}); -} - -/// @nodoc -class __$$DeletePrivateMessageImplCopyWithImpl<$Res> - extends _$DeletePrivateMessageCopyWithImpl<$Res, _$DeletePrivateMessageImpl> - implements _$$DeletePrivateMessageImplCopyWith<$Res> { - __$$DeletePrivateMessageImplCopyWithImpl(_$DeletePrivateMessageImpl _value, - $Res Function(_$DeletePrivateMessageImpl) _then) - : super(_value, _then); - - /// Create a copy of DeletePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? deleted = null, - Object? auth = freezed, - }) { - return _then(_$DeletePrivateMessageImpl( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DeletePrivateMessageImpl extends _DeletePrivateMessage { - const _$DeletePrivateMessageImpl( - {required this.privateMessageId, required this.deleted, this.auth}) - : super._(); - - factory _$DeletePrivateMessageImpl.fromJson(Map json) => - _$$DeletePrivateMessageImplFromJson(json); - - @override - final int privateMessageId; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'DeletePrivateMessage(privateMessageId: $privateMessageId, deleted: $deleted, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeletePrivateMessageImpl && - (identical(other.privateMessageId, privateMessageId) || - other.privateMessageId == privateMessageId) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageId, deleted, auth); - - /// Create a copy of DeletePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeletePrivateMessageImplCopyWith<_$DeletePrivateMessageImpl> - get copyWith => - __$$DeletePrivateMessageImplCopyWithImpl<_$DeletePrivateMessageImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$DeletePrivateMessageImplToJson( - this, - ); - } -} - -abstract class _DeletePrivateMessage extends DeletePrivateMessage { - const factory _DeletePrivateMessage( - {required final int privateMessageId, - required final bool deleted, - final String? auth}) = _$DeletePrivateMessageImpl; - const _DeletePrivateMessage._() : super._(); - - factory _DeletePrivateMessage.fromJson(Map json) = - _$DeletePrivateMessageImpl.fromJson; - - @override - int get privateMessageId; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - String? get auth; - - /// Create a copy of DeletePrivateMessage - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeletePrivateMessageImplCopyWith<_$DeletePrivateMessageImpl> - get copyWith => throw _privateConstructorUsedError; -} - -MarkPrivateMessageAsRead _$MarkPrivateMessageAsReadFromJson( - Map json) { - return _MarkPrivateMessageAsRead.fromJson(json); -} - -/// @nodoc -mixin _$MarkPrivateMessageAsRead { - int get privateMessageId => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this MarkPrivateMessageAsRead to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MarkPrivateMessageAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MarkPrivateMessageAsReadCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MarkPrivateMessageAsReadCopyWith<$Res> { - factory $MarkPrivateMessageAsReadCopyWith(MarkPrivateMessageAsRead value, - $Res Function(MarkPrivateMessageAsRead) then) = - _$MarkPrivateMessageAsReadCopyWithImpl<$Res, MarkPrivateMessageAsRead>; - @useResult - $Res call({int privateMessageId, bool read, String? auth}); -} - -/// @nodoc -class _$MarkPrivateMessageAsReadCopyWithImpl<$Res, - $Val extends MarkPrivateMessageAsRead> - implements $MarkPrivateMessageAsReadCopyWith<$Res> { - _$MarkPrivateMessageAsReadCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MarkPrivateMessageAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$MarkPrivateMessageAsReadImplCopyWith<$Res> - implements $MarkPrivateMessageAsReadCopyWith<$Res> { - factory _$$MarkPrivateMessageAsReadImplCopyWith( - _$MarkPrivateMessageAsReadImpl value, - $Res Function(_$MarkPrivateMessageAsReadImpl) then) = - __$$MarkPrivateMessageAsReadImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int privateMessageId, bool read, String? auth}); -} - -/// @nodoc -class __$$MarkPrivateMessageAsReadImplCopyWithImpl<$Res> - extends _$MarkPrivateMessageAsReadCopyWithImpl<$Res, - _$MarkPrivateMessageAsReadImpl> - implements _$$MarkPrivateMessageAsReadImplCopyWith<$Res> { - __$$MarkPrivateMessageAsReadImplCopyWithImpl( - _$MarkPrivateMessageAsReadImpl _value, - $Res Function(_$MarkPrivateMessageAsReadImpl) _then) - : super(_value, _then); - - /// Create a copy of MarkPrivateMessageAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_$MarkPrivateMessageAsReadImpl( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$MarkPrivateMessageAsReadImpl extends _MarkPrivateMessageAsRead { - const _$MarkPrivateMessageAsReadImpl( - {required this.privateMessageId, required this.read, this.auth}) - : super._(); - - factory _$MarkPrivateMessageAsReadImpl.fromJson(Map json) => - _$$MarkPrivateMessageAsReadImplFromJson(json); - - @override - final int privateMessageId; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'MarkPrivateMessageAsRead(privateMessageId: $privateMessageId, read: $read, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MarkPrivateMessageAsReadImpl && - (identical(other.privateMessageId, privateMessageId) || - other.privateMessageId == privateMessageId) && - (identical(other.read, read) || other.read == read) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageId, read, auth); - - /// Create a copy of MarkPrivateMessageAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MarkPrivateMessageAsReadImplCopyWith<_$MarkPrivateMessageAsReadImpl> - get copyWith => __$$MarkPrivateMessageAsReadImplCopyWithImpl< - _$MarkPrivateMessageAsReadImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MarkPrivateMessageAsReadImplToJson( - this, - ); - } -} - -abstract class _MarkPrivateMessageAsRead extends MarkPrivateMessageAsRead { - const factory _MarkPrivateMessageAsRead( - {required final int privateMessageId, - required final bool read, - final String? auth}) = _$MarkPrivateMessageAsReadImpl; - const _MarkPrivateMessageAsRead._() : super._(); - - factory _MarkPrivateMessageAsRead.fromJson(Map json) = - _$MarkPrivateMessageAsReadImpl.fromJson; - - @override - int get privateMessageId; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - String? get auth; - - /// Create a copy of MarkPrivateMessageAsRead - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MarkPrivateMessageAsReadImplCopyWith<_$MarkPrivateMessageAsReadImpl> - get copyWith => throw _privateConstructorUsedError; -} - -CreatePrivateMessageReport _$CreatePrivateMessageReportFromJson( - Map json) { - return _CreatePrivateMessageReport.fromJson(json); -} - -/// @nodoc -mixin _$CreatePrivateMessageReport { - int get privateMessageId => throw _privateConstructorUsedError; // v0.18.0 - String get reason => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreatePrivateMessageReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreatePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreatePrivateMessageReportCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreatePrivateMessageReportCopyWith<$Res> { - factory $CreatePrivateMessageReportCopyWith(CreatePrivateMessageReport value, - $Res Function(CreatePrivateMessageReport) then) = - _$CreatePrivateMessageReportCopyWithImpl<$Res, - CreatePrivateMessageReport>; - @useResult - $Res call({int privateMessageId, String reason, String? auth}); -} - -/// @nodoc -class _$CreatePrivateMessageReportCopyWithImpl<$Res, - $Val extends CreatePrivateMessageReport> - implements $CreatePrivateMessageReportCopyWith<$Res> { - _$CreatePrivateMessageReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreatePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? reason = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreatePrivateMessageReportImplCopyWith<$Res> - implements $CreatePrivateMessageReportCopyWith<$Res> { - factory _$$CreatePrivateMessageReportImplCopyWith( - _$CreatePrivateMessageReportImpl value, - $Res Function(_$CreatePrivateMessageReportImpl) then) = - __$$CreatePrivateMessageReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int privateMessageId, String reason, String? auth}); -} - -/// @nodoc -class __$$CreatePrivateMessageReportImplCopyWithImpl<$Res> - extends _$CreatePrivateMessageReportCopyWithImpl<$Res, - _$CreatePrivateMessageReportImpl> - implements _$$CreatePrivateMessageReportImplCopyWith<$Res> { - __$$CreatePrivateMessageReportImplCopyWithImpl( - _$CreatePrivateMessageReportImpl _value, - $Res Function(_$CreatePrivateMessageReportImpl) _then) - : super(_value, _then); - - /// Create a copy of CreatePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageId = null, - Object? reason = null, - Object? auth = freezed, - }) { - return _then(_$CreatePrivateMessageReportImpl( - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreatePrivateMessageReportImpl extends _CreatePrivateMessageReport { - const _$CreatePrivateMessageReportImpl( - {required this.privateMessageId, required this.reason, this.auth}) - : super._(); - - factory _$CreatePrivateMessageReportImpl.fromJson( - Map json) => - _$$CreatePrivateMessageReportImplFromJson(json); - - @override - final int privateMessageId; -// v0.18.0 - @override - final String reason; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'CreatePrivateMessageReport(privateMessageId: $privateMessageId, reason: $reason, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreatePrivateMessageReportImpl && - (identical(other.privateMessageId, privateMessageId) || - other.privateMessageId == privateMessageId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageId, reason, auth); - - /// Create a copy of CreatePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreatePrivateMessageReportImplCopyWith<_$CreatePrivateMessageReportImpl> - get copyWith => __$$CreatePrivateMessageReportImplCopyWithImpl< - _$CreatePrivateMessageReportImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CreatePrivateMessageReportImplToJson( - this, - ); - } -} - -abstract class _CreatePrivateMessageReport extends CreatePrivateMessageReport { - const factory _CreatePrivateMessageReport( - {required final int privateMessageId, - required final String reason, - final String? auth}) = _$CreatePrivateMessageReportImpl; - const _CreatePrivateMessageReport._() : super._(); - - factory _CreatePrivateMessageReport.fromJson(Map json) = - _$CreatePrivateMessageReportImpl.fromJson; - - @override - int get privateMessageId; // v0.18.0 - @override - String get reason; // v0.18.0 - @override - String? get auth; - - /// Create a copy of CreatePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreatePrivateMessageReportImplCopyWith<_$CreatePrivateMessageReportImpl> - get copyWith => throw _privateConstructorUsedError; -} - -ResolvePrivateMessageReport _$ResolvePrivateMessageReportFromJson( - Map json) { - return _ResolvePrivateMessageReport.fromJson(json); -} - -/// @nodoc -mixin _$ResolvePrivateMessageReport { - int get reportId => throw _privateConstructorUsedError; // v0.18.0 - bool get resolved => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ResolvePrivateMessageReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ResolvePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ResolvePrivateMessageReportCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ResolvePrivateMessageReportCopyWith<$Res> { - factory $ResolvePrivateMessageReportCopyWith( - ResolvePrivateMessageReport value, - $Res Function(ResolvePrivateMessageReport) then) = - _$ResolvePrivateMessageReportCopyWithImpl<$Res, - ResolvePrivateMessageReport>; - @useResult - $Res call({int reportId, bool resolved, String? auth}); -} - -/// @nodoc -class _$ResolvePrivateMessageReportCopyWithImpl<$Res, - $Val extends ResolvePrivateMessageReport> - implements $ResolvePrivateMessageReportCopyWith<$Res> { - _$ResolvePrivateMessageReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ResolvePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? reportId = null, - Object? resolved = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - reportId: null == reportId - ? _value.reportId - : reportId // ignore: cast_nullable_to_non_nullable - as int, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ResolvePrivateMessageReportImplCopyWith<$Res> - implements $ResolvePrivateMessageReportCopyWith<$Res> { - factory _$$ResolvePrivateMessageReportImplCopyWith( - _$ResolvePrivateMessageReportImpl value, - $Res Function(_$ResolvePrivateMessageReportImpl) then) = - __$$ResolvePrivateMessageReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int reportId, bool resolved, String? auth}); -} - -/// @nodoc -class __$$ResolvePrivateMessageReportImplCopyWithImpl<$Res> - extends _$ResolvePrivateMessageReportCopyWithImpl<$Res, - _$ResolvePrivateMessageReportImpl> - implements _$$ResolvePrivateMessageReportImplCopyWith<$Res> { - __$$ResolvePrivateMessageReportImplCopyWithImpl( - _$ResolvePrivateMessageReportImpl _value, - $Res Function(_$ResolvePrivateMessageReportImpl) _then) - : super(_value, _then); - - /// Create a copy of ResolvePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? reportId = null, - Object? resolved = null, - Object? auth = freezed, - }) { - return _then(_$ResolvePrivateMessageReportImpl( - reportId: null == reportId - ? _value.reportId - : reportId // ignore: cast_nullable_to_non_nullable - as int, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ResolvePrivateMessageReportImpl extends _ResolvePrivateMessageReport { - const _$ResolvePrivateMessageReportImpl( - {required this.reportId, required this.resolved, this.auth}) - : super._(); - - factory _$ResolvePrivateMessageReportImpl.fromJson( - Map json) => - _$$ResolvePrivateMessageReportImplFromJson(json); - - @override - final int reportId; -// v0.18.0 - @override - final bool resolved; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ResolvePrivateMessageReport(reportId: $reportId, resolved: $resolved, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ResolvePrivateMessageReportImpl && - (identical(other.reportId, reportId) || - other.reportId == reportId) && - (identical(other.resolved, resolved) || - other.resolved == resolved) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, reportId, resolved, auth); - - /// Create a copy of ResolvePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ResolvePrivateMessageReportImplCopyWith<_$ResolvePrivateMessageReportImpl> - get copyWith => __$$ResolvePrivateMessageReportImplCopyWithImpl< - _$ResolvePrivateMessageReportImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ResolvePrivateMessageReportImplToJson( - this, - ); - } -} - -abstract class _ResolvePrivateMessageReport - extends ResolvePrivateMessageReport { - const factory _ResolvePrivateMessageReport( - {required final int reportId, - required final bool resolved, - final String? auth}) = _$ResolvePrivateMessageReportImpl; - const _ResolvePrivateMessageReport._() : super._(); - - factory _ResolvePrivateMessageReport.fromJson(Map json) = - _$ResolvePrivateMessageReportImpl.fromJson; - - @override - int get reportId; // v0.18.0 - @override - bool get resolved; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ResolvePrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ResolvePrivateMessageReportImplCopyWith<_$ResolvePrivateMessageReportImpl> - get copyWith => throw _privateConstructorUsedError; -} - -ListPrivateMessageReports _$ListPrivateMessageReportsFromJson( - Map json) { - return _ListPrivateMessageReports.fromJson(json); -} - -/// @nodoc -mixin _$ListPrivateMessageReports { - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - bool? get unresolvedOnly => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListPrivateMessageReports to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListPrivateMessageReports - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListPrivateMessageReportsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListPrivateMessageReportsCopyWith<$Res> { - factory $ListPrivateMessageReportsCopyWith(ListPrivateMessageReports value, - $Res Function(ListPrivateMessageReports) then) = - _$ListPrivateMessageReportsCopyWithImpl<$Res, ListPrivateMessageReports>; - @useResult - $Res call( - {int? page, - int? limit, - bool? unresolvedOnly, - int? communityId, - String? auth}); -} - -/// @nodoc -class _$ListPrivateMessageReportsCopyWithImpl<$Res, - $Val extends ListPrivateMessageReports> - implements $ListPrivateMessageReportsCopyWith<$Res> { - _$ListPrivateMessageReportsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListPrivateMessageReports - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? unresolvedOnly = freezed, - Object? communityId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unresolvedOnly: freezed == unresolvedOnly - ? _value.unresolvedOnly - : unresolvedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListPrivateMessageReportsImplCopyWith<$Res> - implements $ListPrivateMessageReportsCopyWith<$Res> { - factory _$$ListPrivateMessageReportsImplCopyWith( - _$ListPrivateMessageReportsImpl value, - $Res Function(_$ListPrivateMessageReportsImpl) then) = - __$$ListPrivateMessageReportsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? page, - int? limit, - bool? unresolvedOnly, - int? communityId, - String? auth}); -} - -/// @nodoc -class __$$ListPrivateMessageReportsImplCopyWithImpl<$Res> - extends _$ListPrivateMessageReportsCopyWithImpl<$Res, - _$ListPrivateMessageReportsImpl> - implements _$$ListPrivateMessageReportsImplCopyWith<$Res> { - __$$ListPrivateMessageReportsImplCopyWithImpl( - _$ListPrivateMessageReportsImpl _value, - $Res Function(_$ListPrivateMessageReportsImpl) _then) - : super(_value, _then); - - /// Create a copy of ListPrivateMessageReports - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? unresolvedOnly = freezed, - Object? communityId = freezed, - Object? auth = freezed, - }) { - return _then(_$ListPrivateMessageReportsImpl( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unresolvedOnly: freezed == unresolvedOnly - ? _value.unresolvedOnly - : unresolvedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListPrivateMessageReportsImpl extends _ListPrivateMessageReports { - const _$ListPrivateMessageReportsImpl( - {this.page, this.limit, this.unresolvedOnly, this.communityId, this.auth}) - : super._(); - - factory _$ListPrivateMessageReportsImpl.fromJson(Map json) => - _$$ListPrivateMessageReportsImplFromJson(json); - - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final bool? unresolvedOnly; -// v0.18.0 - @override - final int? communityId; - @override - final String? auth; - - @override - String toString() { - return 'ListPrivateMessageReports(page: $page, limit: $limit, unresolvedOnly: $unresolvedOnly, communityId: $communityId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPrivateMessageReportsImpl && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.unresolvedOnly, unresolvedOnly) || - other.unresolvedOnly == unresolvedOnly) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, page, limit, unresolvedOnly, communityId, auth); - - /// Create a copy of ListPrivateMessageReports - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListPrivateMessageReportsImplCopyWith<_$ListPrivateMessageReportsImpl> - get copyWith => __$$ListPrivateMessageReportsImplCopyWithImpl< - _$ListPrivateMessageReportsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListPrivateMessageReportsImplToJson( - this, - ); - } -} - -abstract class _ListPrivateMessageReports extends ListPrivateMessageReports { - const factory _ListPrivateMessageReports( - {final int? page, - final int? limit, - final bool? unresolvedOnly, - final int? communityId, - final String? auth}) = _$ListPrivateMessageReportsImpl; - const _ListPrivateMessageReports._() : super._(); - - factory _ListPrivateMessageReports.fromJson(Map json) = - _$ListPrivateMessageReportsImpl.fromJson; - - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - bool? get unresolvedOnly; // v0.18.0 - @override - int? get communityId; - @override - String? get auth; - - /// Create a copy of ListPrivateMessageReports - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListPrivateMessageReportsImplCopyWith<_$ListPrivateMessageReportsImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/private_message/private_message.g.dart b/lib/src/v3/api/private_message/private_message.g.dart deleted file mode 100644 index 4c24bbd3..00000000 --- a/lib/src/v3/api/private_message/private_message.g.dart +++ /dev/null @@ -1,213 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetPrivateMessagesImpl _$$GetPrivateMessagesImplFromJson( - Map json) => - _$GetPrivateMessagesImpl( - unreadOnly: json['unread_only'] as bool?, - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - creatorId: (json['creator_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$GetPrivateMessagesImplToJson( - _$GetPrivateMessagesImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('unread_only', instance.unreadOnly); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('creator_id', instance.creatorId); - writeNotNull('auth', instance.auth); - return val; -} - -_$CreatePrivateMessageImpl _$$CreatePrivateMessageImplFromJson( - Map json) => - _$CreatePrivateMessageImpl( - content: json['content'] as String, - recipientId: (json['recipient_id'] as num).toInt(), - auth: json['auth'] as String?, - ); - -Map _$$CreatePrivateMessageImplToJson( - _$CreatePrivateMessageImpl instance) { - final val = { - 'content': instance.content, - 'recipient_id': instance.recipientId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$EditPrivateMessageImpl _$$EditPrivateMessageImplFromJson( - Map json) => - _$EditPrivateMessageImpl( - privateMessageId: (json['private_message_id'] as num).toInt(), - content: json['content'] as String, - auth: json['auth'] as String?, - ); - -Map _$$EditPrivateMessageImplToJson( - _$EditPrivateMessageImpl instance) { - final val = { - 'private_message_id': instance.privateMessageId, - 'content': instance.content, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$DeletePrivateMessageImpl _$$DeletePrivateMessageImplFromJson( - Map json) => - _$DeletePrivateMessageImpl( - privateMessageId: (json['private_message_id'] as num).toInt(), - deleted: json['deleted'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$DeletePrivateMessageImplToJson( - _$DeletePrivateMessageImpl instance) { - final val = { - 'private_message_id': instance.privateMessageId, - 'deleted': instance.deleted, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$MarkPrivateMessageAsReadImpl _$$MarkPrivateMessageAsReadImplFromJson( - Map json) => - _$MarkPrivateMessageAsReadImpl( - privateMessageId: (json['private_message_id'] as num).toInt(), - read: json['read'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$MarkPrivateMessageAsReadImplToJson( - _$MarkPrivateMessageAsReadImpl instance) { - final val = { - 'private_message_id': instance.privateMessageId, - 'read': instance.read, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$CreatePrivateMessageReportImpl _$$CreatePrivateMessageReportImplFromJson( - Map json) => - _$CreatePrivateMessageReportImpl( - privateMessageId: (json['private_message_id'] as num).toInt(), - reason: json['reason'] as String, - auth: json['auth'] as String?, - ); - -Map _$$CreatePrivateMessageReportImplToJson( - _$CreatePrivateMessageReportImpl instance) { - final val = { - 'private_message_id': instance.privateMessageId, - 'reason': instance.reason, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ResolvePrivateMessageReportImpl _$$ResolvePrivateMessageReportImplFromJson( - Map json) => - _$ResolvePrivateMessageReportImpl( - reportId: (json['report_id'] as num).toInt(), - resolved: json['resolved'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$ResolvePrivateMessageReportImplToJson( - _$ResolvePrivateMessageReportImpl instance) { - final val = { - 'report_id': instance.reportId, - 'resolved': instance.resolved, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListPrivateMessageReportsImpl _$$ListPrivateMessageReportsImplFromJson( - Map json) => - _$ListPrivateMessageReportsImpl( - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - unresolvedOnly: json['unresolved_only'] as bool?, - communityId: (json['community_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListPrivateMessageReportsImplToJson( - _$ListPrivateMessageReportsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('unresolved_only', instance.unresolvedOnly); - writeNotNull('community_id', instance.communityId); - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/resolve_object/resolve_object.dart b/lib/src/v3/api/resolve_object/resolve_object.dart deleted file mode 100644 index 8df30f97..00000000 --- a/lib/src/v3/api/resolve_object/resolve_object.dart +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'resolve_object.freezed.dart'; -part 'resolve_object.g.dart'; - -/// ResolveObject lemmy. -/// -/// `HTTP.GET /resolve_object` -@freezed -class ResolveObject - with _$ResolveObject - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory ResolveObject({ - required String q, // v0.18.0 - String? auth, - }) = _ResolveObject; - - const ResolveObject._(); - factory ResolveObject.fromJson(Map json) => - _$ResolveObjectFromJson(json); - - final path = '/resolve_object'; - - final httpMethod = HttpMethod.get; - - @override - ResolveObjectResponse responseFactory(Map json) => - ResolveObjectResponse.fromJson(json); -} diff --git a/lib/src/v3/api/resolve_object/resolve_object.freezed.dart b/lib/src/v3/api/resolve_object/resolve_object.freezed.dart deleted file mode 100644 index 2d77dce0..00000000 --- a/lib/src/v3/api/resolve_object/resolve_object.freezed.dart +++ /dev/null @@ -1,184 +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 'resolve_object.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'); - -ResolveObject _$ResolveObjectFromJson(Map json) { - return _ResolveObject.fromJson(json); -} - -/// @nodoc -mixin _$ResolveObject { - String get q => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ResolveObject to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ResolveObject - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ResolveObjectCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ResolveObjectCopyWith<$Res> { - factory $ResolveObjectCopyWith( - ResolveObject value, $Res Function(ResolveObject) then) = - _$ResolveObjectCopyWithImpl<$Res, ResolveObject>; - @useResult - $Res call({String q, String? auth}); -} - -/// @nodoc -class _$ResolveObjectCopyWithImpl<$Res, $Val extends ResolveObject> - implements $ResolveObjectCopyWith<$Res> { - _$ResolveObjectCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ResolveObject - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? q = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - q: null == q - ? _value.q - : q // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ResolveObjectImplCopyWith<$Res> - implements $ResolveObjectCopyWith<$Res> { - factory _$$ResolveObjectImplCopyWith( - _$ResolveObjectImpl value, $Res Function(_$ResolveObjectImpl) then) = - __$$ResolveObjectImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String q, String? auth}); -} - -/// @nodoc -class __$$ResolveObjectImplCopyWithImpl<$Res> - extends _$ResolveObjectCopyWithImpl<$Res, _$ResolveObjectImpl> - implements _$$ResolveObjectImplCopyWith<$Res> { - __$$ResolveObjectImplCopyWithImpl( - _$ResolveObjectImpl _value, $Res Function(_$ResolveObjectImpl) _then) - : super(_value, _then); - - /// Create a copy of ResolveObject - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? q = null, - Object? auth = freezed, - }) { - return _then(_$ResolveObjectImpl( - q: null == q - ? _value.q - : q // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ResolveObjectImpl extends _ResolveObject { - const _$ResolveObjectImpl({required this.q, this.auth}) : super._(); - - factory _$ResolveObjectImpl.fromJson(Map json) => - _$$ResolveObjectImplFromJson(json); - - @override - final String q; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ResolveObject(q: $q, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ResolveObjectImpl && - (identical(other.q, q) || other.q == q) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, q, auth); - - /// Create a copy of ResolveObject - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ResolveObjectImplCopyWith<_$ResolveObjectImpl> get copyWith => - __$$ResolveObjectImplCopyWithImpl<_$ResolveObjectImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ResolveObjectImplToJson( - this, - ); - } -} - -abstract class _ResolveObject extends ResolveObject { - const factory _ResolveObject({required final String q, final String? auth}) = - _$ResolveObjectImpl; - const _ResolveObject._() : super._(); - - factory _ResolveObject.fromJson(Map json) = - _$ResolveObjectImpl.fromJson; - - @override - String get q; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ResolveObject - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ResolveObjectImplCopyWith<_$ResolveObjectImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/resolve_object/resolve_object.g.dart b/lib/src/v3/api/resolve_object/resolve_object.g.dart deleted file mode 100644 index bfff79bd..00000000 --- a/lib/src/v3/api/resolve_object/resolve_object.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'resolve_object.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ResolveObjectImpl _$$ResolveObjectImplFromJson(Map json) => - _$ResolveObjectImpl( - q: json['q'] as String, - auth: json['auth'] as String?, - ); - -Map _$$ResolveObjectImplToJson(_$ResolveObjectImpl instance) { - final val = { - 'q': instance.q, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/search/search.dart b/lib/src/v3/api/search/search.dart deleted file mode 100644 index 432fac8a..00000000 --- a/lib/src/v3/api/search/search.dart +++ /dev/null @@ -1,42 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; -import '../../models/models.dart'; -import '../../query.dart'; - -part 'search.freezed.dart'; -part 'search.g.dart'; - -/// Search lemmy. -/// -/// `HTTP.GET /search` -@freezed -class Search - with _$Search - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory Search({ - required String q, // v0.18.0 - int? communityId, // v0.18.0 - String? communityName, // v0.18.0 - int? creatorId, // v0.18.0 - @JsonKey(name: 'type_') SearchType? type, // v0.18.0 - SortType? sort, // v0.18.0 - ListingType? listingType, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - String? auth, - }) = _Search; - - const Search._(); - factory Search.fromJson(Map json) => _$SearchFromJson(json); - - final path = '/search'; - - final httpMethod = HttpMethod.get; - - @override - SearchResponse responseFactory(Map json) => - SearchResponse.fromJson(json); -} diff --git a/lib/src/v3/api/search/search.freezed.dart b/lib/src/v3/api/search/search.freezed.dart deleted file mode 100644 index 88fefeb0..00000000 --- a/lib/src/v3/api/search/search.freezed.dart +++ /dev/null @@ -1,364 +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 'search.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'); - -Search _$SearchFromJson(Map json) { - return _Search.fromJson(json); -} - -/// @nodoc -mixin _$Search { - String get q => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get communityName => throw _privateConstructorUsedError; // v0.18.0 - int? get creatorId => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'type_') - SearchType? get type => throw _privateConstructorUsedError; // v0.18.0 - SortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - ListingType? get listingType => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this Search to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Search - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SearchCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SearchCopyWith<$Res> { - factory $SearchCopyWith(Search value, $Res Function(Search) then) = - _$SearchCopyWithImpl<$Res, Search>; - @useResult - $Res call( - {String q, - int? communityId, - String? communityName, - int? creatorId, - @JsonKey(name: 'type_') SearchType? type, - SortType? sort, - ListingType? listingType, - int? page, - int? limit, - String? auth}); -} - -/// @nodoc -class _$SearchCopyWithImpl<$Res, $Val extends Search> - implements $SearchCopyWith<$Res> { - _$SearchCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Search - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? q = null, - Object? communityId = freezed, - Object? communityName = freezed, - Object? creatorId = freezed, - Object? type = freezed, - Object? sort = freezed, - Object? listingType = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - q: null == q - ? _value.q - : q // ignore: cast_nullable_to_non_nullable - as String, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - communityName: freezed == communityName - ? _value.communityName - : communityName // ignore: cast_nullable_to_non_nullable - as String?, - creatorId: freezed == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int?, - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as SearchType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - listingType: freezed == listingType - ? _value.listingType - : listingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SearchImplCopyWith<$Res> implements $SearchCopyWith<$Res> { - factory _$$SearchImplCopyWith( - _$SearchImpl value, $Res Function(_$SearchImpl) then) = - __$$SearchImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String q, - int? communityId, - String? communityName, - int? creatorId, - @JsonKey(name: 'type_') SearchType? type, - SortType? sort, - ListingType? listingType, - int? page, - int? limit, - String? auth}); -} - -/// @nodoc -class __$$SearchImplCopyWithImpl<$Res> - extends _$SearchCopyWithImpl<$Res, _$SearchImpl> - implements _$$SearchImplCopyWith<$Res> { - __$$SearchImplCopyWithImpl( - _$SearchImpl _value, $Res Function(_$SearchImpl) _then) - : super(_value, _then); - - /// Create a copy of Search - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? q = null, - Object? communityId = freezed, - Object? communityName = freezed, - Object? creatorId = freezed, - Object? type = freezed, - Object? sort = freezed, - Object? listingType = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_$SearchImpl( - q: null == q - ? _value.q - : q // ignore: cast_nullable_to_non_nullable - as String, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - communityName: freezed == communityName - ? _value.communityName - : communityName // ignore: cast_nullable_to_non_nullable - as String?, - creatorId: freezed == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int?, - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as SearchType?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - listingType: freezed == listingType - ? _value.listingType - : listingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$SearchImpl extends _Search { - const _$SearchImpl( - {required this.q, - this.communityId, - this.communityName, - this.creatorId, - @JsonKey(name: 'type_') this.type, - this.sort, - this.listingType, - this.page, - this.limit, - this.auth}) - : super._(); - - factory _$SearchImpl.fromJson(Map json) => - _$$SearchImplFromJson(json); - - @override - final String q; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final String? communityName; -// v0.18.0 - @override - final int? creatorId; -// v0.18.0 - @override - @JsonKey(name: 'type_') - final SearchType? type; -// v0.18.0 - @override - final SortType? sort; -// v0.18.0 - @override - final ListingType? listingType; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'Search(q: $q, communityId: $communityId, communityName: $communityName, creatorId: $creatorId, type: $type, sort: $sort, listingType: $listingType, page: $page, limit: $limit, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SearchImpl && - (identical(other.q, q) || other.q == q) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.communityName, communityName) || - other.communityName == communityName) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.type, type) || other.type == type) && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.listingType, listingType) || - other.listingType == listingType) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, q, communityId, communityName, - creatorId, type, sort, listingType, page, limit, auth); - - /// Create a copy of Search - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SearchImplCopyWith<_$SearchImpl> get copyWith => - __$$SearchImplCopyWithImpl<_$SearchImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SearchImplToJson( - this, - ); - } -} - -abstract class _Search extends Search { - const factory _Search( - {required final String q, - final int? communityId, - final String? communityName, - final int? creatorId, - @JsonKey(name: 'type_') final SearchType? type, - final SortType? sort, - final ListingType? listingType, - final int? page, - final int? limit, - final String? auth}) = _$SearchImpl; - const _Search._() : super._(); - - factory _Search.fromJson(Map json) = _$SearchImpl.fromJson; - - @override - String get q; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - String? get communityName; // v0.18.0 - @override - int? get creatorId; // v0.18.0 - @override - @JsonKey(name: 'type_') - SearchType? get type; // v0.18.0 - @override - SortType? get sort; // v0.18.0 - @override - ListingType? get listingType; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - String? get auth; - - /// Create a copy of Search - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SearchImplCopyWith<_$SearchImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/search/search.g.dart b/lib/src/v3/api/search/search.g.dart deleted file mode 100644 index f7ac5264..00000000 --- a/lib/src/v3/api/search/search.g.dart +++ /dev/null @@ -1,47 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'search.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SearchImpl _$$SearchImplFromJson(Map json) => _$SearchImpl( - q: json['q'] as String, - communityId: (json['community_id'] as num?)?.toInt(), - communityName: json['community_name'] as String?, - creatorId: (json['creator_id'] as num?)?.toInt(), - type: json['type_'] == null - ? null - : SearchType.fromJson(json['type_'] as String), - sort: json['sort'] == null ? null : SortType.fromJson(json['sort']), - listingType: json['listing_type'] == null - ? null - : ListingType.fromJson(json['listing_type']), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$SearchImplToJson(_$SearchImpl instance) { - final val = { - 'q': instance.q, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('community_id', instance.communityId); - writeNotNull('community_name', instance.communityName); - writeNotNull('creator_id', instance.creatorId); - writeNotNull('type_', instance.type?.toJson()); - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('listing_type', instance.listingType?.toJson()); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('auth', instance.auth); - return val; -} diff --git a/lib/src/v3/api/site/site.dart b/lib/src/v3/api/site/site.dart deleted file mode 100644 index 64ea73a4..00000000 --- a/lib/src/v3/api/site/site.dart +++ /dev/null @@ -1,201 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../v3.dart'; -import '../../../utils/serde.dart'; - -part 'site.freezed.dart'; -part 'site.g.dart'; - -/// Gets the site, and your user data. -/// -/// `HTTP.GET /site` -@freezed -class GetSite - with _$GetSite - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetSite({ - String? auth, - }) = _GetSite; - - const GetSite._(); - factory GetSite.fromJson(Map json) => - _$GetSiteFromJson(json); - - final path = '/site'; - - final httpMethod = HttpMethod.get; - - @override - GetSiteResponse responseFactory(Map json) => - GetSiteResponse.fromJson(json); -} - -/// Create your site. -/// -/// `HTTP.POST /site` -@freezed -class CreateSite - with _$CreateSite - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory CreateSite({ - required String name, // v0.18.0 - String? sidebar, // v0.18.0 - String? description, // v0.18.0 - String? icon, // v0.18.0 - String? banner, // v0.18.0 - bool? enableDownvotes, // v0.18.0 - bool? enableNsfw, // v0.18.0 - bool? communityCreationAdminOnly, // v0.18.0 - bool? requireEmailVerification, // v0.18.0 - String? applicationQuestion, // v0.18.0 - bool? privateInstance, // v0.18.0 - String? defaultTheme, // v0.18.0 - ListingType? defaultPostListingType, // v0.18.0 - SortType? defaultSortType, // v0.19.4 (optional) - String? legalInformation, // v0.18.0 - bool? applicationEmailAdmins, // v0.18.0 - bool? hideModlogModNames, // v0.18.0 - List? discussionLanguages, // v0.18.0 - String? slurFilterRegex, // v0.18.0 - int? actorNameMaxLength, // v0.18.0 - int? rateLimitMessage, // v0.18.0 - int? rateLimitMessagePerSecond, // v0.18.0 - int? rateLimitPost, // v0.18.0 - int? rateLimitPostPerSecond, // v0.18.0 - int? rateLimitRegister, // v0.18.0 - int? rateLimitRegisterPerSecond, // v0.18.0 - int? rateLimitImage, // v0.18.0 - int? rateLimitImagePerSecond, // v0.18.0 - int? rateLimitComment, // v0.18.0 - int? rateLimitCommentPerSecond, // v0.18.0 - int? rateLimitSearch, // v0.18.0 - int? rateLimitSearchPerSecond, // v0.18.0 - bool? federationEnabled, // v0.18.0 - bool? federationDebug, // v0.18.0 - @deprecated int? federationWorkerCount, // v0.18.0 [deprecated in v0.18.1] - bool? captchaEnabled, // v0.18.0 - String? captchaDifficulty, // v0.18.0 - List? allowedInstances, // v0.18.0 - List? blockedInstances, // v0.18.0 - List? taglines, // v0.18.0 - RegistrationMode? registrationMode, // v0.18.0 - String? contentWarning, // v0.19.4 (optional) - String? defaultPostListingMode, // v0.19.4 (optional) - String? auth, - }) = _CreateSite; - - const CreateSite._(); - factory CreateSite.fromJson(Map json) => - _$CreateSiteFromJson(json); - - final path = '/site'; - - final httpMethod = HttpMethod.post; - - @override - SiteResponse responseFactory(Map json) => - SiteResponse.fromJson(json); -} - -/// Edit your site. -/// -/// `HTTP.PUT /site` -@freezed -class EditSite - with _$EditSite - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory EditSite({ - String? name, // v0.18.0 - String? sidebar, // v0.18.0 - String? description, // v0.18.0 - String? icon, // v0.18.0 - String? banner, // v0.18.0 - bool? enableDownvotes, // v0.18.0 - bool? enableNsfw, // v0.18.0 - bool? communityCreationAdminOnly, // v0.18.0 - bool? requireEmailVerification, // v0.18.0 - String? applicationQuestion, // v0.18.0 - bool? privateInstance, // v0.18.0 - String? defaultTheme, // v0.18.0 - ListingType? defaultPostListingType, // v0.18.0 - SortType? defaultSortType, // v0.19.4 (optional) - String? legalInformation, // v0.18.0 - bool? applicationEmailAdmins, // v0.18.0 - bool? hideModlogModNames, // v0.18.0 - List? discussionLanguages, // v0.18.0 - String? slurFilterRegex, // v0.18.0 - int? actorNameMaxLength, // v0.18.0 - int? rateLimitMessage, // v0.18.0 - int? rateLimitMessagePerSecond, // v0.18.0 - int? rateLimitPost, // v0.18.0 - int? rateLimitPostPerSecond, // v0.18.0 - int? rateLimitRegister, // v0.18.0 - int? rateLimitRegisterPerSecond, // v0.18.0 - int? rateLimitImage, // v0.18.0 - int? rateLimitImagePerSecond, // v0.18.0 - int? rateLimitComment, // v0.18.0 - int? rateLimitCommentPerSecond, // v0.18.0 - int? rateLimitSearch, // v0.18.0 - int? rateLimitSearchPerSecond, // v0.18.0 - bool? federationEnabled, // v0.18.0 - bool? federationDebug, // v0.18.0 - @deprecated int? federationWorkerCount, // v0.18.0 [deprecated in v0.18.1] - bool? captchaEnabled, // v0.18.0 - String? captchaDifficulty, // v0.18.0 - List? allowedInstances, // v0.18.0 - List? blockedInstances, // v0.18.0 - List? blockedUrls, // v0.19.4 (optional) - List? taglines, // v0.18.0 - RegistrationMode? registrationMode, // v0.18.0 - bool? reportsEmailAdmins, // v0.18.0 - String? contentWarning, // v0.19.4 (optional) - String? defaultPostListingMode, // v0.19.4 (optional) - String? auth, - }) = _EditSite; - - const EditSite._(); - factory EditSite.fromJson(Map json) => - _$EditSiteFromJson(json); - - final path = '/site'; - - final httpMethod = HttpMethod.put; - - @override - SiteResponse responseFactory(Map json) => - SiteResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Block an instance. -/// -/// `HTTP.Post /site/block` -@freezed -class BlockInstance - with _$BlockInstance - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory BlockInstance({ - String? auth, - required int instanceId, // v0.19.0 (required) - required bool block, // v0.19.0 (required) - }) = _BlockInstance; - - const BlockInstance._(); - factory BlockInstance.fromJson(Map json) => - _$BlockInstanceFromJson(json); - - final path = '/site/block'; - - final httpMethod = HttpMethod.post; - - @override - BlockInstanceResponse responseFactory(Map json) => - BlockInstanceResponse.fromJson(json); -} diff --git a/lib/src/v3/api/site/site.freezed.dart b/lib/src/v3/api/site/site.freezed.dart deleted file mode 100644 index 5180d3a1..00000000 --- a/lib/src/v3/api/site/site.freezed.dart +++ /dev/null @@ -1,2803 +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 'site.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'); - -GetSite _$GetSiteFromJson(Map json) { - return _GetSite.fromJson(json); -} - -/// @nodoc -mixin _$GetSite { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetSite to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetSiteCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetSiteCopyWith<$Res> { - factory $GetSiteCopyWith(GetSite value, $Res Function(GetSite) then) = - _$GetSiteCopyWithImpl<$Res, GetSite>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GetSiteCopyWithImpl<$Res, $Val extends GetSite> - implements $GetSiteCopyWith<$Res> { - _$GetSiteCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetSiteImplCopyWith<$Res> implements $GetSiteCopyWith<$Res> { - factory _$$GetSiteImplCopyWith( - _$GetSiteImpl value, $Res Function(_$GetSiteImpl) then) = - __$$GetSiteImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GetSiteImplCopyWithImpl<$Res> - extends _$GetSiteCopyWithImpl<$Res, _$GetSiteImpl> - implements _$$GetSiteImplCopyWith<$Res> { - __$$GetSiteImplCopyWithImpl( - _$GetSiteImpl _value, $Res Function(_$GetSiteImpl) _then) - : super(_value, _then); - - /// Create a copy of GetSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GetSiteImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetSiteImpl extends _GetSite { - const _$GetSiteImpl({this.auth}) : super._(); - - factory _$GetSiteImpl.fromJson(Map json) => - _$$GetSiteImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GetSite(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetSiteImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GetSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetSiteImplCopyWith<_$GetSiteImpl> get copyWith => - __$$GetSiteImplCopyWithImpl<_$GetSiteImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetSiteImplToJson( - this, - ); - } -} - -abstract class _GetSite extends GetSite { - const factory _GetSite({final String? auth}) = _$GetSiteImpl; - const _GetSite._() : super._(); - - factory _GetSite.fromJson(Map json) = _$GetSiteImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GetSite - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetSiteImplCopyWith<_$GetSiteImpl> get copyWith => - throw _privateConstructorUsedError; -} - -CreateSite _$CreateSiteFromJson(Map json) { - return _CreateSite.fromJson(json); -} - -/// @nodoc -mixin _$CreateSite { - String get name => throw _privateConstructorUsedError; // v0.18.0 - String? get sidebar => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - String? get icon => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - bool? get enableDownvotes => throw _privateConstructorUsedError; // v0.18.0 - bool? get enableNsfw => throw _privateConstructorUsedError; // v0.18.0 - bool? get communityCreationAdminOnly => - throw _privateConstructorUsedError; // v0.18.0 - bool? get requireEmailVerification => - throw _privateConstructorUsedError; // v0.18.0 - String? get applicationQuestion => - throw _privateConstructorUsedError; // v0.18.0 - bool? get privateInstance => throw _privateConstructorUsedError; // v0.18.0 - String? get defaultTheme => throw _privateConstructorUsedError; // v0.18.0 - ListingType? get defaultPostListingType => - throw _privateConstructorUsedError; // v0.18.0 - SortType? get defaultSortType => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get legalInformation => throw _privateConstructorUsedError; // v0.18.0 - bool? get applicationEmailAdmins => - throw _privateConstructorUsedError; // v0.18.0 - bool? get hideModlogModNames => throw _privateConstructorUsedError; // v0.18.0 - List? get discussionLanguages => - throw _privateConstructorUsedError; // v0.18.0 - String? get slurFilterRegex => throw _privateConstructorUsedError; // v0.18.0 - int? get actorNameMaxLength => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitMessage => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitMessagePerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitPost => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitPostPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitRegister => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitRegisterPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitImage => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitImagePerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitComment => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitCommentPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitSearch => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitSearchPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - bool? get federationEnabled => throw _privateConstructorUsedError; // v0.18.0 - bool? get federationDebug => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get federationWorkerCount => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.18.1] - bool? get captchaEnabled => throw _privateConstructorUsedError; // v0.18.0 - String? get captchaDifficulty => - throw _privateConstructorUsedError; // v0.18.0 - List? get allowedInstances => - throw _privateConstructorUsedError; // v0.18.0 - List? get blockedInstances => - throw _privateConstructorUsedError; // v0.18.0 - List? get taglines => throw _privateConstructorUsedError; // v0.18.0 - RegistrationMode? get registrationMode => - throw _privateConstructorUsedError; // v0.18.0 - String? get contentWarning => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get defaultPostListingMode => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this CreateSite to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CreateSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CreateSiteCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CreateSiteCopyWith<$Res> { - factory $CreateSiteCopyWith( - CreateSite value, $Res Function(CreateSite) then) = - _$CreateSiteCopyWithImpl<$Res, CreateSite>; - @useResult - $Res call( - {String name, - String? sidebar, - String? description, - String? icon, - String? banner, - bool? enableDownvotes, - bool? enableNsfw, - bool? communityCreationAdminOnly, - bool? requireEmailVerification, - String? applicationQuestion, - bool? privateInstance, - String? defaultTheme, - ListingType? defaultPostListingType, - SortType? defaultSortType, - String? legalInformation, - bool? applicationEmailAdmins, - bool? hideModlogModNames, - List? discussionLanguages, - String? slurFilterRegex, - int? actorNameMaxLength, - int? rateLimitMessage, - int? rateLimitMessagePerSecond, - int? rateLimitPost, - int? rateLimitPostPerSecond, - int? rateLimitRegister, - int? rateLimitRegisterPerSecond, - int? rateLimitImage, - int? rateLimitImagePerSecond, - int? rateLimitComment, - int? rateLimitCommentPerSecond, - int? rateLimitSearch, - int? rateLimitSearchPerSecond, - bool? federationEnabled, - bool? federationDebug, - @deprecated int? federationWorkerCount, - bool? captchaEnabled, - String? captchaDifficulty, - List? allowedInstances, - List? blockedInstances, - List? taglines, - RegistrationMode? registrationMode, - String? contentWarning, - String? defaultPostListingMode, - String? auth}); -} - -/// @nodoc -class _$CreateSiteCopyWithImpl<$Res, $Val extends CreateSite> - implements $CreateSiteCopyWith<$Res> { - _$CreateSiteCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CreateSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? sidebar = freezed, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? enableDownvotes = freezed, - Object? enableNsfw = freezed, - Object? communityCreationAdminOnly = freezed, - Object? requireEmailVerification = freezed, - Object? applicationQuestion = freezed, - Object? privateInstance = freezed, - Object? defaultTheme = freezed, - Object? defaultPostListingType = freezed, - Object? defaultSortType = freezed, - Object? legalInformation = freezed, - Object? applicationEmailAdmins = freezed, - Object? hideModlogModNames = freezed, - Object? discussionLanguages = freezed, - Object? slurFilterRegex = freezed, - Object? actorNameMaxLength = freezed, - Object? rateLimitMessage = freezed, - Object? rateLimitMessagePerSecond = freezed, - Object? rateLimitPost = freezed, - Object? rateLimitPostPerSecond = freezed, - Object? rateLimitRegister = freezed, - Object? rateLimitRegisterPerSecond = freezed, - Object? rateLimitImage = freezed, - Object? rateLimitImagePerSecond = freezed, - Object? rateLimitComment = freezed, - Object? rateLimitCommentPerSecond = freezed, - Object? rateLimitSearch = freezed, - Object? rateLimitSearchPerSecond = freezed, - Object? federationEnabled = freezed, - Object? federationDebug = freezed, - Object? federationWorkerCount = freezed, - Object? captchaEnabled = freezed, - Object? captchaDifficulty = freezed, - Object? allowedInstances = freezed, - Object? blockedInstances = freezed, - Object? taglines = freezed, - Object? registrationMode = freezed, - Object? contentWarning = freezed, - Object? defaultPostListingMode = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - sidebar: freezed == sidebar - ? _value.sidebar - : sidebar // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - enableDownvotes: freezed == enableDownvotes - ? _value.enableDownvotes - : enableDownvotes // ignore: cast_nullable_to_non_nullable - as bool?, - enableNsfw: freezed == enableNsfw - ? _value.enableNsfw - : enableNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - communityCreationAdminOnly: freezed == communityCreationAdminOnly - ? _value.communityCreationAdminOnly - : communityCreationAdminOnly // ignore: cast_nullable_to_non_nullable - as bool?, - requireEmailVerification: freezed == requireEmailVerification - ? _value.requireEmailVerification - : requireEmailVerification // ignore: cast_nullable_to_non_nullable - as bool?, - applicationQuestion: freezed == applicationQuestion - ? _value.applicationQuestion - : applicationQuestion // ignore: cast_nullable_to_non_nullable - as String?, - privateInstance: freezed == privateInstance - ? _value.privateInstance - : privateInstance // ignore: cast_nullable_to_non_nullable - as bool?, - defaultTheme: freezed == defaultTheme - ? _value.defaultTheme - : defaultTheme // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingType: freezed == defaultPostListingType - ? _value.defaultPostListingType - : defaultPostListingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - legalInformation: freezed == legalInformation - ? _value.legalInformation - : legalInformation // ignore: cast_nullable_to_non_nullable - as String?, - applicationEmailAdmins: freezed == applicationEmailAdmins - ? _value.applicationEmailAdmins - : applicationEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool?, - hideModlogModNames: freezed == hideModlogModNames - ? _value.hideModlogModNames - : hideModlogModNames // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - slurFilterRegex: freezed == slurFilterRegex - ? _value.slurFilterRegex - : slurFilterRegex // ignore: cast_nullable_to_non_nullable - as String?, - actorNameMaxLength: freezed == actorNameMaxLength - ? _value.actorNameMaxLength - : actorNameMaxLength // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessage: freezed == rateLimitMessage - ? _value.rateLimitMessage - : rateLimitMessage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessagePerSecond: freezed == rateLimitMessagePerSecond - ? _value.rateLimitMessagePerSecond - : rateLimitMessagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPost: freezed == rateLimitPost - ? _value.rateLimitPost - : rateLimitPost // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPostPerSecond: freezed == rateLimitPostPerSecond - ? _value.rateLimitPostPerSecond - : rateLimitPostPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegister: freezed == rateLimitRegister - ? _value.rateLimitRegister - : rateLimitRegister // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegisterPerSecond: freezed == rateLimitRegisterPerSecond - ? _value.rateLimitRegisterPerSecond - : rateLimitRegisterPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImage: freezed == rateLimitImage - ? _value.rateLimitImage - : rateLimitImage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImagePerSecond: freezed == rateLimitImagePerSecond - ? _value.rateLimitImagePerSecond - : rateLimitImagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitComment: freezed == rateLimitComment - ? _value.rateLimitComment - : rateLimitComment // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitCommentPerSecond: freezed == rateLimitCommentPerSecond - ? _value.rateLimitCommentPerSecond - : rateLimitCommentPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearch: freezed == rateLimitSearch - ? _value.rateLimitSearch - : rateLimitSearch // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearchPerSecond: freezed == rateLimitSearchPerSecond - ? _value.rateLimitSearchPerSecond - : rateLimitSearchPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - federationEnabled: freezed == federationEnabled - ? _value.federationEnabled - : federationEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - federationDebug: freezed == federationDebug - ? _value.federationDebug - : federationDebug // ignore: cast_nullable_to_non_nullable - as bool?, - federationWorkerCount: freezed == federationWorkerCount - ? _value.federationWorkerCount - : federationWorkerCount // ignore: cast_nullable_to_non_nullable - as int?, - captchaEnabled: freezed == captchaEnabled - ? _value.captchaEnabled - : captchaEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - captchaDifficulty: freezed == captchaDifficulty - ? _value.captchaDifficulty - : captchaDifficulty // ignore: cast_nullable_to_non_nullable - as String?, - allowedInstances: freezed == allowedInstances - ? _value.allowedInstances - : allowedInstances // ignore: cast_nullable_to_non_nullable - as List?, - blockedInstances: freezed == blockedInstances - ? _value.blockedInstances - : blockedInstances // ignore: cast_nullable_to_non_nullable - as List?, - taglines: freezed == taglines - ? _value.taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List?, - registrationMode: freezed == registrationMode - ? _value.registrationMode - : registrationMode // ignore: cast_nullable_to_non_nullable - as RegistrationMode?, - contentWarning: freezed == contentWarning - ? _value.contentWarning - : contentWarning // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingMode: freezed == defaultPostListingMode - ? _value.defaultPostListingMode - : defaultPostListingMode // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CreateSiteImplCopyWith<$Res> - implements $CreateSiteCopyWith<$Res> { - factory _$$CreateSiteImplCopyWith( - _$CreateSiteImpl value, $Res Function(_$CreateSiteImpl) then) = - __$$CreateSiteImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String name, - String? sidebar, - String? description, - String? icon, - String? banner, - bool? enableDownvotes, - bool? enableNsfw, - bool? communityCreationAdminOnly, - bool? requireEmailVerification, - String? applicationQuestion, - bool? privateInstance, - String? defaultTheme, - ListingType? defaultPostListingType, - SortType? defaultSortType, - String? legalInformation, - bool? applicationEmailAdmins, - bool? hideModlogModNames, - List? discussionLanguages, - String? slurFilterRegex, - int? actorNameMaxLength, - int? rateLimitMessage, - int? rateLimitMessagePerSecond, - int? rateLimitPost, - int? rateLimitPostPerSecond, - int? rateLimitRegister, - int? rateLimitRegisterPerSecond, - int? rateLimitImage, - int? rateLimitImagePerSecond, - int? rateLimitComment, - int? rateLimitCommentPerSecond, - int? rateLimitSearch, - int? rateLimitSearchPerSecond, - bool? federationEnabled, - bool? federationDebug, - @deprecated int? federationWorkerCount, - bool? captchaEnabled, - String? captchaDifficulty, - List? allowedInstances, - List? blockedInstances, - List? taglines, - RegistrationMode? registrationMode, - String? contentWarning, - String? defaultPostListingMode, - String? auth}); -} - -/// @nodoc -class __$$CreateSiteImplCopyWithImpl<$Res> - extends _$CreateSiteCopyWithImpl<$Res, _$CreateSiteImpl> - implements _$$CreateSiteImplCopyWith<$Res> { - __$$CreateSiteImplCopyWithImpl( - _$CreateSiteImpl _value, $Res Function(_$CreateSiteImpl) _then) - : super(_value, _then); - - /// Create a copy of CreateSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? sidebar = freezed, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? enableDownvotes = freezed, - Object? enableNsfw = freezed, - Object? communityCreationAdminOnly = freezed, - Object? requireEmailVerification = freezed, - Object? applicationQuestion = freezed, - Object? privateInstance = freezed, - Object? defaultTheme = freezed, - Object? defaultPostListingType = freezed, - Object? defaultSortType = freezed, - Object? legalInformation = freezed, - Object? applicationEmailAdmins = freezed, - Object? hideModlogModNames = freezed, - Object? discussionLanguages = freezed, - Object? slurFilterRegex = freezed, - Object? actorNameMaxLength = freezed, - Object? rateLimitMessage = freezed, - Object? rateLimitMessagePerSecond = freezed, - Object? rateLimitPost = freezed, - Object? rateLimitPostPerSecond = freezed, - Object? rateLimitRegister = freezed, - Object? rateLimitRegisterPerSecond = freezed, - Object? rateLimitImage = freezed, - Object? rateLimitImagePerSecond = freezed, - Object? rateLimitComment = freezed, - Object? rateLimitCommentPerSecond = freezed, - Object? rateLimitSearch = freezed, - Object? rateLimitSearchPerSecond = freezed, - Object? federationEnabled = freezed, - Object? federationDebug = freezed, - Object? federationWorkerCount = freezed, - Object? captchaEnabled = freezed, - Object? captchaDifficulty = freezed, - Object? allowedInstances = freezed, - Object? blockedInstances = freezed, - Object? taglines = freezed, - Object? registrationMode = freezed, - Object? contentWarning = freezed, - Object? defaultPostListingMode = freezed, - Object? auth = freezed, - }) { - return _then(_$CreateSiteImpl( - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - sidebar: freezed == sidebar - ? _value.sidebar - : sidebar // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - enableDownvotes: freezed == enableDownvotes - ? _value.enableDownvotes - : enableDownvotes // ignore: cast_nullable_to_non_nullable - as bool?, - enableNsfw: freezed == enableNsfw - ? _value.enableNsfw - : enableNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - communityCreationAdminOnly: freezed == communityCreationAdminOnly - ? _value.communityCreationAdminOnly - : communityCreationAdminOnly // ignore: cast_nullable_to_non_nullable - as bool?, - requireEmailVerification: freezed == requireEmailVerification - ? _value.requireEmailVerification - : requireEmailVerification // ignore: cast_nullable_to_non_nullable - as bool?, - applicationQuestion: freezed == applicationQuestion - ? _value.applicationQuestion - : applicationQuestion // ignore: cast_nullable_to_non_nullable - as String?, - privateInstance: freezed == privateInstance - ? _value.privateInstance - : privateInstance // ignore: cast_nullable_to_non_nullable - as bool?, - defaultTheme: freezed == defaultTheme - ? _value.defaultTheme - : defaultTheme // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingType: freezed == defaultPostListingType - ? _value.defaultPostListingType - : defaultPostListingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - legalInformation: freezed == legalInformation - ? _value.legalInformation - : legalInformation // ignore: cast_nullable_to_non_nullable - as String?, - applicationEmailAdmins: freezed == applicationEmailAdmins - ? _value.applicationEmailAdmins - : applicationEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool?, - hideModlogModNames: freezed == hideModlogModNames - ? _value.hideModlogModNames - : hideModlogModNames // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - slurFilterRegex: freezed == slurFilterRegex - ? _value.slurFilterRegex - : slurFilterRegex // ignore: cast_nullable_to_non_nullable - as String?, - actorNameMaxLength: freezed == actorNameMaxLength - ? _value.actorNameMaxLength - : actorNameMaxLength // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessage: freezed == rateLimitMessage - ? _value.rateLimitMessage - : rateLimitMessage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessagePerSecond: freezed == rateLimitMessagePerSecond - ? _value.rateLimitMessagePerSecond - : rateLimitMessagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPost: freezed == rateLimitPost - ? _value.rateLimitPost - : rateLimitPost // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPostPerSecond: freezed == rateLimitPostPerSecond - ? _value.rateLimitPostPerSecond - : rateLimitPostPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegister: freezed == rateLimitRegister - ? _value.rateLimitRegister - : rateLimitRegister // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegisterPerSecond: freezed == rateLimitRegisterPerSecond - ? _value.rateLimitRegisterPerSecond - : rateLimitRegisterPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImage: freezed == rateLimitImage - ? _value.rateLimitImage - : rateLimitImage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImagePerSecond: freezed == rateLimitImagePerSecond - ? _value.rateLimitImagePerSecond - : rateLimitImagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitComment: freezed == rateLimitComment - ? _value.rateLimitComment - : rateLimitComment // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitCommentPerSecond: freezed == rateLimitCommentPerSecond - ? _value.rateLimitCommentPerSecond - : rateLimitCommentPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearch: freezed == rateLimitSearch - ? _value.rateLimitSearch - : rateLimitSearch // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearchPerSecond: freezed == rateLimitSearchPerSecond - ? _value.rateLimitSearchPerSecond - : rateLimitSearchPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - federationEnabled: freezed == federationEnabled - ? _value.federationEnabled - : federationEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - federationDebug: freezed == federationDebug - ? _value.federationDebug - : federationDebug // ignore: cast_nullable_to_non_nullable - as bool?, - federationWorkerCount: freezed == federationWorkerCount - ? _value.federationWorkerCount - : federationWorkerCount // ignore: cast_nullable_to_non_nullable - as int?, - captchaEnabled: freezed == captchaEnabled - ? _value.captchaEnabled - : captchaEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - captchaDifficulty: freezed == captchaDifficulty - ? _value.captchaDifficulty - : captchaDifficulty // ignore: cast_nullable_to_non_nullable - as String?, - allowedInstances: freezed == allowedInstances - ? _value._allowedInstances - : allowedInstances // ignore: cast_nullable_to_non_nullable - as List?, - blockedInstances: freezed == blockedInstances - ? _value._blockedInstances - : blockedInstances // ignore: cast_nullable_to_non_nullable - as List?, - taglines: freezed == taglines - ? _value._taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List?, - registrationMode: freezed == registrationMode - ? _value.registrationMode - : registrationMode // ignore: cast_nullable_to_non_nullable - as RegistrationMode?, - contentWarning: freezed == contentWarning - ? _value.contentWarning - : contentWarning // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingMode: freezed == defaultPostListingMode - ? _value.defaultPostListingMode - : defaultPostListingMode // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$CreateSiteImpl extends _CreateSite { - const _$CreateSiteImpl( - {required this.name, - this.sidebar, - this.description, - this.icon, - this.banner, - this.enableDownvotes, - this.enableNsfw, - this.communityCreationAdminOnly, - this.requireEmailVerification, - this.applicationQuestion, - this.privateInstance, - this.defaultTheme, - this.defaultPostListingType, - this.defaultSortType, - this.legalInformation, - this.applicationEmailAdmins, - this.hideModlogModNames, - final List? discussionLanguages, - this.slurFilterRegex, - this.actorNameMaxLength, - this.rateLimitMessage, - this.rateLimitMessagePerSecond, - this.rateLimitPost, - this.rateLimitPostPerSecond, - this.rateLimitRegister, - this.rateLimitRegisterPerSecond, - this.rateLimitImage, - this.rateLimitImagePerSecond, - this.rateLimitComment, - this.rateLimitCommentPerSecond, - this.rateLimitSearch, - this.rateLimitSearchPerSecond, - this.federationEnabled, - this.federationDebug, - @deprecated this.federationWorkerCount, - this.captchaEnabled, - this.captchaDifficulty, - final List? allowedInstances, - final List? blockedInstances, - final List? taglines, - this.registrationMode, - this.contentWarning, - this.defaultPostListingMode, - this.auth}) - : _discussionLanguages = discussionLanguages, - _allowedInstances = allowedInstances, - _blockedInstances = blockedInstances, - _taglines = taglines, - super._(); - - factory _$CreateSiteImpl.fromJson(Map json) => - _$$CreateSiteImplFromJson(json); - - @override - final String name; -// v0.18.0 - @override - final String? sidebar; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final String? icon; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final bool? enableDownvotes; -// v0.18.0 - @override - final bool? enableNsfw; -// v0.18.0 - @override - final bool? communityCreationAdminOnly; -// v0.18.0 - @override - final bool? requireEmailVerification; -// v0.18.0 - @override - final String? applicationQuestion; -// v0.18.0 - @override - final bool? privateInstance; -// v0.18.0 - @override - final String? defaultTheme; -// v0.18.0 - @override - final ListingType? defaultPostListingType; -// v0.18.0 - @override - final SortType? defaultSortType; -// v0.19.4 (optional) - @override - final String? legalInformation; -// v0.18.0 - @override - final bool? applicationEmailAdmins; -// v0.18.0 - @override - final bool? hideModlogModNames; -// v0.18.0 - final List? _discussionLanguages; -// v0.18.0 - @override - List? get discussionLanguages { - final value = _discussionLanguages; - if (value == null) return null; - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - final String? slurFilterRegex; -// v0.18.0 - @override - final int? actorNameMaxLength; -// v0.18.0 - @override - final int? rateLimitMessage; -// v0.18.0 - @override - final int? rateLimitMessagePerSecond; -// v0.18.0 - @override - final int? rateLimitPost; -// v0.18.0 - @override - final int? rateLimitPostPerSecond; -// v0.18.0 - @override - final int? rateLimitRegister; -// v0.18.0 - @override - final int? rateLimitRegisterPerSecond; -// v0.18.0 - @override - final int? rateLimitImage; -// v0.18.0 - @override - final int? rateLimitImagePerSecond; -// v0.18.0 - @override - final int? rateLimitComment; -// v0.18.0 - @override - final int? rateLimitCommentPerSecond; -// v0.18.0 - @override - final int? rateLimitSearch; -// v0.18.0 - @override - final int? rateLimitSearchPerSecond; -// v0.18.0 - @override - final bool? federationEnabled; -// v0.18.0 - @override - final bool? federationDebug; -// v0.18.0 - @override - @deprecated - final int? federationWorkerCount; -// v0.18.0 [deprecated in v0.18.1] - @override - final bool? captchaEnabled; -// v0.18.0 - @override - final String? captchaDifficulty; -// v0.18.0 - final List? _allowedInstances; -// v0.18.0 - @override - List? get allowedInstances { - final value = _allowedInstances; - if (value == null) return null; - if (_allowedInstances is EqualUnmodifiableListView) - return _allowedInstances; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - final List? _blockedInstances; -// v0.18.0 - @override - List? get blockedInstances { - final value = _blockedInstances; - if (value == null) return null; - if (_blockedInstances is EqualUnmodifiableListView) - return _blockedInstances; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - final List? _taglines; -// v0.18.0 - @override - List? get taglines { - final value = _taglines; - if (value == null) return null; - if (_taglines is EqualUnmodifiableListView) return _taglines; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - final RegistrationMode? registrationMode; -// v0.18.0 - @override - final String? contentWarning; -// v0.19.4 (optional) - @override - final String? defaultPostListingMode; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'CreateSite(name: $name, sidebar: $sidebar, description: $description, icon: $icon, banner: $banner, enableDownvotes: $enableDownvotes, enableNsfw: $enableNsfw, communityCreationAdminOnly: $communityCreationAdminOnly, requireEmailVerification: $requireEmailVerification, applicationQuestion: $applicationQuestion, privateInstance: $privateInstance, defaultTheme: $defaultTheme, defaultPostListingType: $defaultPostListingType, defaultSortType: $defaultSortType, legalInformation: $legalInformation, applicationEmailAdmins: $applicationEmailAdmins, hideModlogModNames: $hideModlogModNames, discussionLanguages: $discussionLanguages, slurFilterRegex: $slurFilterRegex, actorNameMaxLength: $actorNameMaxLength, rateLimitMessage: $rateLimitMessage, rateLimitMessagePerSecond: $rateLimitMessagePerSecond, rateLimitPost: $rateLimitPost, rateLimitPostPerSecond: $rateLimitPostPerSecond, rateLimitRegister: $rateLimitRegister, rateLimitRegisterPerSecond: $rateLimitRegisterPerSecond, rateLimitImage: $rateLimitImage, rateLimitImagePerSecond: $rateLimitImagePerSecond, rateLimitComment: $rateLimitComment, rateLimitCommentPerSecond: $rateLimitCommentPerSecond, rateLimitSearch: $rateLimitSearch, rateLimitSearchPerSecond: $rateLimitSearchPerSecond, federationEnabled: $federationEnabled, federationDebug: $federationDebug, federationWorkerCount: $federationWorkerCount, captchaEnabled: $captchaEnabled, captchaDifficulty: $captchaDifficulty, allowedInstances: $allowedInstances, blockedInstances: $blockedInstances, taglines: $taglines, registrationMode: $registrationMode, contentWarning: $contentWarning, defaultPostListingMode: $defaultPostListingMode, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CreateSiteImpl && - (identical(other.name, name) || other.name == name) && - (identical(other.sidebar, sidebar) || other.sidebar == sidebar) && - (identical(other.description, description) || - other.description == description) && - (identical(other.icon, icon) || other.icon == icon) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.enableDownvotes, enableDownvotes) || - other.enableDownvotes == enableDownvotes) && - (identical(other.enableNsfw, enableNsfw) || - other.enableNsfw == enableNsfw) && - (identical(other.communityCreationAdminOnly, communityCreationAdminOnly) || - other.communityCreationAdminOnly == - communityCreationAdminOnly) && - (identical(other.requireEmailVerification, requireEmailVerification) || - other.requireEmailVerification == requireEmailVerification) && - (identical(other.applicationQuestion, applicationQuestion) || - other.applicationQuestion == applicationQuestion) && - (identical(other.privateInstance, privateInstance) || - other.privateInstance == privateInstance) && - (identical(other.defaultTheme, defaultTheme) || - other.defaultTheme == defaultTheme) && - (identical(other.defaultPostListingType, defaultPostListingType) || - other.defaultPostListingType == defaultPostListingType) && - (identical(other.defaultSortType, defaultSortType) || - other.defaultSortType == defaultSortType) && - (identical(other.legalInformation, legalInformation) || - other.legalInformation == legalInformation) && - (identical(other.applicationEmailAdmins, applicationEmailAdmins) || - other.applicationEmailAdmins == applicationEmailAdmins) && - (identical(other.hideModlogModNames, hideModlogModNames) || - other.hideModlogModNames == hideModlogModNames) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - (identical(other.slurFilterRegex, slurFilterRegex) || - other.slurFilterRegex == slurFilterRegex) && - (identical(other.actorNameMaxLength, actorNameMaxLength) || - other.actorNameMaxLength == actorNameMaxLength) && - (identical(other.rateLimitMessage, rateLimitMessage) || - other.rateLimitMessage == rateLimitMessage) && - (identical(other.rateLimitMessagePerSecond, rateLimitMessagePerSecond) || - other.rateLimitMessagePerSecond == rateLimitMessagePerSecond) && - (identical(other.rateLimitPost, rateLimitPost) || - other.rateLimitPost == rateLimitPost) && - (identical(other.rateLimitPostPerSecond, rateLimitPostPerSecond) || - other.rateLimitPostPerSecond == rateLimitPostPerSecond) && - (identical(other.rateLimitRegister, rateLimitRegister) || - other.rateLimitRegister == rateLimitRegister) && - (identical(other.rateLimitRegisterPerSecond, rateLimitRegisterPerSecond) || - other.rateLimitRegisterPerSecond == - rateLimitRegisterPerSecond) && - (identical(other.rateLimitImage, rateLimitImage) || - other.rateLimitImage == rateLimitImage) && - (identical(other.rateLimitImagePerSecond, rateLimitImagePerSecond) || - other.rateLimitImagePerSecond == rateLimitImagePerSecond) && - (identical(other.rateLimitComment, rateLimitComment) || - other.rateLimitComment == rateLimitComment) && - (identical(other.rateLimitCommentPerSecond, rateLimitCommentPerSecond) || other.rateLimitCommentPerSecond == rateLimitCommentPerSecond) && - (identical(other.rateLimitSearch, rateLimitSearch) || other.rateLimitSearch == rateLimitSearch) && - (identical(other.rateLimitSearchPerSecond, rateLimitSearchPerSecond) || other.rateLimitSearchPerSecond == rateLimitSearchPerSecond) && - (identical(other.federationEnabled, federationEnabled) || other.federationEnabled == federationEnabled) && - (identical(other.federationDebug, federationDebug) || other.federationDebug == federationDebug) && - (identical(other.federationWorkerCount, federationWorkerCount) || other.federationWorkerCount == federationWorkerCount) && - (identical(other.captchaEnabled, captchaEnabled) || other.captchaEnabled == captchaEnabled) && - (identical(other.captchaDifficulty, captchaDifficulty) || other.captchaDifficulty == captchaDifficulty) && - const DeepCollectionEquality().equals(other._allowedInstances, _allowedInstances) && - const DeepCollectionEquality().equals(other._blockedInstances, _blockedInstances) && - const DeepCollectionEquality().equals(other._taglines, _taglines) && - (identical(other.registrationMode, registrationMode) || other.registrationMode == registrationMode) && - (identical(other.contentWarning, contentWarning) || other.contentWarning == contentWarning) && - (identical(other.defaultPostListingMode, defaultPostListingMode) || other.defaultPostListingMode == defaultPostListingMode) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - name, - sidebar, - description, - icon, - banner, - enableDownvotes, - enableNsfw, - communityCreationAdminOnly, - requireEmailVerification, - applicationQuestion, - privateInstance, - defaultTheme, - defaultPostListingType, - defaultSortType, - legalInformation, - applicationEmailAdmins, - hideModlogModNames, - const DeepCollectionEquality().hash(_discussionLanguages), - slurFilterRegex, - actorNameMaxLength, - rateLimitMessage, - rateLimitMessagePerSecond, - rateLimitPost, - rateLimitPostPerSecond, - rateLimitRegister, - rateLimitRegisterPerSecond, - rateLimitImage, - rateLimitImagePerSecond, - rateLimitComment, - rateLimitCommentPerSecond, - rateLimitSearch, - rateLimitSearchPerSecond, - federationEnabled, - federationDebug, - federationWorkerCount, - captchaEnabled, - captchaDifficulty, - const DeepCollectionEquality().hash(_allowedInstances), - const DeepCollectionEquality().hash(_blockedInstances), - const DeepCollectionEquality().hash(_taglines), - registrationMode, - contentWarning, - defaultPostListingMode, - auth - ]); - - /// Create a copy of CreateSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CreateSiteImplCopyWith<_$CreateSiteImpl> get copyWith => - __$$CreateSiteImplCopyWithImpl<_$CreateSiteImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CreateSiteImplToJson( - this, - ); - } -} - -abstract class _CreateSite extends CreateSite { - const factory _CreateSite( - {required final String name, - final String? sidebar, - final String? description, - final String? icon, - final String? banner, - final bool? enableDownvotes, - final bool? enableNsfw, - final bool? communityCreationAdminOnly, - final bool? requireEmailVerification, - final String? applicationQuestion, - final bool? privateInstance, - final String? defaultTheme, - final ListingType? defaultPostListingType, - final SortType? defaultSortType, - final String? legalInformation, - final bool? applicationEmailAdmins, - final bool? hideModlogModNames, - final List? discussionLanguages, - final String? slurFilterRegex, - final int? actorNameMaxLength, - final int? rateLimitMessage, - final int? rateLimitMessagePerSecond, - final int? rateLimitPost, - final int? rateLimitPostPerSecond, - final int? rateLimitRegister, - final int? rateLimitRegisterPerSecond, - final int? rateLimitImage, - final int? rateLimitImagePerSecond, - final int? rateLimitComment, - final int? rateLimitCommentPerSecond, - final int? rateLimitSearch, - final int? rateLimitSearchPerSecond, - final bool? federationEnabled, - final bool? federationDebug, - @deprecated final int? federationWorkerCount, - final bool? captchaEnabled, - final String? captchaDifficulty, - final List? allowedInstances, - final List? blockedInstances, - final List? taglines, - final RegistrationMode? registrationMode, - final String? contentWarning, - final String? defaultPostListingMode, - final String? auth}) = _$CreateSiteImpl; - const _CreateSite._() : super._(); - - factory _CreateSite.fromJson(Map json) = - _$CreateSiteImpl.fromJson; - - @override - String get name; // v0.18.0 - @override - String? get sidebar; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - String? get icon; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - bool? get enableDownvotes; // v0.18.0 - @override - bool? get enableNsfw; // v0.18.0 - @override - bool? get communityCreationAdminOnly; // v0.18.0 - @override - bool? get requireEmailVerification; // v0.18.0 - @override - String? get applicationQuestion; // v0.18.0 - @override - bool? get privateInstance; // v0.18.0 - @override - String? get defaultTheme; // v0.18.0 - @override - ListingType? get defaultPostListingType; // v0.18.0 - @override - SortType? get defaultSortType; // v0.19.4 (optional) - @override - String? get legalInformation; // v0.18.0 - @override - bool? get applicationEmailAdmins; // v0.18.0 - @override - bool? get hideModlogModNames; // v0.18.0 - @override - List? get discussionLanguages; // v0.18.0 - @override - String? get slurFilterRegex; // v0.18.0 - @override - int? get actorNameMaxLength; // v0.18.0 - @override - int? get rateLimitMessage; // v0.18.0 - @override - int? get rateLimitMessagePerSecond; // v0.18.0 - @override - int? get rateLimitPost; // v0.18.0 - @override - int? get rateLimitPostPerSecond; // v0.18.0 - @override - int? get rateLimitRegister; // v0.18.0 - @override - int? get rateLimitRegisterPerSecond; // v0.18.0 - @override - int? get rateLimitImage; // v0.18.0 - @override - int? get rateLimitImagePerSecond; // v0.18.0 - @override - int? get rateLimitComment; // v0.18.0 - @override - int? get rateLimitCommentPerSecond; // v0.18.0 - @override - int? get rateLimitSearch; // v0.18.0 - @override - int? get rateLimitSearchPerSecond; // v0.18.0 - @override - bool? get federationEnabled; // v0.18.0 - @override - bool? get federationDebug; // v0.18.0 - @override - @deprecated - int? get federationWorkerCount; // v0.18.0 [deprecated in v0.18.1] - @override - bool? get captchaEnabled; // v0.18.0 - @override - String? get captchaDifficulty; // v0.18.0 - @override - List? get allowedInstances; // v0.18.0 - @override - List? get blockedInstances; // v0.18.0 - @override - List? get taglines; // v0.18.0 - @override - RegistrationMode? get registrationMode; // v0.18.0 - @override - String? get contentWarning; // v0.19.4 (optional) - @override - String? get defaultPostListingMode; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of CreateSite - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CreateSiteImplCopyWith<_$CreateSiteImpl> get copyWith => - throw _privateConstructorUsedError; -} - -EditSite _$EditSiteFromJson(Map json) { - return _EditSite.fromJson(json); -} - -/// @nodoc -mixin _$EditSite { - String? get name => throw _privateConstructorUsedError; // v0.18.0 - String? get sidebar => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - String? get icon => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - bool? get enableDownvotes => throw _privateConstructorUsedError; // v0.18.0 - bool? get enableNsfw => throw _privateConstructorUsedError; // v0.18.0 - bool? get communityCreationAdminOnly => - throw _privateConstructorUsedError; // v0.18.0 - bool? get requireEmailVerification => - throw _privateConstructorUsedError; // v0.18.0 - String? get applicationQuestion => - throw _privateConstructorUsedError; // v0.18.0 - bool? get privateInstance => throw _privateConstructorUsedError; // v0.18.0 - String? get defaultTheme => throw _privateConstructorUsedError; // v0.18.0 - ListingType? get defaultPostListingType => - throw _privateConstructorUsedError; // v0.18.0 - SortType? get defaultSortType => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get legalInformation => throw _privateConstructorUsedError; // v0.18.0 - bool? get applicationEmailAdmins => - throw _privateConstructorUsedError; // v0.18.0 - bool? get hideModlogModNames => throw _privateConstructorUsedError; // v0.18.0 - List? get discussionLanguages => - throw _privateConstructorUsedError; // v0.18.0 - String? get slurFilterRegex => throw _privateConstructorUsedError; // v0.18.0 - int? get actorNameMaxLength => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitMessage => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitMessagePerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitPost => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitPostPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitRegister => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitRegisterPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitImage => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitImagePerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitComment => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitCommentPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitSearch => throw _privateConstructorUsedError; // v0.18.0 - int? get rateLimitSearchPerSecond => - throw _privateConstructorUsedError; // v0.18.0 - bool? get federationEnabled => throw _privateConstructorUsedError; // v0.18.0 - bool? get federationDebug => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get federationWorkerCount => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.18.1] - bool? get captchaEnabled => throw _privateConstructorUsedError; // v0.18.0 - String? get captchaDifficulty => - throw _privateConstructorUsedError; // v0.18.0 - List? get allowedInstances => - throw _privateConstructorUsedError; // v0.18.0 - List? get blockedInstances => - throw _privateConstructorUsedError; // v0.18.0 - List? get blockedUrls => - throw _privateConstructorUsedError; // v0.19.4 (optional) - List? get taglines => throw _privateConstructorUsedError; // v0.18.0 - RegistrationMode? get registrationMode => - throw _privateConstructorUsedError; // v0.18.0 - bool? get reportsEmailAdmins => throw _privateConstructorUsedError; // v0.18.0 - String? get contentWarning => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get defaultPostListingMode => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this EditSite to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of EditSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $EditSiteCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $EditSiteCopyWith<$Res> { - factory $EditSiteCopyWith(EditSite value, $Res Function(EditSite) then) = - _$EditSiteCopyWithImpl<$Res, EditSite>; - @useResult - $Res call( - {String? name, - String? sidebar, - String? description, - String? icon, - String? banner, - bool? enableDownvotes, - bool? enableNsfw, - bool? communityCreationAdminOnly, - bool? requireEmailVerification, - String? applicationQuestion, - bool? privateInstance, - String? defaultTheme, - ListingType? defaultPostListingType, - SortType? defaultSortType, - String? legalInformation, - bool? applicationEmailAdmins, - bool? hideModlogModNames, - List? discussionLanguages, - String? slurFilterRegex, - int? actorNameMaxLength, - int? rateLimitMessage, - int? rateLimitMessagePerSecond, - int? rateLimitPost, - int? rateLimitPostPerSecond, - int? rateLimitRegister, - int? rateLimitRegisterPerSecond, - int? rateLimitImage, - int? rateLimitImagePerSecond, - int? rateLimitComment, - int? rateLimitCommentPerSecond, - int? rateLimitSearch, - int? rateLimitSearchPerSecond, - bool? federationEnabled, - bool? federationDebug, - @deprecated int? federationWorkerCount, - bool? captchaEnabled, - String? captchaDifficulty, - List? allowedInstances, - List? blockedInstances, - List? blockedUrls, - List? taglines, - RegistrationMode? registrationMode, - bool? reportsEmailAdmins, - String? contentWarning, - String? defaultPostListingMode, - String? auth}); -} - -/// @nodoc -class _$EditSiteCopyWithImpl<$Res, $Val extends EditSite> - implements $EditSiteCopyWith<$Res> { - _$EditSiteCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of EditSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - Object? sidebar = freezed, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? enableDownvotes = freezed, - Object? enableNsfw = freezed, - Object? communityCreationAdminOnly = freezed, - Object? requireEmailVerification = freezed, - Object? applicationQuestion = freezed, - Object? privateInstance = freezed, - Object? defaultTheme = freezed, - Object? defaultPostListingType = freezed, - Object? defaultSortType = freezed, - Object? legalInformation = freezed, - Object? applicationEmailAdmins = freezed, - Object? hideModlogModNames = freezed, - Object? discussionLanguages = freezed, - Object? slurFilterRegex = freezed, - Object? actorNameMaxLength = freezed, - Object? rateLimitMessage = freezed, - Object? rateLimitMessagePerSecond = freezed, - Object? rateLimitPost = freezed, - Object? rateLimitPostPerSecond = freezed, - Object? rateLimitRegister = freezed, - Object? rateLimitRegisterPerSecond = freezed, - Object? rateLimitImage = freezed, - Object? rateLimitImagePerSecond = freezed, - Object? rateLimitComment = freezed, - Object? rateLimitCommentPerSecond = freezed, - Object? rateLimitSearch = freezed, - Object? rateLimitSearchPerSecond = freezed, - Object? federationEnabled = freezed, - Object? federationDebug = freezed, - Object? federationWorkerCount = freezed, - Object? captchaEnabled = freezed, - Object? captchaDifficulty = freezed, - Object? allowedInstances = freezed, - Object? blockedInstances = freezed, - Object? blockedUrls = freezed, - Object? taglines = freezed, - Object? registrationMode = freezed, - Object? reportsEmailAdmins = freezed, - Object? contentWarning = freezed, - Object? defaultPostListingMode = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - sidebar: freezed == sidebar - ? _value.sidebar - : sidebar // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - enableDownvotes: freezed == enableDownvotes - ? _value.enableDownvotes - : enableDownvotes // ignore: cast_nullable_to_non_nullable - as bool?, - enableNsfw: freezed == enableNsfw - ? _value.enableNsfw - : enableNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - communityCreationAdminOnly: freezed == communityCreationAdminOnly - ? _value.communityCreationAdminOnly - : communityCreationAdminOnly // ignore: cast_nullable_to_non_nullable - as bool?, - requireEmailVerification: freezed == requireEmailVerification - ? _value.requireEmailVerification - : requireEmailVerification // ignore: cast_nullable_to_non_nullable - as bool?, - applicationQuestion: freezed == applicationQuestion - ? _value.applicationQuestion - : applicationQuestion // ignore: cast_nullable_to_non_nullable - as String?, - privateInstance: freezed == privateInstance - ? _value.privateInstance - : privateInstance // ignore: cast_nullable_to_non_nullable - as bool?, - defaultTheme: freezed == defaultTheme - ? _value.defaultTheme - : defaultTheme // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingType: freezed == defaultPostListingType - ? _value.defaultPostListingType - : defaultPostListingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - legalInformation: freezed == legalInformation - ? _value.legalInformation - : legalInformation // ignore: cast_nullable_to_non_nullable - as String?, - applicationEmailAdmins: freezed == applicationEmailAdmins - ? _value.applicationEmailAdmins - : applicationEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool?, - hideModlogModNames: freezed == hideModlogModNames - ? _value.hideModlogModNames - : hideModlogModNames // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - slurFilterRegex: freezed == slurFilterRegex - ? _value.slurFilterRegex - : slurFilterRegex // ignore: cast_nullable_to_non_nullable - as String?, - actorNameMaxLength: freezed == actorNameMaxLength - ? _value.actorNameMaxLength - : actorNameMaxLength // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessage: freezed == rateLimitMessage - ? _value.rateLimitMessage - : rateLimitMessage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessagePerSecond: freezed == rateLimitMessagePerSecond - ? _value.rateLimitMessagePerSecond - : rateLimitMessagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPost: freezed == rateLimitPost - ? _value.rateLimitPost - : rateLimitPost // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPostPerSecond: freezed == rateLimitPostPerSecond - ? _value.rateLimitPostPerSecond - : rateLimitPostPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegister: freezed == rateLimitRegister - ? _value.rateLimitRegister - : rateLimitRegister // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegisterPerSecond: freezed == rateLimitRegisterPerSecond - ? _value.rateLimitRegisterPerSecond - : rateLimitRegisterPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImage: freezed == rateLimitImage - ? _value.rateLimitImage - : rateLimitImage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImagePerSecond: freezed == rateLimitImagePerSecond - ? _value.rateLimitImagePerSecond - : rateLimitImagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitComment: freezed == rateLimitComment - ? _value.rateLimitComment - : rateLimitComment // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitCommentPerSecond: freezed == rateLimitCommentPerSecond - ? _value.rateLimitCommentPerSecond - : rateLimitCommentPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearch: freezed == rateLimitSearch - ? _value.rateLimitSearch - : rateLimitSearch // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearchPerSecond: freezed == rateLimitSearchPerSecond - ? _value.rateLimitSearchPerSecond - : rateLimitSearchPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - federationEnabled: freezed == federationEnabled - ? _value.federationEnabled - : federationEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - federationDebug: freezed == federationDebug - ? _value.federationDebug - : federationDebug // ignore: cast_nullable_to_non_nullable - as bool?, - federationWorkerCount: freezed == federationWorkerCount - ? _value.federationWorkerCount - : federationWorkerCount // ignore: cast_nullable_to_non_nullable - as int?, - captchaEnabled: freezed == captchaEnabled - ? _value.captchaEnabled - : captchaEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - captchaDifficulty: freezed == captchaDifficulty - ? _value.captchaDifficulty - : captchaDifficulty // ignore: cast_nullable_to_non_nullable - as String?, - allowedInstances: freezed == allowedInstances - ? _value.allowedInstances - : allowedInstances // ignore: cast_nullable_to_non_nullable - as List?, - blockedInstances: freezed == blockedInstances - ? _value.blockedInstances - : blockedInstances // ignore: cast_nullable_to_non_nullable - as List?, - blockedUrls: freezed == blockedUrls - ? _value.blockedUrls - : blockedUrls // ignore: cast_nullable_to_non_nullable - as List?, - taglines: freezed == taglines - ? _value.taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List?, - registrationMode: freezed == registrationMode - ? _value.registrationMode - : registrationMode // ignore: cast_nullable_to_non_nullable - as RegistrationMode?, - reportsEmailAdmins: freezed == reportsEmailAdmins - ? _value.reportsEmailAdmins - : reportsEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool?, - contentWarning: freezed == contentWarning - ? _value.contentWarning - : contentWarning // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingMode: freezed == defaultPostListingMode - ? _value.defaultPostListingMode - : defaultPostListingMode // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$EditSiteImplCopyWith<$Res> - implements $EditSiteCopyWith<$Res> { - factory _$$EditSiteImplCopyWith( - _$EditSiteImpl value, $Res Function(_$EditSiteImpl) then) = - __$$EditSiteImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? name, - String? sidebar, - String? description, - String? icon, - String? banner, - bool? enableDownvotes, - bool? enableNsfw, - bool? communityCreationAdminOnly, - bool? requireEmailVerification, - String? applicationQuestion, - bool? privateInstance, - String? defaultTheme, - ListingType? defaultPostListingType, - SortType? defaultSortType, - String? legalInformation, - bool? applicationEmailAdmins, - bool? hideModlogModNames, - List? discussionLanguages, - String? slurFilterRegex, - int? actorNameMaxLength, - int? rateLimitMessage, - int? rateLimitMessagePerSecond, - int? rateLimitPost, - int? rateLimitPostPerSecond, - int? rateLimitRegister, - int? rateLimitRegisterPerSecond, - int? rateLimitImage, - int? rateLimitImagePerSecond, - int? rateLimitComment, - int? rateLimitCommentPerSecond, - int? rateLimitSearch, - int? rateLimitSearchPerSecond, - bool? federationEnabled, - bool? federationDebug, - @deprecated int? federationWorkerCount, - bool? captchaEnabled, - String? captchaDifficulty, - List? allowedInstances, - List? blockedInstances, - List? blockedUrls, - List? taglines, - RegistrationMode? registrationMode, - bool? reportsEmailAdmins, - String? contentWarning, - String? defaultPostListingMode, - String? auth}); -} - -/// @nodoc -class __$$EditSiteImplCopyWithImpl<$Res> - extends _$EditSiteCopyWithImpl<$Res, _$EditSiteImpl> - implements _$$EditSiteImplCopyWith<$Res> { - __$$EditSiteImplCopyWithImpl( - _$EditSiteImpl _value, $Res Function(_$EditSiteImpl) _then) - : super(_value, _then); - - /// Create a copy of EditSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - Object? sidebar = freezed, - Object? description = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? enableDownvotes = freezed, - Object? enableNsfw = freezed, - Object? communityCreationAdminOnly = freezed, - Object? requireEmailVerification = freezed, - Object? applicationQuestion = freezed, - Object? privateInstance = freezed, - Object? defaultTheme = freezed, - Object? defaultPostListingType = freezed, - Object? defaultSortType = freezed, - Object? legalInformation = freezed, - Object? applicationEmailAdmins = freezed, - Object? hideModlogModNames = freezed, - Object? discussionLanguages = freezed, - Object? slurFilterRegex = freezed, - Object? actorNameMaxLength = freezed, - Object? rateLimitMessage = freezed, - Object? rateLimitMessagePerSecond = freezed, - Object? rateLimitPost = freezed, - Object? rateLimitPostPerSecond = freezed, - Object? rateLimitRegister = freezed, - Object? rateLimitRegisterPerSecond = freezed, - Object? rateLimitImage = freezed, - Object? rateLimitImagePerSecond = freezed, - Object? rateLimitComment = freezed, - Object? rateLimitCommentPerSecond = freezed, - Object? rateLimitSearch = freezed, - Object? rateLimitSearchPerSecond = freezed, - Object? federationEnabled = freezed, - Object? federationDebug = freezed, - Object? federationWorkerCount = freezed, - Object? captchaEnabled = freezed, - Object? captchaDifficulty = freezed, - Object? allowedInstances = freezed, - Object? blockedInstances = freezed, - Object? blockedUrls = freezed, - Object? taglines = freezed, - Object? registrationMode = freezed, - Object? reportsEmailAdmins = freezed, - Object? contentWarning = freezed, - Object? defaultPostListingMode = freezed, - Object? auth = freezed, - }) { - return _then(_$EditSiteImpl( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - sidebar: freezed == sidebar - ? _value.sidebar - : sidebar // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - enableDownvotes: freezed == enableDownvotes - ? _value.enableDownvotes - : enableDownvotes // ignore: cast_nullable_to_non_nullable - as bool?, - enableNsfw: freezed == enableNsfw - ? _value.enableNsfw - : enableNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - communityCreationAdminOnly: freezed == communityCreationAdminOnly - ? _value.communityCreationAdminOnly - : communityCreationAdminOnly // ignore: cast_nullable_to_non_nullable - as bool?, - requireEmailVerification: freezed == requireEmailVerification - ? _value.requireEmailVerification - : requireEmailVerification // ignore: cast_nullable_to_non_nullable - as bool?, - applicationQuestion: freezed == applicationQuestion - ? _value.applicationQuestion - : applicationQuestion // ignore: cast_nullable_to_non_nullable - as String?, - privateInstance: freezed == privateInstance - ? _value.privateInstance - : privateInstance // ignore: cast_nullable_to_non_nullable - as bool?, - defaultTheme: freezed == defaultTheme - ? _value.defaultTheme - : defaultTheme // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingType: freezed == defaultPostListingType - ? _value.defaultPostListingType - : defaultPostListingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - legalInformation: freezed == legalInformation - ? _value.legalInformation - : legalInformation // ignore: cast_nullable_to_non_nullable - as String?, - applicationEmailAdmins: freezed == applicationEmailAdmins - ? _value.applicationEmailAdmins - : applicationEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool?, - hideModlogModNames: freezed == hideModlogModNames - ? _value.hideModlogModNames - : hideModlogModNames // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - slurFilterRegex: freezed == slurFilterRegex - ? _value.slurFilterRegex - : slurFilterRegex // ignore: cast_nullable_to_non_nullable - as String?, - actorNameMaxLength: freezed == actorNameMaxLength - ? _value.actorNameMaxLength - : actorNameMaxLength // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessage: freezed == rateLimitMessage - ? _value.rateLimitMessage - : rateLimitMessage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitMessagePerSecond: freezed == rateLimitMessagePerSecond - ? _value.rateLimitMessagePerSecond - : rateLimitMessagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPost: freezed == rateLimitPost - ? _value.rateLimitPost - : rateLimitPost // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitPostPerSecond: freezed == rateLimitPostPerSecond - ? _value.rateLimitPostPerSecond - : rateLimitPostPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegister: freezed == rateLimitRegister - ? _value.rateLimitRegister - : rateLimitRegister // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitRegisterPerSecond: freezed == rateLimitRegisterPerSecond - ? _value.rateLimitRegisterPerSecond - : rateLimitRegisterPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImage: freezed == rateLimitImage - ? _value.rateLimitImage - : rateLimitImage // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitImagePerSecond: freezed == rateLimitImagePerSecond - ? _value.rateLimitImagePerSecond - : rateLimitImagePerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitComment: freezed == rateLimitComment - ? _value.rateLimitComment - : rateLimitComment // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitCommentPerSecond: freezed == rateLimitCommentPerSecond - ? _value.rateLimitCommentPerSecond - : rateLimitCommentPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearch: freezed == rateLimitSearch - ? _value.rateLimitSearch - : rateLimitSearch // ignore: cast_nullable_to_non_nullable - as int?, - rateLimitSearchPerSecond: freezed == rateLimitSearchPerSecond - ? _value.rateLimitSearchPerSecond - : rateLimitSearchPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - federationEnabled: freezed == federationEnabled - ? _value.federationEnabled - : federationEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - federationDebug: freezed == federationDebug - ? _value.federationDebug - : federationDebug // ignore: cast_nullable_to_non_nullable - as bool?, - federationWorkerCount: freezed == federationWorkerCount - ? _value.federationWorkerCount - : federationWorkerCount // ignore: cast_nullable_to_non_nullable - as int?, - captchaEnabled: freezed == captchaEnabled - ? _value.captchaEnabled - : captchaEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - captchaDifficulty: freezed == captchaDifficulty - ? _value.captchaDifficulty - : captchaDifficulty // ignore: cast_nullable_to_non_nullable - as String?, - allowedInstances: freezed == allowedInstances - ? _value._allowedInstances - : allowedInstances // ignore: cast_nullable_to_non_nullable - as List?, - blockedInstances: freezed == blockedInstances - ? _value._blockedInstances - : blockedInstances // ignore: cast_nullable_to_non_nullable - as List?, - blockedUrls: freezed == blockedUrls - ? _value._blockedUrls - : blockedUrls // ignore: cast_nullable_to_non_nullable - as List?, - taglines: freezed == taglines - ? _value._taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List?, - registrationMode: freezed == registrationMode - ? _value.registrationMode - : registrationMode // ignore: cast_nullable_to_non_nullable - as RegistrationMode?, - reportsEmailAdmins: freezed == reportsEmailAdmins - ? _value.reportsEmailAdmins - : reportsEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool?, - contentWarning: freezed == contentWarning - ? _value.contentWarning - : contentWarning // ignore: cast_nullable_to_non_nullable - as String?, - defaultPostListingMode: freezed == defaultPostListingMode - ? _value.defaultPostListingMode - : defaultPostListingMode // ignore: cast_nullable_to_non_nullable - as String?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$EditSiteImpl extends _EditSite { - const _$EditSiteImpl( - {this.name, - this.sidebar, - this.description, - this.icon, - this.banner, - this.enableDownvotes, - this.enableNsfw, - this.communityCreationAdminOnly, - this.requireEmailVerification, - this.applicationQuestion, - this.privateInstance, - this.defaultTheme, - this.defaultPostListingType, - this.defaultSortType, - this.legalInformation, - this.applicationEmailAdmins, - this.hideModlogModNames, - final List? discussionLanguages, - this.slurFilterRegex, - this.actorNameMaxLength, - this.rateLimitMessage, - this.rateLimitMessagePerSecond, - this.rateLimitPost, - this.rateLimitPostPerSecond, - this.rateLimitRegister, - this.rateLimitRegisterPerSecond, - this.rateLimitImage, - this.rateLimitImagePerSecond, - this.rateLimitComment, - this.rateLimitCommentPerSecond, - this.rateLimitSearch, - this.rateLimitSearchPerSecond, - this.federationEnabled, - this.federationDebug, - @deprecated this.federationWorkerCount, - this.captchaEnabled, - this.captchaDifficulty, - final List? allowedInstances, - final List? blockedInstances, - final List? blockedUrls, - final List? taglines, - this.registrationMode, - this.reportsEmailAdmins, - this.contentWarning, - this.defaultPostListingMode, - this.auth}) - : _discussionLanguages = discussionLanguages, - _allowedInstances = allowedInstances, - _blockedInstances = blockedInstances, - _blockedUrls = blockedUrls, - _taglines = taglines, - super._(); - - factory _$EditSiteImpl.fromJson(Map json) => - _$$EditSiteImplFromJson(json); - - @override - final String? name; -// v0.18.0 - @override - final String? sidebar; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final String? icon; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final bool? enableDownvotes; -// v0.18.0 - @override - final bool? enableNsfw; -// v0.18.0 - @override - final bool? communityCreationAdminOnly; -// v0.18.0 - @override - final bool? requireEmailVerification; -// v0.18.0 - @override - final String? applicationQuestion; -// v0.18.0 - @override - final bool? privateInstance; -// v0.18.0 - @override - final String? defaultTheme; -// v0.18.0 - @override - final ListingType? defaultPostListingType; -// v0.18.0 - @override - final SortType? defaultSortType; -// v0.19.4 (optional) - @override - final String? legalInformation; -// v0.18.0 - @override - final bool? applicationEmailAdmins; -// v0.18.0 - @override - final bool? hideModlogModNames; -// v0.18.0 - final List? _discussionLanguages; -// v0.18.0 - @override - List? get discussionLanguages { - final value = _discussionLanguages; - if (value == null) return null; - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - final String? slurFilterRegex; -// v0.18.0 - @override - final int? actorNameMaxLength; -// v0.18.0 - @override - final int? rateLimitMessage; -// v0.18.0 - @override - final int? rateLimitMessagePerSecond; -// v0.18.0 - @override - final int? rateLimitPost; -// v0.18.0 - @override - final int? rateLimitPostPerSecond; -// v0.18.0 - @override - final int? rateLimitRegister; -// v0.18.0 - @override - final int? rateLimitRegisterPerSecond; -// v0.18.0 - @override - final int? rateLimitImage; -// v0.18.0 - @override - final int? rateLimitImagePerSecond; -// v0.18.0 - @override - final int? rateLimitComment; -// v0.18.0 - @override - final int? rateLimitCommentPerSecond; -// v0.18.0 - @override - final int? rateLimitSearch; -// v0.18.0 - @override - final int? rateLimitSearchPerSecond; -// v0.18.0 - @override - final bool? federationEnabled; -// v0.18.0 - @override - final bool? federationDebug; -// v0.18.0 - @override - @deprecated - final int? federationWorkerCount; -// v0.18.0 [deprecated in v0.18.1] - @override - final bool? captchaEnabled; -// v0.18.0 - @override - final String? captchaDifficulty; -// v0.18.0 - final List? _allowedInstances; -// v0.18.0 - @override - List? get allowedInstances { - final value = _allowedInstances; - if (value == null) return null; - if (_allowedInstances is EqualUnmodifiableListView) - return _allowedInstances; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - final List? _blockedInstances; -// v0.18.0 - @override - List? get blockedInstances { - final value = _blockedInstances; - if (value == null) return null; - if (_blockedInstances is EqualUnmodifiableListView) - return _blockedInstances; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - final List? _blockedUrls; -// v0.18.0 - @override - List? get blockedUrls { - final value = _blockedUrls; - if (value == null) return null; - if (_blockedUrls is EqualUnmodifiableListView) return _blockedUrls; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.19.4 (optional) - final List? _taglines; -// v0.19.4 (optional) - @override - List? get taglines { - final value = _taglines; - if (value == null) return null; - if (_taglines is EqualUnmodifiableListView) return _taglines; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - final RegistrationMode? registrationMode; -// v0.18.0 - @override - final bool? reportsEmailAdmins; -// v0.18.0 - @override - final String? contentWarning; -// v0.19.4 (optional) - @override - final String? defaultPostListingMode; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'EditSite(name: $name, sidebar: $sidebar, description: $description, icon: $icon, banner: $banner, enableDownvotes: $enableDownvotes, enableNsfw: $enableNsfw, communityCreationAdminOnly: $communityCreationAdminOnly, requireEmailVerification: $requireEmailVerification, applicationQuestion: $applicationQuestion, privateInstance: $privateInstance, defaultTheme: $defaultTheme, defaultPostListingType: $defaultPostListingType, defaultSortType: $defaultSortType, legalInformation: $legalInformation, applicationEmailAdmins: $applicationEmailAdmins, hideModlogModNames: $hideModlogModNames, discussionLanguages: $discussionLanguages, slurFilterRegex: $slurFilterRegex, actorNameMaxLength: $actorNameMaxLength, rateLimitMessage: $rateLimitMessage, rateLimitMessagePerSecond: $rateLimitMessagePerSecond, rateLimitPost: $rateLimitPost, rateLimitPostPerSecond: $rateLimitPostPerSecond, rateLimitRegister: $rateLimitRegister, rateLimitRegisterPerSecond: $rateLimitRegisterPerSecond, rateLimitImage: $rateLimitImage, rateLimitImagePerSecond: $rateLimitImagePerSecond, rateLimitComment: $rateLimitComment, rateLimitCommentPerSecond: $rateLimitCommentPerSecond, rateLimitSearch: $rateLimitSearch, rateLimitSearchPerSecond: $rateLimitSearchPerSecond, federationEnabled: $federationEnabled, federationDebug: $federationDebug, federationWorkerCount: $federationWorkerCount, captchaEnabled: $captchaEnabled, captchaDifficulty: $captchaDifficulty, allowedInstances: $allowedInstances, blockedInstances: $blockedInstances, blockedUrls: $blockedUrls, taglines: $taglines, registrationMode: $registrationMode, reportsEmailAdmins: $reportsEmailAdmins, contentWarning: $contentWarning, defaultPostListingMode: $defaultPostListingMode, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditSiteImpl && - (identical(other.name, name) || other.name == name) && - (identical(other.sidebar, sidebar) || other.sidebar == sidebar) && - (identical(other.description, description) || - other.description == description) && - (identical(other.icon, icon) || other.icon == icon) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.enableDownvotes, enableDownvotes) || - other.enableDownvotes == enableDownvotes) && - (identical(other.enableNsfw, enableNsfw) || - other.enableNsfw == enableNsfw) && - (identical(other.communityCreationAdminOnly, communityCreationAdminOnly) || - other.communityCreationAdminOnly == - communityCreationAdminOnly) && - (identical(other.requireEmailVerification, requireEmailVerification) || - other.requireEmailVerification == requireEmailVerification) && - (identical(other.applicationQuestion, applicationQuestion) || - other.applicationQuestion == applicationQuestion) && - (identical(other.privateInstance, privateInstance) || - other.privateInstance == privateInstance) && - (identical(other.defaultTheme, defaultTheme) || - other.defaultTheme == defaultTheme) && - (identical(other.defaultPostListingType, defaultPostListingType) || - other.defaultPostListingType == defaultPostListingType) && - (identical(other.defaultSortType, defaultSortType) || - other.defaultSortType == defaultSortType) && - (identical(other.legalInformation, legalInformation) || - other.legalInformation == legalInformation) && - (identical(other.applicationEmailAdmins, applicationEmailAdmins) || - other.applicationEmailAdmins == applicationEmailAdmins) && - (identical(other.hideModlogModNames, hideModlogModNames) || - other.hideModlogModNames == hideModlogModNames) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - (identical(other.slurFilterRegex, slurFilterRegex) || - other.slurFilterRegex == slurFilterRegex) && - (identical(other.actorNameMaxLength, actorNameMaxLength) || - other.actorNameMaxLength == actorNameMaxLength) && - (identical(other.rateLimitMessage, rateLimitMessage) || - other.rateLimitMessage == rateLimitMessage) && - (identical(other.rateLimitMessagePerSecond, rateLimitMessagePerSecond) || - other.rateLimitMessagePerSecond == rateLimitMessagePerSecond) && - (identical(other.rateLimitPost, rateLimitPost) || - other.rateLimitPost == rateLimitPost) && - (identical(other.rateLimitPostPerSecond, rateLimitPostPerSecond) || - other.rateLimitPostPerSecond == rateLimitPostPerSecond) && - (identical(other.rateLimitRegister, rateLimitRegister) || - other.rateLimitRegister == rateLimitRegister) && - (identical(other.rateLimitRegisterPerSecond, rateLimitRegisterPerSecond) || - other.rateLimitRegisterPerSecond == - rateLimitRegisterPerSecond) && - (identical(other.rateLimitImage, rateLimitImage) || - other.rateLimitImage == rateLimitImage) && - (identical(other.rateLimitImagePerSecond, rateLimitImagePerSecond) || - other.rateLimitImagePerSecond == rateLimitImagePerSecond) && - (identical(other.rateLimitComment, rateLimitComment) || - other.rateLimitComment == rateLimitComment) && - (identical(other.rateLimitCommentPerSecond, rateLimitCommentPerSecond) || other.rateLimitCommentPerSecond == rateLimitCommentPerSecond) && - (identical(other.rateLimitSearch, rateLimitSearch) || other.rateLimitSearch == rateLimitSearch) && - (identical(other.rateLimitSearchPerSecond, rateLimitSearchPerSecond) || other.rateLimitSearchPerSecond == rateLimitSearchPerSecond) && - (identical(other.federationEnabled, federationEnabled) || other.federationEnabled == federationEnabled) && - (identical(other.federationDebug, federationDebug) || other.federationDebug == federationDebug) && - (identical(other.federationWorkerCount, federationWorkerCount) || other.federationWorkerCount == federationWorkerCount) && - (identical(other.captchaEnabled, captchaEnabled) || other.captchaEnabled == captchaEnabled) && - (identical(other.captchaDifficulty, captchaDifficulty) || other.captchaDifficulty == captchaDifficulty) && - const DeepCollectionEquality().equals(other._allowedInstances, _allowedInstances) && - const DeepCollectionEquality().equals(other._blockedInstances, _blockedInstances) && - const DeepCollectionEquality().equals(other._blockedUrls, _blockedUrls) && - const DeepCollectionEquality().equals(other._taglines, _taglines) && - (identical(other.registrationMode, registrationMode) || other.registrationMode == registrationMode) && - (identical(other.reportsEmailAdmins, reportsEmailAdmins) || other.reportsEmailAdmins == reportsEmailAdmins) && - (identical(other.contentWarning, contentWarning) || other.contentWarning == contentWarning) && - (identical(other.defaultPostListingMode, defaultPostListingMode) || other.defaultPostListingMode == defaultPostListingMode) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - name, - sidebar, - description, - icon, - banner, - enableDownvotes, - enableNsfw, - communityCreationAdminOnly, - requireEmailVerification, - applicationQuestion, - privateInstance, - defaultTheme, - defaultPostListingType, - defaultSortType, - legalInformation, - applicationEmailAdmins, - hideModlogModNames, - const DeepCollectionEquality().hash(_discussionLanguages), - slurFilterRegex, - actorNameMaxLength, - rateLimitMessage, - rateLimitMessagePerSecond, - rateLimitPost, - rateLimitPostPerSecond, - rateLimitRegister, - rateLimitRegisterPerSecond, - rateLimitImage, - rateLimitImagePerSecond, - rateLimitComment, - rateLimitCommentPerSecond, - rateLimitSearch, - rateLimitSearchPerSecond, - federationEnabled, - federationDebug, - federationWorkerCount, - captchaEnabled, - captchaDifficulty, - const DeepCollectionEquality().hash(_allowedInstances), - const DeepCollectionEquality().hash(_blockedInstances), - const DeepCollectionEquality().hash(_blockedUrls), - const DeepCollectionEquality().hash(_taglines), - registrationMode, - reportsEmailAdmins, - contentWarning, - defaultPostListingMode, - auth - ]); - - /// Create a copy of EditSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$EditSiteImplCopyWith<_$EditSiteImpl> get copyWith => - __$$EditSiteImplCopyWithImpl<_$EditSiteImpl>(this, _$identity); - - @override - Map toJson() { - return _$$EditSiteImplToJson( - this, - ); - } -} - -abstract class _EditSite extends EditSite { - const factory _EditSite( - {final String? name, - final String? sidebar, - final String? description, - final String? icon, - final String? banner, - final bool? enableDownvotes, - final bool? enableNsfw, - final bool? communityCreationAdminOnly, - final bool? requireEmailVerification, - final String? applicationQuestion, - final bool? privateInstance, - final String? defaultTheme, - final ListingType? defaultPostListingType, - final SortType? defaultSortType, - final String? legalInformation, - final bool? applicationEmailAdmins, - final bool? hideModlogModNames, - final List? discussionLanguages, - final String? slurFilterRegex, - final int? actorNameMaxLength, - final int? rateLimitMessage, - final int? rateLimitMessagePerSecond, - final int? rateLimitPost, - final int? rateLimitPostPerSecond, - final int? rateLimitRegister, - final int? rateLimitRegisterPerSecond, - final int? rateLimitImage, - final int? rateLimitImagePerSecond, - final int? rateLimitComment, - final int? rateLimitCommentPerSecond, - final int? rateLimitSearch, - final int? rateLimitSearchPerSecond, - final bool? federationEnabled, - final bool? federationDebug, - @deprecated final int? federationWorkerCount, - final bool? captchaEnabled, - final String? captchaDifficulty, - final List? allowedInstances, - final List? blockedInstances, - final List? blockedUrls, - final List? taglines, - final RegistrationMode? registrationMode, - final bool? reportsEmailAdmins, - final String? contentWarning, - final String? defaultPostListingMode, - final String? auth}) = _$EditSiteImpl; - const _EditSite._() : super._(); - - factory _EditSite.fromJson(Map json) = - _$EditSiteImpl.fromJson; - - @override - String? get name; // v0.18.0 - @override - String? get sidebar; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - String? get icon; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - bool? get enableDownvotes; // v0.18.0 - @override - bool? get enableNsfw; // v0.18.0 - @override - bool? get communityCreationAdminOnly; // v0.18.0 - @override - bool? get requireEmailVerification; // v0.18.0 - @override - String? get applicationQuestion; // v0.18.0 - @override - bool? get privateInstance; // v0.18.0 - @override - String? get defaultTheme; // v0.18.0 - @override - ListingType? get defaultPostListingType; // v0.18.0 - @override - SortType? get defaultSortType; // v0.19.4 (optional) - @override - String? get legalInformation; // v0.18.0 - @override - bool? get applicationEmailAdmins; // v0.18.0 - @override - bool? get hideModlogModNames; // v0.18.0 - @override - List? get discussionLanguages; // v0.18.0 - @override - String? get slurFilterRegex; // v0.18.0 - @override - int? get actorNameMaxLength; // v0.18.0 - @override - int? get rateLimitMessage; // v0.18.0 - @override - int? get rateLimitMessagePerSecond; // v0.18.0 - @override - int? get rateLimitPost; // v0.18.0 - @override - int? get rateLimitPostPerSecond; // v0.18.0 - @override - int? get rateLimitRegister; // v0.18.0 - @override - int? get rateLimitRegisterPerSecond; // v0.18.0 - @override - int? get rateLimitImage; // v0.18.0 - @override - int? get rateLimitImagePerSecond; // v0.18.0 - @override - int? get rateLimitComment; // v0.18.0 - @override - int? get rateLimitCommentPerSecond; // v0.18.0 - @override - int? get rateLimitSearch; // v0.18.0 - @override - int? get rateLimitSearchPerSecond; // v0.18.0 - @override - bool? get federationEnabled; // v0.18.0 - @override - bool? get federationDebug; // v0.18.0 - @override - @deprecated - int? get federationWorkerCount; // v0.18.0 [deprecated in v0.18.1] - @override - bool? get captchaEnabled; // v0.18.0 - @override - String? get captchaDifficulty; // v0.18.0 - @override - List? get allowedInstances; // v0.18.0 - @override - List? get blockedInstances; // v0.18.0 - @override - List? get blockedUrls; // v0.19.4 (optional) - @override - List? get taglines; // v0.18.0 - @override - RegistrationMode? get registrationMode; // v0.18.0 - @override - bool? get reportsEmailAdmins; // v0.18.0 - @override - String? get contentWarning; // v0.19.4 (optional) - @override - String? get defaultPostListingMode; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of EditSite - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$EditSiteImplCopyWith<_$EditSiteImpl> get copyWith => - throw _privateConstructorUsedError; -} - -BlockInstance _$BlockInstanceFromJson(Map json) { - return _BlockInstance.fromJson(json); -} - -/// @nodoc -mixin _$BlockInstance { - String? get auth => throw _privateConstructorUsedError; - int get instanceId => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool get block => throw _privateConstructorUsedError; - - /// Serializes this BlockInstance to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BlockInstance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BlockInstanceCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BlockInstanceCopyWith<$Res> { - factory $BlockInstanceCopyWith( - BlockInstance value, $Res Function(BlockInstance) then) = - _$BlockInstanceCopyWithImpl<$Res, BlockInstance>; - @useResult - $Res call({String? auth, int instanceId, bool block}); -} - -/// @nodoc -class _$BlockInstanceCopyWithImpl<$Res, $Val extends BlockInstance> - implements $BlockInstanceCopyWith<$Res> { - _$BlockInstanceCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BlockInstance - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - Object? instanceId = null, - Object? block = null, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - block: null == block - ? _value.block - : block // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BlockInstanceImplCopyWith<$Res> - implements $BlockInstanceCopyWith<$Res> { - factory _$$BlockInstanceImplCopyWith( - _$BlockInstanceImpl value, $Res Function(_$BlockInstanceImpl) then) = - __$$BlockInstanceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth, int instanceId, bool block}); -} - -/// @nodoc -class __$$BlockInstanceImplCopyWithImpl<$Res> - extends _$BlockInstanceCopyWithImpl<$Res, _$BlockInstanceImpl> - implements _$$BlockInstanceImplCopyWith<$Res> { - __$$BlockInstanceImplCopyWithImpl( - _$BlockInstanceImpl _value, $Res Function(_$BlockInstanceImpl) _then) - : super(_value, _then); - - /// Create a copy of BlockInstance - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - Object? instanceId = null, - Object? block = null, - }) { - return _then(_$BlockInstanceImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - block: null == block - ? _value.block - : block // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@apiSerde -class _$BlockInstanceImpl extends _BlockInstance { - const _$BlockInstanceImpl( - {this.auth, required this.instanceId, required this.block}) - : super._(); - - factory _$BlockInstanceImpl.fromJson(Map json) => - _$$BlockInstanceImplFromJson(json); - - @override - final String? auth; - @override - final int instanceId; -// v0.19.0 (required) - @override - final bool block; - - @override - String toString() { - return 'BlockInstance(auth: $auth, instanceId: $instanceId, block: $block)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BlockInstanceImpl && - (identical(other.auth, auth) || other.auth == auth) && - (identical(other.instanceId, instanceId) || - other.instanceId == instanceId) && - (identical(other.block, block) || other.block == block)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth, instanceId, block); - - /// Create a copy of BlockInstance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BlockInstanceImplCopyWith<_$BlockInstanceImpl> get copyWith => - __$$BlockInstanceImplCopyWithImpl<_$BlockInstanceImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BlockInstanceImplToJson( - this, - ); - } -} - -abstract class _BlockInstance extends BlockInstance { - const factory _BlockInstance( - {final String? auth, - required final int instanceId, - required final bool block}) = _$BlockInstanceImpl; - const _BlockInstance._() : super._(); - - factory _BlockInstance.fromJson(Map json) = - _$BlockInstanceImpl.fromJson; - - @override - String? get auth; - @override - int get instanceId; // v0.19.0 (required) - @override - bool get block; - - /// Create a copy of BlockInstance - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BlockInstanceImplCopyWith<_$BlockInstanceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/site/site.g.dart b/lib/src/v3/api/site/site.g.dart deleted file mode 100644 index 15820768..00000000 --- a/lib/src/v3/api/site/site.g.dart +++ /dev/null @@ -1,316 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'site.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetSiteImpl _$$GetSiteImplFromJson(Map json) => - _$GetSiteImpl( - auth: json['auth'] as String?, - ); - -Map _$$GetSiteImplToJson(_$GetSiteImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$CreateSiteImpl _$$CreateSiteImplFromJson(Map json) => - _$CreateSiteImpl( - name: json['name'] as String, - sidebar: json['sidebar'] as String?, - description: json['description'] as String?, - icon: json['icon'] as String?, - banner: json['banner'] as String?, - enableDownvotes: json['enable_downvotes'] as bool?, - enableNsfw: json['enable_nsfw'] as bool?, - communityCreationAdminOnly: - json['community_creation_admin_only'] as bool?, - requireEmailVerification: json['require_email_verification'] as bool?, - applicationQuestion: json['application_question'] as String?, - privateInstance: json['private_instance'] as bool?, - defaultTheme: json['default_theme'] as String?, - defaultPostListingType: json['default_post_listing_type'] == null - ? null - : ListingType.fromJson(json['default_post_listing_type']), - defaultSortType: json['default_sort_type'] == null - ? null - : SortType.fromJson(json['default_sort_type']), - legalInformation: json['legal_information'] as String?, - applicationEmailAdmins: json['application_email_admins'] as bool?, - hideModlogModNames: json['hide_modlog_mod_names'] as bool?, - discussionLanguages: (json['discussion_languages'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - slurFilterRegex: json['slur_filter_regex'] as String?, - actorNameMaxLength: (json['actor_name_max_length'] as num?)?.toInt(), - rateLimitMessage: (json['rate_limit_message'] as num?)?.toInt(), - rateLimitMessagePerSecond: - (json['rate_limit_message_per_second'] as num?)?.toInt(), - rateLimitPost: (json['rate_limit_post'] as num?)?.toInt(), - rateLimitPostPerSecond: - (json['rate_limit_post_per_second'] as num?)?.toInt(), - rateLimitRegister: (json['rate_limit_register'] as num?)?.toInt(), - rateLimitRegisterPerSecond: - (json['rate_limit_register_per_second'] as num?)?.toInt(), - rateLimitImage: (json['rate_limit_image'] as num?)?.toInt(), - rateLimitImagePerSecond: - (json['rate_limit_image_per_second'] as num?)?.toInt(), - rateLimitComment: (json['rate_limit_comment'] as num?)?.toInt(), - rateLimitCommentPerSecond: - (json['rate_limit_comment_per_second'] as num?)?.toInt(), - rateLimitSearch: (json['rate_limit_search'] as num?)?.toInt(), - rateLimitSearchPerSecond: - (json['rate_limit_search_per_second'] as num?)?.toInt(), - federationEnabled: json['federation_enabled'] as bool?, - federationDebug: json['federation_debug'] as bool?, - federationWorkerCount: (json['federation_worker_count'] as num?)?.toInt(), - captchaEnabled: json['captcha_enabled'] as bool?, - captchaDifficulty: json['captcha_difficulty'] as String?, - allowedInstances: (json['allowed_instances'] as List?) - ?.map((e) => e as String) - .toList(), - blockedInstances: (json['blocked_instances'] as List?) - ?.map((e) => e as String) - .toList(), - taglines: (json['taglines'] as List?) - ?.map((e) => e as String) - .toList(), - registrationMode: json['registration_mode'] == null - ? null - : RegistrationMode.fromJson(json['registration_mode'] as String), - contentWarning: json['content_warning'] as String?, - defaultPostListingMode: json['default_post_listing_mode'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$CreateSiteImplToJson(_$CreateSiteImpl instance) { - final val = { - 'name': instance.name, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('sidebar', instance.sidebar); - writeNotNull('description', instance.description); - writeNotNull('icon', instance.icon); - writeNotNull('banner', instance.banner); - writeNotNull('enable_downvotes', instance.enableDownvotes); - writeNotNull('enable_nsfw', instance.enableNsfw); - writeNotNull( - 'community_creation_admin_only', instance.communityCreationAdminOnly); - writeNotNull('require_email_verification', instance.requireEmailVerification); - writeNotNull('application_question', instance.applicationQuestion); - writeNotNull('private_instance', instance.privateInstance); - writeNotNull('default_theme', instance.defaultTheme); - writeNotNull( - 'default_post_listing_type', instance.defaultPostListingType?.toJson()); - writeNotNull('default_sort_type', instance.defaultSortType?.toJson()); - writeNotNull('legal_information', instance.legalInformation); - writeNotNull('application_email_admins', instance.applicationEmailAdmins); - writeNotNull('hide_modlog_mod_names', instance.hideModlogModNames); - writeNotNull('discussion_languages', instance.discussionLanguages); - writeNotNull('slur_filter_regex', instance.slurFilterRegex); - writeNotNull('actor_name_max_length', instance.actorNameMaxLength); - writeNotNull('rate_limit_message', instance.rateLimitMessage); - writeNotNull( - 'rate_limit_message_per_second', instance.rateLimitMessagePerSecond); - writeNotNull('rate_limit_post', instance.rateLimitPost); - writeNotNull('rate_limit_post_per_second', instance.rateLimitPostPerSecond); - writeNotNull('rate_limit_register', instance.rateLimitRegister); - writeNotNull( - 'rate_limit_register_per_second', instance.rateLimitRegisterPerSecond); - writeNotNull('rate_limit_image', instance.rateLimitImage); - writeNotNull('rate_limit_image_per_second', instance.rateLimitImagePerSecond); - writeNotNull('rate_limit_comment', instance.rateLimitComment); - writeNotNull( - 'rate_limit_comment_per_second', instance.rateLimitCommentPerSecond); - writeNotNull('rate_limit_search', instance.rateLimitSearch); - writeNotNull( - 'rate_limit_search_per_second', instance.rateLimitSearchPerSecond); - writeNotNull('federation_enabled', instance.federationEnabled); - writeNotNull('federation_debug', instance.federationDebug); - writeNotNull('federation_worker_count', instance.federationWorkerCount); - writeNotNull('captcha_enabled', instance.captchaEnabled); - writeNotNull('captcha_difficulty', instance.captchaDifficulty); - writeNotNull('allowed_instances', instance.allowedInstances); - writeNotNull('blocked_instances', instance.blockedInstances); - writeNotNull('taglines', instance.taglines); - writeNotNull('registration_mode', instance.registrationMode?.toJson()); - writeNotNull('content_warning', instance.contentWarning); - writeNotNull('default_post_listing_mode', instance.defaultPostListingMode); - writeNotNull('auth', instance.auth); - return val; -} - -_$EditSiteImpl _$$EditSiteImplFromJson(Map json) => - _$EditSiteImpl( - name: json['name'] as String?, - sidebar: json['sidebar'] as String?, - description: json['description'] as String?, - icon: json['icon'] as String?, - banner: json['banner'] as String?, - enableDownvotes: json['enable_downvotes'] as bool?, - enableNsfw: json['enable_nsfw'] as bool?, - communityCreationAdminOnly: - json['community_creation_admin_only'] as bool?, - requireEmailVerification: json['require_email_verification'] as bool?, - applicationQuestion: json['application_question'] as String?, - privateInstance: json['private_instance'] as bool?, - defaultTheme: json['default_theme'] as String?, - defaultPostListingType: json['default_post_listing_type'] == null - ? null - : ListingType.fromJson(json['default_post_listing_type']), - defaultSortType: json['default_sort_type'] == null - ? null - : SortType.fromJson(json['default_sort_type']), - legalInformation: json['legal_information'] as String?, - applicationEmailAdmins: json['application_email_admins'] as bool?, - hideModlogModNames: json['hide_modlog_mod_names'] as bool?, - discussionLanguages: (json['discussion_languages'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - slurFilterRegex: json['slur_filter_regex'] as String?, - actorNameMaxLength: (json['actor_name_max_length'] as num?)?.toInt(), - rateLimitMessage: (json['rate_limit_message'] as num?)?.toInt(), - rateLimitMessagePerSecond: - (json['rate_limit_message_per_second'] as num?)?.toInt(), - rateLimitPost: (json['rate_limit_post'] as num?)?.toInt(), - rateLimitPostPerSecond: - (json['rate_limit_post_per_second'] as num?)?.toInt(), - rateLimitRegister: (json['rate_limit_register'] as num?)?.toInt(), - rateLimitRegisterPerSecond: - (json['rate_limit_register_per_second'] as num?)?.toInt(), - rateLimitImage: (json['rate_limit_image'] as num?)?.toInt(), - rateLimitImagePerSecond: - (json['rate_limit_image_per_second'] as num?)?.toInt(), - rateLimitComment: (json['rate_limit_comment'] as num?)?.toInt(), - rateLimitCommentPerSecond: - (json['rate_limit_comment_per_second'] as num?)?.toInt(), - rateLimitSearch: (json['rate_limit_search'] as num?)?.toInt(), - rateLimitSearchPerSecond: - (json['rate_limit_search_per_second'] as num?)?.toInt(), - federationEnabled: json['federation_enabled'] as bool?, - federationDebug: json['federation_debug'] as bool?, - federationWorkerCount: (json['federation_worker_count'] as num?)?.toInt(), - captchaEnabled: json['captcha_enabled'] as bool?, - captchaDifficulty: json['captcha_difficulty'] as String?, - allowedInstances: (json['allowed_instances'] as List?) - ?.map((e) => e as String) - .toList(), - blockedInstances: (json['blocked_instances'] as List?) - ?.map((e) => e as String) - .toList(), - blockedUrls: (json['blocked_urls'] as List?) - ?.map((e) => e as String) - .toList(), - taglines: (json['taglines'] as List?) - ?.map((e) => e as String) - .toList(), - registrationMode: json['registration_mode'] == null - ? null - : RegistrationMode.fromJson(json['registration_mode'] as String), - reportsEmailAdmins: json['reports_email_admins'] as bool?, - contentWarning: json['content_warning'] as String?, - defaultPostListingMode: json['default_post_listing_mode'] as String?, - auth: json['auth'] as String?, - ); - -Map _$$EditSiteImplToJson(_$EditSiteImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('name', instance.name); - writeNotNull('sidebar', instance.sidebar); - writeNotNull('description', instance.description); - writeNotNull('icon', instance.icon); - writeNotNull('banner', instance.banner); - writeNotNull('enable_downvotes', instance.enableDownvotes); - writeNotNull('enable_nsfw', instance.enableNsfw); - writeNotNull( - 'community_creation_admin_only', instance.communityCreationAdminOnly); - writeNotNull('require_email_verification', instance.requireEmailVerification); - writeNotNull('application_question', instance.applicationQuestion); - writeNotNull('private_instance', instance.privateInstance); - writeNotNull('default_theme', instance.defaultTheme); - writeNotNull( - 'default_post_listing_type', instance.defaultPostListingType?.toJson()); - writeNotNull('default_sort_type', instance.defaultSortType?.toJson()); - writeNotNull('legal_information', instance.legalInformation); - writeNotNull('application_email_admins', instance.applicationEmailAdmins); - writeNotNull('hide_modlog_mod_names', instance.hideModlogModNames); - writeNotNull('discussion_languages', instance.discussionLanguages); - writeNotNull('slur_filter_regex', instance.slurFilterRegex); - writeNotNull('actor_name_max_length', instance.actorNameMaxLength); - writeNotNull('rate_limit_message', instance.rateLimitMessage); - writeNotNull( - 'rate_limit_message_per_second', instance.rateLimitMessagePerSecond); - writeNotNull('rate_limit_post', instance.rateLimitPost); - writeNotNull('rate_limit_post_per_second', instance.rateLimitPostPerSecond); - writeNotNull('rate_limit_register', instance.rateLimitRegister); - writeNotNull( - 'rate_limit_register_per_second', instance.rateLimitRegisterPerSecond); - writeNotNull('rate_limit_image', instance.rateLimitImage); - writeNotNull('rate_limit_image_per_second', instance.rateLimitImagePerSecond); - writeNotNull('rate_limit_comment', instance.rateLimitComment); - writeNotNull( - 'rate_limit_comment_per_second', instance.rateLimitCommentPerSecond); - writeNotNull('rate_limit_search', instance.rateLimitSearch); - writeNotNull( - 'rate_limit_search_per_second', instance.rateLimitSearchPerSecond); - writeNotNull('federation_enabled', instance.federationEnabled); - writeNotNull('federation_debug', instance.federationDebug); - writeNotNull('federation_worker_count', instance.federationWorkerCount); - writeNotNull('captcha_enabled', instance.captchaEnabled); - writeNotNull('captcha_difficulty', instance.captchaDifficulty); - writeNotNull('allowed_instances', instance.allowedInstances); - writeNotNull('blocked_instances', instance.blockedInstances); - writeNotNull('blocked_urls', instance.blockedUrls); - writeNotNull('taglines', instance.taglines); - writeNotNull('registration_mode', instance.registrationMode?.toJson()); - writeNotNull('reports_email_admins', instance.reportsEmailAdmins); - writeNotNull('content_warning', instance.contentWarning); - writeNotNull('default_post_listing_mode', instance.defaultPostListingMode); - writeNotNull('auth', instance.auth); - return val; -} - -_$BlockInstanceImpl _$$BlockInstanceImplFromJson(Map json) => - _$BlockInstanceImpl( - auth: json['auth'] as String?, - instanceId: (json['instance_id'] as num).toInt(), - block: json['block'] as bool, - ); - -Map _$$BlockInstanceImplToJson(_$BlockInstanceImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - val['instance_id'] = instance.instanceId; - val['block'] = instance.block; - return val; -} diff --git a/lib/src/v3/api/user/user.dart b/lib/src/v3/api/user/user.dart deleted file mode 100644 index 4c9a4a02..00000000 --- a/lib/src/v3/api/user/user.dart +++ /dev/null @@ -1,805 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../v3.dart'; -import '../../../utils/serde.dart'; - -part 'user.freezed.dart'; -part 'user.g.dart'; - -/// Leave the Site admins. -/// -/// `HTTP.POST /user/leave_admin` -@freezed -class LeaveAdmin - with _$LeaveAdmin - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory LeaveAdmin({ - String? auth, - }) = _LeaveAdmin; - - const LeaveAdmin._(); - factory LeaveAdmin.fromJson(Map json) => - _$LeaveAdminFromJson(json); - - final path = '/user/leave_admin'; - - final httpMethod = HttpMethod.post; - - @override - GetSiteResponse responseFactory(Map json) => - GetSiteResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.4 and above -/// -/// List all the media for your user -/// -/// `HTTP.GET /account/list_media` -@freezed -class ListMedia - with _$ListMedia - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory ListMedia({ - int? page, // v0.19.4 (optional) - int? limit, // v0.19.4 (optional) - String? auth, - }) = _ListMedia; - - const ListMedia._(); - factory ListMedia.fromJson(Map json) => - _$ListMediaFromJson(json); - - final path = '/account/list_media'; - - final httpMethod = HttpMethod.get; - - @override - ListMediaResponse responseFactory(Map json) => - ListMediaResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Generate a TOTP / two-factor secret. -/// -/// Afterwards you need to call `/user/totp/update` with a valid token to enable it. -/// -/// `HTTP.POST /user/totp/generate` -@freezed -class GenerateTotpSecret - with _$GenerateTotpSecret - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GenerateTotpSecret({ - String? auth, - }) = _GenerateTotpSecret; - - const GenerateTotpSecret._(); - factory GenerateTotpSecret.fromJson(Map json) => - _$GenerateTotpSecretFromJson(json); - - final path = '/user/totp/generate'; - - final httpMethod = HttpMethod.post; - - @override - GenerateTotpSecretResponse responseFactory(Map json) => - GenerateTotpSecretResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Export a backup of your user settings, including your saved content, -/// followed communities, and blocks. -/// -/// `HTTP.GET /user/export_settings` -/// -/// TODO: Need to figure out how to pass response back to client without parsing json: https://lemmy.ml/post/6754481 -@freezed -class ExportSettings - with _$ExportSettings - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory ExportSettings({ - String? auth, - }) = _ExportSettings; - - const ExportSettings._(); - factory ExportSettings.fromJson(Map json) => - _$ExportSettingsFromJson(json); - - final path = '/user/export_settings'; - - final httpMethod = HttpMethod.get; - - @override - dynamic responseFactory(Map json) => json; -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Import a backup of your user settings. -/// -/// `HTTP.POST /user/import_settings` -@freezed -class ImportSettings - with _$ImportSettings - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery, - PassthroughParameter { - @apiSerde - const factory ImportSettings({ - String? auth, - dynamic data, - }) = _ImportSettings; - - const ImportSettings._(); - factory ImportSettings.fromJson(Map json) => - _$ImportSettingsFromJson(json); - - final path = '/user/import_settings'; - - final httpMethod = HttpMethod.post; - - @override - SuccessResponse responseFactory(Map json) => - SuccessResponse.fromJson(json); - - @override - String get parameter => 'data'; -} - -/// Only available in lemmy v0.19.0 and above -/// -/// List login tokens for your user -/// -/// `HTTP.GET /user/list_logins` -class ListLogins { - // NOT YET IMPLEMENTED -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Returns an error message if your auth token is invalid -/// -/// `HTTP.GET /user/validate_auth` -@freezed -class ValidateAuth - with _$ValidateAuth - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory ValidateAuth({ - String? auth, - }) = _ValidateAuth; - - const ValidateAuth._(); - factory ValidateAuth.fromJson(Map json) => - _$ValidateAuthFromJson(json); - - final path = '/user/validate_auth'; - - final httpMethod = HttpMethod.get; - - @override - SuccessResponse responseFactory(Map json) => - SuccessResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Enable / Disable TOTP / two-factor authentication. -/// -/// To enable, you need to first call `/user/totp/generate` and then pass a valid token to this. -/// -/// Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token. -/// -/// `HTTP.POST /user/totp/update` -@freezed -class UpdateTotp - with _$UpdateTotp - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory UpdateTotp({ - String? auth, - required String totpToken, // v0.19.0 (required) - required bool enabled, // v0.19.0 (required) - }) = _UpdateTotp; - - const UpdateTotp._(); - factory UpdateTotp.fromJson(Map json) => - _$UpdateTotpFromJson(json); - - final path = '/user/totp/update'; - - final httpMethod = HttpMethod.post; - - @override - UpdateTotpResponse responseFactory(Map json) => - UpdateTotpResponse.fromJson(json); -} - -/// Register a new user. -/// -/// `HTTP.POST /user/register` -@freezed -class Register with _$Register implements LemmyApiQuery { - @apiSerde - const factory Register({ - required String username, // v0.18.0 - required String password, // v0.18.0 - required String passwordVerify, // v0.18.0 - bool? showNsfw, // v0.18.0 - String? email, // v0.18.0 - String? captchaUuid, // v0.18.0 - String? captchaAnswer, // v0.18.0 - String? honeypot, // v0.18.0 - String? answer, // v0.18.0 - }) = _Register; - - const Register._(); - factory Register.fromJson(Map json) => - _$RegisterFromJson(json); - - final path = '/user/register'; - - final httpMethod = HttpMethod.post; - - @override - LoginResponse responseFactory(Map json) => - LoginResponse.fromJson(json); -} - -/// Log into lemmy. -/// -/// `HTTP.POST /user/login` -@freezed -class Login with _$Login implements LemmyApiQuery { - @apiSerde - const factory Login({ - required String usernameOrEmail, // v0.18.0 - required String password, // v0.18.0 - @JsonKey(name: 'totp_2fa_token') String? totp2faToken, // v0.18.0 - }) = _Login; - - const Login._(); - factory Login.fromJson(Map json) => _$LoginFromJson(json); - - final path = '/user/login'; - - final httpMethod = HttpMethod.post; - - @override - LoginResponse responseFactory(Map json) => - LoginResponse.fromJson(json); -} - -/// Only available in lemmy v0.19.0 and above -/// -/// Log out of lemmy. -/// -/// `HTTP.POST /user/logout` -@freezed -class Logout with _$Logout implements LemmyApiQuery { - @apiSerde - const factory Logout() = _Logout; - - const Logout._(); - factory Logout.fromJson(Map json) => _$LogoutFromJson(json); - - final path = '/user/logout'; - - final httpMethod = HttpMethod.post; - - @override - SuccessResponse responseFactory(Map json) => - SuccessResponse.fromJson(json); -} - -/// Get the details for a person. -/// -/// `HTTP.GET /user` -@freezed -class GetPersonDetails - with _$GetPersonDetails - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetPersonDetails({ - int? personId, // v0.18.0 - String? username, // v0.18.0 - SortType? sort, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - int? communityId, // v0.18.0 - bool? savedOnly, // v0.18.0 - String? auth, - }) = _GetPersonDetails; - - const GetPersonDetails._(); - factory GetPersonDetails.fromJson(Map json) => - _$GetPersonDetailsFromJson(json); - - final path = '/user'; - - final httpMethod = HttpMethod.get; - - @override - GetPersonDetailsResponse responseFactory(Map json) => - GetPersonDetailsResponse.fromJson(json); -} - -/// Get mentions for your user. -/// -/// `HTTP.GET /user/mention` -@freezed -class GetPersonMentions - with _$GetPersonMentions - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetPersonMentions({ - CommentSortType? sort, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - bool? unreadOnly, // v0.18.0 - String? auth, - }) = _GetPersonMentions; - - const GetPersonMentions._(); - factory GetPersonMentions.fromJson(Map json) => - _$GetPersonMentionsFromJson(json); - - final path = '/user/mention'; - - final httpMethod = HttpMethod.get; - - @override - GetPersonMentionsResponse responseFactory(Map json) => - GetPersonMentionsResponse.fromJson(json); -} - -/// Mark a person mention as read. -/// -/// `HTTP.POST /user/mention/mark_as_read` -@freezed -class MarkPersonMentionAsRead - with _$MarkPersonMentionAsRead - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory MarkPersonMentionAsRead({ - required int personMentionId, // v0.18.0 - required bool read, // v0.18.0 - String? auth, - }) = _MarkPersonMentionAsRead; - - const MarkPersonMentionAsRead._(); - factory MarkPersonMentionAsRead.fromJson(Map json) => - _$MarkPersonMentionAsReadFromJson(json); - - final path = '/user/mention/mark_as_read'; - - final httpMethod = HttpMethod.post; - - @override - PersonMentionResponse responseFactory(Map json) => - PersonMentionResponse.fromJson(json); -} - -/// Get comment replies. -/// -/// `HTTP.GET /user/replies` -@freezed -class GetReplies - with _$GetReplies - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetReplies({ - CommentSortType? sort, // v0.18.0 - int? page, // v0.18.0 - int? limit, // v0.18.0 - bool? unreadOnly, // v0.18.0 - String? auth, - }) = _GetReplies; - - const GetReplies._(); - factory GetReplies.fromJson(Map json) => - _$GetRepliesFromJson(json); - - final path = '/user/replies'; - - final httpMethod = HttpMethod.get; - - @override - GetRepliesResponse responseFactory(Map json) => - GetRepliesResponse.fromJson(json); -} - -/// Ban a person from your site. -/// -/// `HTTP.POST /user/ban` -@freezed -class BanPerson - with _$BanPerson - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory BanPerson({ - required int personId, // v0.18.0 - required bool ban, // v0.18.0 - bool? removeData, // v0.18.0 - String? reason, // v0.18.0 - int? expires, // v0.18.0 - String? auth, - }) = _BanPerson; - - const BanPerson._(); - factory BanPerson.fromJson(Map json) => - _$BanPersonFromJson(json); - - final path = '/user/ban'; - - final httpMethod = HttpMethod.post; - - @override - BanPersonResponse responseFactory(Map json) => - BanPersonResponse.fromJson(json); -} - -/// Get a list of banned users -/// -/// `HTTP.GET /user/banned` -@freezed -class GetBannedPersons - with _$GetBannedPersons - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetBannedPersons({ - String? auth, - }) = _GetBannedPersons; - - const GetBannedPersons._(); - factory GetBannedPersons.fromJson(Map json) => - _$GetBannedPersonsFromJson(json); - - final path = '/user/banned'; - - final httpMethod = HttpMethod.get; - - @override - BannedPersonsResponse responseFactory(Map json) => - BannedPersonsResponse.fromJson(json); -} - -/// Block a person. -/// -/// `HTTP.POST /user/block` -@freezed -class BlockPerson - with _$BlockPerson - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory BlockPerson({ - required int personId, // v0.18.0 - required bool block, // v0.18.0 - String? auth, - }) = _BlockPerson; - - const BlockPerson._(); - factory BlockPerson.fromJson(Map json) => - _$BlockPersonFromJson(json); - - final path = '/user/block'; - - final httpMethod = HttpMethod.post; - - @override - BlockPersonResponse responseFactory(Map json) => - BlockPersonResponse.fromJson(json); -} - -/// Fetch a Captcha. -/// -/// `HTTP.GET /user/get_captcha` -@freezed -class GetCaptcha - with _$GetCaptcha - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetCaptcha({ - String? auth, - }) = _GetCaptcha; - - const GetCaptcha._(); - factory GetCaptcha.fromJson(Map json) => - _$GetCaptchaFromJson(json); - - final path = '/user/get_captcha'; - - final httpMethod = HttpMethod.get; - - @override - GetCaptchaResponse responseFactory(Map json) => - GetCaptchaResponse.fromJson(json); -} - -/// Delete your account. -/// -/// `HTTP.POST /user/delete_account` -@freezed -class DeleteAccount - with _$DeleteAccount - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory DeleteAccount({ - required String password, // v0.18.0 - bool? deleteContent, // v0.19.0 (required) - String? auth, - }) = _DeleteAccount; - - const DeleteAccount._(); - factory DeleteAccount.fromJson(Map json) => - _$DeleteAccountFromJson(json); - - final path = '/user/delete_account'; - - final httpMethod = HttpMethod.post; - - @override - DeleteAccountResponse responseFactory(Map json) => - DeleteAccountResponse.fromJson(json); -} - -/// Reset your password. -/// -/// `HTTP.POST /user/password_reset` -@freezed -class PasswordReset - with _$PasswordReset - implements LemmyApiQuery { - @apiSerde - const factory PasswordReset({ - required String email, // v0.18.0 - }) = _PasswordReset; - - const PasswordReset._(); - factory PasswordReset.fromJson(Map json) => - _$PasswordResetFromJson(json); - - final path = '/user/password_reset'; - - final httpMethod = HttpMethod.post; - - @override - PasswordResetResponse responseFactory(Map json) => - PasswordResetResponse.fromJson(json); -} - -/// Change your password from an email / token based reset. -/// -/// `HTTP.POST /user/password_change` -@freezed -class PasswordChangeAfterReset - with _$PasswordChangeAfterReset - implements LemmyApiQuery { - @apiSerde - const factory PasswordChangeAfterReset({ - required String token, // v0.18.0 - required String password, // v0.18.0 - required String passwordVerify, // v0.18.0 - }) = _PasswordChangeAfterReset; - - const PasswordChangeAfterReset._(); - factory PasswordChangeAfterReset.fromJson(Map json) => - _$PasswordChangeAfterResetFromJson(json); - - final path = '/user/password_change'; - - final httpMethod = HttpMethod.post; - - @override - PasswordChangeAfterResetResponse responseFactory(Map json) => - PasswordChangeAfterResetResponse.fromJson(json); -} - -/// Mark all replies as read. -/// -/// `HTTP.POST /user/mark_all_as_read` -@freezed -class MarkAllAsRead - with _$MarkAllAsRead - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory MarkAllAsRead({ - String? auth, - }) = _MarkAllAsRead; - - const MarkAllAsRead._(); - factory MarkAllAsRead.fromJson(Map json) => - _$MarkAllAsReadFromJson(json); - - final path = '/user/mark_all_as_read'; - - final httpMethod = HttpMethod.post; - - @override - GetRepliesResponse responseFactory(Map json) => - GetRepliesResponse.fromJson(json); -} - -/// Save your user settings. -/// -/// `HTTP.PUT /user/save_user_settings` -@freezed -class SaveUserSettings - with _$SaveUserSettings - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory SaveUserSettings({ - bool? showNsfw, // v0.18.0 - bool? blurNsfw, // v0.18.3 - bool? autoExpand, // v0.18.3 - String? theme, // v0.18.0 - SortType? defaultSortType, // v0.18.0 - ListingType? defaultListingType, // v0.18.0 - String? interfaceLanguage, // v0.18.0 - String? avatar, // v0.18.0 - String? banner, // v0.18.0 - String? displayName, // v0.18.0 - String? email, // v0.18.0 - String? bio, // v0.18.0 - String? matrixUserId, // v0.18.0 - bool? showAvatars, // v0.18.0 - bool? sendNotificationsToEmail, // v0.18.0 - bool? botAccount, // v0.18.0 - bool? showBotAccounts, // v0.18.0 - bool? showReadPosts, // v0.18.0 - @deprecated bool? showNewPostNotifs, // v0.18.0 [deprecated in v0.19.0] - List? discussionLanguages, // v0.18.0 - @deprecated bool? generateTotp2fa, // v0.18.0 [deprecated in v0.19.0] - String? auth, - bool? openLinksInNewTab, // v0.18.1 - bool? infiniteScrollEnabled, // v0.19.0 (optional) - String? postListingMode, // v0.19.0 (optional) - bool? enableKeyboardNavigation, // v0.19.0 (optional) - bool? enableAnimatedImages, // v0.19.0 (optional) - bool? collapseBotComments, // v0.19.0 (optional) - bool? showScores, // v0.18.0 (optional) - bool? showUpvotes, // v0.19.4 (optional) - bool? showDownvotes, // v0.19.4 (optional) - bool? showUpvotePercentage, // v0.19.4 (optional) - }) = _SaveUserSettings; - - const SaveUserSettings._(); - factory SaveUserSettings.fromJson(Map json) => - _$SaveUserSettingsFromJson(json); - - final path = '/user/save_user_settings'; - - final httpMethod = HttpMethod.put; - - @override - SaveUserSettingsResponse responseFactory(Map json) => - SaveUserSettingsResponse.fromJson(json); -} - -/// Change your user password. -/// -/// `HTTP.PUT /user/change_password` -@freezed -class ChangePassword - with _$ChangePassword - implements LemmyApiQuery, LemmyApiAuthenticatedQuery { - @apiSerde - const factory ChangePassword({ - required String newPassword, // v0.18.0 - required String newPasswordVerify, // v0.18.0 - required String oldPassword, // v0.18.0 - String? auth, - }) = _ChangePassword; - - const ChangePassword._(); - factory ChangePassword.fromJson(Map json) => - _$ChangePasswordFromJson(json); - - final path = '/user/change_password'; - - final httpMethod = HttpMethod.put; - - @override - LoginResponse responseFactory(Map json) => - LoginResponse.fromJson(json); -} - -/// Get counts for your reports -/// -/// `HTTP.GET /user/report_count` -@freezed -class GetReportCount - with _$GetReportCount - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetReportCount({ - int? communityId, // v0.18.0 - String? auth, - }) = _GetReportCount; - - const GetReportCount._(); - factory GetReportCount.fromJson(Map json) => - _$GetReportCountFromJson(json); - - final path = '/user/report_count'; - - final httpMethod = HttpMethod.get; - - @override - GetReportCountResponse responseFactory(Map json) => - GetReportCountResponse.fromJson(json); -} - -/// Get your unread counts -/// -/// `HTTP.GET /user/unread_count` -@freezed -class GetUnreadCount - with _$GetUnreadCount - implements - LemmyApiQuery, - LemmyApiAuthenticatedQuery { - @apiSerde - const factory GetUnreadCount({ - String? auth, - }) = _GetUnreadCount; - - const GetUnreadCount._(); - factory GetUnreadCount.fromJson(Map json) => - _$GetUnreadCountFromJson(json); - - final path = '/user/unread_count'; - - final httpMethod = HttpMethod.get; - - @override - GetUnreadCountResponse responseFactory(Map json) => - GetUnreadCountResponse.fromJson(json); -} - -/// Verify your email -/// -/// `HTTP.POST /user/verify_email` -@freezed -class VerifyEmail - with _$VerifyEmail - implements LemmyApiQuery { - @apiSerde - const factory VerifyEmail({ - required String token, // v0.18.0 - }) = _VerifyEmail; - - const VerifyEmail._(); - factory VerifyEmail.fromJson(Map json) => - _$VerifyEmailFromJson(json); - - final path = '/user/verify_email'; - - final httpMethod = HttpMethod.post; - - @override - VerifyEmailResponse responseFactory(Map json) => - VerifyEmailResponse.fromJson(json); -} diff --git a/lib/src/v3/api/user/user.freezed.dart b/lib/src/v3/api/user/user.freezed.dart deleted file mode 100644 index 63ff0b53..00000000 --- a/lib/src/v3/api/user/user.freezed.dart +++ /dev/null @@ -1,5836 +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 'user.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'); - -LeaveAdmin _$LeaveAdminFromJson(Map json) { - return _LeaveAdmin.fromJson(json); -} - -/// @nodoc -mixin _$LeaveAdmin { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this LeaveAdmin to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LeaveAdmin - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LeaveAdminCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LeaveAdminCopyWith<$Res> { - factory $LeaveAdminCopyWith( - LeaveAdmin value, $Res Function(LeaveAdmin) then) = - _$LeaveAdminCopyWithImpl<$Res, LeaveAdmin>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$LeaveAdminCopyWithImpl<$Res, $Val extends LeaveAdmin> - implements $LeaveAdminCopyWith<$Res> { - _$LeaveAdminCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LeaveAdmin - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LeaveAdminImplCopyWith<$Res> - implements $LeaveAdminCopyWith<$Res> { - factory _$$LeaveAdminImplCopyWith( - _$LeaveAdminImpl value, $Res Function(_$LeaveAdminImpl) then) = - __$$LeaveAdminImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$LeaveAdminImplCopyWithImpl<$Res> - extends _$LeaveAdminCopyWithImpl<$Res, _$LeaveAdminImpl> - implements _$$LeaveAdminImplCopyWith<$Res> { - __$$LeaveAdminImplCopyWithImpl( - _$LeaveAdminImpl _value, $Res Function(_$LeaveAdminImpl) _then) - : super(_value, _then); - - /// Create a copy of LeaveAdmin - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$LeaveAdminImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$LeaveAdminImpl extends _LeaveAdmin { - const _$LeaveAdminImpl({this.auth}) : super._(); - - factory _$LeaveAdminImpl.fromJson(Map json) => - _$$LeaveAdminImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'LeaveAdmin(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LeaveAdminImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of LeaveAdmin - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LeaveAdminImplCopyWith<_$LeaveAdminImpl> get copyWith => - __$$LeaveAdminImplCopyWithImpl<_$LeaveAdminImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LeaveAdminImplToJson( - this, - ); - } -} - -abstract class _LeaveAdmin extends LeaveAdmin { - const factory _LeaveAdmin({final String? auth}) = _$LeaveAdminImpl; - const _LeaveAdmin._() : super._(); - - factory _LeaveAdmin.fromJson(Map json) = - _$LeaveAdminImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of LeaveAdmin - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LeaveAdminImplCopyWith<_$LeaveAdminImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ListMedia _$ListMediaFromJson(Map json) { - return _ListMedia.fromJson(json); -} - -/// @nodoc -mixin _$ListMedia { - int? get page => throw _privateConstructorUsedError; // v0.19.4 (optional) - int? get limit => throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ListMedia to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListMedia - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListMediaCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListMediaCopyWith<$Res> { - factory $ListMediaCopyWith(ListMedia value, $Res Function(ListMedia) then) = - _$ListMediaCopyWithImpl<$Res, ListMedia>; - @useResult - $Res call({int? page, int? limit, String? auth}); -} - -/// @nodoc -class _$ListMediaCopyWithImpl<$Res, $Val extends ListMedia> - implements $ListMediaCopyWith<$Res> { - _$ListMediaCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListMedia - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListMediaImplCopyWith<$Res> - implements $ListMediaCopyWith<$Res> { - factory _$$ListMediaImplCopyWith( - _$ListMediaImpl value, $Res Function(_$ListMediaImpl) then) = - __$$ListMediaImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? page, int? limit, String? auth}); -} - -/// @nodoc -class __$$ListMediaImplCopyWithImpl<$Res> - extends _$ListMediaCopyWithImpl<$Res, _$ListMediaImpl> - implements _$$ListMediaImplCopyWith<$Res> { - __$$ListMediaImplCopyWithImpl( - _$ListMediaImpl _value, $Res Function(_$ListMediaImpl) _then) - : super(_value, _then); - - /// Create a copy of ListMedia - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? page = freezed, - Object? limit = freezed, - Object? auth = freezed, - }) { - return _then(_$ListMediaImpl( - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ListMediaImpl extends _ListMedia { - const _$ListMediaImpl({this.page, this.limit, this.auth}) : super._(); - - factory _$ListMediaImpl.fromJson(Map json) => - _$$ListMediaImplFromJson(json); - - @override - final int? page; -// v0.19.4 (optional) - @override - final int? limit; -// v0.19.4 (optional) - @override - final String? auth; - - @override - String toString() { - return 'ListMedia(page: $page, limit: $limit, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListMediaImpl && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, page, limit, auth); - - /// Create a copy of ListMedia - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListMediaImplCopyWith<_$ListMediaImpl> get copyWith => - __$$ListMediaImplCopyWithImpl<_$ListMediaImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListMediaImplToJson( - this, - ); - } -} - -abstract class _ListMedia extends ListMedia { - const factory _ListMedia( - {final int? page, - final int? limit, - final String? auth}) = _$ListMediaImpl; - const _ListMedia._() : super._(); - - factory _ListMedia.fromJson(Map json) = - _$ListMediaImpl.fromJson; - - @override - int? get page; // v0.19.4 (optional) - @override - int? get limit; // v0.19.4 (optional) - @override - String? get auth; - - /// Create a copy of ListMedia - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListMediaImplCopyWith<_$ListMediaImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GenerateTotpSecret _$GenerateTotpSecretFromJson(Map json) { - return _GenerateTotpSecret.fromJson(json); -} - -/// @nodoc -mixin _$GenerateTotpSecret { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GenerateTotpSecret to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GenerateTotpSecret - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GenerateTotpSecretCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GenerateTotpSecretCopyWith<$Res> { - factory $GenerateTotpSecretCopyWith( - GenerateTotpSecret value, $Res Function(GenerateTotpSecret) then) = - _$GenerateTotpSecretCopyWithImpl<$Res, GenerateTotpSecret>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GenerateTotpSecretCopyWithImpl<$Res, $Val extends GenerateTotpSecret> - implements $GenerateTotpSecretCopyWith<$Res> { - _$GenerateTotpSecretCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GenerateTotpSecret - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GenerateTotpSecretImplCopyWith<$Res> - implements $GenerateTotpSecretCopyWith<$Res> { - factory _$$GenerateTotpSecretImplCopyWith(_$GenerateTotpSecretImpl value, - $Res Function(_$GenerateTotpSecretImpl) then) = - __$$GenerateTotpSecretImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GenerateTotpSecretImplCopyWithImpl<$Res> - extends _$GenerateTotpSecretCopyWithImpl<$Res, _$GenerateTotpSecretImpl> - implements _$$GenerateTotpSecretImplCopyWith<$Res> { - __$$GenerateTotpSecretImplCopyWithImpl(_$GenerateTotpSecretImpl _value, - $Res Function(_$GenerateTotpSecretImpl) _then) - : super(_value, _then); - - /// Create a copy of GenerateTotpSecret - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GenerateTotpSecretImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GenerateTotpSecretImpl extends _GenerateTotpSecret { - const _$GenerateTotpSecretImpl({this.auth}) : super._(); - - factory _$GenerateTotpSecretImpl.fromJson(Map json) => - _$$GenerateTotpSecretImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GenerateTotpSecret(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GenerateTotpSecretImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GenerateTotpSecret - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GenerateTotpSecretImplCopyWith<_$GenerateTotpSecretImpl> get copyWith => - __$$GenerateTotpSecretImplCopyWithImpl<_$GenerateTotpSecretImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GenerateTotpSecretImplToJson( - this, - ); - } -} - -abstract class _GenerateTotpSecret extends GenerateTotpSecret { - const factory _GenerateTotpSecret({final String? auth}) = - _$GenerateTotpSecretImpl; - const _GenerateTotpSecret._() : super._(); - - factory _GenerateTotpSecret.fromJson(Map json) = - _$GenerateTotpSecretImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GenerateTotpSecret - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GenerateTotpSecretImplCopyWith<_$GenerateTotpSecretImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ExportSettings _$ExportSettingsFromJson(Map json) { - return _ExportSettings.fromJson(json); -} - -/// @nodoc -mixin _$ExportSettings { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ExportSettings to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ExportSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ExportSettingsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ExportSettingsCopyWith<$Res> { - factory $ExportSettingsCopyWith( - ExportSettings value, $Res Function(ExportSettings) then) = - _$ExportSettingsCopyWithImpl<$Res, ExportSettings>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$ExportSettingsCopyWithImpl<$Res, $Val extends ExportSettings> - implements $ExportSettingsCopyWith<$Res> { - _$ExportSettingsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ExportSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ExportSettingsImplCopyWith<$Res> - implements $ExportSettingsCopyWith<$Res> { - factory _$$ExportSettingsImplCopyWith(_$ExportSettingsImpl value, - $Res Function(_$ExportSettingsImpl) then) = - __$$ExportSettingsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$ExportSettingsImplCopyWithImpl<$Res> - extends _$ExportSettingsCopyWithImpl<$Res, _$ExportSettingsImpl> - implements _$$ExportSettingsImplCopyWith<$Res> { - __$$ExportSettingsImplCopyWithImpl( - _$ExportSettingsImpl _value, $Res Function(_$ExportSettingsImpl) _then) - : super(_value, _then); - - /// Create a copy of ExportSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$ExportSettingsImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ExportSettingsImpl extends _ExportSettings { - const _$ExportSettingsImpl({this.auth}) : super._(); - - factory _$ExportSettingsImpl.fromJson(Map json) => - _$$ExportSettingsImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'ExportSettings(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ExportSettingsImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of ExportSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ExportSettingsImplCopyWith<_$ExportSettingsImpl> get copyWith => - __$$ExportSettingsImplCopyWithImpl<_$ExportSettingsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ExportSettingsImplToJson( - this, - ); - } -} - -abstract class _ExportSettings extends ExportSettings { - const factory _ExportSettings({final String? auth}) = _$ExportSettingsImpl; - const _ExportSettings._() : super._(); - - factory _ExportSettings.fromJson(Map json) = - _$ExportSettingsImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of ExportSettings - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ExportSettingsImplCopyWith<_$ExportSettingsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ImportSettings _$ImportSettingsFromJson(Map json) { - return _ImportSettings.fromJson(json); -} - -/// @nodoc -mixin _$ImportSettings { - String? get auth => throw _privateConstructorUsedError; - dynamic get data => throw _privateConstructorUsedError; - - /// Serializes this ImportSettings to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ImportSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ImportSettingsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ImportSettingsCopyWith<$Res> { - factory $ImportSettingsCopyWith( - ImportSettings value, $Res Function(ImportSettings) then) = - _$ImportSettingsCopyWithImpl<$Res, ImportSettings>; - @useResult - $Res call({String? auth, dynamic data}); -} - -/// @nodoc -class _$ImportSettingsCopyWithImpl<$Res, $Val extends ImportSettings> - implements $ImportSettingsCopyWith<$Res> { - _$ImportSettingsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ImportSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - Object? data = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - data: freezed == data - ? _value.data - : data // ignore: cast_nullable_to_non_nullable - as dynamic, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ImportSettingsImplCopyWith<$Res> - implements $ImportSettingsCopyWith<$Res> { - factory _$$ImportSettingsImplCopyWith(_$ImportSettingsImpl value, - $Res Function(_$ImportSettingsImpl) then) = - __$$ImportSettingsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth, dynamic data}); -} - -/// @nodoc -class __$$ImportSettingsImplCopyWithImpl<$Res> - extends _$ImportSettingsCopyWithImpl<$Res, _$ImportSettingsImpl> - implements _$$ImportSettingsImplCopyWith<$Res> { - __$$ImportSettingsImplCopyWithImpl( - _$ImportSettingsImpl _value, $Res Function(_$ImportSettingsImpl) _then) - : super(_value, _then); - - /// Create a copy of ImportSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - Object? data = freezed, - }) { - return _then(_$ImportSettingsImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - data: freezed == data - ? _value.data - : data // ignore: cast_nullable_to_non_nullable - as dynamic, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ImportSettingsImpl extends _ImportSettings { - const _$ImportSettingsImpl({this.auth, this.data}) : super._(); - - factory _$ImportSettingsImpl.fromJson(Map json) => - _$$ImportSettingsImplFromJson(json); - - @override - final String? auth; - @override - final dynamic data; - - @override - String toString() { - return 'ImportSettings(auth: $auth, data: $data)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ImportSettingsImpl && - (identical(other.auth, auth) || other.auth == auth) && - const DeepCollectionEquality().equals(other.data, data)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, auth, const DeepCollectionEquality().hash(data)); - - /// Create a copy of ImportSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ImportSettingsImplCopyWith<_$ImportSettingsImpl> get copyWith => - __$$ImportSettingsImplCopyWithImpl<_$ImportSettingsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ImportSettingsImplToJson( - this, - ); - } -} - -abstract class _ImportSettings extends ImportSettings { - const factory _ImportSettings({final String? auth, final dynamic data}) = - _$ImportSettingsImpl; - const _ImportSettings._() : super._(); - - factory _ImportSettings.fromJson(Map json) = - _$ImportSettingsImpl.fromJson; - - @override - String? get auth; - @override - dynamic get data; - - /// Create a copy of ImportSettings - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ImportSettingsImplCopyWith<_$ImportSettingsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ValidateAuth _$ValidateAuthFromJson(Map json) { - return _ValidateAuth.fromJson(json); -} - -/// @nodoc -mixin _$ValidateAuth { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ValidateAuth to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ValidateAuth - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ValidateAuthCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ValidateAuthCopyWith<$Res> { - factory $ValidateAuthCopyWith( - ValidateAuth value, $Res Function(ValidateAuth) then) = - _$ValidateAuthCopyWithImpl<$Res, ValidateAuth>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$ValidateAuthCopyWithImpl<$Res, $Val extends ValidateAuth> - implements $ValidateAuthCopyWith<$Res> { - _$ValidateAuthCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ValidateAuth - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ValidateAuthImplCopyWith<$Res> - implements $ValidateAuthCopyWith<$Res> { - factory _$$ValidateAuthImplCopyWith( - _$ValidateAuthImpl value, $Res Function(_$ValidateAuthImpl) then) = - __$$ValidateAuthImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$ValidateAuthImplCopyWithImpl<$Res> - extends _$ValidateAuthCopyWithImpl<$Res, _$ValidateAuthImpl> - implements _$$ValidateAuthImplCopyWith<$Res> { - __$$ValidateAuthImplCopyWithImpl( - _$ValidateAuthImpl _value, $Res Function(_$ValidateAuthImpl) _then) - : super(_value, _then); - - /// Create a copy of ValidateAuth - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$ValidateAuthImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ValidateAuthImpl extends _ValidateAuth { - const _$ValidateAuthImpl({this.auth}) : super._(); - - factory _$ValidateAuthImpl.fromJson(Map json) => - _$$ValidateAuthImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'ValidateAuth(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ValidateAuthImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of ValidateAuth - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ValidateAuthImplCopyWith<_$ValidateAuthImpl> get copyWith => - __$$ValidateAuthImplCopyWithImpl<_$ValidateAuthImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ValidateAuthImplToJson( - this, - ); - } -} - -abstract class _ValidateAuth extends ValidateAuth { - const factory _ValidateAuth({final String? auth}) = _$ValidateAuthImpl; - const _ValidateAuth._() : super._(); - - factory _ValidateAuth.fromJson(Map json) = - _$ValidateAuthImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of ValidateAuth - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ValidateAuthImplCopyWith<_$ValidateAuthImpl> get copyWith => - throw _privateConstructorUsedError; -} - -UpdateTotp _$UpdateTotpFromJson(Map json) { - return _UpdateTotp.fromJson(json); -} - -/// @nodoc -mixin _$UpdateTotp { - String? get auth => throw _privateConstructorUsedError; - String get totpToken => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool get enabled => throw _privateConstructorUsedError; - - /// Serializes this UpdateTotp to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of UpdateTotp - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $UpdateTotpCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $UpdateTotpCopyWith<$Res> { - factory $UpdateTotpCopyWith( - UpdateTotp value, $Res Function(UpdateTotp) then) = - _$UpdateTotpCopyWithImpl<$Res, UpdateTotp>; - @useResult - $Res call({String? auth, String totpToken, bool enabled}); -} - -/// @nodoc -class _$UpdateTotpCopyWithImpl<$Res, $Val extends UpdateTotp> - implements $UpdateTotpCopyWith<$Res> { - _$UpdateTotpCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of UpdateTotp - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - Object? totpToken = null, - Object? enabled = null, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - totpToken: null == totpToken - ? _value.totpToken - : totpToken // ignore: cast_nullable_to_non_nullable - as String, - enabled: null == enabled - ? _value.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$UpdateTotpImplCopyWith<$Res> - implements $UpdateTotpCopyWith<$Res> { - factory _$$UpdateTotpImplCopyWith( - _$UpdateTotpImpl value, $Res Function(_$UpdateTotpImpl) then) = - __$$UpdateTotpImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth, String totpToken, bool enabled}); -} - -/// @nodoc -class __$$UpdateTotpImplCopyWithImpl<$Res> - extends _$UpdateTotpCopyWithImpl<$Res, _$UpdateTotpImpl> - implements _$$UpdateTotpImplCopyWith<$Res> { - __$$UpdateTotpImplCopyWithImpl( - _$UpdateTotpImpl _value, $Res Function(_$UpdateTotpImpl) _then) - : super(_value, _then); - - /// Create a copy of UpdateTotp - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - Object? totpToken = null, - Object? enabled = null, - }) { - return _then(_$UpdateTotpImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - totpToken: null == totpToken - ? _value.totpToken - : totpToken // ignore: cast_nullable_to_non_nullable - as String, - enabled: null == enabled - ? _value.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@apiSerde -class _$UpdateTotpImpl extends _UpdateTotp { - const _$UpdateTotpImpl( - {this.auth, required this.totpToken, required this.enabled}) - : super._(); - - factory _$UpdateTotpImpl.fromJson(Map json) => - _$$UpdateTotpImplFromJson(json); - - @override - final String? auth; - @override - final String totpToken; -// v0.19.0 (required) - @override - final bool enabled; - - @override - String toString() { - return 'UpdateTotp(auth: $auth, totpToken: $totpToken, enabled: $enabled)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$UpdateTotpImpl && - (identical(other.auth, auth) || other.auth == auth) && - (identical(other.totpToken, totpToken) || - other.totpToken == totpToken) && - (identical(other.enabled, enabled) || other.enabled == enabled)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth, totpToken, enabled); - - /// Create a copy of UpdateTotp - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$UpdateTotpImplCopyWith<_$UpdateTotpImpl> get copyWith => - __$$UpdateTotpImplCopyWithImpl<_$UpdateTotpImpl>(this, _$identity); - - @override - Map toJson() { - return _$$UpdateTotpImplToJson( - this, - ); - } -} - -abstract class _UpdateTotp extends UpdateTotp { - const factory _UpdateTotp( - {final String? auth, - required final String totpToken, - required final bool enabled}) = _$UpdateTotpImpl; - const _UpdateTotp._() : super._(); - - factory _UpdateTotp.fromJson(Map json) = - _$UpdateTotpImpl.fromJson; - - @override - String? get auth; - @override - String get totpToken; // v0.19.0 (required) - @override - bool get enabled; - - /// Create a copy of UpdateTotp - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$UpdateTotpImplCopyWith<_$UpdateTotpImpl> get copyWith => - throw _privateConstructorUsedError; -} - -Register _$RegisterFromJson(Map json) { - return _Register.fromJson(json); -} - -/// @nodoc -mixin _$Register { - String get username => throw _privateConstructorUsedError; // v0.18.0 - String get password => throw _privateConstructorUsedError; // v0.18.0 - String get passwordVerify => throw _privateConstructorUsedError; // v0.18.0 - bool? get showNsfw => throw _privateConstructorUsedError; // v0.18.0 - String? get email => throw _privateConstructorUsedError; // v0.18.0 - String? get captchaUuid => throw _privateConstructorUsedError; // v0.18.0 - String? get captchaAnswer => throw _privateConstructorUsedError; // v0.18.0 - String? get honeypot => throw _privateConstructorUsedError; // v0.18.0 - String? get answer => throw _privateConstructorUsedError; - - /// Serializes this Register to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Register - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RegisterCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RegisterCopyWith<$Res> { - factory $RegisterCopyWith(Register value, $Res Function(Register) then) = - _$RegisterCopyWithImpl<$Res, Register>; - @useResult - $Res call( - {String username, - String password, - String passwordVerify, - bool? showNsfw, - String? email, - String? captchaUuid, - String? captchaAnswer, - String? honeypot, - String? answer}); -} - -/// @nodoc -class _$RegisterCopyWithImpl<$Res, $Val extends Register> - implements $RegisterCopyWith<$Res> { - _$RegisterCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Register - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? username = null, - Object? password = null, - Object? passwordVerify = null, - Object? showNsfw = freezed, - Object? email = freezed, - Object? captchaUuid = freezed, - Object? captchaAnswer = freezed, - Object? honeypot = freezed, - Object? answer = freezed, - }) { - return _then(_value.copyWith( - username: null == username - ? _value.username - : username // ignore: cast_nullable_to_non_nullable - as String, - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - passwordVerify: null == passwordVerify - ? _value.passwordVerify - : passwordVerify // ignore: cast_nullable_to_non_nullable - as String, - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - email: freezed == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String?, - captchaUuid: freezed == captchaUuid - ? _value.captchaUuid - : captchaUuid // ignore: cast_nullable_to_non_nullable - as String?, - captchaAnswer: freezed == captchaAnswer - ? _value.captchaAnswer - : captchaAnswer // ignore: cast_nullable_to_non_nullable - as String?, - honeypot: freezed == honeypot - ? _value.honeypot - : honeypot // ignore: cast_nullable_to_non_nullable - as String?, - answer: freezed == answer - ? _value.answer - : answer // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$RegisterImplCopyWith<$Res> - implements $RegisterCopyWith<$Res> { - factory _$$RegisterImplCopyWith( - _$RegisterImpl value, $Res Function(_$RegisterImpl) then) = - __$$RegisterImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String username, - String password, - String passwordVerify, - bool? showNsfw, - String? email, - String? captchaUuid, - String? captchaAnswer, - String? honeypot, - String? answer}); -} - -/// @nodoc -class __$$RegisterImplCopyWithImpl<$Res> - extends _$RegisterCopyWithImpl<$Res, _$RegisterImpl> - implements _$$RegisterImplCopyWith<$Res> { - __$$RegisterImplCopyWithImpl( - _$RegisterImpl _value, $Res Function(_$RegisterImpl) _then) - : super(_value, _then); - - /// Create a copy of Register - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? username = null, - Object? password = null, - Object? passwordVerify = null, - Object? showNsfw = freezed, - Object? email = freezed, - Object? captchaUuid = freezed, - Object? captchaAnswer = freezed, - Object? honeypot = freezed, - Object? answer = freezed, - }) { - return _then(_$RegisterImpl( - username: null == username - ? _value.username - : username // ignore: cast_nullable_to_non_nullable - as String, - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - passwordVerify: null == passwordVerify - ? _value.passwordVerify - : passwordVerify // ignore: cast_nullable_to_non_nullable - as String, - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - email: freezed == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String?, - captchaUuid: freezed == captchaUuid - ? _value.captchaUuid - : captchaUuid // ignore: cast_nullable_to_non_nullable - as String?, - captchaAnswer: freezed == captchaAnswer - ? _value.captchaAnswer - : captchaAnswer // ignore: cast_nullable_to_non_nullable - as String?, - honeypot: freezed == honeypot - ? _value.honeypot - : honeypot // ignore: cast_nullable_to_non_nullable - as String?, - answer: freezed == answer - ? _value.answer - : answer // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$RegisterImpl extends _Register { - const _$RegisterImpl( - {required this.username, - required this.password, - required this.passwordVerify, - this.showNsfw, - this.email, - this.captchaUuid, - this.captchaAnswer, - this.honeypot, - this.answer}) - : super._(); - - factory _$RegisterImpl.fromJson(Map json) => - _$$RegisterImplFromJson(json); - - @override - final String username; -// v0.18.0 - @override - final String password; -// v0.18.0 - @override - final String passwordVerify; -// v0.18.0 - @override - final bool? showNsfw; -// v0.18.0 - @override - final String? email; -// v0.18.0 - @override - final String? captchaUuid; -// v0.18.0 - @override - final String? captchaAnswer; -// v0.18.0 - @override - final String? honeypot; -// v0.18.0 - @override - final String? answer; - - @override - String toString() { - return 'Register(username: $username, password: $password, passwordVerify: $passwordVerify, showNsfw: $showNsfw, email: $email, captchaUuid: $captchaUuid, captchaAnswer: $captchaAnswer, honeypot: $honeypot, answer: $answer)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RegisterImpl && - (identical(other.username, username) || - other.username == username) && - (identical(other.password, password) || - other.password == password) && - (identical(other.passwordVerify, passwordVerify) || - other.passwordVerify == passwordVerify) && - (identical(other.showNsfw, showNsfw) || - other.showNsfw == showNsfw) && - (identical(other.email, email) || other.email == email) && - (identical(other.captchaUuid, captchaUuid) || - other.captchaUuid == captchaUuid) && - (identical(other.captchaAnswer, captchaAnswer) || - other.captchaAnswer == captchaAnswer) && - (identical(other.honeypot, honeypot) || - other.honeypot == honeypot) && - (identical(other.answer, answer) || other.answer == answer)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - username, - password, - passwordVerify, - showNsfw, - email, - captchaUuid, - captchaAnswer, - honeypot, - answer); - - /// Create a copy of Register - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RegisterImplCopyWith<_$RegisterImpl> get copyWith => - __$$RegisterImplCopyWithImpl<_$RegisterImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RegisterImplToJson( - this, - ); - } -} - -abstract class _Register extends Register { - const factory _Register( - {required final String username, - required final String password, - required final String passwordVerify, - final bool? showNsfw, - final String? email, - final String? captchaUuid, - final String? captchaAnswer, - final String? honeypot, - final String? answer}) = _$RegisterImpl; - const _Register._() : super._(); - - factory _Register.fromJson(Map json) = - _$RegisterImpl.fromJson; - - @override - String get username; // v0.18.0 - @override - String get password; // v0.18.0 - @override - String get passwordVerify; // v0.18.0 - @override - bool? get showNsfw; // v0.18.0 - @override - String? get email; // v0.18.0 - @override - String? get captchaUuid; // v0.18.0 - @override - String? get captchaAnswer; // v0.18.0 - @override - String? get honeypot; // v0.18.0 - @override - String? get answer; - - /// Create a copy of Register - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RegisterImplCopyWith<_$RegisterImpl> get copyWith => - throw _privateConstructorUsedError; -} - -Login _$LoginFromJson(Map json) { - return _Login.fromJson(json); -} - -/// @nodoc -mixin _$Login { - String get usernameOrEmail => throw _privateConstructorUsedError; // v0.18.0 - String get password => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'totp_2fa_token') - String? get totp2faToken => throw _privateConstructorUsedError; - - /// Serializes this Login to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Login - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LoginCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LoginCopyWith<$Res> { - factory $LoginCopyWith(Login value, $Res Function(Login) then) = - _$LoginCopyWithImpl<$Res, Login>; - @useResult - $Res call( - {String usernameOrEmail, - String password, - @JsonKey(name: 'totp_2fa_token') String? totp2faToken}); -} - -/// @nodoc -class _$LoginCopyWithImpl<$Res, $Val extends Login> - implements $LoginCopyWith<$Res> { - _$LoginCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Login - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? usernameOrEmail = null, - Object? password = null, - Object? totp2faToken = freezed, - }) { - return _then(_value.copyWith( - usernameOrEmail: null == usernameOrEmail - ? _value.usernameOrEmail - : usernameOrEmail // ignore: cast_nullable_to_non_nullable - as String, - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - totp2faToken: freezed == totp2faToken - ? _value.totp2faToken - : totp2faToken // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LoginImplCopyWith<$Res> implements $LoginCopyWith<$Res> { - factory _$$LoginImplCopyWith( - _$LoginImpl value, $Res Function(_$LoginImpl) then) = - __$$LoginImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String usernameOrEmail, - String password, - @JsonKey(name: 'totp_2fa_token') String? totp2faToken}); -} - -/// @nodoc -class __$$LoginImplCopyWithImpl<$Res> - extends _$LoginCopyWithImpl<$Res, _$LoginImpl> - implements _$$LoginImplCopyWith<$Res> { - __$$LoginImplCopyWithImpl( - _$LoginImpl _value, $Res Function(_$LoginImpl) _then) - : super(_value, _then); - - /// Create a copy of Login - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? usernameOrEmail = null, - Object? password = null, - Object? totp2faToken = freezed, - }) { - return _then(_$LoginImpl( - usernameOrEmail: null == usernameOrEmail - ? _value.usernameOrEmail - : usernameOrEmail // ignore: cast_nullable_to_non_nullable - as String, - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - totp2faToken: freezed == totp2faToken - ? _value.totp2faToken - : totp2faToken // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$LoginImpl extends _Login { - const _$LoginImpl( - {required this.usernameOrEmail, - required this.password, - @JsonKey(name: 'totp_2fa_token') this.totp2faToken}) - : super._(); - - factory _$LoginImpl.fromJson(Map json) => - _$$LoginImplFromJson(json); - - @override - final String usernameOrEmail; -// v0.18.0 - @override - final String password; -// v0.18.0 - @override - @JsonKey(name: 'totp_2fa_token') - final String? totp2faToken; - - @override - String toString() { - return 'Login(usernameOrEmail: $usernameOrEmail, password: $password, totp2faToken: $totp2faToken)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LoginImpl && - (identical(other.usernameOrEmail, usernameOrEmail) || - other.usernameOrEmail == usernameOrEmail) && - (identical(other.password, password) || - other.password == password) && - (identical(other.totp2faToken, totp2faToken) || - other.totp2faToken == totp2faToken)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, usernameOrEmail, password, totp2faToken); - - /// Create a copy of Login - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LoginImplCopyWith<_$LoginImpl> get copyWith => - __$$LoginImplCopyWithImpl<_$LoginImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LoginImplToJson( - this, - ); - } -} - -abstract class _Login extends Login { - const factory _Login( - {required final String usernameOrEmail, - required final String password, - @JsonKey(name: 'totp_2fa_token') final String? totp2faToken}) = - _$LoginImpl; - const _Login._() : super._(); - - factory _Login.fromJson(Map json) = _$LoginImpl.fromJson; - - @override - String get usernameOrEmail; // v0.18.0 - @override - String get password; // v0.18.0 - @override - @JsonKey(name: 'totp_2fa_token') - String? get totp2faToken; - - /// Create a copy of Login - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LoginImplCopyWith<_$LoginImpl> get copyWith => - throw _privateConstructorUsedError; -} - -Logout _$LogoutFromJson(Map json) { - return _Logout.fromJson(json); -} - -/// @nodoc -mixin _$Logout { - /// Serializes this Logout to a JSON map. - Map toJson() => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LogoutCopyWith<$Res> { - factory $LogoutCopyWith(Logout value, $Res Function(Logout) then) = - _$LogoutCopyWithImpl<$Res, Logout>; -} - -/// @nodoc -class _$LogoutCopyWithImpl<$Res, $Val extends Logout> - implements $LogoutCopyWith<$Res> { - _$LogoutCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Logout - /// with the given fields replaced by the non-null parameter values. -} - -/// @nodoc -abstract class _$$LogoutImplCopyWith<$Res> { - factory _$$LogoutImplCopyWith( - _$LogoutImpl value, $Res Function(_$LogoutImpl) then) = - __$$LogoutImplCopyWithImpl<$Res>; -} - -/// @nodoc -class __$$LogoutImplCopyWithImpl<$Res> - extends _$LogoutCopyWithImpl<$Res, _$LogoutImpl> - implements _$$LogoutImplCopyWith<$Res> { - __$$LogoutImplCopyWithImpl( - _$LogoutImpl _value, $Res Function(_$LogoutImpl) _then) - : super(_value, _then); - - /// Create a copy of Logout - /// with the given fields replaced by the non-null parameter values. -} - -/// @nodoc - -@apiSerde -class _$LogoutImpl extends _Logout { - const _$LogoutImpl() : super._(); - - factory _$LogoutImpl.fromJson(Map json) => - _$$LogoutImplFromJson(json); - - @override - String toString() { - return 'Logout()'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && other is _$LogoutImpl); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => runtimeType.hashCode; - - @override - Map toJson() { - return _$$LogoutImplToJson( - this, - ); - } -} - -abstract class _Logout extends Logout { - const factory _Logout() = _$LogoutImpl; - const _Logout._() : super._(); - - factory _Logout.fromJson(Map json) = _$LogoutImpl.fromJson; -} - -GetPersonDetails _$GetPersonDetailsFromJson(Map json) { - return _GetPersonDetails.fromJson(json); -} - -/// @nodoc -mixin _$GetPersonDetails { - int? get personId => throw _privateConstructorUsedError; // v0.18.0 - String? get username => throw _privateConstructorUsedError; // v0.18.0 - SortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool? get savedOnly => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetPersonDetails to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPersonDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPersonDetailsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPersonDetailsCopyWith<$Res> { - factory $GetPersonDetailsCopyWith( - GetPersonDetails value, $Res Function(GetPersonDetails) then) = - _$GetPersonDetailsCopyWithImpl<$Res, GetPersonDetails>; - @useResult - $Res call( - {int? personId, - String? username, - SortType? sort, - int? page, - int? limit, - int? communityId, - bool? savedOnly, - String? auth}); -} - -/// @nodoc -class _$GetPersonDetailsCopyWithImpl<$Res, $Val extends GetPersonDetails> - implements $GetPersonDetailsCopyWith<$Res> { - _$GetPersonDetailsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPersonDetails - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = freezed, - Object? username = freezed, - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? communityId = freezed, - Object? savedOnly = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personId: freezed == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int?, - username: freezed == username - ? _value.username - : username // ignore: cast_nullable_to_non_nullable - as String?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - savedOnly: freezed == savedOnly - ? _value.savedOnly - : savedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPersonDetailsImplCopyWith<$Res> - implements $GetPersonDetailsCopyWith<$Res> { - factory _$$GetPersonDetailsImplCopyWith(_$GetPersonDetailsImpl value, - $Res Function(_$GetPersonDetailsImpl) then) = - __$$GetPersonDetailsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? personId, - String? username, - SortType? sort, - int? page, - int? limit, - int? communityId, - bool? savedOnly, - String? auth}); -} - -/// @nodoc -class __$$GetPersonDetailsImplCopyWithImpl<$Res> - extends _$GetPersonDetailsCopyWithImpl<$Res, _$GetPersonDetailsImpl> - implements _$$GetPersonDetailsImplCopyWith<$Res> { - __$$GetPersonDetailsImplCopyWithImpl(_$GetPersonDetailsImpl _value, - $Res Function(_$GetPersonDetailsImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPersonDetails - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = freezed, - Object? username = freezed, - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? communityId = freezed, - Object? savedOnly = freezed, - Object? auth = freezed, - }) { - return _then(_$GetPersonDetailsImpl( - personId: freezed == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int?, - username: freezed == username - ? _value.username - : username // ignore: cast_nullable_to_non_nullable - as String?, - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as SortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - savedOnly: freezed == savedOnly - ? _value.savedOnly - : savedOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetPersonDetailsImpl extends _GetPersonDetails { - const _$GetPersonDetailsImpl( - {this.personId, - this.username, - this.sort, - this.page, - this.limit, - this.communityId, - this.savedOnly, - this.auth}) - : super._(); - - factory _$GetPersonDetailsImpl.fromJson(Map json) => - _$$GetPersonDetailsImplFromJson(json); - - @override - final int? personId; -// v0.18.0 - @override - final String? username; -// v0.18.0 - @override - final SortType? sort; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final int? communityId; -// v0.18.0 - @override - final bool? savedOnly; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetPersonDetails(personId: $personId, username: $username, sort: $sort, page: $page, limit: $limit, communityId: $communityId, savedOnly: $savedOnly, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPersonDetailsImpl && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.username, username) || - other.username == username) && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.savedOnly, savedOnly) || - other.savedOnly == savedOnly) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personId, username, sort, page, - limit, communityId, savedOnly, auth); - - /// Create a copy of GetPersonDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPersonDetailsImplCopyWith<_$GetPersonDetailsImpl> get copyWith => - __$$GetPersonDetailsImplCopyWithImpl<_$GetPersonDetailsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetPersonDetailsImplToJson( - this, - ); - } -} - -abstract class _GetPersonDetails extends GetPersonDetails { - const factory _GetPersonDetails( - {final int? personId, - final String? username, - final SortType? sort, - final int? page, - final int? limit, - final int? communityId, - final bool? savedOnly, - final String? auth}) = _$GetPersonDetailsImpl; - const _GetPersonDetails._() : super._(); - - factory _GetPersonDetails.fromJson(Map json) = - _$GetPersonDetailsImpl.fromJson; - - @override - int? get personId; // v0.18.0 - @override - String? get username; // v0.18.0 - @override - SortType? get sort; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - int? get communityId; // v0.18.0 - @override - bool? get savedOnly; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetPersonDetails - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPersonDetailsImplCopyWith<_$GetPersonDetailsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetPersonMentions _$GetPersonMentionsFromJson(Map json) { - return _GetPersonMentions.fromJson(json); -} - -/// @nodoc -mixin _$GetPersonMentions { - CommentSortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - bool? get unreadOnly => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetPersonMentions to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPersonMentions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPersonMentionsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPersonMentionsCopyWith<$Res> { - factory $GetPersonMentionsCopyWith( - GetPersonMentions value, $Res Function(GetPersonMentions) then) = - _$GetPersonMentionsCopyWithImpl<$Res, GetPersonMentions>; - @useResult - $Res call( - {CommentSortType? sort, - int? page, - int? limit, - bool? unreadOnly, - String? auth}); -} - -/// @nodoc -class _$GetPersonMentionsCopyWithImpl<$Res, $Val extends GetPersonMentions> - implements $GetPersonMentionsCopyWith<$Res> { - _$GetPersonMentionsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPersonMentions - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? unreadOnly = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as CommentSortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPersonMentionsImplCopyWith<$Res> - implements $GetPersonMentionsCopyWith<$Res> { - factory _$$GetPersonMentionsImplCopyWith(_$GetPersonMentionsImpl value, - $Res Function(_$GetPersonMentionsImpl) then) = - __$$GetPersonMentionsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommentSortType? sort, - int? page, - int? limit, - bool? unreadOnly, - String? auth}); -} - -/// @nodoc -class __$$GetPersonMentionsImplCopyWithImpl<$Res> - extends _$GetPersonMentionsCopyWithImpl<$Res, _$GetPersonMentionsImpl> - implements _$$GetPersonMentionsImplCopyWith<$Res> { - __$$GetPersonMentionsImplCopyWithImpl(_$GetPersonMentionsImpl _value, - $Res Function(_$GetPersonMentionsImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPersonMentions - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? unreadOnly = freezed, - Object? auth = freezed, - }) { - return _then(_$GetPersonMentionsImpl( - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as CommentSortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetPersonMentionsImpl extends _GetPersonMentions { - const _$GetPersonMentionsImpl( - {this.sort, this.page, this.limit, this.unreadOnly, this.auth}) - : super._(); - - factory _$GetPersonMentionsImpl.fromJson(Map json) => - _$$GetPersonMentionsImplFromJson(json); - - @override - final CommentSortType? sort; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final bool? unreadOnly; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetPersonMentions(sort: $sort, page: $page, limit: $limit, unreadOnly: $unreadOnly, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPersonMentionsImpl && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.unreadOnly, unreadOnly) || - other.unreadOnly == unreadOnly) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, sort, page, limit, unreadOnly, auth); - - /// Create a copy of GetPersonMentions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPersonMentionsImplCopyWith<_$GetPersonMentionsImpl> get copyWith => - __$$GetPersonMentionsImplCopyWithImpl<_$GetPersonMentionsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetPersonMentionsImplToJson( - this, - ); - } -} - -abstract class _GetPersonMentions extends GetPersonMentions { - const factory _GetPersonMentions( - {final CommentSortType? sort, - final int? page, - final int? limit, - final bool? unreadOnly, - final String? auth}) = _$GetPersonMentionsImpl; - const _GetPersonMentions._() : super._(); - - factory _GetPersonMentions.fromJson(Map json) = - _$GetPersonMentionsImpl.fromJson; - - @override - CommentSortType? get sort; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - bool? get unreadOnly; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetPersonMentions - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPersonMentionsImplCopyWith<_$GetPersonMentionsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -MarkPersonMentionAsRead _$MarkPersonMentionAsReadFromJson( - Map json) { - return _MarkPersonMentionAsRead.fromJson(json); -} - -/// @nodoc -mixin _$MarkPersonMentionAsRead { - int get personMentionId => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this MarkPersonMentionAsRead to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MarkPersonMentionAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MarkPersonMentionAsReadCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MarkPersonMentionAsReadCopyWith<$Res> { - factory $MarkPersonMentionAsReadCopyWith(MarkPersonMentionAsRead value, - $Res Function(MarkPersonMentionAsRead) then) = - _$MarkPersonMentionAsReadCopyWithImpl<$Res, MarkPersonMentionAsRead>; - @useResult - $Res call({int personMentionId, bool read, String? auth}); -} - -/// @nodoc -class _$MarkPersonMentionAsReadCopyWithImpl<$Res, - $Val extends MarkPersonMentionAsRead> - implements $MarkPersonMentionAsReadCopyWith<$Res> { - _$MarkPersonMentionAsReadCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MarkPersonMentionAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personMentionId = null, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personMentionId: null == personMentionId - ? _value.personMentionId - : personMentionId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$MarkPersonMentionAsReadImplCopyWith<$Res> - implements $MarkPersonMentionAsReadCopyWith<$Res> { - factory _$$MarkPersonMentionAsReadImplCopyWith( - _$MarkPersonMentionAsReadImpl value, - $Res Function(_$MarkPersonMentionAsReadImpl) then) = - __$$MarkPersonMentionAsReadImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int personMentionId, bool read, String? auth}); -} - -/// @nodoc -class __$$MarkPersonMentionAsReadImplCopyWithImpl<$Res> - extends _$MarkPersonMentionAsReadCopyWithImpl<$Res, - _$MarkPersonMentionAsReadImpl> - implements _$$MarkPersonMentionAsReadImplCopyWith<$Res> { - __$$MarkPersonMentionAsReadImplCopyWithImpl( - _$MarkPersonMentionAsReadImpl _value, - $Res Function(_$MarkPersonMentionAsReadImpl) _then) - : super(_value, _then); - - /// Create a copy of MarkPersonMentionAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personMentionId = null, - Object? read = null, - Object? auth = freezed, - }) { - return _then(_$MarkPersonMentionAsReadImpl( - personMentionId: null == personMentionId - ? _value.personMentionId - : personMentionId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$MarkPersonMentionAsReadImpl extends _MarkPersonMentionAsRead { - const _$MarkPersonMentionAsReadImpl( - {required this.personMentionId, required this.read, this.auth}) - : super._(); - - factory _$MarkPersonMentionAsReadImpl.fromJson(Map json) => - _$$MarkPersonMentionAsReadImplFromJson(json); - - @override - final int personMentionId; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'MarkPersonMentionAsRead(personMentionId: $personMentionId, read: $read, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MarkPersonMentionAsReadImpl && - (identical(other.personMentionId, personMentionId) || - other.personMentionId == personMentionId) && - (identical(other.read, read) || other.read == read) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personMentionId, read, auth); - - /// Create a copy of MarkPersonMentionAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MarkPersonMentionAsReadImplCopyWith<_$MarkPersonMentionAsReadImpl> - get copyWith => __$$MarkPersonMentionAsReadImplCopyWithImpl< - _$MarkPersonMentionAsReadImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MarkPersonMentionAsReadImplToJson( - this, - ); - } -} - -abstract class _MarkPersonMentionAsRead extends MarkPersonMentionAsRead { - const factory _MarkPersonMentionAsRead( - {required final int personMentionId, - required final bool read, - final String? auth}) = _$MarkPersonMentionAsReadImpl; - const _MarkPersonMentionAsRead._() : super._(); - - factory _MarkPersonMentionAsRead.fromJson(Map json) = - _$MarkPersonMentionAsReadImpl.fromJson; - - @override - int get personMentionId; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - String? get auth; - - /// Create a copy of MarkPersonMentionAsRead - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MarkPersonMentionAsReadImplCopyWith<_$MarkPersonMentionAsReadImpl> - get copyWith => throw _privateConstructorUsedError; -} - -GetReplies _$GetRepliesFromJson(Map json) { - return _GetReplies.fromJson(json); -} - -/// @nodoc -mixin _$GetReplies { - CommentSortType? get sort => throw _privateConstructorUsedError; // v0.18.0 - int? get page => throw _privateConstructorUsedError; // v0.18.0 - int? get limit => throw _privateConstructorUsedError; // v0.18.0 - bool? get unreadOnly => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetReplies to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetReplies - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetRepliesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetRepliesCopyWith<$Res> { - factory $GetRepliesCopyWith( - GetReplies value, $Res Function(GetReplies) then) = - _$GetRepliesCopyWithImpl<$Res, GetReplies>; - @useResult - $Res call( - {CommentSortType? sort, - int? page, - int? limit, - bool? unreadOnly, - String? auth}); -} - -/// @nodoc -class _$GetRepliesCopyWithImpl<$Res, $Val extends GetReplies> - implements $GetRepliesCopyWith<$Res> { - _$GetRepliesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetReplies - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? unreadOnly = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as CommentSortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetRepliesImplCopyWith<$Res> - implements $GetRepliesCopyWith<$Res> { - factory _$$GetRepliesImplCopyWith( - _$GetRepliesImpl value, $Res Function(_$GetRepliesImpl) then) = - __$$GetRepliesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommentSortType? sort, - int? page, - int? limit, - bool? unreadOnly, - String? auth}); -} - -/// @nodoc -class __$$GetRepliesImplCopyWithImpl<$Res> - extends _$GetRepliesCopyWithImpl<$Res, _$GetRepliesImpl> - implements _$$GetRepliesImplCopyWith<$Res> { - __$$GetRepliesImplCopyWithImpl( - _$GetRepliesImpl _value, $Res Function(_$GetRepliesImpl) _then) - : super(_value, _then); - - /// Create a copy of GetReplies - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? sort = freezed, - Object? page = freezed, - Object? limit = freezed, - Object? unreadOnly = freezed, - Object? auth = freezed, - }) { - return _then(_$GetRepliesImpl( - sort: freezed == sort - ? _value.sort - : sort // ignore: cast_nullable_to_non_nullable - as CommentSortType?, - page: freezed == page - ? _value.page - : page // ignore: cast_nullable_to_non_nullable - as int?, - limit: freezed == limit - ? _value.limit - : limit // ignore: cast_nullable_to_non_nullable - as int?, - unreadOnly: freezed == unreadOnly - ? _value.unreadOnly - : unreadOnly // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetRepliesImpl extends _GetReplies { - const _$GetRepliesImpl( - {this.sort, this.page, this.limit, this.unreadOnly, this.auth}) - : super._(); - - factory _$GetRepliesImpl.fromJson(Map json) => - _$$GetRepliesImplFromJson(json); - - @override - final CommentSortType? sort; -// v0.18.0 - @override - final int? page; -// v0.18.0 - @override - final int? limit; -// v0.18.0 - @override - final bool? unreadOnly; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetReplies(sort: $sort, page: $page, limit: $limit, unreadOnly: $unreadOnly, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetRepliesImpl && - (identical(other.sort, sort) || other.sort == sort) && - (identical(other.page, page) || other.page == page) && - (identical(other.limit, limit) || other.limit == limit) && - (identical(other.unreadOnly, unreadOnly) || - other.unreadOnly == unreadOnly) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, sort, page, limit, unreadOnly, auth); - - /// Create a copy of GetReplies - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetRepliesImplCopyWith<_$GetRepliesImpl> get copyWith => - __$$GetRepliesImplCopyWithImpl<_$GetRepliesImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetRepliesImplToJson( - this, - ); - } -} - -abstract class _GetReplies extends GetReplies { - const factory _GetReplies( - {final CommentSortType? sort, - final int? page, - final int? limit, - final bool? unreadOnly, - final String? auth}) = _$GetRepliesImpl; - const _GetReplies._() : super._(); - - factory _GetReplies.fromJson(Map json) = - _$GetRepliesImpl.fromJson; - - @override - CommentSortType? get sort; // v0.18.0 - @override - int? get page; // v0.18.0 - @override - int? get limit; // v0.18.0 - @override - bool? get unreadOnly; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetReplies - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetRepliesImplCopyWith<_$GetRepliesImpl> get copyWith => - throw _privateConstructorUsedError; -} - -BanPerson _$BanPersonFromJson(Map json) { - return _BanPerson.fromJson(json); -} - -/// @nodoc -mixin _$BanPerson { - int get personId => throw _privateConstructorUsedError; // v0.18.0 - bool get ban => throw _privateConstructorUsedError; // v0.18.0 - bool? get removeData => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - int? get expires => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this BanPerson to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BanPerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BanPersonCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BanPersonCopyWith<$Res> { - factory $BanPersonCopyWith(BanPerson value, $Res Function(BanPerson) then) = - _$BanPersonCopyWithImpl<$Res, BanPerson>; - @useResult - $Res call( - {int personId, - bool ban, - bool? removeData, - String? reason, - int? expires, - String? auth}); -} - -/// @nodoc -class _$BanPersonCopyWithImpl<$Res, $Val extends BanPerson> - implements $BanPersonCopyWith<$Res> { - _$BanPersonCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BanPerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? ban = null, - Object? removeData = freezed, - Object? reason = freezed, - Object? expires = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - ban: null == ban - ? _value.ban - : ban // ignore: cast_nullable_to_non_nullable - as bool, - removeData: freezed == removeData - ? _value.removeData - : removeData // ignore: cast_nullable_to_non_nullable - as bool?, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BanPersonImplCopyWith<$Res> - implements $BanPersonCopyWith<$Res> { - factory _$$BanPersonImplCopyWith( - _$BanPersonImpl value, $Res Function(_$BanPersonImpl) then) = - __$$BanPersonImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int personId, - bool ban, - bool? removeData, - String? reason, - int? expires, - String? auth}); -} - -/// @nodoc -class __$$BanPersonImplCopyWithImpl<$Res> - extends _$BanPersonCopyWithImpl<$Res, _$BanPersonImpl> - implements _$$BanPersonImplCopyWith<$Res> { - __$$BanPersonImplCopyWithImpl( - _$BanPersonImpl _value, $Res Function(_$BanPersonImpl) _then) - : super(_value, _then); - - /// Create a copy of BanPerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? ban = null, - Object? removeData = freezed, - Object? reason = freezed, - Object? expires = freezed, - Object? auth = freezed, - }) { - return _then(_$BanPersonImpl( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - ban: null == ban - ? _value.ban - : ban // ignore: cast_nullable_to_non_nullable - as bool, - removeData: freezed == removeData - ? _value.removeData - : removeData // ignore: cast_nullable_to_non_nullable - as bool?, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$BanPersonImpl extends _BanPerson { - const _$BanPersonImpl( - {required this.personId, - required this.ban, - this.removeData, - this.reason, - this.expires, - this.auth}) - : super._(); - - factory _$BanPersonImpl.fromJson(Map json) => - _$$BanPersonImplFromJson(json); - - @override - final int personId; -// v0.18.0 - @override - final bool ban; -// v0.18.0 - @override - final bool? removeData; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final int? expires; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'BanPerson(personId: $personId, ban: $ban, removeData: $removeData, reason: $reason, expires: $expires, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BanPersonImpl && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.ban, ban) || other.ban == ban) && - (identical(other.removeData, removeData) || - other.removeData == removeData) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.expires, expires) || other.expires == expires) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, personId, ban, removeData, reason, expires, auth); - - /// Create a copy of BanPerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BanPersonImplCopyWith<_$BanPersonImpl> get copyWith => - __$$BanPersonImplCopyWithImpl<_$BanPersonImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BanPersonImplToJson( - this, - ); - } -} - -abstract class _BanPerson extends BanPerson { - const factory _BanPerson( - {required final int personId, - required final bool ban, - final bool? removeData, - final String? reason, - final int? expires, - final String? auth}) = _$BanPersonImpl; - const _BanPerson._() : super._(); - - factory _BanPerson.fromJson(Map json) = - _$BanPersonImpl.fromJson; - - @override - int get personId; // v0.18.0 - @override - bool get ban; // v0.18.0 - @override - bool? get removeData; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - int? get expires; // v0.18.0 - @override - String? get auth; - - /// Create a copy of BanPerson - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BanPersonImplCopyWith<_$BanPersonImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetBannedPersons _$GetBannedPersonsFromJson(Map json) { - return _GetBannedPersons.fromJson(json); -} - -/// @nodoc -mixin _$GetBannedPersons { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetBannedPersons to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetBannedPersons - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetBannedPersonsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetBannedPersonsCopyWith<$Res> { - factory $GetBannedPersonsCopyWith( - GetBannedPersons value, $Res Function(GetBannedPersons) then) = - _$GetBannedPersonsCopyWithImpl<$Res, GetBannedPersons>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GetBannedPersonsCopyWithImpl<$Res, $Val extends GetBannedPersons> - implements $GetBannedPersonsCopyWith<$Res> { - _$GetBannedPersonsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetBannedPersons - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetBannedPersonsImplCopyWith<$Res> - implements $GetBannedPersonsCopyWith<$Res> { - factory _$$GetBannedPersonsImplCopyWith(_$GetBannedPersonsImpl value, - $Res Function(_$GetBannedPersonsImpl) then) = - __$$GetBannedPersonsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GetBannedPersonsImplCopyWithImpl<$Res> - extends _$GetBannedPersonsCopyWithImpl<$Res, _$GetBannedPersonsImpl> - implements _$$GetBannedPersonsImplCopyWith<$Res> { - __$$GetBannedPersonsImplCopyWithImpl(_$GetBannedPersonsImpl _value, - $Res Function(_$GetBannedPersonsImpl) _then) - : super(_value, _then); - - /// Create a copy of GetBannedPersons - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GetBannedPersonsImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetBannedPersonsImpl extends _GetBannedPersons { - const _$GetBannedPersonsImpl({this.auth}) : super._(); - - factory _$GetBannedPersonsImpl.fromJson(Map json) => - _$$GetBannedPersonsImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GetBannedPersons(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetBannedPersonsImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GetBannedPersons - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetBannedPersonsImplCopyWith<_$GetBannedPersonsImpl> get copyWith => - __$$GetBannedPersonsImplCopyWithImpl<_$GetBannedPersonsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetBannedPersonsImplToJson( - this, - ); - } -} - -abstract class _GetBannedPersons extends GetBannedPersons { - const factory _GetBannedPersons({final String? auth}) = - _$GetBannedPersonsImpl; - const _GetBannedPersons._() : super._(); - - factory _GetBannedPersons.fromJson(Map json) = - _$GetBannedPersonsImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GetBannedPersons - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetBannedPersonsImplCopyWith<_$GetBannedPersonsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -BlockPerson _$BlockPersonFromJson(Map json) { - return _BlockPerson.fromJson(json); -} - -/// @nodoc -mixin _$BlockPerson { - int get personId => throw _privateConstructorUsedError; // v0.18.0 - bool get block => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this BlockPerson to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BlockPerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BlockPersonCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BlockPersonCopyWith<$Res> { - factory $BlockPersonCopyWith( - BlockPerson value, $Res Function(BlockPerson) then) = - _$BlockPersonCopyWithImpl<$Res, BlockPerson>; - @useResult - $Res call({int personId, bool block, String? auth}); -} - -/// @nodoc -class _$BlockPersonCopyWithImpl<$Res, $Val extends BlockPerson> - implements $BlockPersonCopyWith<$Res> { - _$BlockPersonCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BlockPerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? block = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - block: null == block - ? _value.block - : block // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BlockPersonImplCopyWith<$Res> - implements $BlockPersonCopyWith<$Res> { - factory _$$BlockPersonImplCopyWith( - _$BlockPersonImpl value, $Res Function(_$BlockPersonImpl) then) = - __$$BlockPersonImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int personId, bool block, String? auth}); -} - -/// @nodoc -class __$$BlockPersonImplCopyWithImpl<$Res> - extends _$BlockPersonCopyWithImpl<$Res, _$BlockPersonImpl> - implements _$$BlockPersonImplCopyWith<$Res> { - __$$BlockPersonImplCopyWithImpl( - _$BlockPersonImpl _value, $Res Function(_$BlockPersonImpl) _then) - : super(_value, _then); - - /// Create a copy of BlockPerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personId = null, - Object? block = null, - Object? auth = freezed, - }) { - return _then(_$BlockPersonImpl( - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - block: null == block - ? _value.block - : block // ignore: cast_nullable_to_non_nullable - as bool, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$BlockPersonImpl extends _BlockPerson { - const _$BlockPersonImpl( - {required this.personId, required this.block, this.auth}) - : super._(); - - factory _$BlockPersonImpl.fromJson(Map json) => - _$$BlockPersonImplFromJson(json); - - @override - final int personId; -// v0.18.0 - @override - final bool block; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'BlockPerson(personId: $personId, block: $block, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BlockPersonImpl && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.block, block) || other.block == block) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personId, block, auth); - - /// Create a copy of BlockPerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BlockPersonImplCopyWith<_$BlockPersonImpl> get copyWith => - __$$BlockPersonImplCopyWithImpl<_$BlockPersonImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BlockPersonImplToJson( - this, - ); - } -} - -abstract class _BlockPerson extends BlockPerson { - const factory _BlockPerson( - {required final int personId, - required final bool block, - final String? auth}) = _$BlockPersonImpl; - const _BlockPerson._() : super._(); - - factory _BlockPerson.fromJson(Map json) = - _$BlockPersonImpl.fromJson; - - @override - int get personId; // v0.18.0 - @override - bool get block; // v0.18.0 - @override - String? get auth; - - /// Create a copy of BlockPerson - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BlockPersonImplCopyWith<_$BlockPersonImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetCaptcha _$GetCaptchaFromJson(Map json) { - return _GetCaptcha.fromJson(json); -} - -/// @nodoc -mixin _$GetCaptcha { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetCaptcha to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetCaptcha - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCaptchaCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCaptchaCopyWith<$Res> { - factory $GetCaptchaCopyWith( - GetCaptcha value, $Res Function(GetCaptcha) then) = - _$GetCaptchaCopyWithImpl<$Res, GetCaptcha>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GetCaptchaCopyWithImpl<$Res, $Val extends GetCaptcha> - implements $GetCaptchaCopyWith<$Res> { - _$GetCaptchaCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetCaptcha - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetCaptchaImplCopyWith<$Res> - implements $GetCaptchaCopyWith<$Res> { - factory _$$GetCaptchaImplCopyWith( - _$GetCaptchaImpl value, $Res Function(_$GetCaptchaImpl) then) = - __$$GetCaptchaImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GetCaptchaImplCopyWithImpl<$Res> - extends _$GetCaptchaCopyWithImpl<$Res, _$GetCaptchaImpl> - implements _$$GetCaptchaImplCopyWith<$Res> { - __$$GetCaptchaImplCopyWithImpl( - _$GetCaptchaImpl _value, $Res Function(_$GetCaptchaImpl) _then) - : super(_value, _then); - - /// Create a copy of GetCaptcha - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GetCaptchaImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetCaptchaImpl extends _GetCaptcha { - const _$GetCaptchaImpl({this.auth}) : super._(); - - factory _$GetCaptchaImpl.fromJson(Map json) => - _$$GetCaptchaImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GetCaptcha(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCaptchaImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GetCaptcha - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCaptchaImplCopyWith<_$GetCaptchaImpl> get copyWith => - __$$GetCaptchaImplCopyWithImpl<_$GetCaptchaImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetCaptchaImplToJson( - this, - ); - } -} - -abstract class _GetCaptcha extends GetCaptcha { - const factory _GetCaptcha({final String? auth}) = _$GetCaptchaImpl; - const _GetCaptcha._() : super._(); - - factory _GetCaptcha.fromJson(Map json) = - _$GetCaptchaImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GetCaptcha - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCaptchaImplCopyWith<_$GetCaptchaImpl> get copyWith => - throw _privateConstructorUsedError; -} - -DeleteAccount _$DeleteAccountFromJson(Map json) { - return _DeleteAccount.fromJson(json); -} - -/// @nodoc -mixin _$DeleteAccount { - String get password => throw _privateConstructorUsedError; // v0.18.0 - bool? get deleteContent => - throw _privateConstructorUsedError; // v0.19.0 (required) - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this DeleteAccount to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeleteAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeleteAccountCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeleteAccountCopyWith<$Res> { - factory $DeleteAccountCopyWith( - DeleteAccount value, $Res Function(DeleteAccount) then) = - _$DeleteAccountCopyWithImpl<$Res, DeleteAccount>; - @useResult - $Res call({String password, bool? deleteContent, String? auth}); -} - -/// @nodoc -class _$DeleteAccountCopyWithImpl<$Res, $Val extends DeleteAccount> - implements $DeleteAccountCopyWith<$Res> { - _$DeleteAccountCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeleteAccount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? password = null, - Object? deleteContent = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - deleteContent: freezed == deleteContent - ? _value.deleteContent - : deleteContent // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeleteAccountImplCopyWith<$Res> - implements $DeleteAccountCopyWith<$Res> { - factory _$$DeleteAccountImplCopyWith( - _$DeleteAccountImpl value, $Res Function(_$DeleteAccountImpl) then) = - __$$DeleteAccountImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String password, bool? deleteContent, String? auth}); -} - -/// @nodoc -class __$$DeleteAccountImplCopyWithImpl<$Res> - extends _$DeleteAccountCopyWithImpl<$Res, _$DeleteAccountImpl> - implements _$$DeleteAccountImplCopyWith<$Res> { - __$$DeleteAccountImplCopyWithImpl( - _$DeleteAccountImpl _value, $Res Function(_$DeleteAccountImpl) _then) - : super(_value, _then); - - /// Create a copy of DeleteAccount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? password = null, - Object? deleteContent = freezed, - Object? auth = freezed, - }) { - return _then(_$DeleteAccountImpl( - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - deleteContent: freezed == deleteContent - ? _value.deleteContent - : deleteContent // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$DeleteAccountImpl extends _DeleteAccount { - const _$DeleteAccountImpl( - {required this.password, this.deleteContent, this.auth}) - : super._(); - - factory _$DeleteAccountImpl.fromJson(Map json) => - _$$DeleteAccountImplFromJson(json); - - @override - final String password; -// v0.18.0 - @override - final bool? deleteContent; -// v0.19.0 (required) - @override - final String? auth; - - @override - String toString() { - return 'DeleteAccount(password: $password, deleteContent: $deleteContent, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeleteAccountImpl && - (identical(other.password, password) || - other.password == password) && - (identical(other.deleteContent, deleteContent) || - other.deleteContent == deleteContent) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, password, deleteContent, auth); - - /// Create a copy of DeleteAccount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeleteAccountImplCopyWith<_$DeleteAccountImpl> get copyWith => - __$$DeleteAccountImplCopyWithImpl<_$DeleteAccountImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DeleteAccountImplToJson( - this, - ); - } -} - -abstract class _DeleteAccount extends DeleteAccount { - const factory _DeleteAccount( - {required final String password, - final bool? deleteContent, - final String? auth}) = _$DeleteAccountImpl; - const _DeleteAccount._() : super._(); - - factory _DeleteAccount.fromJson(Map json) = - _$DeleteAccountImpl.fromJson; - - @override - String get password; // v0.18.0 - @override - bool? get deleteContent; // v0.19.0 (required) - @override - String? get auth; - - /// Create a copy of DeleteAccount - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeleteAccountImplCopyWith<_$DeleteAccountImpl> get copyWith => - throw _privateConstructorUsedError; -} - -PasswordReset _$PasswordResetFromJson(Map json) { - return _PasswordReset.fromJson(json); -} - -/// @nodoc -mixin _$PasswordReset { - String get email => throw _privateConstructorUsedError; - - /// Serializes this PasswordReset to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PasswordReset - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PasswordResetCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PasswordResetCopyWith<$Res> { - factory $PasswordResetCopyWith( - PasswordReset value, $Res Function(PasswordReset) then) = - _$PasswordResetCopyWithImpl<$Res, PasswordReset>; - @useResult - $Res call({String email}); -} - -/// @nodoc -class _$PasswordResetCopyWithImpl<$Res, $Val extends PasswordReset> - implements $PasswordResetCopyWith<$Res> { - _$PasswordResetCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PasswordReset - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? email = null, - }) { - return _then(_value.copyWith( - email: null == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PasswordResetImplCopyWith<$Res> - implements $PasswordResetCopyWith<$Res> { - factory _$$PasswordResetImplCopyWith( - _$PasswordResetImpl value, $Res Function(_$PasswordResetImpl) then) = - __$$PasswordResetImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String email}); -} - -/// @nodoc -class __$$PasswordResetImplCopyWithImpl<$Res> - extends _$PasswordResetCopyWithImpl<$Res, _$PasswordResetImpl> - implements _$$PasswordResetImplCopyWith<$Res> { - __$$PasswordResetImplCopyWithImpl( - _$PasswordResetImpl _value, $Res Function(_$PasswordResetImpl) _then) - : super(_value, _then); - - /// Create a copy of PasswordReset - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? email = null, - }) { - return _then(_$PasswordResetImpl( - email: null == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@apiSerde -class _$PasswordResetImpl extends _PasswordReset { - const _$PasswordResetImpl({required this.email}) : super._(); - - factory _$PasswordResetImpl.fromJson(Map json) => - _$$PasswordResetImplFromJson(json); - - @override - final String email; - - @override - String toString() { - return 'PasswordReset(email: $email)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PasswordResetImpl && - (identical(other.email, email) || other.email == email)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, email); - - /// Create a copy of PasswordReset - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PasswordResetImplCopyWith<_$PasswordResetImpl> get copyWith => - __$$PasswordResetImplCopyWithImpl<_$PasswordResetImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PasswordResetImplToJson( - this, - ); - } -} - -abstract class _PasswordReset extends PasswordReset { - const factory _PasswordReset({required final String email}) = - _$PasswordResetImpl; - const _PasswordReset._() : super._(); - - factory _PasswordReset.fromJson(Map json) = - _$PasswordResetImpl.fromJson; - - @override - String get email; - - /// Create a copy of PasswordReset - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PasswordResetImplCopyWith<_$PasswordResetImpl> get copyWith => - throw _privateConstructorUsedError; -} - -PasswordChangeAfterReset _$PasswordChangeAfterResetFromJson( - Map json) { - return _PasswordChangeAfterReset.fromJson(json); -} - -/// @nodoc -mixin _$PasswordChangeAfterReset { - String get token => throw _privateConstructorUsedError; // v0.18.0 - String get password => throw _privateConstructorUsedError; // v0.18.0 - String get passwordVerify => throw _privateConstructorUsedError; - - /// Serializes this PasswordChangeAfterReset to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PasswordChangeAfterReset - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PasswordChangeAfterResetCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PasswordChangeAfterResetCopyWith<$Res> { - factory $PasswordChangeAfterResetCopyWith(PasswordChangeAfterReset value, - $Res Function(PasswordChangeAfterReset) then) = - _$PasswordChangeAfterResetCopyWithImpl<$Res, PasswordChangeAfterReset>; - @useResult - $Res call({String token, String password, String passwordVerify}); -} - -/// @nodoc -class _$PasswordChangeAfterResetCopyWithImpl<$Res, - $Val extends PasswordChangeAfterReset> - implements $PasswordChangeAfterResetCopyWith<$Res> { - _$PasswordChangeAfterResetCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PasswordChangeAfterReset - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? token = null, - Object? password = null, - Object? passwordVerify = null, - }) { - return _then(_value.copyWith( - token: null == token - ? _value.token - : token // ignore: cast_nullable_to_non_nullable - as String, - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - passwordVerify: null == passwordVerify - ? _value.passwordVerify - : passwordVerify // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PasswordChangeAfterResetImplCopyWith<$Res> - implements $PasswordChangeAfterResetCopyWith<$Res> { - factory _$$PasswordChangeAfterResetImplCopyWith( - _$PasswordChangeAfterResetImpl value, - $Res Function(_$PasswordChangeAfterResetImpl) then) = - __$$PasswordChangeAfterResetImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String token, String password, String passwordVerify}); -} - -/// @nodoc -class __$$PasswordChangeAfterResetImplCopyWithImpl<$Res> - extends _$PasswordChangeAfterResetCopyWithImpl<$Res, - _$PasswordChangeAfterResetImpl> - implements _$$PasswordChangeAfterResetImplCopyWith<$Res> { - __$$PasswordChangeAfterResetImplCopyWithImpl( - _$PasswordChangeAfterResetImpl _value, - $Res Function(_$PasswordChangeAfterResetImpl) _then) - : super(_value, _then); - - /// Create a copy of PasswordChangeAfterReset - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? token = null, - Object? password = null, - Object? passwordVerify = null, - }) { - return _then(_$PasswordChangeAfterResetImpl( - token: null == token - ? _value.token - : token // ignore: cast_nullable_to_non_nullable - as String, - password: null == password - ? _value.password - : password // ignore: cast_nullable_to_non_nullable - as String, - passwordVerify: null == passwordVerify - ? _value.passwordVerify - : passwordVerify // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@apiSerde -class _$PasswordChangeAfterResetImpl extends _PasswordChangeAfterReset { - const _$PasswordChangeAfterResetImpl( - {required this.token, - required this.password, - required this.passwordVerify}) - : super._(); - - factory _$PasswordChangeAfterResetImpl.fromJson(Map json) => - _$$PasswordChangeAfterResetImplFromJson(json); - - @override - final String token; -// v0.18.0 - @override - final String password; -// v0.18.0 - @override - final String passwordVerify; - - @override - String toString() { - return 'PasswordChangeAfterReset(token: $token, password: $password, passwordVerify: $passwordVerify)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PasswordChangeAfterResetImpl && - (identical(other.token, token) || other.token == token) && - (identical(other.password, password) || - other.password == password) && - (identical(other.passwordVerify, passwordVerify) || - other.passwordVerify == passwordVerify)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, token, password, passwordVerify); - - /// Create a copy of PasswordChangeAfterReset - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PasswordChangeAfterResetImplCopyWith<_$PasswordChangeAfterResetImpl> - get copyWith => __$$PasswordChangeAfterResetImplCopyWithImpl< - _$PasswordChangeAfterResetImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PasswordChangeAfterResetImplToJson( - this, - ); - } -} - -abstract class _PasswordChangeAfterReset extends PasswordChangeAfterReset { - const factory _PasswordChangeAfterReset( - {required final String token, - required final String password, - required final String passwordVerify}) = _$PasswordChangeAfterResetImpl; - const _PasswordChangeAfterReset._() : super._(); - - factory _PasswordChangeAfterReset.fromJson(Map json) = - _$PasswordChangeAfterResetImpl.fromJson; - - @override - String get token; // v0.18.0 - @override - String get password; // v0.18.0 - @override - String get passwordVerify; - - /// Create a copy of PasswordChangeAfterReset - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PasswordChangeAfterResetImplCopyWith<_$PasswordChangeAfterResetImpl> - get copyWith => throw _privateConstructorUsedError; -} - -MarkAllAsRead _$MarkAllAsReadFromJson(Map json) { - return _MarkAllAsRead.fromJson(json); -} - -/// @nodoc -mixin _$MarkAllAsRead { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this MarkAllAsRead to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MarkAllAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MarkAllAsReadCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MarkAllAsReadCopyWith<$Res> { - factory $MarkAllAsReadCopyWith( - MarkAllAsRead value, $Res Function(MarkAllAsRead) then) = - _$MarkAllAsReadCopyWithImpl<$Res, MarkAllAsRead>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$MarkAllAsReadCopyWithImpl<$Res, $Val extends MarkAllAsRead> - implements $MarkAllAsReadCopyWith<$Res> { - _$MarkAllAsReadCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MarkAllAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$MarkAllAsReadImplCopyWith<$Res> - implements $MarkAllAsReadCopyWith<$Res> { - factory _$$MarkAllAsReadImplCopyWith( - _$MarkAllAsReadImpl value, $Res Function(_$MarkAllAsReadImpl) then) = - __$$MarkAllAsReadImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$MarkAllAsReadImplCopyWithImpl<$Res> - extends _$MarkAllAsReadCopyWithImpl<$Res, _$MarkAllAsReadImpl> - implements _$$MarkAllAsReadImplCopyWith<$Res> { - __$$MarkAllAsReadImplCopyWithImpl( - _$MarkAllAsReadImpl _value, $Res Function(_$MarkAllAsReadImpl) _then) - : super(_value, _then); - - /// Create a copy of MarkAllAsRead - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$MarkAllAsReadImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$MarkAllAsReadImpl extends _MarkAllAsRead { - const _$MarkAllAsReadImpl({this.auth}) : super._(); - - factory _$MarkAllAsReadImpl.fromJson(Map json) => - _$$MarkAllAsReadImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'MarkAllAsRead(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MarkAllAsReadImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of MarkAllAsRead - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MarkAllAsReadImplCopyWith<_$MarkAllAsReadImpl> get copyWith => - __$$MarkAllAsReadImplCopyWithImpl<_$MarkAllAsReadImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MarkAllAsReadImplToJson( - this, - ); - } -} - -abstract class _MarkAllAsRead extends MarkAllAsRead { - const factory _MarkAllAsRead({final String? auth}) = _$MarkAllAsReadImpl; - const _MarkAllAsRead._() : super._(); - - factory _MarkAllAsRead.fromJson(Map json) = - _$MarkAllAsReadImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of MarkAllAsRead - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MarkAllAsReadImplCopyWith<_$MarkAllAsReadImpl> get copyWith => - throw _privateConstructorUsedError; -} - -SaveUserSettings _$SaveUserSettingsFromJson(Map json) { - return _SaveUserSettings.fromJson(json); -} - -/// @nodoc -mixin _$SaveUserSettings { - bool? get showNsfw => throw _privateConstructorUsedError; // v0.18.0 - bool? get blurNsfw => throw _privateConstructorUsedError; // v0.18.3 - bool? get autoExpand => throw _privateConstructorUsedError; // v0.18.3 - String? get theme => throw _privateConstructorUsedError; // v0.18.0 - SortType? get defaultSortType => - throw _privateConstructorUsedError; // v0.18.0 - ListingType? get defaultListingType => - throw _privateConstructorUsedError; // v0.18.0 - String? get interfaceLanguage => - throw _privateConstructorUsedError; // v0.18.0 - String? get avatar => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - String? get displayName => throw _privateConstructorUsedError; // v0.18.0 - String? get email => throw _privateConstructorUsedError; // v0.18.0 - String? get bio => throw _privateConstructorUsedError; // v0.18.0 - String? get matrixUserId => throw _privateConstructorUsedError; // v0.18.0 - bool? get showAvatars => throw _privateConstructorUsedError; // v0.18.0 - bool? get sendNotificationsToEmail => - throw _privateConstructorUsedError; // v0.18.0 - bool? get botAccount => throw _privateConstructorUsedError; // v0.18.0 - bool? get showBotAccounts => throw _privateConstructorUsedError; // v0.18.0 - bool? get showReadPosts => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - bool? get showNewPostNotifs => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - List? get discussionLanguages => - throw _privateConstructorUsedError; // v0.18.0 - @deprecated - bool? get generateTotp2fa => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - String? get auth => throw _privateConstructorUsedError; - bool? get openLinksInNewTab => throw _privateConstructorUsedError; // v0.18.1 - bool? get infiniteScrollEnabled => - throw _privateConstructorUsedError; // v0.19.0 (optional) - String? get postListingMode => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get enableKeyboardNavigation => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get enableAnimatedImages => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get collapseBotComments => - throw _privateConstructorUsedError; // v0.19.0 (optional) - bool? get showScores => - throw _privateConstructorUsedError; // v0.18.0 (optional) - bool? get showUpvotes => - throw _privateConstructorUsedError; // v0.19.4 (optional) - bool? get showDownvotes => - throw _privateConstructorUsedError; // v0.19.4 (optional) - bool? get showUpvotePercentage => throw _privateConstructorUsedError; - - /// Serializes this SaveUserSettings to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SaveUserSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SaveUserSettingsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SaveUserSettingsCopyWith<$Res> { - factory $SaveUserSettingsCopyWith( - SaveUserSettings value, $Res Function(SaveUserSettings) then) = - _$SaveUserSettingsCopyWithImpl<$Res, SaveUserSettings>; - @useResult - $Res call( - {bool? showNsfw, - bool? blurNsfw, - bool? autoExpand, - String? theme, - SortType? defaultSortType, - ListingType? defaultListingType, - String? interfaceLanguage, - String? avatar, - String? banner, - String? displayName, - String? email, - String? bio, - String? matrixUserId, - bool? showAvatars, - bool? sendNotificationsToEmail, - bool? botAccount, - bool? showBotAccounts, - bool? showReadPosts, - @deprecated bool? showNewPostNotifs, - List? discussionLanguages, - @deprecated bool? generateTotp2fa, - String? auth, - bool? openLinksInNewTab, - bool? infiniteScrollEnabled, - String? postListingMode, - bool? enableKeyboardNavigation, - bool? enableAnimatedImages, - bool? collapseBotComments, - bool? showScores, - bool? showUpvotes, - bool? showDownvotes, - bool? showUpvotePercentage}); -} - -/// @nodoc -class _$SaveUserSettingsCopyWithImpl<$Res, $Val extends SaveUserSettings> - implements $SaveUserSettingsCopyWith<$Res> { - _$SaveUserSettingsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SaveUserSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? showNsfw = freezed, - Object? blurNsfw = freezed, - Object? autoExpand = freezed, - Object? theme = freezed, - Object? defaultSortType = freezed, - Object? defaultListingType = freezed, - Object? interfaceLanguage = freezed, - Object? avatar = freezed, - Object? banner = freezed, - Object? displayName = freezed, - Object? email = freezed, - Object? bio = freezed, - Object? matrixUserId = freezed, - Object? showAvatars = freezed, - Object? sendNotificationsToEmail = freezed, - Object? botAccount = freezed, - Object? showBotAccounts = freezed, - Object? showReadPosts = freezed, - Object? showNewPostNotifs = freezed, - Object? discussionLanguages = freezed, - Object? generateTotp2fa = freezed, - Object? auth = freezed, - Object? openLinksInNewTab = freezed, - Object? infiniteScrollEnabled = freezed, - Object? postListingMode = freezed, - Object? enableKeyboardNavigation = freezed, - Object? enableAnimatedImages = freezed, - Object? collapseBotComments = freezed, - Object? showScores = freezed, - Object? showUpvotes = freezed, - Object? showDownvotes = freezed, - Object? showUpvotePercentage = freezed, - }) { - return _then(_value.copyWith( - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - blurNsfw: freezed == blurNsfw - ? _value.blurNsfw - : blurNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - autoExpand: freezed == autoExpand - ? _value.autoExpand - : autoExpand // ignore: cast_nullable_to_non_nullable - as bool?, - theme: freezed == theme - ? _value.theme - : theme // ignore: cast_nullable_to_non_nullable - as String?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - defaultListingType: freezed == defaultListingType - ? _value.defaultListingType - : defaultListingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - interfaceLanguage: freezed == interfaceLanguage - ? _value.interfaceLanguage - : interfaceLanguage // ignore: cast_nullable_to_non_nullable - as String?, - avatar: freezed == avatar - ? _value.avatar - : avatar // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - email: freezed == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String?, - bio: freezed == bio - ? _value.bio - : bio // ignore: cast_nullable_to_non_nullable - as String?, - matrixUserId: freezed == matrixUserId - ? _value.matrixUserId - : matrixUserId // ignore: cast_nullable_to_non_nullable - as String?, - showAvatars: freezed == showAvatars - ? _value.showAvatars - : showAvatars // ignore: cast_nullable_to_non_nullable - as bool?, - sendNotificationsToEmail: freezed == sendNotificationsToEmail - ? _value.sendNotificationsToEmail - : sendNotificationsToEmail // ignore: cast_nullable_to_non_nullable - as bool?, - botAccount: freezed == botAccount - ? _value.botAccount - : botAccount // ignore: cast_nullable_to_non_nullable - as bool?, - showBotAccounts: freezed == showBotAccounts - ? _value.showBotAccounts - : showBotAccounts // ignore: cast_nullable_to_non_nullable - as bool?, - showReadPosts: freezed == showReadPosts - ? _value.showReadPosts - : showReadPosts // ignore: cast_nullable_to_non_nullable - as bool?, - showNewPostNotifs: freezed == showNewPostNotifs - ? _value.showNewPostNotifs - : showNewPostNotifs // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - generateTotp2fa: freezed == generateTotp2fa - ? _value.generateTotp2fa - : generateTotp2fa // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - openLinksInNewTab: freezed == openLinksInNewTab - ? _value.openLinksInNewTab - : openLinksInNewTab // ignore: cast_nullable_to_non_nullable - as bool?, - infiniteScrollEnabled: freezed == infiniteScrollEnabled - ? _value.infiniteScrollEnabled - : infiniteScrollEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - postListingMode: freezed == postListingMode - ? _value.postListingMode - : postListingMode // ignore: cast_nullable_to_non_nullable - as String?, - enableKeyboardNavigation: freezed == enableKeyboardNavigation - ? _value.enableKeyboardNavigation - : enableKeyboardNavigation // ignore: cast_nullable_to_non_nullable - as bool?, - enableAnimatedImages: freezed == enableAnimatedImages - ? _value.enableAnimatedImages - : enableAnimatedImages // ignore: cast_nullable_to_non_nullable - as bool?, - collapseBotComments: freezed == collapseBotComments - ? _value.collapseBotComments - : collapseBotComments // ignore: cast_nullable_to_non_nullable - as bool?, - showScores: freezed == showScores - ? _value.showScores - : showScores // ignore: cast_nullable_to_non_nullable - as bool?, - showUpvotes: freezed == showUpvotes - ? _value.showUpvotes - : showUpvotes // ignore: cast_nullable_to_non_nullable - as bool?, - showDownvotes: freezed == showDownvotes - ? _value.showDownvotes - : showDownvotes // ignore: cast_nullable_to_non_nullable - as bool?, - showUpvotePercentage: freezed == showUpvotePercentage - ? _value.showUpvotePercentage - : showUpvotePercentage // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SaveUserSettingsImplCopyWith<$Res> - implements $SaveUserSettingsCopyWith<$Res> { - factory _$$SaveUserSettingsImplCopyWith(_$SaveUserSettingsImpl value, - $Res Function(_$SaveUserSettingsImpl) then) = - __$$SaveUserSettingsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {bool? showNsfw, - bool? blurNsfw, - bool? autoExpand, - String? theme, - SortType? defaultSortType, - ListingType? defaultListingType, - String? interfaceLanguage, - String? avatar, - String? banner, - String? displayName, - String? email, - String? bio, - String? matrixUserId, - bool? showAvatars, - bool? sendNotificationsToEmail, - bool? botAccount, - bool? showBotAccounts, - bool? showReadPosts, - @deprecated bool? showNewPostNotifs, - List? discussionLanguages, - @deprecated bool? generateTotp2fa, - String? auth, - bool? openLinksInNewTab, - bool? infiniteScrollEnabled, - String? postListingMode, - bool? enableKeyboardNavigation, - bool? enableAnimatedImages, - bool? collapseBotComments, - bool? showScores, - bool? showUpvotes, - bool? showDownvotes, - bool? showUpvotePercentage}); -} - -/// @nodoc -class __$$SaveUserSettingsImplCopyWithImpl<$Res> - extends _$SaveUserSettingsCopyWithImpl<$Res, _$SaveUserSettingsImpl> - implements _$$SaveUserSettingsImplCopyWith<$Res> { - __$$SaveUserSettingsImplCopyWithImpl(_$SaveUserSettingsImpl _value, - $Res Function(_$SaveUserSettingsImpl) _then) - : super(_value, _then); - - /// Create a copy of SaveUserSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? showNsfw = freezed, - Object? blurNsfw = freezed, - Object? autoExpand = freezed, - Object? theme = freezed, - Object? defaultSortType = freezed, - Object? defaultListingType = freezed, - Object? interfaceLanguage = freezed, - Object? avatar = freezed, - Object? banner = freezed, - Object? displayName = freezed, - Object? email = freezed, - Object? bio = freezed, - Object? matrixUserId = freezed, - Object? showAvatars = freezed, - Object? sendNotificationsToEmail = freezed, - Object? botAccount = freezed, - Object? showBotAccounts = freezed, - Object? showReadPosts = freezed, - Object? showNewPostNotifs = freezed, - Object? discussionLanguages = freezed, - Object? generateTotp2fa = freezed, - Object? auth = freezed, - Object? openLinksInNewTab = freezed, - Object? infiniteScrollEnabled = freezed, - Object? postListingMode = freezed, - Object? enableKeyboardNavigation = freezed, - Object? enableAnimatedImages = freezed, - Object? collapseBotComments = freezed, - Object? showScores = freezed, - Object? showUpvotes = freezed, - Object? showDownvotes = freezed, - Object? showUpvotePercentage = freezed, - }) { - return _then(_$SaveUserSettingsImpl( - showNsfw: freezed == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - blurNsfw: freezed == blurNsfw - ? _value.blurNsfw - : blurNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - autoExpand: freezed == autoExpand - ? _value.autoExpand - : autoExpand // ignore: cast_nullable_to_non_nullable - as bool?, - theme: freezed == theme - ? _value.theme - : theme // ignore: cast_nullable_to_non_nullable - as String?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - defaultListingType: freezed == defaultListingType - ? _value.defaultListingType - : defaultListingType // ignore: cast_nullable_to_non_nullable - as ListingType?, - interfaceLanguage: freezed == interfaceLanguage - ? _value.interfaceLanguage - : interfaceLanguage // ignore: cast_nullable_to_non_nullable - as String?, - avatar: freezed == avatar - ? _value.avatar - : avatar // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - email: freezed == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String?, - bio: freezed == bio - ? _value.bio - : bio // ignore: cast_nullable_to_non_nullable - as String?, - matrixUserId: freezed == matrixUserId - ? _value.matrixUserId - : matrixUserId // ignore: cast_nullable_to_non_nullable - as String?, - showAvatars: freezed == showAvatars - ? _value.showAvatars - : showAvatars // ignore: cast_nullable_to_non_nullable - as bool?, - sendNotificationsToEmail: freezed == sendNotificationsToEmail - ? _value.sendNotificationsToEmail - : sendNotificationsToEmail // ignore: cast_nullable_to_non_nullable - as bool?, - botAccount: freezed == botAccount - ? _value.botAccount - : botAccount // ignore: cast_nullable_to_non_nullable - as bool?, - showBotAccounts: freezed == showBotAccounts - ? _value.showBotAccounts - : showBotAccounts // ignore: cast_nullable_to_non_nullable - as bool?, - showReadPosts: freezed == showReadPosts - ? _value.showReadPosts - : showReadPosts // ignore: cast_nullable_to_non_nullable - as bool?, - showNewPostNotifs: freezed == showNewPostNotifs - ? _value.showNewPostNotifs - : showNewPostNotifs // ignore: cast_nullable_to_non_nullable - as bool?, - discussionLanguages: freezed == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - generateTotp2fa: freezed == generateTotp2fa - ? _value.generateTotp2fa - : generateTotp2fa // ignore: cast_nullable_to_non_nullable - as bool?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - openLinksInNewTab: freezed == openLinksInNewTab - ? _value.openLinksInNewTab - : openLinksInNewTab // ignore: cast_nullable_to_non_nullable - as bool?, - infiniteScrollEnabled: freezed == infiniteScrollEnabled - ? _value.infiniteScrollEnabled - : infiniteScrollEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - postListingMode: freezed == postListingMode - ? _value.postListingMode - : postListingMode // ignore: cast_nullable_to_non_nullable - as String?, - enableKeyboardNavigation: freezed == enableKeyboardNavigation - ? _value.enableKeyboardNavigation - : enableKeyboardNavigation // ignore: cast_nullable_to_non_nullable - as bool?, - enableAnimatedImages: freezed == enableAnimatedImages - ? _value.enableAnimatedImages - : enableAnimatedImages // ignore: cast_nullable_to_non_nullable - as bool?, - collapseBotComments: freezed == collapseBotComments - ? _value.collapseBotComments - : collapseBotComments // ignore: cast_nullable_to_non_nullable - as bool?, - showScores: freezed == showScores - ? _value.showScores - : showScores // ignore: cast_nullable_to_non_nullable - as bool?, - showUpvotes: freezed == showUpvotes - ? _value.showUpvotes - : showUpvotes // ignore: cast_nullable_to_non_nullable - as bool?, - showDownvotes: freezed == showDownvotes - ? _value.showDownvotes - : showDownvotes // ignore: cast_nullable_to_non_nullable - as bool?, - showUpvotePercentage: freezed == showUpvotePercentage - ? _value.showUpvotePercentage - : showUpvotePercentage // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$SaveUserSettingsImpl extends _SaveUserSettings { - const _$SaveUserSettingsImpl( - {this.showNsfw, - this.blurNsfw, - this.autoExpand, - this.theme, - this.defaultSortType, - this.defaultListingType, - this.interfaceLanguage, - this.avatar, - this.banner, - this.displayName, - this.email, - this.bio, - this.matrixUserId, - this.showAvatars, - this.sendNotificationsToEmail, - this.botAccount, - this.showBotAccounts, - this.showReadPosts, - @deprecated this.showNewPostNotifs, - final List? discussionLanguages, - @deprecated this.generateTotp2fa, - this.auth, - this.openLinksInNewTab, - this.infiniteScrollEnabled, - this.postListingMode, - this.enableKeyboardNavigation, - this.enableAnimatedImages, - this.collapseBotComments, - this.showScores, - this.showUpvotes, - this.showDownvotes, - this.showUpvotePercentage}) - : _discussionLanguages = discussionLanguages, - super._(); - - factory _$SaveUserSettingsImpl.fromJson(Map json) => - _$$SaveUserSettingsImplFromJson(json); - - @override - final bool? showNsfw; -// v0.18.0 - @override - final bool? blurNsfw; -// v0.18.3 - @override - final bool? autoExpand; -// v0.18.3 - @override - final String? theme; -// v0.18.0 - @override - final SortType? defaultSortType; -// v0.18.0 - @override - final ListingType? defaultListingType; -// v0.18.0 - @override - final String? interfaceLanguage; -// v0.18.0 - @override - final String? avatar; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final String? displayName; -// v0.18.0 - @override - final String? email; -// v0.18.0 - @override - final String? bio; -// v0.18.0 - @override - final String? matrixUserId; -// v0.18.0 - @override - final bool? showAvatars; -// v0.18.0 - @override - final bool? sendNotificationsToEmail; -// v0.18.0 - @override - final bool? botAccount; -// v0.18.0 - @override - final bool? showBotAccounts; -// v0.18.0 - @override - final bool? showReadPosts; -// v0.18.0 - @override - @deprecated - final bool? showNewPostNotifs; -// v0.18.0 [deprecated in v0.19.0] - final List? _discussionLanguages; -// v0.18.0 [deprecated in v0.19.0] - @override - List? get discussionLanguages { - final value = _discussionLanguages; - if (value == null) return null; - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.18.0 - @override - @deprecated - final bool? generateTotp2fa; -// v0.18.0 [deprecated in v0.19.0] - @override - final String? auth; - @override - final bool? openLinksInNewTab; -// v0.18.1 - @override - final bool? infiniteScrollEnabled; -// v0.19.0 (optional) - @override - final String? postListingMode; -// v0.19.0 (optional) - @override - final bool? enableKeyboardNavigation; -// v0.19.0 (optional) - @override - final bool? enableAnimatedImages; -// v0.19.0 (optional) - @override - final bool? collapseBotComments; -// v0.19.0 (optional) - @override - final bool? showScores; -// v0.18.0 (optional) - @override - final bool? showUpvotes; -// v0.19.4 (optional) - @override - final bool? showDownvotes; -// v0.19.4 (optional) - @override - final bool? showUpvotePercentage; - - @override - String toString() { - return 'SaveUserSettings(showNsfw: $showNsfw, blurNsfw: $blurNsfw, autoExpand: $autoExpand, theme: $theme, defaultSortType: $defaultSortType, defaultListingType: $defaultListingType, interfaceLanguage: $interfaceLanguage, avatar: $avatar, banner: $banner, displayName: $displayName, email: $email, bio: $bio, matrixUserId: $matrixUserId, showAvatars: $showAvatars, sendNotificationsToEmail: $sendNotificationsToEmail, botAccount: $botAccount, showBotAccounts: $showBotAccounts, showReadPosts: $showReadPosts, showNewPostNotifs: $showNewPostNotifs, discussionLanguages: $discussionLanguages, generateTotp2fa: $generateTotp2fa, auth: $auth, openLinksInNewTab: $openLinksInNewTab, infiniteScrollEnabled: $infiniteScrollEnabled, postListingMode: $postListingMode, enableKeyboardNavigation: $enableKeyboardNavigation, enableAnimatedImages: $enableAnimatedImages, collapseBotComments: $collapseBotComments, showScores: $showScores, showUpvotes: $showUpvotes, showDownvotes: $showDownvotes, showUpvotePercentage: $showUpvotePercentage)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SaveUserSettingsImpl && - (identical(other.showNsfw, showNsfw) || - other.showNsfw == showNsfw) && - (identical(other.blurNsfw, blurNsfw) || - other.blurNsfw == blurNsfw) && - (identical(other.autoExpand, autoExpand) || - other.autoExpand == autoExpand) && - (identical(other.theme, theme) || other.theme == theme) && - (identical(other.defaultSortType, defaultSortType) || - other.defaultSortType == defaultSortType) && - (identical(other.defaultListingType, defaultListingType) || - other.defaultListingType == defaultListingType) && - (identical(other.interfaceLanguage, interfaceLanguage) || - other.interfaceLanguage == interfaceLanguage) && - (identical(other.avatar, avatar) || other.avatar == avatar) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.displayName, displayName) || - other.displayName == displayName) && - (identical(other.email, email) || other.email == email) && - (identical(other.bio, bio) || other.bio == bio) && - (identical(other.matrixUserId, matrixUserId) || - other.matrixUserId == matrixUserId) && - (identical(other.showAvatars, showAvatars) || - other.showAvatars == showAvatars) && - (identical( - other.sendNotificationsToEmail, sendNotificationsToEmail) || - other.sendNotificationsToEmail == sendNotificationsToEmail) && - (identical(other.botAccount, botAccount) || - other.botAccount == botAccount) && - (identical(other.showBotAccounts, showBotAccounts) || - other.showBotAccounts == showBotAccounts) && - (identical(other.showReadPosts, showReadPosts) || - other.showReadPosts == showReadPosts) && - (identical(other.showNewPostNotifs, showNewPostNotifs) || - other.showNewPostNotifs == showNewPostNotifs) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - (identical(other.generateTotp2fa, generateTotp2fa) || - other.generateTotp2fa == generateTotp2fa) && - (identical(other.auth, auth) || other.auth == auth) && - (identical(other.openLinksInNewTab, openLinksInNewTab) || - other.openLinksInNewTab == openLinksInNewTab) && - (identical(other.infiniteScrollEnabled, infiniteScrollEnabled) || - other.infiniteScrollEnabled == infiniteScrollEnabled) && - (identical(other.postListingMode, postListingMode) || - other.postListingMode == postListingMode) && - (identical( - other.enableKeyboardNavigation, enableKeyboardNavigation) || - other.enableKeyboardNavigation == enableKeyboardNavigation) && - (identical(other.enableAnimatedImages, enableAnimatedImages) || - other.enableAnimatedImages == enableAnimatedImages) && - (identical(other.collapseBotComments, collapseBotComments) || - other.collapseBotComments == collapseBotComments) && - (identical(other.showScores, showScores) || - other.showScores == showScores) && - (identical(other.showUpvotes, showUpvotes) || - other.showUpvotes == showUpvotes) && - (identical(other.showDownvotes, showDownvotes) || - other.showDownvotes == showDownvotes) && - (identical(other.showUpvotePercentage, showUpvotePercentage) || - other.showUpvotePercentage == showUpvotePercentage)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - showNsfw, - blurNsfw, - autoExpand, - theme, - defaultSortType, - defaultListingType, - interfaceLanguage, - avatar, - banner, - displayName, - email, - bio, - matrixUserId, - showAvatars, - sendNotificationsToEmail, - botAccount, - showBotAccounts, - showReadPosts, - showNewPostNotifs, - const DeepCollectionEquality().hash(_discussionLanguages), - generateTotp2fa, - auth, - openLinksInNewTab, - infiniteScrollEnabled, - postListingMode, - enableKeyboardNavigation, - enableAnimatedImages, - collapseBotComments, - showScores, - showUpvotes, - showDownvotes, - showUpvotePercentage - ]); - - /// Create a copy of SaveUserSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SaveUserSettingsImplCopyWith<_$SaveUserSettingsImpl> get copyWith => - __$$SaveUserSettingsImplCopyWithImpl<_$SaveUserSettingsImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$SaveUserSettingsImplToJson( - this, - ); - } -} - -abstract class _SaveUserSettings extends SaveUserSettings { - const factory _SaveUserSettings( - {final bool? showNsfw, - final bool? blurNsfw, - final bool? autoExpand, - final String? theme, - final SortType? defaultSortType, - final ListingType? defaultListingType, - final String? interfaceLanguage, - final String? avatar, - final String? banner, - final String? displayName, - final String? email, - final String? bio, - final String? matrixUserId, - final bool? showAvatars, - final bool? sendNotificationsToEmail, - final bool? botAccount, - final bool? showBotAccounts, - final bool? showReadPosts, - @deprecated final bool? showNewPostNotifs, - final List? discussionLanguages, - @deprecated final bool? generateTotp2fa, - final String? auth, - final bool? openLinksInNewTab, - final bool? infiniteScrollEnabled, - final String? postListingMode, - final bool? enableKeyboardNavigation, - final bool? enableAnimatedImages, - final bool? collapseBotComments, - final bool? showScores, - final bool? showUpvotes, - final bool? showDownvotes, - final bool? showUpvotePercentage}) = _$SaveUserSettingsImpl; - const _SaveUserSettings._() : super._(); - - factory _SaveUserSettings.fromJson(Map json) = - _$SaveUserSettingsImpl.fromJson; - - @override - bool? get showNsfw; // v0.18.0 - @override - bool? get blurNsfw; // v0.18.3 - @override - bool? get autoExpand; // v0.18.3 - @override - String? get theme; // v0.18.0 - @override - SortType? get defaultSortType; // v0.18.0 - @override - ListingType? get defaultListingType; // v0.18.0 - @override - String? get interfaceLanguage; // v0.18.0 - @override - String? get avatar; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - String? get displayName; // v0.18.0 - @override - String? get email; // v0.18.0 - @override - String? get bio; // v0.18.0 - @override - String? get matrixUserId; // v0.18.0 - @override - bool? get showAvatars; // v0.18.0 - @override - bool? get sendNotificationsToEmail; // v0.18.0 - @override - bool? get botAccount; // v0.18.0 - @override - bool? get showBotAccounts; // v0.18.0 - @override - bool? get showReadPosts; // v0.18.0 - @override - @deprecated - bool? get showNewPostNotifs; // v0.18.0 [deprecated in v0.19.0] - @override - List? get discussionLanguages; // v0.18.0 - @override - @deprecated - bool? get generateTotp2fa; // v0.18.0 [deprecated in v0.19.0] - @override - String? get auth; - @override - bool? get openLinksInNewTab; // v0.18.1 - @override - bool? get infiniteScrollEnabled; // v0.19.0 (optional) - @override - String? get postListingMode; // v0.19.0 (optional) - @override - bool? get enableKeyboardNavigation; // v0.19.0 (optional) - @override - bool? get enableAnimatedImages; // v0.19.0 (optional) - @override - bool? get collapseBotComments; // v0.19.0 (optional) - @override - bool? get showScores; // v0.18.0 (optional) - @override - bool? get showUpvotes; // v0.19.4 (optional) - @override - bool? get showDownvotes; // v0.19.4 (optional) - @override - bool? get showUpvotePercentage; - - /// Create a copy of SaveUserSettings - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SaveUserSettingsImplCopyWith<_$SaveUserSettingsImpl> get copyWith => - throw _privateConstructorUsedError; -} - -ChangePassword _$ChangePasswordFromJson(Map json) { - return _ChangePassword.fromJson(json); -} - -/// @nodoc -mixin _$ChangePassword { - String get newPassword => throw _privateConstructorUsedError; // v0.18.0 - String get newPasswordVerify => throw _privateConstructorUsedError; // v0.18.0 - String get oldPassword => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this ChangePassword to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ChangePassword - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ChangePasswordCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ChangePasswordCopyWith<$Res> { - factory $ChangePasswordCopyWith( - ChangePassword value, $Res Function(ChangePassword) then) = - _$ChangePasswordCopyWithImpl<$Res, ChangePassword>; - @useResult - $Res call( - {String newPassword, - String newPasswordVerify, - String oldPassword, - String? auth}); -} - -/// @nodoc -class _$ChangePasswordCopyWithImpl<$Res, $Val extends ChangePassword> - implements $ChangePasswordCopyWith<$Res> { - _$ChangePasswordCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ChangePassword - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? newPassword = null, - Object? newPasswordVerify = null, - Object? oldPassword = null, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - newPassword: null == newPassword - ? _value.newPassword - : newPassword // ignore: cast_nullable_to_non_nullable - as String, - newPasswordVerify: null == newPasswordVerify - ? _value.newPasswordVerify - : newPasswordVerify // ignore: cast_nullable_to_non_nullable - as String, - oldPassword: null == oldPassword - ? _value.oldPassword - : oldPassword // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ChangePasswordImplCopyWith<$Res> - implements $ChangePasswordCopyWith<$Res> { - factory _$$ChangePasswordImplCopyWith(_$ChangePasswordImpl value, - $Res Function(_$ChangePasswordImpl) then) = - __$$ChangePasswordImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String newPassword, - String newPasswordVerify, - String oldPassword, - String? auth}); -} - -/// @nodoc -class __$$ChangePasswordImplCopyWithImpl<$Res> - extends _$ChangePasswordCopyWithImpl<$Res, _$ChangePasswordImpl> - implements _$$ChangePasswordImplCopyWith<$Res> { - __$$ChangePasswordImplCopyWithImpl( - _$ChangePasswordImpl _value, $Res Function(_$ChangePasswordImpl) _then) - : super(_value, _then); - - /// Create a copy of ChangePassword - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? newPassword = null, - Object? newPasswordVerify = null, - Object? oldPassword = null, - Object? auth = freezed, - }) { - return _then(_$ChangePasswordImpl( - newPassword: null == newPassword - ? _value.newPassword - : newPassword // ignore: cast_nullable_to_non_nullable - as String, - newPasswordVerify: null == newPasswordVerify - ? _value.newPasswordVerify - : newPasswordVerify // ignore: cast_nullable_to_non_nullable - as String, - oldPassword: null == oldPassword - ? _value.oldPassword - : oldPassword // ignore: cast_nullable_to_non_nullable - as String, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$ChangePasswordImpl extends _ChangePassword { - const _$ChangePasswordImpl( - {required this.newPassword, - required this.newPasswordVerify, - required this.oldPassword, - this.auth}) - : super._(); - - factory _$ChangePasswordImpl.fromJson(Map json) => - _$$ChangePasswordImplFromJson(json); - - @override - final String newPassword; -// v0.18.0 - @override - final String newPasswordVerify; -// v0.18.0 - @override - final String oldPassword; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'ChangePassword(newPassword: $newPassword, newPasswordVerify: $newPasswordVerify, oldPassword: $oldPassword, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ChangePasswordImpl && - (identical(other.newPassword, newPassword) || - other.newPassword == newPassword) && - (identical(other.newPasswordVerify, newPasswordVerify) || - other.newPasswordVerify == newPasswordVerify) && - (identical(other.oldPassword, oldPassword) || - other.oldPassword == oldPassword) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, newPassword, newPasswordVerify, oldPassword, auth); - - /// Create a copy of ChangePassword - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ChangePasswordImplCopyWith<_$ChangePasswordImpl> get copyWith => - __$$ChangePasswordImplCopyWithImpl<_$ChangePasswordImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ChangePasswordImplToJson( - this, - ); - } -} - -abstract class _ChangePassword extends ChangePassword { - const factory _ChangePassword( - {required final String newPassword, - required final String newPasswordVerify, - required final String oldPassword, - final String? auth}) = _$ChangePasswordImpl; - const _ChangePassword._() : super._(); - - factory _ChangePassword.fromJson(Map json) = - _$ChangePasswordImpl.fromJson; - - @override - String get newPassword; // v0.18.0 - @override - String get newPasswordVerify; // v0.18.0 - @override - String get oldPassword; // v0.18.0 - @override - String? get auth; - - /// Create a copy of ChangePassword - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ChangePasswordImplCopyWith<_$ChangePasswordImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetReportCount _$GetReportCountFromJson(Map json) { - return _GetReportCount.fromJson(json); -} - -/// @nodoc -mixin _$GetReportCount { - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetReportCount to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetReportCount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetReportCountCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetReportCountCopyWith<$Res> { - factory $GetReportCountCopyWith( - GetReportCount value, $Res Function(GetReportCount) then) = - _$GetReportCountCopyWithImpl<$Res, GetReportCount>; - @useResult - $Res call({int? communityId, String? auth}); -} - -/// @nodoc -class _$GetReportCountCopyWithImpl<$Res, $Val extends GetReportCount> - implements $GetReportCountCopyWith<$Res> { - _$GetReportCountCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetReportCount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = freezed, - Object? auth = freezed, - }) { - return _then(_value.copyWith( - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetReportCountImplCopyWith<$Res> - implements $GetReportCountCopyWith<$Res> { - factory _$$GetReportCountImplCopyWith(_$GetReportCountImpl value, - $Res Function(_$GetReportCountImpl) then) = - __$$GetReportCountImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? communityId, String? auth}); -} - -/// @nodoc -class __$$GetReportCountImplCopyWithImpl<$Res> - extends _$GetReportCountCopyWithImpl<$Res, _$GetReportCountImpl> - implements _$$GetReportCountImplCopyWith<$Res> { - __$$GetReportCountImplCopyWithImpl( - _$GetReportCountImpl _value, $Res Function(_$GetReportCountImpl) _then) - : super(_value, _then); - - /// Create a copy of GetReportCount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = freezed, - Object? auth = freezed, - }) { - return _then(_$GetReportCountImpl( - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetReportCountImpl extends _GetReportCount { - const _$GetReportCountImpl({this.communityId, this.auth}) : super._(); - - factory _$GetReportCountImpl.fromJson(Map json) => - _$$GetReportCountImplFromJson(json); - - @override - final int? communityId; -// v0.18.0 - @override - final String? auth; - - @override - String toString() { - return 'GetReportCount(communityId: $communityId, auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetReportCountImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, auth); - - /// Create a copy of GetReportCount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetReportCountImplCopyWith<_$GetReportCountImpl> get copyWith => - __$$GetReportCountImplCopyWithImpl<_$GetReportCountImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetReportCountImplToJson( - this, - ); - } -} - -abstract class _GetReportCount extends GetReportCount { - const factory _GetReportCount({final int? communityId, final String? auth}) = - _$GetReportCountImpl; - const _GetReportCount._() : super._(); - - factory _GetReportCount.fromJson(Map json) = - _$GetReportCountImpl.fromJson; - - @override - int? get communityId; // v0.18.0 - @override - String? get auth; - - /// Create a copy of GetReportCount - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetReportCountImplCopyWith<_$GetReportCountImpl> get copyWith => - throw _privateConstructorUsedError; -} - -GetUnreadCount _$GetUnreadCountFromJson(Map json) { - return _GetUnreadCount.fromJson(json); -} - -/// @nodoc -mixin _$GetUnreadCount { - String? get auth => throw _privateConstructorUsedError; - - /// Serializes this GetUnreadCount to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetUnreadCount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetUnreadCountCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetUnreadCountCopyWith<$Res> { - factory $GetUnreadCountCopyWith( - GetUnreadCount value, $Res Function(GetUnreadCount) then) = - _$GetUnreadCountCopyWithImpl<$Res, GetUnreadCount>; - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class _$GetUnreadCountCopyWithImpl<$Res, $Val extends GetUnreadCount> - implements $GetUnreadCountCopyWith<$Res> { - _$GetUnreadCountCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetUnreadCount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_value.copyWith( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetUnreadCountImplCopyWith<$Res> - implements $GetUnreadCountCopyWith<$Res> { - factory _$$GetUnreadCountImplCopyWith(_$GetUnreadCountImpl value, - $Res Function(_$GetUnreadCountImpl) then) = - __$$GetUnreadCountImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? auth}); -} - -/// @nodoc -class __$$GetUnreadCountImplCopyWithImpl<$Res> - extends _$GetUnreadCountCopyWithImpl<$Res, _$GetUnreadCountImpl> - implements _$$GetUnreadCountImplCopyWith<$Res> { - __$$GetUnreadCountImplCopyWithImpl( - _$GetUnreadCountImpl _value, $Res Function(_$GetUnreadCountImpl) _then) - : super(_value, _then); - - /// Create a copy of GetUnreadCount - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? auth = freezed, - }) { - return _then(_$GetUnreadCountImpl( - auth: freezed == auth - ? _value.auth - : auth // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@apiSerde -class _$GetUnreadCountImpl extends _GetUnreadCount { - const _$GetUnreadCountImpl({this.auth}) : super._(); - - factory _$GetUnreadCountImpl.fromJson(Map json) => - _$$GetUnreadCountImplFromJson(json); - - @override - final String? auth; - - @override - String toString() { - return 'GetUnreadCount(auth: $auth)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetUnreadCountImpl && - (identical(other.auth, auth) || other.auth == auth)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, auth); - - /// Create a copy of GetUnreadCount - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetUnreadCountImplCopyWith<_$GetUnreadCountImpl> get copyWith => - __$$GetUnreadCountImplCopyWithImpl<_$GetUnreadCountImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetUnreadCountImplToJson( - this, - ); - } -} - -abstract class _GetUnreadCount extends GetUnreadCount { - const factory _GetUnreadCount({final String? auth}) = _$GetUnreadCountImpl; - const _GetUnreadCount._() : super._(); - - factory _GetUnreadCount.fromJson(Map json) = - _$GetUnreadCountImpl.fromJson; - - @override - String? get auth; - - /// Create a copy of GetUnreadCount - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetUnreadCountImplCopyWith<_$GetUnreadCountImpl> get copyWith => - throw _privateConstructorUsedError; -} - -VerifyEmail _$VerifyEmailFromJson(Map json) { - return _VerifyEmail.fromJson(json); -} - -/// @nodoc -mixin _$VerifyEmail { - String get token => throw _privateConstructorUsedError; - - /// Serializes this VerifyEmail to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of VerifyEmail - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $VerifyEmailCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $VerifyEmailCopyWith<$Res> { - factory $VerifyEmailCopyWith( - VerifyEmail value, $Res Function(VerifyEmail) then) = - _$VerifyEmailCopyWithImpl<$Res, VerifyEmail>; - @useResult - $Res call({String token}); -} - -/// @nodoc -class _$VerifyEmailCopyWithImpl<$Res, $Val extends VerifyEmail> - implements $VerifyEmailCopyWith<$Res> { - _$VerifyEmailCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of VerifyEmail - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? token = null, - }) { - return _then(_value.copyWith( - token: null == token - ? _value.token - : token // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$VerifyEmailImplCopyWith<$Res> - implements $VerifyEmailCopyWith<$Res> { - factory _$$VerifyEmailImplCopyWith( - _$VerifyEmailImpl value, $Res Function(_$VerifyEmailImpl) then) = - __$$VerifyEmailImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String token}); -} - -/// @nodoc -class __$$VerifyEmailImplCopyWithImpl<$Res> - extends _$VerifyEmailCopyWithImpl<$Res, _$VerifyEmailImpl> - implements _$$VerifyEmailImplCopyWith<$Res> { - __$$VerifyEmailImplCopyWithImpl( - _$VerifyEmailImpl _value, $Res Function(_$VerifyEmailImpl) _then) - : super(_value, _then); - - /// Create a copy of VerifyEmail - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? token = null, - }) { - return _then(_$VerifyEmailImpl( - token: null == token - ? _value.token - : token // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@apiSerde -class _$VerifyEmailImpl extends _VerifyEmail { - const _$VerifyEmailImpl({required this.token}) : super._(); - - factory _$VerifyEmailImpl.fromJson(Map json) => - _$$VerifyEmailImplFromJson(json); - - @override - final String token; - - @override - String toString() { - return 'VerifyEmail(token: $token)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$VerifyEmailImpl && - (identical(other.token, token) || other.token == token)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, token); - - /// Create a copy of VerifyEmail - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$VerifyEmailImplCopyWith<_$VerifyEmailImpl> get copyWith => - __$$VerifyEmailImplCopyWithImpl<_$VerifyEmailImpl>(this, _$identity); - - @override - Map toJson() { - return _$$VerifyEmailImplToJson( - this, - ); - } -} - -abstract class _VerifyEmail extends VerifyEmail { - const factory _VerifyEmail({required final String token}) = _$VerifyEmailImpl; - const _VerifyEmail._() : super._(); - - factory _VerifyEmail.fromJson(Map json) = - _$VerifyEmailImpl.fromJson; - - @override - String get token; - - /// Create a copy of VerifyEmail - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$VerifyEmailImplCopyWith<_$VerifyEmailImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/api/user/user.g.dart b/lib/src/v3/api/user/user.g.dart deleted file mode 100644 index 5b6a7e63..00000000 --- a/lib/src/v3/api/user/user.g.dart +++ /dev/null @@ -1,646 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'user.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LeaveAdminImpl _$$LeaveAdminImplFromJson(Map json) => - _$LeaveAdminImpl( - auth: json['auth'] as String?, - ); - -Map _$$LeaveAdminImplToJson(_$LeaveAdminImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ListMediaImpl _$$ListMediaImplFromJson(Map json) => - _$ListMediaImpl( - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$ListMediaImplToJson(_$ListMediaImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('auth', instance.auth); - return val; -} - -_$GenerateTotpSecretImpl _$$GenerateTotpSecretImplFromJson( - Map json) => - _$GenerateTotpSecretImpl( - auth: json['auth'] as String?, - ); - -Map _$$GenerateTotpSecretImplToJson( - _$GenerateTotpSecretImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ExportSettingsImpl _$$ExportSettingsImplFromJson(Map json) => - _$ExportSettingsImpl( - auth: json['auth'] as String?, - ); - -Map _$$ExportSettingsImplToJson( - _$ExportSettingsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$ImportSettingsImpl _$$ImportSettingsImplFromJson(Map json) => - _$ImportSettingsImpl( - auth: json['auth'] as String?, - data: json['data'], - ); - -Map _$$ImportSettingsImplToJson( - _$ImportSettingsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - writeNotNull('data', instance.data); - return val; -} - -_$ValidateAuthImpl _$$ValidateAuthImplFromJson(Map json) => - _$ValidateAuthImpl( - auth: json['auth'] as String?, - ); - -Map _$$ValidateAuthImplToJson(_$ValidateAuthImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$UpdateTotpImpl _$$UpdateTotpImplFromJson(Map json) => - _$UpdateTotpImpl( - auth: json['auth'] as String?, - totpToken: json['totp_token'] as String, - enabled: json['enabled'] as bool, - ); - -Map _$$UpdateTotpImplToJson(_$UpdateTotpImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - val['totp_token'] = instance.totpToken; - val['enabled'] = instance.enabled; - return val; -} - -_$RegisterImpl _$$RegisterImplFromJson(Map json) => - _$RegisterImpl( - username: json['username'] as String, - password: json['password'] as String, - passwordVerify: json['password_verify'] as String, - showNsfw: json['show_nsfw'] as bool?, - email: json['email'] as String?, - captchaUuid: json['captcha_uuid'] as String?, - captchaAnswer: json['captcha_answer'] as String?, - honeypot: json['honeypot'] as String?, - answer: json['answer'] as String?, - ); - -Map _$$RegisterImplToJson(_$RegisterImpl instance) { - final val = { - 'username': instance.username, - 'password': instance.password, - 'password_verify': instance.passwordVerify, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('show_nsfw', instance.showNsfw); - writeNotNull('email', instance.email); - writeNotNull('captcha_uuid', instance.captchaUuid); - writeNotNull('captcha_answer', instance.captchaAnswer); - writeNotNull('honeypot', instance.honeypot); - writeNotNull('answer', instance.answer); - return val; -} - -_$LoginImpl _$$LoginImplFromJson(Map json) => _$LoginImpl( - usernameOrEmail: json['username_or_email'] as String, - password: json['password'] as String, - totp2faToken: json['totp_2fa_token'] as String?, - ); - -Map _$$LoginImplToJson(_$LoginImpl instance) { - final val = { - 'username_or_email': instance.usernameOrEmail, - 'password': instance.password, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('totp_2fa_token', instance.totp2faToken); - return val; -} - -_$LogoutImpl _$$LogoutImplFromJson(Map json) => _$LogoutImpl(); - -Map _$$LogoutImplToJson(_$LogoutImpl instance) => - {}; - -_$GetPersonDetailsImpl _$$GetPersonDetailsImplFromJson( - Map json) => - _$GetPersonDetailsImpl( - personId: (json['person_id'] as num?)?.toInt(), - username: json['username'] as String?, - sort: json['sort'] == null ? null : SortType.fromJson(json['sort']), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - communityId: (json['community_id'] as num?)?.toInt(), - savedOnly: json['saved_only'] as bool?, - auth: json['auth'] as String?, - ); - -Map _$$GetPersonDetailsImplToJson( - _$GetPersonDetailsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('person_id', instance.personId); - writeNotNull('username', instance.username); - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('community_id', instance.communityId); - writeNotNull('saved_only', instance.savedOnly); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetPersonMentionsImpl _$$GetPersonMentionsImplFromJson( - Map json) => - _$GetPersonMentionsImpl( - sort: - json['sort'] == null ? null : CommentSortType.fromJson(json['sort']), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - unreadOnly: json['unread_only'] as bool?, - auth: json['auth'] as String?, - ); - -Map _$$GetPersonMentionsImplToJson( - _$GetPersonMentionsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('unread_only', instance.unreadOnly); - writeNotNull('auth', instance.auth); - return val; -} - -_$MarkPersonMentionAsReadImpl _$$MarkPersonMentionAsReadImplFromJson( - Map json) => - _$MarkPersonMentionAsReadImpl( - personMentionId: (json['person_mention_id'] as num).toInt(), - read: json['read'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$MarkPersonMentionAsReadImplToJson( - _$MarkPersonMentionAsReadImpl instance) { - final val = { - 'person_mention_id': instance.personMentionId, - 'read': instance.read, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$GetRepliesImpl _$$GetRepliesImplFromJson(Map json) => - _$GetRepliesImpl( - sort: - json['sort'] == null ? null : CommentSortType.fromJson(json['sort']), - page: (json['page'] as num?)?.toInt(), - limit: (json['limit'] as num?)?.toInt(), - unreadOnly: json['unread_only'] as bool?, - auth: json['auth'] as String?, - ); - -Map _$$GetRepliesImplToJson(_$GetRepliesImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('sort', instance.sort?.toJson()); - writeNotNull('page', instance.page); - writeNotNull('limit', instance.limit); - writeNotNull('unread_only', instance.unreadOnly); - writeNotNull('auth', instance.auth); - return val; -} - -_$BanPersonImpl _$$BanPersonImplFromJson(Map json) => - _$BanPersonImpl( - personId: (json['person_id'] as num).toInt(), - ban: json['ban'] as bool, - removeData: json['remove_data'] as bool?, - reason: json['reason'] as String?, - expires: (json['expires'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$BanPersonImplToJson(_$BanPersonImpl instance) { - final val = { - 'person_id': instance.personId, - 'ban': instance.ban, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('remove_data', instance.removeData); - writeNotNull('reason', instance.reason); - writeNotNull('expires', instance.expires); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetBannedPersonsImpl _$$GetBannedPersonsImplFromJson( - Map json) => - _$GetBannedPersonsImpl( - auth: json['auth'] as String?, - ); - -Map _$$GetBannedPersonsImplToJson( - _$GetBannedPersonsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$BlockPersonImpl _$$BlockPersonImplFromJson(Map json) => - _$BlockPersonImpl( - personId: (json['person_id'] as num).toInt(), - block: json['block'] as bool, - auth: json['auth'] as String?, - ); - -Map _$$BlockPersonImplToJson(_$BlockPersonImpl instance) { - final val = { - 'person_id': instance.personId, - 'block': instance.block, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$GetCaptchaImpl _$$GetCaptchaImplFromJson(Map json) => - _$GetCaptchaImpl( - auth: json['auth'] as String?, - ); - -Map _$$GetCaptchaImplToJson(_$GetCaptchaImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$DeleteAccountImpl _$$DeleteAccountImplFromJson(Map json) => - _$DeleteAccountImpl( - password: json['password'] as String, - deleteContent: json['delete_content'] as bool?, - auth: json['auth'] as String?, - ); - -Map _$$DeleteAccountImplToJson(_$DeleteAccountImpl instance) { - final val = { - 'password': instance.password, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('delete_content', instance.deleteContent); - writeNotNull('auth', instance.auth); - return val; -} - -_$PasswordResetImpl _$$PasswordResetImplFromJson(Map json) => - _$PasswordResetImpl( - email: json['email'] as String, - ); - -Map _$$PasswordResetImplToJson(_$PasswordResetImpl instance) => - { - 'email': instance.email, - }; - -_$PasswordChangeAfterResetImpl _$$PasswordChangeAfterResetImplFromJson( - Map json) => - _$PasswordChangeAfterResetImpl( - token: json['token'] as String, - password: json['password'] as String, - passwordVerify: json['password_verify'] as String, - ); - -Map _$$PasswordChangeAfterResetImplToJson( - _$PasswordChangeAfterResetImpl instance) => - { - 'token': instance.token, - 'password': instance.password, - 'password_verify': instance.passwordVerify, - }; - -_$MarkAllAsReadImpl _$$MarkAllAsReadImplFromJson(Map json) => - _$MarkAllAsReadImpl( - auth: json['auth'] as String?, - ); - -Map _$$MarkAllAsReadImplToJson(_$MarkAllAsReadImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$SaveUserSettingsImpl _$$SaveUserSettingsImplFromJson( - Map json) => - _$SaveUserSettingsImpl( - showNsfw: json['show_nsfw'] as bool?, - blurNsfw: json['blur_nsfw'] as bool?, - autoExpand: json['auto_expand'] as bool?, - theme: json['theme'] as String?, - defaultSortType: json['default_sort_type'] == null - ? null - : SortType.fromJson(json['default_sort_type']), - defaultListingType: json['default_listing_type'] == null - ? null - : ListingType.fromJson(json['default_listing_type']), - interfaceLanguage: json['interface_language'] as String?, - avatar: json['avatar'] as String?, - banner: json['banner'] as String?, - displayName: json['display_name'] as String?, - email: json['email'] as String?, - bio: json['bio'] as String?, - matrixUserId: json['matrix_user_id'] as String?, - showAvatars: json['show_avatars'] as bool?, - sendNotificationsToEmail: json['send_notifications_to_email'] as bool?, - botAccount: json['bot_account'] as bool?, - showBotAccounts: json['show_bot_accounts'] as bool?, - showReadPosts: json['show_read_posts'] as bool?, - showNewPostNotifs: json['show_new_post_notifs'] as bool?, - discussionLanguages: (json['discussion_languages'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - generateTotp2fa: json['generate_totp2fa'] as bool?, - auth: json['auth'] as String?, - openLinksInNewTab: json['open_links_in_new_tab'] as bool?, - infiniteScrollEnabled: json['infinite_scroll_enabled'] as bool?, - postListingMode: json['post_listing_mode'] as String?, - enableKeyboardNavigation: json['enable_keyboard_navigation'] as bool?, - enableAnimatedImages: json['enable_animated_images'] as bool?, - collapseBotComments: json['collapse_bot_comments'] as bool?, - showScores: json['show_scores'] as bool?, - showUpvotes: json['show_upvotes'] as bool?, - showDownvotes: json['show_downvotes'] as bool?, - showUpvotePercentage: json['show_upvote_percentage'] as bool?, - ); - -Map _$$SaveUserSettingsImplToJson( - _$SaveUserSettingsImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('show_nsfw', instance.showNsfw); - writeNotNull('blur_nsfw', instance.blurNsfw); - writeNotNull('auto_expand', instance.autoExpand); - writeNotNull('theme', instance.theme); - writeNotNull('default_sort_type', instance.defaultSortType?.toJson()); - writeNotNull('default_listing_type', instance.defaultListingType?.toJson()); - writeNotNull('interface_language', instance.interfaceLanguage); - writeNotNull('avatar', instance.avatar); - writeNotNull('banner', instance.banner); - writeNotNull('display_name', instance.displayName); - writeNotNull('email', instance.email); - writeNotNull('bio', instance.bio); - writeNotNull('matrix_user_id', instance.matrixUserId); - writeNotNull('show_avatars', instance.showAvatars); - writeNotNull( - 'send_notifications_to_email', instance.sendNotificationsToEmail); - writeNotNull('bot_account', instance.botAccount); - writeNotNull('show_bot_accounts', instance.showBotAccounts); - writeNotNull('show_read_posts', instance.showReadPosts); - writeNotNull('show_new_post_notifs', instance.showNewPostNotifs); - writeNotNull('discussion_languages', instance.discussionLanguages); - writeNotNull('generate_totp2fa', instance.generateTotp2fa); - writeNotNull('auth', instance.auth); - writeNotNull('open_links_in_new_tab', instance.openLinksInNewTab); - writeNotNull('infinite_scroll_enabled', instance.infiniteScrollEnabled); - writeNotNull('post_listing_mode', instance.postListingMode); - writeNotNull('enable_keyboard_navigation', instance.enableKeyboardNavigation); - writeNotNull('enable_animated_images', instance.enableAnimatedImages); - writeNotNull('collapse_bot_comments', instance.collapseBotComments); - writeNotNull('show_scores', instance.showScores); - writeNotNull('show_upvotes', instance.showUpvotes); - writeNotNull('show_downvotes', instance.showDownvotes); - writeNotNull('show_upvote_percentage', instance.showUpvotePercentage); - return val; -} - -_$ChangePasswordImpl _$$ChangePasswordImplFromJson(Map json) => - _$ChangePasswordImpl( - newPassword: json['new_password'] as String, - newPasswordVerify: json['new_password_verify'] as String, - oldPassword: json['old_password'] as String, - auth: json['auth'] as String?, - ); - -Map _$$ChangePasswordImplToJson( - _$ChangePasswordImpl instance) { - final val = { - 'new_password': instance.newPassword, - 'new_password_verify': instance.newPasswordVerify, - 'old_password': instance.oldPassword, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$GetReportCountImpl _$$GetReportCountImplFromJson(Map json) => - _$GetReportCountImpl( - communityId: (json['community_id'] as num?)?.toInt(), - auth: json['auth'] as String?, - ); - -Map _$$GetReportCountImplToJson( - _$GetReportCountImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('community_id', instance.communityId); - writeNotNull('auth', instance.auth); - return val; -} - -_$GetUnreadCountImpl _$$GetUnreadCountImplFromJson(Map json) => - _$GetUnreadCountImpl( - auth: json['auth'] as String?, - ); - -Map _$$GetUnreadCountImplToJson( - _$GetUnreadCountImpl instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('auth', instance.auth); - return val; -} - -_$VerifyEmailImpl _$$VerifyEmailImplFromJson(Map json) => - _$VerifyEmailImpl( - token: json['token'] as String, - ); - -Map _$$VerifyEmailImplToJson(_$VerifyEmailImpl instance) => - { - 'token': instance.token, - }; diff --git a/lib/src/v3/enums/comment_sort_type.dart b/lib/src/v3/enums/comment_sort_type.dart deleted file mode 100644 index 52fc0b00..00000000 --- a/lib/src/v3/enums/comment_sort_type.dart +++ /dev/null @@ -1,20 +0,0 @@ -enum CommentSortType { - hot('Hot'), // v0.18.0 - top('Top'), // v0.18.0 - new_('New'), // v0.18.0 - old('Old'), // v0.18.0 - controversial('Controversial'); // v0.19.0 - - final String value; - const CommentSortType(this.value); - - factory CommentSortType.fromJson(dynamic value) { - return value is int - ? values[value] - : values.firstWhere((e) => e.value == value); - } - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/community_visibility_type.dart b/lib/src/v3/enums/community_visibility_type.dart deleted file mode 100644 index bc30771b..00000000 --- a/lib/src/v3/enums/community_visibility_type.dart +++ /dev/null @@ -1,17 +0,0 @@ -enum CommunityVisibility { - public('Public'), // v0.19.4 - localOnly('LocalOnly'); // v0.19.4 - - final String value; - const CommunityVisibility(this.value); - - factory CommunityVisibility.fromJson(dynamic value) { - return value is int - ? values[value] - : values.firstWhere((e) => e.value == value); - } - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/listing_type.dart b/lib/src/v3/enums/listing_type.dart deleted file mode 100644 index 50662c7b..00000000 --- a/lib/src/v3/enums/listing_type.dart +++ /dev/null @@ -1,19 +0,0 @@ -enum ListingType { - all('All'), // v0.18.0 - local('Local'), // v0.18.0 - subscribed('Subscribed'), // v0.18.0 - moderatorView('ModeratorView'); // v0.19.0 - - final String value; - const ListingType(this.value); - - factory ListingType.fromJson(dynamic value) { - return value is int - ? values[value] - : values.firstWhere((e) => e.value == value); - } - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/modlog_action_type.dart b/lib/src/v3/enums/modlog_action_type.dart deleted file mode 100644 index 0dccac98..00000000 --- a/lib/src/v3/enums/modlog_action_type.dart +++ /dev/null @@ -1,29 +0,0 @@ -enum ModlogActionType { - all('All'), // v0.18.0 - modRemovePost('ModRemovePost'), // v0.18.0 - modLockPost('ModLockPost'), // v0.18.0 - modFeaturePost('ModFeaturePost'), // v0.18.0 - modRemoveComment('ModRemoveComment'), // v0.18.0 - modRemoveCommunity('ModRemoveCommunity'), // v0.18.0 - modBanFromCommunity('ModBanFromCommunity'), // v0.18.0 - modAddCommunity('ModAddCommunity'), // v0.18.0 - modTransferCommunity('ModTransferCommunity'), // v0.18.0 - modAdd('ModAdd'), // v0.18.0 - modBan('ModBan'), // v0.18.0 - modHideCommunity('ModHideCommunity'), // v0.18.0 - adminPurgePerson('AdminPurgePerson'), // v0.18.0 - adminPurgeCommunity('AdminPurgeCommunity'), // v0.18.0 - adminPurgePost('AdminPurgePost'), // v0.18.0 - adminPurgeComment('AdminPurgeComment'); // v0.18.0 - - final String value; - const ModlogActionType(this.value); - - factory ModlogActionType.fromJson(String value) => - values.firstWhere((e) => e.value == value); - - String toJson() => value; - - @override - String toString() => value; -} diff --git a/lib/src/v3/enums/post_feature_type.dart b/lib/src/v3/enums/post_feature_type.dart deleted file mode 100644 index ef062a17..00000000 --- a/lib/src/v3/enums/post_feature_type.dart +++ /dev/null @@ -1,15 +0,0 @@ -enum PostFeatureType { - local('Local'), // v0.18.0 - community('Community'), // v0.18.0 - ; - - final String value; - const PostFeatureType(this.value); - - factory PostFeatureType.fromJson(String value) => - values.firstWhere((e) => e.value == value); - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/registration_mode.dart b/lib/src/v3/enums/registration_mode.dart deleted file mode 100644 index afc907e1..00000000 --- a/lib/src/v3/enums/registration_mode.dart +++ /dev/null @@ -1,15 +0,0 @@ -enum RegistrationMode { - closed('Closed'), // v0.18.0 - requireApplication('RequireApplication'), // v0.18.0 - open('Open'); // v0.18.0 - - final String value; - const RegistrationMode(this.value); - - factory RegistrationMode.fromJson(String value) => - values.firstWhere((e) => e.value == value); - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/search_type.dart b/lib/src/v3/enums/search_type.dart deleted file mode 100644 index 644f026e..00000000 --- a/lib/src/v3/enums/search_type.dart +++ /dev/null @@ -1,18 +0,0 @@ -enum SearchType { - all('All'), // v0.18.0 - comments('Comments'), // v0.18.0 - posts('Posts'), // v0.18.0 - communities('Communities'), // v0.18.0 - users('Users'), // v0.18.0 - url('Url'); // v0.18.0 - - final String value; - const SearchType(this.value); - - factory SearchType.fromJson(String value) => - values.firstWhere((e) => e.value == value); - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/sort_type.dart b/lib/src/v3/enums/sort_type.dart deleted file mode 100644 index fdcbe79a..00000000 --- a/lib/src/v3/enums/sort_type.dart +++ /dev/null @@ -1,35 +0,0 @@ -enum SortType { - active('Active'), // v0.18.0 - hot('Hot'), // v0.18.0 - new_('New'), // v0.18.0 - old('Old'), // v0.18.0 - topDay('TopDay'), // v0.18.0 - topWeek('TopWeek'), // v0.18.0 - topMonth('TopMonth'), // v0.18.0 - topYear('TopYear'), // v0.18.0 - topAll('TopAll'), // v0.18.0 - mostComments('MostComments'), // v0.18.0 - newComments('NewComments'), // v0.18.0 - topHour('TopHour'), // v0.18.0 - topSixHour('TopSixHour'), // v0.18.0 - topTwelveHour('TopTwelveHour'), // v0.18.0 - topThreeMonths('TopThreeMonths'), // v0.18.1 - topSixMonths('TopSixMonths'), // v0.18.0 - topNineMonths('TopNineMonths'), // v0.18.0 - controversial('Controversial'), // v0.19.0 - scaled('Scaled'), // v0.19.0 - ; - - final String value; - const SortType(this.value); - - factory SortType.fromJson(dynamic value) { - return value is int - ? values[value] - : values.firstWhere((e) => e.value == value); - } - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/enums/subscribed_type.dart b/lib/src/v3/enums/subscribed_type.dart deleted file mode 100644 index 7eb96f1c..00000000 --- a/lib/src/v3/enums/subscribed_type.dart +++ /dev/null @@ -1,15 +0,0 @@ -enum SubscribedType { - subscribed('Subscribed'), // v0.18.0 - notSubscribed('NotSubscribed'), // v0.18.0 - pending('Pending'); // v0.18.0 - - final String value; - const SubscribedType(this.value); - - factory SubscribedType.fromJson(String value) => - values.firstWhere((e) => e.value == value); - - String toJson() => value; - - String toString() => value; -} diff --git a/lib/src/v3/main.dart b/lib/src/v3/main.dart deleted file mode 100644 index 4d431b40..00000000 --- a/lib/src/v3/main.dart +++ /dev/null @@ -1,128 +0,0 @@ -import 'dart:async'; -import 'dart:convert'; - -import 'package:http/http.dart' as http; - -import '../exceptions.dart'; -import '../utils/response_ok.dart'; -import 'query.dart'; - -/// Lemmy API that uses version 3 -class LemmyApiV3 { - final String host; - static const extraPath = '/api/v3'; - - final bool debug; - final bool tls; - - const LemmyApiV3(this.host, {this.debug = false, this.tls = true}); - - /// Run a given query - Future run(LemmyApiQuery query) async { - // get a future based on http method - - String? auth; - String? passthroughParameter; - - if (query is LemmyApiAuthenticatedQuery) { - auth = (query as LemmyApiAuthenticatedQuery).auth; - } - - if (query is PassthroughParameter) { - passthroughParameter = (query as PassthroughParameter).parameter; - } - - if (debug) { - print( - '${DateTime.now().toIso8601String()}: ${query.httpMethod} ${query.path}', - ); - } - - // TLS can only be disable in debug mode. - final String scheme = (!tls && debug) ? 'http' : 'https'; - - final res = await () { - switch (query.httpMethod) { - case HttpMethod.get: - return http.get( - Uri( - scheme: scheme, - host: host, - path: '$extraPath${query.path}', - queryParameters: { - for (final entry in query.toJson().entries) - entry.key: entry.value.toString(), - }, - ), - headers: (auth != null) ? {'Authorization': 'Bearer $auth'} : null, - ); - case HttpMethod.post: - return http.post( - Uri( - scheme: scheme, - host: host, - path: '$extraPath${query.path}', - ), - body: passthroughParameter != null ? query.toJson()[passthroughParameter] as String : jsonEncode(query.toJson()), - headers: { - 'Content-Type': 'application/json', - if (auth != null) 'Authorization': 'Bearer $auth', - }, - ); - case HttpMethod.put: - return http.put( - Uri( - scheme: scheme, - host: host, - path: '$extraPath${query.path}', - ), - body: jsonEncode(query.toJson()), - headers: { - 'Content-Type': 'application/json', - if (auth != null) 'Authorization': 'Bearer $auth', - }, - ); - } - }(); - - // if status code is not \in [200; 300) then throw an exception with a correct message - if (!res.ok) { - final String errorMessage = () { - try { - final Map json = jsonDecode(res.body); - return json['error']; - } on FormatException { - return res.body; - } - }(); - - throw LemmyApiException(errorMessage); - } - - // augment responses with `instance_host` - final Map json = jsonDecode(utf8.decode(res.bodyBytes)); - _augmentInstanceHost(host, json); - - return query.responseFactory(json); - } -} - -/// Deeply augments the whole json with `instance_host`. -/// This might seems stupid but it is incredibly useful for lemmur -/// where instances coexist and it's hard to tell what object -/// came from where -void _augmentInstanceHost(String instanceHost, Map json) { - json['instance_host'] = instanceHost; - - for (final value in json.values) { - if (value is Map) { - _augmentInstanceHost(instanceHost, value); - } else if (value is List) { - for (final subvalue in value) { - if (subvalue is Map) { - _augmentInstanceHost(instanceHost, subvalue); - } - } - } - } -} diff --git a/lib/src/v3/models/admin/add_admin_response.dart b/lib/src/v3/models/admin/add_admin_response.dart deleted file mode 100644 index 416a74a6..00000000 --- a/lib/src/v3/models/admin/add_admin_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'add_admin_response.freezed.dart'; -part 'add_admin_response.g.dart'; - -@freezed -class AddAdminResponse with _$AddAdminResponse { - @modelSerde - const factory AddAdminResponse({ - required List admins, // v0.18.0 - }) = _AddAdminResponse; - - const AddAdminResponse._(); - factory AddAdminResponse.fromJson(Map json) => - _$AddAdminResponseFromJson(json); -} diff --git a/lib/src/v3/models/admin/add_admin_response.freezed.dart b/lib/src/v3/models/admin/add_admin_response.freezed.dart deleted file mode 100644 index 925f4e0c..00000000 --- a/lib/src/v3/models/admin/add_admin_response.freezed.dart +++ /dev/null @@ -1,176 +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 'add_admin_response.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'); - -AddAdminResponse _$AddAdminResponseFromJson(Map json) { - return _AddAdminResponse.fromJson(json); -} - -/// @nodoc -mixin _$AddAdminResponse { - List get admins => throw _privateConstructorUsedError; - - /// Serializes this AddAdminResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AddAdminResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AddAdminResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AddAdminResponseCopyWith<$Res> { - factory $AddAdminResponseCopyWith( - AddAdminResponse value, $Res Function(AddAdminResponse) then) = - _$AddAdminResponseCopyWithImpl<$Res, AddAdminResponse>; - @useResult - $Res call({List admins}); -} - -/// @nodoc -class _$AddAdminResponseCopyWithImpl<$Res, $Val extends AddAdminResponse> - implements $AddAdminResponseCopyWith<$Res> { - _$AddAdminResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AddAdminResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? admins = null, - }) { - return _then(_value.copyWith( - admins: null == admins - ? _value.admins - : admins // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AddAdminResponseImplCopyWith<$Res> - implements $AddAdminResponseCopyWith<$Res> { - factory _$$AddAdminResponseImplCopyWith(_$AddAdminResponseImpl value, - $Res Function(_$AddAdminResponseImpl) then) = - __$$AddAdminResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List admins}); -} - -/// @nodoc -class __$$AddAdminResponseImplCopyWithImpl<$Res> - extends _$AddAdminResponseCopyWithImpl<$Res, _$AddAdminResponseImpl> - implements _$$AddAdminResponseImplCopyWith<$Res> { - __$$AddAdminResponseImplCopyWithImpl(_$AddAdminResponseImpl _value, - $Res Function(_$AddAdminResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of AddAdminResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? admins = null, - }) { - return _then(_$AddAdminResponseImpl( - admins: null == admins - ? _value._admins - : admins // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AddAdminResponseImpl extends _AddAdminResponse { - const _$AddAdminResponseImpl({required final List admins}) - : _admins = admins, - super._(); - - factory _$AddAdminResponseImpl.fromJson(Map json) => - _$$AddAdminResponseImplFromJson(json); - - final List _admins; - @override - List get admins { - if (_admins is EqualUnmodifiableListView) return _admins; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_admins); - } - - @override - String toString() { - return 'AddAdminResponse(admins: $admins)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AddAdminResponseImpl && - const DeepCollectionEquality().equals(other._admins, _admins)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_admins)); - - /// Create a copy of AddAdminResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AddAdminResponseImplCopyWith<_$AddAdminResponseImpl> get copyWith => - __$$AddAdminResponseImplCopyWithImpl<_$AddAdminResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AddAdminResponseImplToJson( - this, - ); - } -} - -abstract class _AddAdminResponse extends AddAdminResponse { - const factory _AddAdminResponse({required final List admins}) = - _$AddAdminResponseImpl; - const _AddAdminResponse._() : super._(); - - factory _AddAdminResponse.fromJson(Map json) = - _$AddAdminResponseImpl.fromJson; - - @override - List get admins; - - /// Create a copy of AddAdminResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AddAdminResponseImplCopyWith<_$AddAdminResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/add_admin_response.g.dart b/lib/src/v3/models/admin/add_admin_response.g.dart deleted file mode 100644 index b8b40399..00000000 --- a/lib/src/v3/models/admin/add_admin_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'add_admin_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AddAdminResponseImpl _$$AddAdminResponseImplFromJson( - Map json) => - _$AddAdminResponseImpl( - admins: (json['admins'] as List) - .map((e) => PersonView.fromJson(e as Map)) - .toList(), - ); - -Map _$$AddAdminResponseImplToJson( - _$AddAdminResponseImpl instance) => - { - 'admins': instance.admins.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/admin/admin_purge_comment.dart b/lib/src/v3/models/admin/admin_purge_comment.dart deleted file mode 100644 index 8c2c0a61..00000000 --- a/lib/src/v3/models/admin/admin_purge_comment.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'admin_purge_comment.freezed.dart'; -part 'admin_purge_comment.g.dart'; - -@freezed -class AdminPurgeComment with _$AdminPurgeComment { - @modelSerde - const factory AdminPurgeComment({ - required int id, // v0.18.0 - required int adminPersonId, // v0.18.0 - required int postId, // v0.18.0 - String? reason, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _AdminPurgeComment; - - const AdminPurgeComment._(); - factory AdminPurgeComment.fromJson(Map json) => - _$AdminPurgeCommentFromJson(json); -} diff --git a/lib/src/v3/models/admin/admin_purge_comment.freezed.dart b/lib/src/v3/models/admin/admin_purge_comment.freezed.dart deleted file mode 100644 index 7511c233..00000000 --- a/lib/src/v3/models/admin/admin_purge_comment.freezed.dart +++ /dev/null @@ -1,262 +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 'admin_purge_comment.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'); - -AdminPurgeComment _$AdminPurgeCommentFromJson(Map json) { - return _AdminPurgeComment.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgeComment { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get adminPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgeComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgeComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgeCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgeCommentCopyWith<$Res> { - factory $AdminPurgeCommentCopyWith( - AdminPurgeComment value, $Res Function(AdminPurgeComment) then) = - _$AdminPurgeCommentCopyWithImpl<$Res, AdminPurgeComment>; - @useResult - $Res call( - {int id, - int adminPersonId, - int postId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$AdminPurgeCommentCopyWithImpl<$Res, $Val extends AdminPurgeComment> - implements $AdminPurgeCommentCopyWith<$Res> { - _$AdminPurgeCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgeComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? postId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AdminPurgeCommentImplCopyWith<$Res> - implements $AdminPurgeCommentCopyWith<$Res> { - factory _$$AdminPurgeCommentImplCopyWith(_$AdminPurgeCommentImpl value, - $Res Function(_$AdminPurgeCommentImpl) then) = - __$$AdminPurgeCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int adminPersonId, - int postId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$AdminPurgeCommentImplCopyWithImpl<$Res> - extends _$AdminPurgeCommentCopyWithImpl<$Res, _$AdminPurgeCommentImpl> - implements _$$AdminPurgeCommentImplCopyWith<$Res> { - __$$AdminPurgeCommentImplCopyWithImpl(_$AdminPurgeCommentImpl _value, - $Res Function(_$AdminPurgeCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgeComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? postId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_$AdminPurgeCommentImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgeCommentImpl extends _AdminPurgeComment { - const _$AdminPurgeCommentImpl( - {required this.id, - required this.adminPersonId, - required this.postId, - this.reason, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$AdminPurgeCommentImpl.fromJson(Map json) => - _$$AdminPurgeCommentImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int adminPersonId; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'AdminPurgeComment(id: $id, adminPersonId: $adminPersonId, postId: $postId, reason: $reason, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgeCommentImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.adminPersonId, adminPersonId) || - other.adminPersonId == adminPersonId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, adminPersonId, postId, reason, when); - - /// Create a copy of AdminPurgeComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgeCommentImplCopyWith<_$AdminPurgeCommentImpl> get copyWith => - __$$AdminPurgeCommentImplCopyWithImpl<_$AdminPurgeCommentImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgeCommentImplToJson( - this, - ); - } -} - -abstract class _AdminPurgeComment extends AdminPurgeComment { - const factory _AdminPurgeComment( - {required final int id, - required final int adminPersonId, - required final int postId, - final String? reason, - @JsonKey(name: 'when_') required final String when}) = - _$AdminPurgeCommentImpl; - const _AdminPurgeComment._() : super._(); - - factory _AdminPurgeComment.fromJson(Map json) = - _$AdminPurgeCommentImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get adminPersonId; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of AdminPurgeComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgeCommentImplCopyWith<_$AdminPurgeCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/admin_purge_comment.g.dart b/lib/src/v3/models/admin/admin_purge_comment.g.dart deleted file mode 100644 index 4a002dce..00000000 --- a/lib/src/v3/models/admin/admin_purge_comment.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_comment.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgeCommentImpl _$$AdminPurgeCommentImplFromJson( - Map json) => - _$AdminPurgeCommentImpl( - id: (json['id'] as num).toInt(), - adminPersonId: (json['admin_person_id'] as num).toInt(), - postId: (json['post_id'] as num).toInt(), - reason: json['reason'] as String?, - when: json['when_'] as String, - ); - -Map _$$AdminPurgeCommentImplToJson( - _$AdminPurgeCommentImpl instance) => - { - 'id': instance.id, - 'admin_person_id': instance.adminPersonId, - 'post_id': instance.postId, - 'reason': instance.reason, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/admin/admin_purge_community.dart b/lib/src/v3/models/admin/admin_purge_community.dart deleted file mode 100644 index be5937e8..00000000 --- a/lib/src/v3/models/admin/admin_purge_community.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'admin_purge_community.freezed.dart'; -part 'admin_purge_community.g.dart'; - -@freezed -class AdminPurgeCommunity with _$AdminPurgeCommunity { - @modelSerde - const factory AdminPurgeCommunity({ - required int id, // v0.18.0 - required int adminPersonId, // v0.18.0 - String? reason, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _AdminPurgeCommunity; - - const AdminPurgeCommunity._(); - factory AdminPurgeCommunity.fromJson(Map json) => - _$AdminPurgeCommunityFromJson(json); -} diff --git a/lib/src/v3/models/admin/admin_purge_community.freezed.dart b/lib/src/v3/models/admin/admin_purge_community.freezed.dart deleted file mode 100644 index 26c81182..00000000 --- a/lib/src/v3/models/admin/admin_purge_community.freezed.dart +++ /dev/null @@ -1,240 +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 'admin_purge_community.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'); - -AdminPurgeCommunity _$AdminPurgeCommunityFromJson(Map json) { - return _AdminPurgeCommunity.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgeCommunity { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get adminPersonId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgeCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgeCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgeCommunityCopyWith<$Res> { - factory $AdminPurgeCommunityCopyWith( - AdminPurgeCommunity value, $Res Function(AdminPurgeCommunity) then) = - _$AdminPurgeCommunityCopyWithImpl<$Res, AdminPurgeCommunity>; - @useResult - $Res call( - {int id, - int adminPersonId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$AdminPurgeCommunityCopyWithImpl<$Res, $Val extends AdminPurgeCommunity> - implements $AdminPurgeCommunityCopyWith<$Res> { - _$AdminPurgeCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AdminPurgeCommunityImplCopyWith<$Res> - implements $AdminPurgeCommunityCopyWith<$Res> { - factory _$$AdminPurgeCommunityImplCopyWith(_$AdminPurgeCommunityImpl value, - $Res Function(_$AdminPurgeCommunityImpl) then) = - __$$AdminPurgeCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int adminPersonId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$AdminPurgeCommunityImplCopyWithImpl<$Res> - extends _$AdminPurgeCommunityCopyWithImpl<$Res, _$AdminPurgeCommunityImpl> - implements _$$AdminPurgeCommunityImplCopyWith<$Res> { - __$$AdminPurgeCommunityImplCopyWithImpl(_$AdminPurgeCommunityImpl _value, - $Res Function(_$AdminPurgeCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_$AdminPurgeCommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgeCommunityImpl extends _AdminPurgeCommunity { - const _$AdminPurgeCommunityImpl( - {required this.id, - required this.adminPersonId, - this.reason, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$AdminPurgeCommunityImpl.fromJson(Map json) => - _$$AdminPurgeCommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int adminPersonId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'AdminPurgeCommunity(id: $id, adminPersonId: $adminPersonId, reason: $reason, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgeCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.adminPersonId, adminPersonId) || - other.adminPersonId == adminPersonId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, adminPersonId, reason, when); - - /// Create a copy of AdminPurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgeCommunityImplCopyWith<_$AdminPurgeCommunityImpl> get copyWith => - __$$AdminPurgeCommunityImplCopyWithImpl<_$AdminPurgeCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgeCommunityImplToJson( - this, - ); - } -} - -abstract class _AdminPurgeCommunity extends AdminPurgeCommunity { - const factory _AdminPurgeCommunity( - {required final int id, - required final int adminPersonId, - final String? reason, - @JsonKey(name: 'when_') required final String when}) = - _$AdminPurgeCommunityImpl; - const _AdminPurgeCommunity._() : super._(); - - factory _AdminPurgeCommunity.fromJson(Map json) = - _$AdminPurgeCommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get adminPersonId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of AdminPurgeCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgeCommunityImplCopyWith<_$AdminPurgeCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/admin_purge_community.g.dart b/lib/src/v3/models/admin/admin_purge_community.g.dart deleted file mode 100644 index 48724a84..00000000 --- a/lib/src/v3/models/admin/admin_purge_community.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgeCommunityImpl _$$AdminPurgeCommunityImplFromJson( - Map json) => - _$AdminPurgeCommunityImpl( - id: (json['id'] as num).toInt(), - adminPersonId: (json['admin_person_id'] as num).toInt(), - reason: json['reason'] as String?, - when: json['when_'] as String, - ); - -Map _$$AdminPurgeCommunityImplToJson( - _$AdminPurgeCommunityImpl instance) => - { - 'id': instance.id, - 'admin_person_id': instance.adminPersonId, - 'reason': instance.reason, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/admin/admin_purge_person.dart b/lib/src/v3/models/admin/admin_purge_person.dart deleted file mode 100644 index bea1f544..00000000 --- a/lib/src/v3/models/admin/admin_purge_person.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'admin_purge_person.freezed.dart'; -part 'admin_purge_person.g.dart'; - -@freezed -class AdminPurgePerson with _$AdminPurgePerson { - @modelSerde - const factory AdminPurgePerson({ - required int id, // v0.18.0 - required int adminPersonId, // v0.18.0 - String? reason, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _AdminPurgePerson; - - const AdminPurgePerson._(); - factory AdminPurgePerson.fromJson(Map json) => - _$AdminPurgePersonFromJson(json); -} diff --git a/lib/src/v3/models/admin/admin_purge_person.freezed.dart b/lib/src/v3/models/admin/admin_purge_person.freezed.dart deleted file mode 100644 index 6a989f23..00000000 --- a/lib/src/v3/models/admin/admin_purge_person.freezed.dart +++ /dev/null @@ -1,240 +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 'admin_purge_person.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'); - -AdminPurgePerson _$AdminPurgePersonFromJson(Map json) { - return _AdminPurgePerson.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgePerson { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get adminPersonId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgePerson to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgePerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgePersonCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgePersonCopyWith<$Res> { - factory $AdminPurgePersonCopyWith( - AdminPurgePerson value, $Res Function(AdminPurgePerson) then) = - _$AdminPurgePersonCopyWithImpl<$Res, AdminPurgePerson>; - @useResult - $Res call( - {int id, - int adminPersonId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$AdminPurgePersonCopyWithImpl<$Res, $Val extends AdminPurgePerson> - implements $AdminPurgePersonCopyWith<$Res> { - _$AdminPurgePersonCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgePerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AdminPurgePersonImplCopyWith<$Res> - implements $AdminPurgePersonCopyWith<$Res> { - factory _$$AdminPurgePersonImplCopyWith(_$AdminPurgePersonImpl value, - $Res Function(_$AdminPurgePersonImpl) then) = - __$$AdminPurgePersonImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int adminPersonId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$AdminPurgePersonImplCopyWithImpl<$Res> - extends _$AdminPurgePersonCopyWithImpl<$Res, _$AdminPurgePersonImpl> - implements _$$AdminPurgePersonImplCopyWith<$Res> { - __$$AdminPurgePersonImplCopyWithImpl(_$AdminPurgePersonImpl _value, - $Res Function(_$AdminPurgePersonImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgePerson - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_$AdminPurgePersonImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgePersonImpl extends _AdminPurgePerson { - const _$AdminPurgePersonImpl( - {required this.id, - required this.adminPersonId, - this.reason, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$AdminPurgePersonImpl.fromJson(Map json) => - _$$AdminPurgePersonImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int adminPersonId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'AdminPurgePerson(id: $id, adminPersonId: $adminPersonId, reason: $reason, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgePersonImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.adminPersonId, adminPersonId) || - other.adminPersonId == adminPersonId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, adminPersonId, reason, when); - - /// Create a copy of AdminPurgePerson - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgePersonImplCopyWith<_$AdminPurgePersonImpl> get copyWith => - __$$AdminPurgePersonImplCopyWithImpl<_$AdminPurgePersonImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgePersonImplToJson( - this, - ); - } -} - -abstract class _AdminPurgePerson extends AdminPurgePerson { - const factory _AdminPurgePerson( - {required final int id, - required final int adminPersonId, - final String? reason, - @JsonKey(name: 'when_') required final String when}) = - _$AdminPurgePersonImpl; - const _AdminPurgePerson._() : super._(); - - factory _AdminPurgePerson.fromJson(Map json) = - _$AdminPurgePersonImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get adminPersonId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of AdminPurgePerson - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgePersonImplCopyWith<_$AdminPurgePersonImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/admin_purge_person.g.dart b/lib/src/v3/models/admin/admin_purge_person.g.dart deleted file mode 100644 index 3035967e..00000000 --- a/lib/src/v3/models/admin/admin_purge_person.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_person.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgePersonImpl _$$AdminPurgePersonImplFromJson( - Map json) => - _$AdminPurgePersonImpl( - id: (json['id'] as num).toInt(), - adminPersonId: (json['admin_person_id'] as num).toInt(), - reason: json['reason'] as String?, - when: json['when_'] as String, - ); - -Map _$$AdminPurgePersonImplToJson( - _$AdminPurgePersonImpl instance) => - { - 'id': instance.id, - 'admin_person_id': instance.adminPersonId, - 'reason': instance.reason, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/admin/admin_purge_post.dart b/lib/src/v3/models/admin/admin_purge_post.dart deleted file mode 100644 index 942125ac..00000000 --- a/lib/src/v3/models/admin/admin_purge_post.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'admin_purge_post.freezed.dart'; -part 'admin_purge_post.g.dart'; - -@freezed -class AdminPurgePost with _$AdminPurgePost { - @modelSerde - const factory AdminPurgePost({ - required int id, // v0.18.0 - required int adminPersonId, // v0.18.0 - required int communityId, // v0.18.0 - String? reason, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _AdminPurgePost; - - const AdminPurgePost._(); - factory AdminPurgePost.fromJson(Map json) => - _$AdminPurgePostFromJson(json); -} diff --git a/lib/src/v3/models/admin/admin_purge_post.freezed.dart b/lib/src/v3/models/admin/admin_purge_post.freezed.dart deleted file mode 100644 index 40fa5347..00000000 --- a/lib/src/v3/models/admin/admin_purge_post.freezed.dart +++ /dev/null @@ -1,263 +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 'admin_purge_post.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'); - -AdminPurgePost _$AdminPurgePostFromJson(Map json) { - return _AdminPurgePost.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgePost { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get adminPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgePostCopyWith<$Res> { - factory $AdminPurgePostCopyWith( - AdminPurgePost value, $Res Function(AdminPurgePost) then) = - _$AdminPurgePostCopyWithImpl<$Res, AdminPurgePost>; - @useResult - $Res call( - {int id, - int adminPersonId, - int communityId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$AdminPurgePostCopyWithImpl<$Res, $Val extends AdminPurgePost> - implements $AdminPurgePostCopyWith<$Res> { - _$AdminPurgePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? communityId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AdminPurgePostImplCopyWith<$Res> - implements $AdminPurgePostCopyWith<$Res> { - factory _$$AdminPurgePostImplCopyWith(_$AdminPurgePostImpl value, - $Res Function(_$AdminPurgePostImpl) then) = - __$$AdminPurgePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int adminPersonId, - int communityId, - String? reason, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$AdminPurgePostImplCopyWithImpl<$Res> - extends _$AdminPurgePostCopyWithImpl<$Res, _$AdminPurgePostImpl> - implements _$$AdminPurgePostImplCopyWith<$Res> { - __$$AdminPurgePostImplCopyWithImpl( - _$AdminPurgePostImpl _value, $Res Function(_$AdminPurgePostImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? adminPersonId = null, - Object? communityId = null, - Object? reason = freezed, - Object? when = null, - }) { - return _then(_$AdminPurgePostImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - adminPersonId: null == adminPersonId - ? _value.adminPersonId - : adminPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgePostImpl extends _AdminPurgePost { - const _$AdminPurgePostImpl( - {required this.id, - required this.adminPersonId, - required this.communityId, - this.reason, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$AdminPurgePostImpl.fromJson(Map json) => - _$$AdminPurgePostImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int adminPersonId; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'AdminPurgePost(id: $id, adminPersonId: $adminPersonId, communityId: $communityId, reason: $reason, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgePostImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.adminPersonId, adminPersonId) || - other.adminPersonId == adminPersonId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, adminPersonId, communityId, reason, when); - - /// Create a copy of AdminPurgePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgePostImplCopyWith<_$AdminPurgePostImpl> get copyWith => - __$$AdminPurgePostImplCopyWithImpl<_$AdminPurgePostImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgePostImplToJson( - this, - ); - } -} - -abstract class _AdminPurgePost extends AdminPurgePost { - const factory _AdminPurgePost( - {required final int id, - required final int adminPersonId, - required final int communityId, - final String? reason, - @JsonKey(name: 'when_') required final String when}) = - _$AdminPurgePostImpl; - const _AdminPurgePost._() : super._(); - - factory _AdminPurgePost.fromJson(Map json) = - _$AdminPurgePostImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get adminPersonId; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of AdminPurgePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgePostImplCopyWith<_$AdminPurgePostImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/admin_purge_post.g.dart b/lib/src/v3/models/admin/admin_purge_post.g.dart deleted file mode 100644 index d92b6cad..00000000 --- a/lib/src/v3/models/admin/admin_purge_post.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_post.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgePostImpl _$$AdminPurgePostImplFromJson(Map json) => - _$AdminPurgePostImpl( - id: (json['id'] as num).toInt(), - adminPersonId: (json['admin_person_id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - reason: json['reason'] as String?, - when: json['when_'] as String, - ); - -Map _$$AdminPurgePostImplToJson( - _$AdminPurgePostImpl instance) => - { - 'id': instance.id, - 'admin_person_id': instance.adminPersonId, - 'community_id': instance.communityId, - 'reason': instance.reason, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/admin/get_unread_registration_application_count_response.dart b/lib/src/v3/models/admin/get_unread_registration_application_count_response.dart deleted file mode 100644 index 3b7cfdf5..00000000 --- a/lib/src/v3/models/admin/get_unread_registration_application_count_response.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'get_unread_registration_application_count_response.freezed.dart'; -part 'get_unread_registration_application_count_response.g.dart'; - -@freezed -class GetUnreadRegistrationApplicationCountResponse - with _$GetUnreadRegistrationApplicationCountResponse { - @modelSerde - const factory GetUnreadRegistrationApplicationCountResponse({ - required int registrationApplications, // v0.18.0 - }) = _GetUnreadRegistrationApplicationCountResponse; - - const GetUnreadRegistrationApplicationCountResponse._(); - factory GetUnreadRegistrationApplicationCountResponse.fromJson( - Map json, - ) => - _$GetUnreadRegistrationApplicationCountResponseFromJson(json); -} diff --git a/lib/src/v3/models/admin/get_unread_registration_application_count_response.freezed.dart b/lib/src/v3/models/admin/get_unread_registration_application_count_response.freezed.dart deleted file mode 100644 index 11a06b88..00000000 --- a/lib/src/v3/models/admin/get_unread_registration_application_count_response.freezed.dart +++ /dev/null @@ -1,194 +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 'get_unread_registration_application_count_response.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'); - -GetUnreadRegistrationApplicationCountResponse - _$GetUnreadRegistrationApplicationCountResponseFromJson( - Map json) { - return _GetUnreadRegistrationApplicationCountResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetUnreadRegistrationApplicationCountResponse { - int get registrationApplications => throw _privateConstructorUsedError; - - /// Serializes this GetUnreadRegistrationApplicationCountResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetUnreadRegistrationApplicationCountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetUnreadRegistrationApplicationCountResponseCopyWith< - GetUnreadRegistrationApplicationCountResponse> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetUnreadRegistrationApplicationCountResponseCopyWith<$Res> { - factory $GetUnreadRegistrationApplicationCountResponseCopyWith( - GetUnreadRegistrationApplicationCountResponse value, - $Res Function(GetUnreadRegistrationApplicationCountResponse) then) = - _$GetUnreadRegistrationApplicationCountResponseCopyWithImpl<$Res, - GetUnreadRegistrationApplicationCountResponse>; - @useResult - $Res call({int registrationApplications}); -} - -/// @nodoc -class _$GetUnreadRegistrationApplicationCountResponseCopyWithImpl<$Res, - $Val extends GetUnreadRegistrationApplicationCountResponse> - implements $GetUnreadRegistrationApplicationCountResponseCopyWith<$Res> { - _$GetUnreadRegistrationApplicationCountResponseCopyWithImpl( - this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetUnreadRegistrationApplicationCountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplications = null, - }) { - return _then(_value.copyWith( - registrationApplications: null == registrationApplications - ? _value.registrationApplications - : registrationApplications // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetUnreadRegistrationApplicationCountResponseImplCopyWith< - $Res> - implements $GetUnreadRegistrationApplicationCountResponseCopyWith<$Res> { - factory _$$GetUnreadRegistrationApplicationCountResponseImplCopyWith( - _$GetUnreadRegistrationApplicationCountResponseImpl value, - $Res Function(_$GetUnreadRegistrationApplicationCountResponseImpl) - then) = - __$$GetUnreadRegistrationApplicationCountResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int registrationApplications}); -} - -/// @nodoc -class __$$GetUnreadRegistrationApplicationCountResponseImplCopyWithImpl<$Res> - extends _$GetUnreadRegistrationApplicationCountResponseCopyWithImpl<$Res, - _$GetUnreadRegistrationApplicationCountResponseImpl> - implements - _$$GetUnreadRegistrationApplicationCountResponseImplCopyWith<$Res> { - __$$GetUnreadRegistrationApplicationCountResponseImplCopyWithImpl( - _$GetUnreadRegistrationApplicationCountResponseImpl _value, - $Res Function(_$GetUnreadRegistrationApplicationCountResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetUnreadRegistrationApplicationCountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplications = null, - }) { - return _then(_$GetUnreadRegistrationApplicationCountResponseImpl( - registrationApplications: null == registrationApplications - ? _value.registrationApplications - : registrationApplications // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetUnreadRegistrationApplicationCountResponseImpl - extends _GetUnreadRegistrationApplicationCountResponse { - const _$GetUnreadRegistrationApplicationCountResponseImpl( - {required this.registrationApplications}) - : super._(); - - factory _$GetUnreadRegistrationApplicationCountResponseImpl.fromJson( - Map json) => - _$$GetUnreadRegistrationApplicationCountResponseImplFromJson(json); - - @override - final int registrationApplications; - - @override - String toString() { - return 'GetUnreadRegistrationApplicationCountResponse(registrationApplications: $registrationApplications)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetUnreadRegistrationApplicationCountResponseImpl && - (identical( - other.registrationApplications, registrationApplications) || - other.registrationApplications == registrationApplications)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, registrationApplications); - - /// Create a copy of GetUnreadRegistrationApplicationCountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetUnreadRegistrationApplicationCountResponseImplCopyWith< - _$GetUnreadRegistrationApplicationCountResponseImpl> - get copyWith => - __$$GetUnreadRegistrationApplicationCountResponseImplCopyWithImpl< - _$GetUnreadRegistrationApplicationCountResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetUnreadRegistrationApplicationCountResponseImplToJson( - this, - ); - } -} - -abstract class _GetUnreadRegistrationApplicationCountResponse - extends GetUnreadRegistrationApplicationCountResponse { - const factory _GetUnreadRegistrationApplicationCountResponse( - {required final int registrationApplications}) = - _$GetUnreadRegistrationApplicationCountResponseImpl; - const _GetUnreadRegistrationApplicationCountResponse._() : super._(); - - factory _GetUnreadRegistrationApplicationCountResponse.fromJson( - Map json) = - _$GetUnreadRegistrationApplicationCountResponseImpl.fromJson; - - @override - int get registrationApplications; - - /// Create a copy of GetUnreadRegistrationApplicationCountResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetUnreadRegistrationApplicationCountResponseImplCopyWith< - _$GetUnreadRegistrationApplicationCountResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/get_unread_registration_application_count_response.g.dart b/lib/src/v3/models/admin/get_unread_registration_application_count_response.g.dart deleted file mode 100644 index 1d3f8910..00000000 --- a/lib/src/v3/models/admin/get_unread_registration_application_count_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_unread_registration_application_count_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetUnreadRegistrationApplicationCountResponseImpl - _$$GetUnreadRegistrationApplicationCountResponseImplFromJson( - Map json) => - _$GetUnreadRegistrationApplicationCountResponseImpl( - registrationApplications: - (json['registration_applications'] as num).toInt(), - ); - -Map _$$GetUnreadRegistrationApplicationCountResponseImplToJson( - _$GetUnreadRegistrationApplicationCountResponseImpl instance) => - { - 'registration_applications': instance.registrationApplications, - }; diff --git a/lib/src/v3/models/admin/list_registration_applications_response.dart b/lib/src/v3/models/admin/list_registration_applications_response.dart deleted file mode 100644 index edf7f960..00000000 --- a/lib/src/v3/models/admin/list_registration_applications_response.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_registration_applications_response.freezed.dart'; -part 'list_registration_applications_response.g.dart'; - -@freezed -class ListRegistrationApplicationsResponse - with _$ListRegistrationApplicationsResponse { - @modelSerde - const factory ListRegistrationApplicationsResponse({ - required List - registrationApplications, // v0.18.0 - }) = _ListRegistrationApplicationsResponse; - - const ListRegistrationApplicationsResponse._(); - factory ListRegistrationApplicationsResponse.fromJson( - Map json, - ) => - _$ListRegistrationApplicationsResponseFromJson(json); -} diff --git a/lib/src/v3/models/admin/list_registration_applications_response.freezed.dart b/lib/src/v3/models/admin/list_registration_applications_response.freezed.dart deleted file mode 100644 index db36c618..00000000 --- a/lib/src/v3/models/admin/list_registration_applications_response.freezed.dart +++ /dev/null @@ -1,197 +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 'list_registration_applications_response.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'); - -ListRegistrationApplicationsResponse - _$ListRegistrationApplicationsResponseFromJson(Map json) { - return _ListRegistrationApplicationsResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListRegistrationApplicationsResponse { - List get registrationApplications => - throw _privateConstructorUsedError; - - /// Serializes this ListRegistrationApplicationsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListRegistrationApplicationsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListRegistrationApplicationsResponseCopyWith< - ListRegistrationApplicationsResponse> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListRegistrationApplicationsResponseCopyWith<$Res> { - factory $ListRegistrationApplicationsResponseCopyWith( - ListRegistrationApplicationsResponse value, - $Res Function(ListRegistrationApplicationsResponse) then) = - _$ListRegistrationApplicationsResponseCopyWithImpl<$Res, - ListRegistrationApplicationsResponse>; - @useResult - $Res call({List registrationApplications}); -} - -/// @nodoc -class _$ListRegistrationApplicationsResponseCopyWithImpl<$Res, - $Val extends ListRegistrationApplicationsResponse> - implements $ListRegistrationApplicationsResponseCopyWith<$Res> { - _$ListRegistrationApplicationsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListRegistrationApplicationsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplications = null, - }) { - return _then(_value.copyWith( - registrationApplications: null == registrationApplications - ? _value.registrationApplications - : registrationApplications // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListRegistrationApplicationsResponseImplCopyWith<$Res> - implements $ListRegistrationApplicationsResponseCopyWith<$Res> { - factory _$$ListRegistrationApplicationsResponseImplCopyWith( - _$ListRegistrationApplicationsResponseImpl value, - $Res Function(_$ListRegistrationApplicationsResponseImpl) then) = - __$$ListRegistrationApplicationsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List registrationApplications}); -} - -/// @nodoc -class __$$ListRegistrationApplicationsResponseImplCopyWithImpl<$Res> - extends _$ListRegistrationApplicationsResponseCopyWithImpl<$Res, - _$ListRegistrationApplicationsResponseImpl> - implements _$$ListRegistrationApplicationsResponseImplCopyWith<$Res> { - __$$ListRegistrationApplicationsResponseImplCopyWithImpl( - _$ListRegistrationApplicationsResponseImpl _value, - $Res Function(_$ListRegistrationApplicationsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListRegistrationApplicationsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplications = null, - }) { - return _then(_$ListRegistrationApplicationsResponseImpl( - registrationApplications: null == registrationApplications - ? _value._registrationApplications - : registrationApplications // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListRegistrationApplicationsResponseImpl - extends _ListRegistrationApplicationsResponse { - const _$ListRegistrationApplicationsResponseImpl( - {required final List - registrationApplications}) - : _registrationApplications = registrationApplications, - super._(); - - factory _$ListRegistrationApplicationsResponseImpl.fromJson( - Map json) => - _$$ListRegistrationApplicationsResponseImplFromJson(json); - - final List _registrationApplications; - @override - List get registrationApplications { - if (_registrationApplications is EqualUnmodifiableListView) - return _registrationApplications; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_registrationApplications); - } - - @override - String toString() { - return 'ListRegistrationApplicationsResponse(registrationApplications: $registrationApplications)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListRegistrationApplicationsResponseImpl && - const DeepCollectionEquality().equals( - other._registrationApplications, _registrationApplications)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, - const DeepCollectionEquality().hash(_registrationApplications)); - - /// Create a copy of ListRegistrationApplicationsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListRegistrationApplicationsResponseImplCopyWith< - _$ListRegistrationApplicationsResponseImpl> - get copyWith => __$$ListRegistrationApplicationsResponseImplCopyWithImpl< - _$ListRegistrationApplicationsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListRegistrationApplicationsResponseImplToJson( - this, - ); - } -} - -abstract class _ListRegistrationApplicationsResponse - extends ListRegistrationApplicationsResponse { - const factory _ListRegistrationApplicationsResponse( - {required final List - registrationApplications}) = - _$ListRegistrationApplicationsResponseImpl; - const _ListRegistrationApplicationsResponse._() : super._(); - - factory _ListRegistrationApplicationsResponse.fromJson( - Map json) = - _$ListRegistrationApplicationsResponseImpl.fromJson; - - @override - List get registrationApplications; - - /// Create a copy of ListRegistrationApplicationsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListRegistrationApplicationsResponseImplCopyWith< - _$ListRegistrationApplicationsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/list_registration_applications_response.g.dart b/lib/src/v3/models/admin/list_registration_applications_response.g.dart deleted file mode 100644 index 3b55652a..00000000 --- a/lib/src/v3/models/admin/list_registration_applications_response.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_registration_applications_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListRegistrationApplicationsResponseImpl - _$$ListRegistrationApplicationsResponseImplFromJson( - Map json) => - _$ListRegistrationApplicationsResponseImpl( - registrationApplications: - (json['registration_applications'] as List) - .map((e) => RegistrationApplicationView.fromJson( - e as Map)) - .toList(), - ); - -Map _$$ListRegistrationApplicationsResponseImplToJson( - _$ListRegistrationApplicationsResponseImpl instance) => - { - 'registration_applications': - instance.registrationApplications.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/admin/purge_item_response.dart b/lib/src/v3/models/admin/purge_item_response.dart deleted file mode 100644 index 53ca89ac..00000000 --- a/lib/src/v3/models/admin/purge_item_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'purge_item_response.freezed.dart'; -part 'purge_item_response.g.dart'; - -@freezed -class PurgeItemResponse with _$PurgeItemResponse { - @modelSerde - const factory PurgeItemResponse({ - required bool success, // v0.18.0 - }) = _PurgeItemResponse; - - const PurgeItemResponse._(); - factory PurgeItemResponse.fromJson(Map json) => - _$PurgeItemResponseFromJson(json); -} diff --git a/lib/src/v3/models/admin/purge_item_response.freezed.dart b/lib/src/v3/models/admin/purge_item_response.freezed.dart deleted file mode 100644 index 85f41a42..00000000 --- a/lib/src/v3/models/admin/purge_item_response.freezed.dart +++ /dev/null @@ -1,168 +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 'purge_item_response.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'); - -PurgeItemResponse _$PurgeItemResponseFromJson(Map json) { - return _PurgeItemResponse.fromJson(json); -} - -/// @nodoc -mixin _$PurgeItemResponse { - bool get success => throw _privateConstructorUsedError; - - /// Serializes this PurgeItemResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PurgeItemResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PurgeItemResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PurgeItemResponseCopyWith<$Res> { - factory $PurgeItemResponseCopyWith( - PurgeItemResponse value, $Res Function(PurgeItemResponse) then) = - _$PurgeItemResponseCopyWithImpl<$Res, PurgeItemResponse>; - @useResult - $Res call({bool success}); -} - -/// @nodoc -class _$PurgeItemResponseCopyWithImpl<$Res, $Val extends PurgeItemResponse> - implements $PurgeItemResponseCopyWith<$Res> { - _$PurgeItemResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PurgeItemResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = null, - }) { - return _then(_value.copyWith( - success: null == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PurgeItemResponseImplCopyWith<$Res> - implements $PurgeItemResponseCopyWith<$Res> { - factory _$$PurgeItemResponseImplCopyWith(_$PurgeItemResponseImpl value, - $Res Function(_$PurgeItemResponseImpl) then) = - __$$PurgeItemResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool success}); -} - -/// @nodoc -class __$$PurgeItemResponseImplCopyWithImpl<$Res> - extends _$PurgeItemResponseCopyWithImpl<$Res, _$PurgeItemResponseImpl> - implements _$$PurgeItemResponseImplCopyWith<$Res> { - __$$PurgeItemResponseImplCopyWithImpl(_$PurgeItemResponseImpl _value, - $Res Function(_$PurgeItemResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PurgeItemResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = null, - }) { - return _then(_$PurgeItemResponseImpl( - success: null == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PurgeItemResponseImpl extends _PurgeItemResponse { - const _$PurgeItemResponseImpl({required this.success}) : super._(); - - factory _$PurgeItemResponseImpl.fromJson(Map json) => - _$$PurgeItemResponseImplFromJson(json); - - @override - final bool success; - - @override - String toString() { - return 'PurgeItemResponse(success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PurgeItemResponseImpl && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, success); - - /// Create a copy of PurgeItemResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PurgeItemResponseImplCopyWith<_$PurgeItemResponseImpl> get copyWith => - __$$PurgeItemResponseImplCopyWithImpl<_$PurgeItemResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PurgeItemResponseImplToJson( - this, - ); - } -} - -abstract class _PurgeItemResponse extends PurgeItemResponse { - const factory _PurgeItemResponse({required final bool success}) = - _$PurgeItemResponseImpl; - const _PurgeItemResponse._() : super._(); - - factory _PurgeItemResponse.fromJson(Map json) = - _$PurgeItemResponseImpl.fromJson; - - @override - bool get success; - - /// Create a copy of PurgeItemResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PurgeItemResponseImplCopyWith<_$PurgeItemResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/purge_item_response.g.dart b/lib/src/v3/models/admin/purge_item_response.g.dart deleted file mode 100644 index f1be523f..00000000 --- a/lib/src/v3/models/admin/purge_item_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'purge_item_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PurgeItemResponseImpl _$$PurgeItemResponseImplFromJson( - Map json) => - _$PurgeItemResponseImpl( - success: json['success'] as bool, - ); - -Map _$$PurgeItemResponseImplToJson( - _$PurgeItemResponseImpl instance) => - { - 'success': instance.success, - }; diff --git a/lib/src/v3/models/admin/registration_application.dart b/lib/src/v3/models/admin/registration_application.dart deleted file mode 100644 index ec6b4263..00000000 --- a/lib/src/v3/models/admin/registration_application.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'registration_application.freezed.dart'; -part 'registration_application.g.dart'; - -@freezed -class RegistrationApplication with _$RegistrationApplication { - @modelSerde - const factory RegistrationApplication({ - required int id, // v0.18.0 - required int localUserId, // v0.18.0 - required String answer, // v0.18.0 - int? adminId, // v0.18.0 - String? denyReason, // v0.18.0 - required DateTime published, // v0.18.0 - }) = _RegistrationApplication; - - const RegistrationApplication._(); - factory RegistrationApplication.fromJson(Map json) => - _$RegistrationApplicationFromJson(json); -} diff --git a/lib/src/v3/models/admin/registration_application.freezed.dart b/lib/src/v3/models/admin/registration_application.freezed.dart deleted file mode 100644 index 86970623..00000000 --- a/lib/src/v3/models/admin/registration_application.freezed.dart +++ /dev/null @@ -1,286 +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 'registration_application.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'); - -RegistrationApplication _$RegistrationApplicationFromJson( - Map json) { - return _RegistrationApplication.fromJson(json); -} - -/// @nodoc -mixin _$RegistrationApplication { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get localUserId => throw _privateConstructorUsedError; // v0.18.0 - String get answer => throw _privateConstructorUsedError; // v0.18.0 - int? get adminId => throw _privateConstructorUsedError; // v0.18.0 - String? get denyReason => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; - - /// Serializes this RegistrationApplication to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of RegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RegistrationApplicationCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RegistrationApplicationCopyWith<$Res> { - factory $RegistrationApplicationCopyWith(RegistrationApplication value, - $Res Function(RegistrationApplication) then) = - _$RegistrationApplicationCopyWithImpl<$Res, RegistrationApplication>; - @useResult - $Res call( - {int id, - int localUserId, - String answer, - int? adminId, - String? denyReason, - DateTime published}); -} - -/// @nodoc -class _$RegistrationApplicationCopyWithImpl<$Res, - $Val extends RegistrationApplication> - implements $RegistrationApplicationCopyWith<$Res> { - _$RegistrationApplicationCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of RegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? localUserId = null, - Object? answer = null, - Object? adminId = freezed, - Object? denyReason = freezed, - Object? published = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - localUserId: null == localUserId - ? _value.localUserId - : localUserId // ignore: cast_nullable_to_non_nullable - as int, - answer: null == answer - ? _value.answer - : answer // ignore: cast_nullable_to_non_nullable - as String, - adminId: freezed == adminId - ? _value.adminId - : adminId // ignore: cast_nullable_to_non_nullable - as int?, - denyReason: freezed == denyReason - ? _value.denyReason - : denyReason // ignore: cast_nullable_to_non_nullable - as String?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$RegistrationApplicationImplCopyWith<$Res> - implements $RegistrationApplicationCopyWith<$Res> { - factory _$$RegistrationApplicationImplCopyWith( - _$RegistrationApplicationImpl value, - $Res Function(_$RegistrationApplicationImpl) then) = - __$$RegistrationApplicationImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int localUserId, - String answer, - int? adminId, - String? denyReason, - DateTime published}); -} - -/// @nodoc -class __$$RegistrationApplicationImplCopyWithImpl<$Res> - extends _$RegistrationApplicationCopyWithImpl<$Res, - _$RegistrationApplicationImpl> - implements _$$RegistrationApplicationImplCopyWith<$Res> { - __$$RegistrationApplicationImplCopyWithImpl( - _$RegistrationApplicationImpl _value, - $Res Function(_$RegistrationApplicationImpl) _then) - : super(_value, _then); - - /// Create a copy of RegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? localUserId = null, - Object? answer = null, - Object? adminId = freezed, - Object? denyReason = freezed, - Object? published = null, - }) { - return _then(_$RegistrationApplicationImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - localUserId: null == localUserId - ? _value.localUserId - : localUserId // ignore: cast_nullable_to_non_nullable - as int, - answer: null == answer - ? _value.answer - : answer // ignore: cast_nullable_to_non_nullable - as String, - adminId: freezed == adminId - ? _value.adminId - : adminId // ignore: cast_nullable_to_non_nullable - as int?, - denyReason: freezed == denyReason - ? _value.denyReason - : denyReason // ignore: cast_nullable_to_non_nullable - as String?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -/// @nodoc - -@modelSerde -class _$RegistrationApplicationImpl extends _RegistrationApplication { - const _$RegistrationApplicationImpl( - {required this.id, - required this.localUserId, - required this.answer, - this.adminId, - this.denyReason, - required this.published}) - : super._(); - - factory _$RegistrationApplicationImpl.fromJson(Map json) => - _$$RegistrationApplicationImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int localUserId; -// v0.18.0 - @override - final String answer; -// v0.18.0 - @override - final int? adminId; -// v0.18.0 - @override - final String? denyReason; -// v0.18.0 - @override - final DateTime published; - - @override - String toString() { - return 'RegistrationApplication(id: $id, localUserId: $localUserId, answer: $answer, adminId: $adminId, denyReason: $denyReason, published: $published)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RegistrationApplicationImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.localUserId, localUserId) || - other.localUserId == localUserId) && - (identical(other.answer, answer) || other.answer == answer) && - (identical(other.adminId, adminId) || other.adminId == adminId) && - (identical(other.denyReason, denyReason) || - other.denyReason == denyReason) && - (identical(other.published, published) || - other.published == published)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, id, localUserId, answer, adminId, denyReason, published); - - /// Create a copy of RegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RegistrationApplicationImplCopyWith<_$RegistrationApplicationImpl> - get copyWith => __$$RegistrationApplicationImplCopyWithImpl< - _$RegistrationApplicationImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RegistrationApplicationImplToJson( - this, - ); - } -} - -abstract class _RegistrationApplication extends RegistrationApplication { - const factory _RegistrationApplication( - {required final int id, - required final int localUserId, - required final String answer, - final int? adminId, - final String? denyReason, - required final DateTime published}) = _$RegistrationApplicationImpl; - const _RegistrationApplication._() : super._(); - - factory _RegistrationApplication.fromJson(Map json) = - _$RegistrationApplicationImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get localUserId; // v0.18.0 - @override - String get answer; // v0.18.0 - @override - int? get adminId; // v0.18.0 - @override - String? get denyReason; // v0.18.0 - @override - DateTime get published; - - /// Create a copy of RegistrationApplication - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RegistrationApplicationImplCopyWith<_$RegistrationApplicationImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/registration_application.g.dart b/lib/src/v3/models/admin/registration_application.g.dart deleted file mode 100644 index 257c503e..00000000 --- a/lib/src/v3/models/admin/registration_application.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'registration_application.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$RegistrationApplicationImpl _$$RegistrationApplicationImplFromJson( - Map json) => - _$RegistrationApplicationImpl( - id: (json['id'] as num).toInt(), - localUserId: (json['local_user_id'] as num).toInt(), - answer: json['answer'] as String, - adminId: (json['admin_id'] as num?)?.toInt(), - denyReason: json['deny_reason'] as String?, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - ); - -Map _$$RegistrationApplicationImplToJson( - _$RegistrationApplicationImpl instance) => - { - 'id': instance.id, - 'local_user_id': instance.localUserId, - 'answer': instance.answer, - 'admin_id': instance.adminId, - 'deny_reason': instance.denyReason, - 'published': const ForceUtcDateTime().toJson(instance.published), - }; diff --git a/lib/src/v3/models/admin/registration_application_response.dart b/lib/src/v3/models/admin/registration_application_response.dart deleted file mode 100644 index b4e66a6b..00000000 --- a/lib/src/v3/models/admin/registration_application_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'registration_application_response.freezed.dart'; -part 'registration_application_response.g.dart'; - -@freezed -class RegistrationApplicationResponse with _$RegistrationApplicationResponse { - @modelSerde - const factory RegistrationApplicationResponse({ - required RegistrationApplicationView registrationApplication, // v0.18.0 - }) = _RegistrationApplicationResponse; - - const RegistrationApplicationResponse._(); - factory RegistrationApplicationResponse.fromJson(Map json) => - _$RegistrationApplicationResponseFromJson(json); -} diff --git a/lib/src/v3/models/admin/registration_application_response.freezed.dart b/lib/src/v3/models/admin/registration_application_response.freezed.dart deleted file mode 100644 index 2ddc45c2..00000000 --- a/lib/src/v3/models/admin/registration_application_response.freezed.dart +++ /dev/null @@ -1,202 +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 'registration_application_response.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'); - -RegistrationApplicationResponse _$RegistrationApplicationResponseFromJson( - Map json) { - return _RegistrationApplicationResponse.fromJson(json); -} - -/// @nodoc -mixin _$RegistrationApplicationResponse { - RegistrationApplicationView get registrationApplication => - throw _privateConstructorUsedError; - - /// Serializes this RegistrationApplicationResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of RegistrationApplicationResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RegistrationApplicationResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RegistrationApplicationResponseCopyWith<$Res> { - factory $RegistrationApplicationResponseCopyWith( - RegistrationApplicationResponse value, - $Res Function(RegistrationApplicationResponse) then) = - _$RegistrationApplicationResponseCopyWithImpl<$Res, - RegistrationApplicationResponse>; - @useResult - $Res call({RegistrationApplicationView registrationApplication}); - - $RegistrationApplicationViewCopyWith<$Res> get registrationApplication; -} - -/// @nodoc -class _$RegistrationApplicationResponseCopyWithImpl<$Res, - $Val extends RegistrationApplicationResponse> - implements $RegistrationApplicationResponseCopyWith<$Res> { - _$RegistrationApplicationResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of RegistrationApplicationResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplication = null, - }) { - return _then(_value.copyWith( - registrationApplication: null == registrationApplication - ? _value.registrationApplication - : registrationApplication // ignore: cast_nullable_to_non_nullable - as RegistrationApplicationView, - ) as $Val); - } - - /// Create a copy of RegistrationApplicationResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $RegistrationApplicationViewCopyWith<$Res> get registrationApplication { - return $RegistrationApplicationViewCopyWith<$Res>( - _value.registrationApplication, (value) { - return _then(_value.copyWith(registrationApplication: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$RegistrationApplicationResponseImplCopyWith<$Res> - implements $RegistrationApplicationResponseCopyWith<$Res> { - factory _$$RegistrationApplicationResponseImplCopyWith( - _$RegistrationApplicationResponseImpl value, - $Res Function(_$RegistrationApplicationResponseImpl) then) = - __$$RegistrationApplicationResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({RegistrationApplicationView registrationApplication}); - - @override - $RegistrationApplicationViewCopyWith<$Res> get registrationApplication; -} - -/// @nodoc -class __$$RegistrationApplicationResponseImplCopyWithImpl<$Res> - extends _$RegistrationApplicationResponseCopyWithImpl<$Res, - _$RegistrationApplicationResponseImpl> - implements _$$RegistrationApplicationResponseImplCopyWith<$Res> { - __$$RegistrationApplicationResponseImplCopyWithImpl( - _$RegistrationApplicationResponseImpl _value, - $Res Function(_$RegistrationApplicationResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of RegistrationApplicationResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplication = null, - }) { - return _then(_$RegistrationApplicationResponseImpl( - registrationApplication: null == registrationApplication - ? _value.registrationApplication - : registrationApplication // ignore: cast_nullable_to_non_nullable - as RegistrationApplicationView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$RegistrationApplicationResponseImpl - extends _RegistrationApplicationResponse { - const _$RegistrationApplicationResponseImpl( - {required this.registrationApplication}) - : super._(); - - factory _$RegistrationApplicationResponseImpl.fromJson( - Map json) => - _$$RegistrationApplicationResponseImplFromJson(json); - - @override - final RegistrationApplicationView registrationApplication; - - @override - String toString() { - return 'RegistrationApplicationResponse(registrationApplication: $registrationApplication)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RegistrationApplicationResponseImpl && - (identical( - other.registrationApplication, registrationApplication) || - other.registrationApplication == registrationApplication)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, registrationApplication); - - /// Create a copy of RegistrationApplicationResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RegistrationApplicationResponseImplCopyWith< - _$RegistrationApplicationResponseImpl> - get copyWith => __$$RegistrationApplicationResponseImplCopyWithImpl< - _$RegistrationApplicationResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RegistrationApplicationResponseImplToJson( - this, - ); - } -} - -abstract class _RegistrationApplicationResponse - extends RegistrationApplicationResponse { - const factory _RegistrationApplicationResponse( - {required final RegistrationApplicationView - registrationApplication}) = _$RegistrationApplicationResponseImpl; - const _RegistrationApplicationResponse._() : super._(); - - factory _RegistrationApplicationResponse.fromJson(Map json) = - _$RegistrationApplicationResponseImpl.fromJson; - - @override - RegistrationApplicationView get registrationApplication; - - /// Create a copy of RegistrationApplicationResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RegistrationApplicationResponseImplCopyWith< - _$RegistrationApplicationResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/admin/registration_application_response.g.dart b/lib/src/v3/models/admin/registration_application_response.g.dart deleted file mode 100644 index 797063b4..00000000 --- a/lib/src/v3/models/admin/registration_application_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'registration_application_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$RegistrationApplicationResponseImpl - _$$RegistrationApplicationResponseImplFromJson(Map json) => - _$RegistrationApplicationResponseImpl( - registrationApplication: RegistrationApplicationView.fromJson( - json['registration_application'] as Map), - ); - -Map _$$RegistrationApplicationResponseImplToJson( - _$RegistrationApplicationResponseImpl instance) => - { - 'registration_application': instance.registrationApplication.toJson(), - }; diff --git a/lib/src/v3/models/comment/comment.dart b/lib/src/v3/models/comment/comment.dart deleted file mode 100644 index 950d8df1..00000000 --- a/lib/src/v3/models/comment/comment.dart +++ /dev/null @@ -1,31 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'comment.freezed.dart'; -part 'comment.g.dart'; - -@freezed -class Comment with _$Comment { - @modelSerde - const factory Comment({ - required int id, // v0.18.0 - required int creatorId, // v0.18.0 - required int postId, // v0.18.0 - required String content, // v0.18.0 - required bool removed, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - required bool deleted, // v0.18.0 - required String apId, // v0.18.0 - required bool local, // v0.18.0 - required String path, // v0.18.0 - required bool distinguished, // v0.18.0 - required int languageId, // v0.18.0 - }) = _Comment; - - const Comment._(); - factory Comment.fromJson(Map json) => - _$CommentFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment.freezed.dart b/lib/src/v3/models/comment/comment.freezed.dart deleted file mode 100644 index 7cd093d2..00000000 --- a/lib/src/v3/models/comment/comment.freezed.dart +++ /dev/null @@ -1,437 +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 'comment.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'); - -Comment _$CommentFromJson(Map json) { - return _Comment.fromJson(json); -} - -/// @nodoc -mixin _$Comment { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get creatorId => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String get content => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - String get apId => throw _privateConstructorUsedError; // v0.18.0 - bool get local => throw _privateConstructorUsedError; // v0.18.0 - String get path => throw _privateConstructorUsedError; // v0.18.0 - bool get distinguished => throw _privateConstructorUsedError; // v0.18.0 - int get languageId => throw _privateConstructorUsedError; - - /// Serializes this Comment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Comment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentCopyWith<$Res> { - factory $CommentCopyWith(Comment value, $Res Function(Comment) then) = - _$CommentCopyWithImpl<$Res, Comment>; - @useResult - $Res call( - {int id, - int creatorId, - int postId, - String content, - bool removed, - DateTime published, - DateTime? updated, - bool deleted, - String apId, - bool local, - String path, - bool distinguished, - int languageId}); -} - -/// @nodoc -class _$CommentCopyWithImpl<$Res, $Val extends Comment> - implements $CommentCopyWith<$Res> { - _$CommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Comment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? postId = null, - Object? content = null, - Object? removed = null, - Object? published = null, - Object? updated = freezed, - Object? deleted = null, - Object? apId = null, - Object? local = null, - Object? path = null, - Object? distinguished = null, - Object? languageId = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - apId: null == apId - ? _value.apId - : apId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - path: null == path - ? _value.path - : path // ignore: cast_nullable_to_non_nullable - as String, - distinguished: null == distinguished - ? _value.distinguished - : distinguished // ignore: cast_nullable_to_non_nullable - as bool, - languageId: null == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CommentImplCopyWith<$Res> implements $CommentCopyWith<$Res> { - factory _$$CommentImplCopyWith( - _$CommentImpl value, $Res Function(_$CommentImpl) then) = - __$$CommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int creatorId, - int postId, - String content, - bool removed, - DateTime published, - DateTime? updated, - bool deleted, - String apId, - bool local, - String path, - bool distinguished, - int languageId}); -} - -/// @nodoc -class __$$CommentImplCopyWithImpl<$Res> - extends _$CommentCopyWithImpl<$Res, _$CommentImpl> - implements _$$CommentImplCopyWith<$Res> { - __$$CommentImplCopyWithImpl( - _$CommentImpl _value, $Res Function(_$CommentImpl) _then) - : super(_value, _then); - - /// Create a copy of Comment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? postId = null, - Object? content = null, - Object? removed = null, - Object? published = null, - Object? updated = freezed, - Object? deleted = null, - Object? apId = null, - Object? local = null, - Object? path = null, - Object? distinguished = null, - Object? languageId = null, - }) { - return _then(_$CommentImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - apId: null == apId - ? _value.apId - : apId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - path: null == path - ? _value.path - : path // ignore: cast_nullable_to_non_nullable - as String, - distinguished: null == distinguished - ? _value.distinguished - : distinguished // ignore: cast_nullable_to_non_nullable - as bool, - languageId: null == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentImpl extends _Comment { - const _$CommentImpl( - {required this.id, - required this.creatorId, - required this.postId, - required this.content, - required this.removed, - required this.published, - this.updated, - required this.deleted, - required this.apId, - required this.local, - required this.path, - required this.distinguished, - required this.languageId}) - : super._(); - - factory _$CommentImpl.fromJson(Map json) => - _$$CommentImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int creatorId; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final String content; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final String apId; -// v0.18.0 - @override - final bool local; -// v0.18.0 - @override - final String path; -// v0.18.0 - @override - final bool distinguished; -// v0.18.0 - @override - final int languageId; - - @override - String toString() { - return 'Comment(id: $id, creatorId: $creatorId, postId: $postId, content: $content, removed: $removed, published: $published, updated: $updated, deleted: $deleted, apId: $apId, local: $local, path: $path, distinguished: $distinguished, languageId: $languageId)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.content, content) || other.content == content) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.apId, apId) || other.apId == apId) && - (identical(other.local, local) || other.local == local) && - (identical(other.path, path) || other.path == path) && - (identical(other.distinguished, distinguished) || - other.distinguished == distinguished) && - (identical(other.languageId, languageId) || - other.languageId == languageId)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - creatorId, - postId, - content, - removed, - published, - updated, - deleted, - apId, - local, - path, - distinguished, - languageId); - - /// Create a copy of Comment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentImplCopyWith<_$CommentImpl> get copyWith => - __$$CommentImplCopyWithImpl<_$CommentImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommentImplToJson( - this, - ); - } -} - -abstract class _Comment extends Comment { - const factory _Comment( - {required final int id, - required final int creatorId, - required final int postId, - required final String content, - required final bool removed, - required final DateTime published, - final DateTime? updated, - required final bool deleted, - required final String apId, - required final bool local, - required final String path, - required final bool distinguished, - required final int languageId}) = _$CommentImpl; - const _Comment._() : super._(); - - factory _Comment.fromJson(Map json) = _$CommentImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get creatorId; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - String get content; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - String get apId; // v0.18.0 - @override - bool get local; // v0.18.0 - @override - String get path; // v0.18.0 - @override - bool get distinguished; // v0.18.0 - @override - int get languageId; - - /// Create a copy of Comment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentImplCopyWith<_$CommentImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment.g.dart b/lib/src/v3/models/comment/comment.g.dart deleted file mode 100644 index 6299a69b..00000000 --- a/lib/src/v3/models/comment/comment.g.dart +++ /dev/null @@ -1,55 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentImpl _$$CommentImplFromJson(Map json) => - _$CommentImpl( - id: (json['id'] as num).toInt(), - creatorId: (json['creator_id'] as num).toInt(), - postId: (json['post_id'] as num).toInt(), - content: json['content'] as String, - removed: json['removed'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - deleted: json['deleted'] as bool, - apId: json['ap_id'] as String, - local: json['local'] as bool, - path: json['path'] as String, - distinguished: json['distinguished'] as bool, - languageId: (json['language_id'] as num).toInt(), - ); - -Map _$$CommentImplToJson(_$CommentImpl instance) => - { - 'id': instance.id, - 'creator_id': instance.creatorId, - 'post_id': instance.postId, - 'content': instance.content, - 'removed': instance.removed, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'deleted': instance.deleted, - 'ap_id': instance.apId, - 'local': instance.local, - 'path': instance.path, - 'distinguished': instance.distinguished, - 'language_id': instance.languageId, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/comment/comment_aggregates.dart b/lib/src/v3/models/comment/comment_aggregates.dart deleted file mode 100644 index f715afd8..00000000 --- a/lib/src/v3/models/comment/comment_aggregates.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'comment_aggregates.freezed.dart'; -part 'comment_aggregates.g.dart'; - -@freezed -class CommentAggregates with _$CommentAggregates { - @modelSerde - const factory CommentAggregates({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int commentId, // v0.18.0 - required int score, // v0.18.0 - required int upvotes, // v0.18.0 - required int downvotes, // v0.18.0 - required DateTime published, // v0.18.0 - required int childCount, // v0.18.0 - @deprecated int? hotRank, // v0.18.0 [deprecated in v0.19.0] - }) = _CommentAggregates; - - const CommentAggregates._(); - factory CommentAggregates.fromJson(Map json) => - _$CommentAggregatesFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment_aggregates.freezed.dart b/lib/src/v3/models/comment/comment_aggregates.freezed.dart deleted file mode 100644 index 8431b090..00000000 --- a/lib/src/v3/models/comment/comment_aggregates.freezed.dart +++ /dev/null @@ -1,331 +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 'comment_aggregates.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'); - -CommentAggregates _$CommentAggregatesFromJson(Map json) { - return _CommentAggregates.fromJson(json); -} - -/// @nodoc -mixin _$CommentAggregates { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - int get score => throw _privateConstructorUsedError; // v0.18.0 - int get upvotes => throw _privateConstructorUsedError; // v0.18.0 - int get downvotes => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - int get childCount => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get hotRank => throw _privateConstructorUsedError; - - /// Serializes this CommentAggregates to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentAggregatesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentAggregatesCopyWith<$Res> { - factory $CommentAggregatesCopyWith( - CommentAggregates value, $Res Function(CommentAggregates) then) = - _$CommentAggregatesCopyWithImpl<$Res, CommentAggregates>; - @useResult - $Res call( - {@deprecated int? id, - int commentId, - int score, - int upvotes, - int downvotes, - DateTime published, - int childCount, - @deprecated int? hotRank}); -} - -/// @nodoc -class _$CommentAggregatesCopyWithImpl<$Res, $Val extends CommentAggregates> - implements $CommentAggregatesCopyWith<$Res> { - _$CommentAggregatesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? commentId = null, - Object? score = null, - Object? upvotes = null, - Object? downvotes = null, - Object? published = null, - Object? childCount = null, - Object? hotRank = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as int, - upvotes: null == upvotes - ? _value.upvotes - : upvotes // ignore: cast_nullable_to_non_nullable - as int, - downvotes: null == downvotes - ? _value.downvotes - : downvotes // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - childCount: null == childCount - ? _value.childCount - : childCount // ignore: cast_nullable_to_non_nullable - as int, - hotRank: freezed == hotRank - ? _value.hotRank - : hotRank // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CommentAggregatesImplCopyWith<$Res> - implements $CommentAggregatesCopyWith<$Res> { - factory _$$CommentAggregatesImplCopyWith(_$CommentAggregatesImpl value, - $Res Function(_$CommentAggregatesImpl) then) = - __$$CommentAggregatesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? id, - int commentId, - int score, - int upvotes, - int downvotes, - DateTime published, - int childCount, - @deprecated int? hotRank}); -} - -/// @nodoc -class __$$CommentAggregatesImplCopyWithImpl<$Res> - extends _$CommentAggregatesCopyWithImpl<$Res, _$CommentAggregatesImpl> - implements _$$CommentAggregatesImplCopyWith<$Res> { - __$$CommentAggregatesImplCopyWithImpl(_$CommentAggregatesImpl _value, - $Res Function(_$CommentAggregatesImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? commentId = null, - Object? score = null, - Object? upvotes = null, - Object? downvotes = null, - Object? published = null, - Object? childCount = null, - Object? hotRank = freezed, - }) { - return _then(_$CommentAggregatesImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as int, - upvotes: null == upvotes - ? _value.upvotes - : upvotes // ignore: cast_nullable_to_non_nullable - as int, - downvotes: null == downvotes - ? _value.downvotes - : downvotes // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - childCount: null == childCount - ? _value.childCount - : childCount // ignore: cast_nullable_to_non_nullable - as int, - hotRank: freezed == hotRank - ? _value.hotRank - : hotRank // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentAggregatesImpl extends _CommentAggregates { - const _$CommentAggregatesImpl( - {@deprecated this.id, - required this.commentId, - required this.score, - required this.upvotes, - required this.downvotes, - required this.published, - required this.childCount, - @deprecated this.hotRank}) - : super._(); - - factory _$CommentAggregatesImpl.fromJson(Map json) => - _$$CommentAggregatesImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int commentId; -// v0.18.0 - @override - final int score; -// v0.18.0 - @override - final int upvotes; -// v0.18.0 - @override - final int downvotes; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final int childCount; -// v0.18.0 - @override - @deprecated - final int? hotRank; - - @override - String toString() { - return 'CommentAggregates(id: $id, commentId: $commentId, score: $score, upvotes: $upvotes, downvotes: $downvotes, published: $published, childCount: $childCount, hotRank: $hotRank)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentAggregatesImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.score, score) || other.score == score) && - (identical(other.upvotes, upvotes) || other.upvotes == upvotes) && - (identical(other.downvotes, downvotes) || - other.downvotes == downvotes) && - (identical(other.published, published) || - other.published == published) && - (identical(other.childCount, childCount) || - other.childCount == childCount) && - (identical(other.hotRank, hotRank) || other.hotRank == hotRank)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, commentId, score, upvotes, - downvotes, published, childCount, hotRank); - - /// Create a copy of CommentAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentAggregatesImplCopyWith<_$CommentAggregatesImpl> get copyWith => - __$$CommentAggregatesImplCopyWithImpl<_$CommentAggregatesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommentAggregatesImplToJson( - this, - ); - } -} - -abstract class _CommentAggregates extends CommentAggregates { - const factory _CommentAggregates( - {@deprecated final int? id, - required final int commentId, - required final int score, - required final int upvotes, - required final int downvotes, - required final DateTime published, - required final int childCount, - @deprecated final int? hotRank}) = _$CommentAggregatesImpl; - const _CommentAggregates._() : super._(); - - factory _CommentAggregates.fromJson(Map json) = - _$CommentAggregatesImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get commentId; // v0.18.0 - @override - int get score; // v0.18.0 - @override - int get upvotes; // v0.18.0 - @override - int get downvotes; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - int get childCount; // v0.18.0 - @override - @deprecated - int? get hotRank; - - /// Create a copy of CommentAggregates - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentAggregatesImplCopyWith<_$CommentAggregatesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment_aggregates.g.dart b/lib/src/v3/models/comment/comment_aggregates.g.dart deleted file mode 100644 index 871ec7cd..00000000 --- a/lib/src/v3/models/comment/comment_aggregates.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_aggregates.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentAggregatesImpl _$$CommentAggregatesImplFromJson( - Map json) => - _$CommentAggregatesImpl( - id: (json['id'] as num?)?.toInt(), - commentId: (json['comment_id'] as num).toInt(), - score: (json['score'] as num).toInt(), - upvotes: (json['upvotes'] as num).toInt(), - downvotes: (json['downvotes'] as num).toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - childCount: (json['child_count'] as num).toInt(), - hotRank: (json['hot_rank'] as num?)?.toInt(), - ); - -Map _$$CommentAggregatesImplToJson( - _$CommentAggregatesImpl instance) => - { - 'id': instance.id, - 'comment_id': instance.commentId, - 'score': instance.score, - 'upvotes': instance.upvotes, - 'downvotes': instance.downvotes, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'child_count': instance.childCount, - 'hot_rank': instance.hotRank, - }; diff --git a/lib/src/v3/models/comment/comment_reply.dart b/lib/src/v3/models/comment/comment_reply.dart deleted file mode 100644 index 9702d743..00000000 --- a/lib/src/v3/models/comment/comment_reply.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'comment_reply.freezed.dart'; -part 'comment_reply.g.dart'; - -@freezed -class CommentReply with _$CommentReply { - @modelSerde - const factory CommentReply({ - required int id, // v0.18.0 - required int recipientId, // v0.18.0 - required int commentId, // v0.18.0 - required bool read, // v0.18.0 - required DateTime published, // v0.18.0 - }) = _CommentReply; - - const CommentReply._(); - factory CommentReply.fromJson(Map json) => - _$CommentReplyFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment_reply.freezed.dart b/lib/src/v3/models/comment/comment_reply.freezed.dart deleted file mode 100644 index a11bb48d..00000000 --- a/lib/src/v3/models/comment/comment_reply.freezed.dart +++ /dev/null @@ -1,251 +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 'comment_reply.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'); - -CommentReply _$CommentReplyFromJson(Map json) { - return _CommentReply.fromJson(json); -} - -/// @nodoc -mixin _$CommentReply { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get recipientId => throw _privateConstructorUsedError; // v0.18.0 - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; - - /// Serializes this CommentReply to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentReply - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentReplyCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentReplyCopyWith<$Res> { - factory $CommentReplyCopyWith( - CommentReply value, $Res Function(CommentReply) then) = - _$CommentReplyCopyWithImpl<$Res, CommentReply>; - @useResult - $Res call( - {int id, int recipientId, int commentId, bool read, DateTime published}); -} - -/// @nodoc -class _$CommentReplyCopyWithImpl<$Res, $Val extends CommentReply> - implements $CommentReplyCopyWith<$Res> { - _$CommentReplyCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentReply - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? recipientId = null, - Object? commentId = null, - Object? read = null, - Object? published = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CommentReplyImplCopyWith<$Res> - implements $CommentReplyCopyWith<$Res> { - factory _$$CommentReplyImplCopyWith( - _$CommentReplyImpl value, $Res Function(_$CommentReplyImpl) then) = - __$$CommentReplyImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, int recipientId, int commentId, bool read, DateTime published}); -} - -/// @nodoc -class __$$CommentReplyImplCopyWithImpl<$Res> - extends _$CommentReplyCopyWithImpl<$Res, _$CommentReplyImpl> - implements _$$CommentReplyImplCopyWith<$Res> { - __$$CommentReplyImplCopyWithImpl( - _$CommentReplyImpl _value, $Res Function(_$CommentReplyImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentReply - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? recipientId = null, - Object? commentId = null, - Object? read = null, - Object? published = null, - }) { - return _then(_$CommentReplyImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentReplyImpl extends _CommentReply { - const _$CommentReplyImpl( - {required this.id, - required this.recipientId, - required this.commentId, - required this.read, - required this.published}) - : super._(); - - factory _$CommentReplyImpl.fromJson(Map json) => - _$$CommentReplyImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int recipientId; -// v0.18.0 - @override - final int commentId; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final DateTime published; - - @override - String toString() { - return 'CommentReply(id: $id, recipientId: $recipientId, commentId: $commentId, read: $read, published: $published)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentReplyImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.recipientId, recipientId) || - other.recipientId == recipientId) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.read, read) || other.read == read) && - (identical(other.published, published) || - other.published == published)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, recipientId, commentId, read, published); - - /// Create a copy of CommentReply - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentReplyImplCopyWith<_$CommentReplyImpl> get copyWith => - __$$CommentReplyImplCopyWithImpl<_$CommentReplyImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommentReplyImplToJson( - this, - ); - } -} - -abstract class _CommentReply extends CommentReply { - const factory _CommentReply( - {required final int id, - required final int recipientId, - required final int commentId, - required final bool read, - required final DateTime published}) = _$CommentReplyImpl; - const _CommentReply._() : super._(); - - factory _CommentReply.fromJson(Map json) = - _$CommentReplyImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get recipientId; // v0.18.0 - @override - int get commentId; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - DateTime get published; - - /// Create a copy of CommentReply - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentReplyImplCopyWith<_$CommentReplyImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment_reply.g.dart b/lib/src/v3/models/comment/comment_reply.g.dart deleted file mode 100644 index 66d00023..00000000 --- a/lib/src/v3/models/comment/comment_reply.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_reply.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentReplyImpl _$$CommentReplyImplFromJson(Map json) => - _$CommentReplyImpl( - id: (json['id'] as num).toInt(), - recipientId: (json['recipient_id'] as num).toInt(), - commentId: (json['comment_id'] as num).toInt(), - read: json['read'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - ); - -Map _$$CommentReplyImplToJson(_$CommentReplyImpl instance) => - { - 'id': instance.id, - 'recipient_id': instance.recipientId, - 'comment_id': instance.commentId, - 'read': instance.read, - 'published': const ForceUtcDateTime().toJson(instance.published), - }; diff --git a/lib/src/v3/models/comment/comment_reply_response.dart b/lib/src/v3/models/comment/comment_reply_response.dart deleted file mode 100644 index 0146a53c..00000000 --- a/lib/src/v3/models/comment/comment_reply_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'comment_reply_response.freezed.dart'; -part 'comment_reply_response.g.dart'; - -@freezed -class CommentReplyResponse with _$CommentReplyResponse { - @modelSerde - const factory CommentReplyResponse({ - required CommentReplyView commentReplyView, // v0.18.0 - }) = _CommentReplyResponse; - - const CommentReplyResponse._(); - factory CommentReplyResponse.fromJson(Map json) => - _$CommentReplyResponseFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment_reply_response.freezed.dart b/lib/src/v3/models/comment/comment_reply_response.freezed.dart deleted file mode 100644 index 3c74eee4..00000000 --- a/lib/src/v3/models/comment/comment_reply_response.freezed.dart +++ /dev/null @@ -1,188 +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 'comment_reply_response.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'); - -CommentReplyResponse _$CommentReplyResponseFromJson(Map json) { - return _CommentReplyResponse.fromJson(json); -} - -/// @nodoc -mixin _$CommentReplyResponse { - CommentReplyView get commentReplyView => throw _privateConstructorUsedError; - - /// Serializes this CommentReplyResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentReplyResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentReplyResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentReplyResponseCopyWith<$Res> { - factory $CommentReplyResponseCopyWith(CommentReplyResponse value, - $Res Function(CommentReplyResponse) then) = - _$CommentReplyResponseCopyWithImpl<$Res, CommentReplyResponse>; - @useResult - $Res call({CommentReplyView commentReplyView}); - - $CommentReplyViewCopyWith<$Res> get commentReplyView; -} - -/// @nodoc -class _$CommentReplyResponseCopyWithImpl<$Res, - $Val extends CommentReplyResponse> - implements $CommentReplyResponseCopyWith<$Res> { - _$CommentReplyResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentReplyResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReplyView = null, - }) { - return _then(_value.copyWith( - commentReplyView: null == commentReplyView - ? _value.commentReplyView - : commentReplyView // ignore: cast_nullable_to_non_nullable - as CommentReplyView, - ) as $Val); - } - - /// Create a copy of CommentReplyResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentReplyViewCopyWith<$Res> get commentReplyView { - return $CommentReplyViewCopyWith<$Res>(_value.commentReplyView, (value) { - return _then(_value.copyWith(commentReplyView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommentReplyResponseImplCopyWith<$Res> - implements $CommentReplyResponseCopyWith<$Res> { - factory _$$CommentReplyResponseImplCopyWith(_$CommentReplyResponseImpl value, - $Res Function(_$CommentReplyResponseImpl) then) = - __$$CommentReplyResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CommentReplyView commentReplyView}); - - @override - $CommentReplyViewCopyWith<$Res> get commentReplyView; -} - -/// @nodoc -class __$$CommentReplyResponseImplCopyWithImpl<$Res> - extends _$CommentReplyResponseCopyWithImpl<$Res, _$CommentReplyResponseImpl> - implements _$$CommentReplyResponseImplCopyWith<$Res> { - __$$CommentReplyResponseImplCopyWithImpl(_$CommentReplyResponseImpl _value, - $Res Function(_$CommentReplyResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentReplyResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReplyView = null, - }) { - return _then(_$CommentReplyResponseImpl( - commentReplyView: null == commentReplyView - ? _value.commentReplyView - : commentReplyView // ignore: cast_nullable_to_non_nullable - as CommentReplyView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentReplyResponseImpl extends _CommentReplyResponse { - const _$CommentReplyResponseImpl({required this.commentReplyView}) - : super._(); - - factory _$CommentReplyResponseImpl.fromJson(Map json) => - _$$CommentReplyResponseImplFromJson(json); - - @override - final CommentReplyView commentReplyView; - - @override - String toString() { - return 'CommentReplyResponse(commentReplyView: $commentReplyView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentReplyResponseImpl && - (identical(other.commentReplyView, commentReplyView) || - other.commentReplyView == commentReplyView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentReplyView); - - /// Create a copy of CommentReplyResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentReplyResponseImplCopyWith<_$CommentReplyResponseImpl> - get copyWith => - __$$CommentReplyResponseImplCopyWithImpl<_$CommentReplyResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommentReplyResponseImplToJson( - this, - ); - } -} - -abstract class _CommentReplyResponse extends CommentReplyResponse { - const factory _CommentReplyResponse( - {required final CommentReplyView commentReplyView}) = - _$CommentReplyResponseImpl; - const _CommentReplyResponse._() : super._(); - - factory _CommentReplyResponse.fromJson(Map json) = - _$CommentReplyResponseImpl.fromJson; - - @override - CommentReplyView get commentReplyView; - - /// Create a copy of CommentReplyResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentReplyResponseImplCopyWith<_$CommentReplyResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment_reply_response.g.dart b/lib/src/v3/models/comment/comment_reply_response.g.dart deleted file mode 100644 index f07ab2ba..00000000 --- a/lib/src/v3/models/comment/comment_reply_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_reply_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentReplyResponseImpl _$$CommentReplyResponseImplFromJson( - Map json) => - _$CommentReplyResponseImpl( - commentReplyView: CommentReplyView.fromJson( - json['comment_reply_view'] as Map), - ); - -Map _$$CommentReplyResponseImplToJson( - _$CommentReplyResponseImpl instance) => - { - 'comment_reply_view': instance.commentReplyView.toJson(), - }; diff --git a/lib/src/v3/models/comment/comment_report.dart b/lib/src/v3/models/comment/comment_report.dart deleted file mode 100644 index e5ef0c4f..00000000 --- a/lib/src/v3/models/comment/comment_report.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'comment_report.freezed.dart'; -part 'comment_report.g.dart'; - -@freezed -class CommentReport with _$CommentReport { - @modelSerde - const factory CommentReport({ - required int id, // v0.18.0 - required int creatorId, // v0.18.0 - required int commentId, // v0.18.0 - required String originalCommentText, // v0.18.0 - required String reason, // v0.18.0 - required bool resolved, // v0.18.0 - int? resolverId, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - }) = _CommentReport; - - const CommentReport._(); - factory CommentReport.fromJson(Map json) => - _$CommentReportFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment_report.freezed.dart b/lib/src/v3/models/comment/comment_report.freezed.dart deleted file mode 100644 index 25b85442..00000000 --- a/lib/src/v3/models/comment/comment_report.freezed.dart +++ /dev/null @@ -1,347 +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 'comment_report.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'); - -CommentReport _$CommentReportFromJson(Map json) { - return _CommentReport.fromJson(json); -} - -/// @nodoc -mixin _$CommentReport { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get creatorId => throw _privateConstructorUsedError; // v0.18.0 - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - String get originalCommentText => - throw _privateConstructorUsedError; // v0.18.0 - String get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get resolved => throw _privateConstructorUsedError; // v0.18.0 - int? get resolverId => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; - - /// Serializes this CommentReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentReportCopyWith<$Res> { - factory $CommentReportCopyWith( - CommentReport value, $Res Function(CommentReport) then) = - _$CommentReportCopyWithImpl<$Res, CommentReport>; - @useResult - $Res call( - {int id, - int creatorId, - int commentId, - String originalCommentText, - String reason, - bool resolved, - int? resolverId, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class _$CommentReportCopyWithImpl<$Res, $Val extends CommentReport> - implements $CommentReportCopyWith<$Res> { - _$CommentReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? commentId = null, - Object? originalCommentText = null, - Object? reason = null, - Object? resolved = null, - Object? resolverId = freezed, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - originalCommentText: null == originalCommentText - ? _value.originalCommentText - : originalCommentText // ignore: cast_nullable_to_non_nullable - as String, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - resolverId: freezed == resolverId - ? _value.resolverId - : resolverId // ignore: cast_nullable_to_non_nullable - as int?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CommentReportImplCopyWith<$Res> - implements $CommentReportCopyWith<$Res> { - factory _$$CommentReportImplCopyWith( - _$CommentReportImpl value, $Res Function(_$CommentReportImpl) then) = - __$$CommentReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int creatorId, - int commentId, - String originalCommentText, - String reason, - bool resolved, - int? resolverId, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class __$$CommentReportImplCopyWithImpl<$Res> - extends _$CommentReportCopyWithImpl<$Res, _$CommentReportImpl> - implements _$$CommentReportImplCopyWith<$Res> { - __$$CommentReportImplCopyWithImpl( - _$CommentReportImpl _value, $Res Function(_$CommentReportImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? commentId = null, - Object? originalCommentText = null, - Object? reason = null, - Object? resolved = null, - Object? resolverId = freezed, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_$CommentReportImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - originalCommentText: null == originalCommentText - ? _value.originalCommentText - : originalCommentText // ignore: cast_nullable_to_non_nullable - as String, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - resolverId: freezed == resolverId - ? _value.resolverId - : resolverId // ignore: cast_nullable_to_non_nullable - as int?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentReportImpl extends _CommentReport { - const _$CommentReportImpl( - {required this.id, - required this.creatorId, - required this.commentId, - required this.originalCommentText, - required this.reason, - required this.resolved, - this.resolverId, - required this.published, - this.updated}) - : super._(); - - factory _$CommentReportImpl.fromJson(Map json) => - _$$CommentReportImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int creatorId; -// v0.18.0 - @override - final int commentId; -// v0.18.0 - @override - final String originalCommentText; -// v0.18.0 - @override - final String reason; -// v0.18.0 - @override - final bool resolved; -// v0.18.0 - @override - final int? resolverId; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; - - @override - String toString() { - return 'CommentReport(id: $id, creatorId: $creatorId, commentId: $commentId, originalCommentText: $originalCommentText, reason: $reason, resolved: $resolved, resolverId: $resolverId, published: $published, updated: $updated)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentReportImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.originalCommentText, originalCommentText) || - other.originalCommentText == originalCommentText) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.resolved, resolved) || - other.resolved == resolved) && - (identical(other.resolverId, resolverId) || - other.resolverId == resolverId) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, creatorId, commentId, - originalCommentText, reason, resolved, resolverId, published, updated); - - /// Create a copy of CommentReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentReportImplCopyWith<_$CommentReportImpl> get copyWith => - __$$CommentReportImplCopyWithImpl<_$CommentReportImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommentReportImplToJson( - this, - ); - } -} - -abstract class _CommentReport extends CommentReport { - const factory _CommentReport( - {required final int id, - required final int creatorId, - required final int commentId, - required final String originalCommentText, - required final String reason, - required final bool resolved, - final int? resolverId, - required final DateTime published, - final DateTime? updated}) = _$CommentReportImpl; - const _CommentReport._() : super._(); - - factory _CommentReport.fromJson(Map json) = - _$CommentReportImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get creatorId; // v0.18.0 - @override - int get commentId; // v0.18.0 - @override - String get originalCommentText; // v0.18.0 - @override - String get reason; // v0.18.0 - @override - bool get resolved; // v0.18.0 - @override - int? get resolverId; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; - - /// Create a copy of CommentReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentReportImplCopyWith<_$CommentReportImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment_report.g.dart b/lib/src/v3/models/comment/comment_report.g.dart deleted file mode 100644 index 1e5d2aa8..00000000 --- a/lib/src/v3/models/comment/comment_report.g.dart +++ /dev/null @@ -1,47 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_report.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentReportImpl _$$CommentReportImplFromJson(Map json) => - _$CommentReportImpl( - id: (json['id'] as num).toInt(), - creatorId: (json['creator_id'] as num).toInt(), - commentId: (json['comment_id'] as num).toInt(), - originalCommentText: json['original_comment_text'] as String, - reason: json['reason'] as String, - resolved: json['resolved'] as bool, - resolverId: (json['resolver_id'] as num?)?.toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - ); - -Map _$$CommentReportImplToJson(_$CommentReportImpl instance) => - { - 'id': instance.id, - 'creator_id': instance.creatorId, - 'comment_id': instance.commentId, - 'original_comment_text': instance.originalCommentText, - 'reason': instance.reason, - 'resolved': instance.resolved, - 'resolver_id': instance.resolverId, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/comment/comment_report_response.dart b/lib/src/v3/models/comment/comment_report_response.dart deleted file mode 100644 index e9b64763..00000000 --- a/lib/src/v3/models/comment/comment_report_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'comment_report_response.freezed.dart'; -part 'comment_report_response.g.dart'; - -@freezed -class CommentReportResponse with _$CommentReportResponse { - @modelSerde - const factory CommentReportResponse({ - required CommentReportView commentReportView, // v0.18.0 - }) = _CommentReportResponse; - - const CommentReportResponse._(); - factory CommentReportResponse.fromJson(Map json) => - _$CommentReportResponseFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment_report_response.freezed.dart b/lib/src/v3/models/comment/comment_report_response.freezed.dart deleted file mode 100644 index 9743f18e..00000000 --- a/lib/src/v3/models/comment/comment_report_response.freezed.dart +++ /dev/null @@ -1,190 +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 'comment_report_response.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'); - -CommentReportResponse _$CommentReportResponseFromJson( - Map json) { - return _CommentReportResponse.fromJson(json); -} - -/// @nodoc -mixin _$CommentReportResponse { - CommentReportView get commentReportView => throw _privateConstructorUsedError; - - /// Serializes this CommentReportResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentReportResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentReportResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentReportResponseCopyWith<$Res> { - factory $CommentReportResponseCopyWith(CommentReportResponse value, - $Res Function(CommentReportResponse) then) = - _$CommentReportResponseCopyWithImpl<$Res, CommentReportResponse>; - @useResult - $Res call({CommentReportView commentReportView}); - - $CommentReportViewCopyWith<$Res> get commentReportView; -} - -/// @nodoc -class _$CommentReportResponseCopyWithImpl<$Res, - $Val extends CommentReportResponse> - implements $CommentReportResponseCopyWith<$Res> { - _$CommentReportResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentReportResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReportView = null, - }) { - return _then(_value.copyWith( - commentReportView: null == commentReportView - ? _value.commentReportView - : commentReportView // ignore: cast_nullable_to_non_nullable - as CommentReportView, - ) as $Val); - } - - /// Create a copy of CommentReportResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentReportViewCopyWith<$Res> get commentReportView { - return $CommentReportViewCopyWith<$Res>(_value.commentReportView, (value) { - return _then(_value.copyWith(commentReportView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommentReportResponseImplCopyWith<$Res> - implements $CommentReportResponseCopyWith<$Res> { - factory _$$CommentReportResponseImplCopyWith( - _$CommentReportResponseImpl value, - $Res Function(_$CommentReportResponseImpl) then) = - __$$CommentReportResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CommentReportView commentReportView}); - - @override - $CommentReportViewCopyWith<$Res> get commentReportView; -} - -/// @nodoc -class __$$CommentReportResponseImplCopyWithImpl<$Res> - extends _$CommentReportResponseCopyWithImpl<$Res, - _$CommentReportResponseImpl> - implements _$$CommentReportResponseImplCopyWith<$Res> { - __$$CommentReportResponseImplCopyWithImpl(_$CommentReportResponseImpl _value, - $Res Function(_$CommentReportResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentReportResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReportView = null, - }) { - return _then(_$CommentReportResponseImpl( - commentReportView: null == commentReportView - ? _value.commentReportView - : commentReportView // ignore: cast_nullable_to_non_nullable - as CommentReportView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentReportResponseImpl extends _CommentReportResponse { - const _$CommentReportResponseImpl({required this.commentReportView}) - : super._(); - - factory _$CommentReportResponseImpl.fromJson(Map json) => - _$$CommentReportResponseImplFromJson(json); - - @override - final CommentReportView commentReportView; - - @override - String toString() { - return 'CommentReportResponse(commentReportView: $commentReportView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentReportResponseImpl && - (identical(other.commentReportView, commentReportView) || - other.commentReportView == commentReportView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentReportView); - - /// Create a copy of CommentReportResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentReportResponseImplCopyWith<_$CommentReportResponseImpl> - get copyWith => __$$CommentReportResponseImplCopyWithImpl< - _$CommentReportResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommentReportResponseImplToJson( - this, - ); - } -} - -abstract class _CommentReportResponse extends CommentReportResponse { - const factory _CommentReportResponse( - {required final CommentReportView commentReportView}) = - _$CommentReportResponseImpl; - const _CommentReportResponse._() : super._(); - - factory _CommentReportResponse.fromJson(Map json) = - _$CommentReportResponseImpl.fromJson; - - @override - CommentReportView get commentReportView; - - /// Create a copy of CommentReportResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentReportResponseImplCopyWith<_$CommentReportResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment_report_response.g.dart b/lib/src/v3/models/comment/comment_report_response.g.dart deleted file mode 100644 index e22479c6..00000000 --- a/lib/src/v3/models/comment/comment_report_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_report_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentReportResponseImpl _$$CommentReportResponseImplFromJson( - Map json) => - _$CommentReportResponseImpl( - commentReportView: CommentReportView.fromJson( - json['comment_report_view'] as Map), - ); - -Map _$$CommentReportResponseImplToJson( - _$CommentReportResponseImpl instance) => - { - 'comment_report_view': instance.commentReportView.toJson(), - }; diff --git a/lib/src/v3/models/comment/comment_response.dart b/lib/src/v3/models/comment/comment_response.dart deleted file mode 100644 index 8d500373..00000000 --- a/lib/src/v3/models/comment/comment_response.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'comment_response.freezed.dart'; -part 'comment_response.g.dart'; - -@freezed -class CommentResponse with _$CommentResponse { - @modelSerde - const factory CommentResponse({ - required CommentView commentView, // v0.18.0 - required List recipientIds, // v0.18.0 - @deprecated String? formId, // v0.18.0 [deprecated in v0.19.0] - }) = _CommentResponse; - - const CommentResponse._(); - factory CommentResponse.fromJson(Map json) => - _$CommentResponseFromJson(json); -} diff --git a/lib/src/v3/models/comment/comment_response.freezed.dart b/lib/src/v3/models/comment/comment_response.freezed.dart deleted file mode 100644 index 42f53620..00000000 --- a/lib/src/v3/models/comment/comment_response.freezed.dart +++ /dev/null @@ -1,243 +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 'comment_response.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'); - -CommentResponse _$CommentResponseFromJson(Map json) { - return _CommentResponse.fromJson(json); -} - -/// @nodoc -mixin _$CommentResponse { - CommentView get commentView => throw _privateConstructorUsedError; // v0.18.0 - List get recipientIds => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get formId => throw _privateConstructorUsedError; - - /// Serializes this CommentResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentResponseCopyWith<$Res> { - factory $CommentResponseCopyWith( - CommentResponse value, $Res Function(CommentResponse) then) = - _$CommentResponseCopyWithImpl<$Res, CommentResponse>; - @useResult - $Res call( - {CommentView commentView, - List recipientIds, - @deprecated String? formId}); - - $CommentViewCopyWith<$Res> get commentView; -} - -/// @nodoc -class _$CommentResponseCopyWithImpl<$Res, $Val extends CommentResponse> - implements $CommentResponseCopyWith<$Res> { - _$CommentResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentView = null, - Object? recipientIds = null, - Object? formId = freezed, - }) { - return _then(_value.copyWith( - commentView: null == commentView - ? _value.commentView - : commentView // ignore: cast_nullable_to_non_nullable - as CommentView, - recipientIds: null == recipientIds - ? _value.recipientIds - : recipientIds // ignore: cast_nullable_to_non_nullable - as List, - formId: freezed == formId - ? _value.formId - : formId // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } - - /// Create a copy of CommentResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentViewCopyWith<$Res> get commentView { - return $CommentViewCopyWith<$Res>(_value.commentView, (value) { - return _then(_value.copyWith(commentView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommentResponseImplCopyWith<$Res> - implements $CommentResponseCopyWith<$Res> { - factory _$$CommentResponseImplCopyWith(_$CommentResponseImpl value, - $Res Function(_$CommentResponseImpl) then) = - __$$CommentResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommentView commentView, - List recipientIds, - @deprecated String? formId}); - - @override - $CommentViewCopyWith<$Res> get commentView; -} - -/// @nodoc -class __$$CommentResponseImplCopyWithImpl<$Res> - extends _$CommentResponseCopyWithImpl<$Res, _$CommentResponseImpl> - implements _$$CommentResponseImplCopyWith<$Res> { - __$$CommentResponseImplCopyWithImpl( - _$CommentResponseImpl _value, $Res Function(_$CommentResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentView = null, - Object? recipientIds = null, - Object? formId = freezed, - }) { - return _then(_$CommentResponseImpl( - commentView: null == commentView - ? _value.commentView - : commentView // ignore: cast_nullable_to_non_nullable - as CommentView, - recipientIds: null == recipientIds - ? _value._recipientIds - : recipientIds // ignore: cast_nullable_to_non_nullable - as List, - formId: freezed == formId - ? _value.formId - : formId // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentResponseImpl extends _CommentResponse { - const _$CommentResponseImpl( - {required this.commentView, - required final List recipientIds, - @deprecated this.formId}) - : _recipientIds = recipientIds, - super._(); - - factory _$CommentResponseImpl.fromJson(Map json) => - _$$CommentResponseImplFromJson(json); - - @override - final CommentView commentView; -// v0.18.0 - final List _recipientIds; -// v0.18.0 - @override - List get recipientIds { - if (_recipientIds is EqualUnmodifiableListView) return _recipientIds; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_recipientIds); - } - -// v0.18.0 - @override - @deprecated - final String? formId; - - @override - String toString() { - return 'CommentResponse(commentView: $commentView, recipientIds: $recipientIds, formId: $formId)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentResponseImpl && - (identical(other.commentView, commentView) || - other.commentView == commentView) && - const DeepCollectionEquality() - .equals(other._recipientIds, _recipientIds) && - (identical(other.formId, formId) || other.formId == formId)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, commentView, - const DeepCollectionEquality().hash(_recipientIds), formId); - - /// Create a copy of CommentResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentResponseImplCopyWith<_$CommentResponseImpl> get copyWith => - __$$CommentResponseImplCopyWithImpl<_$CommentResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommentResponseImplToJson( - this, - ); - } -} - -abstract class _CommentResponse extends CommentResponse { - const factory _CommentResponse( - {required final CommentView commentView, - required final List recipientIds, - @deprecated final String? formId}) = _$CommentResponseImpl; - const _CommentResponse._() : super._(); - - factory _CommentResponse.fromJson(Map json) = - _$CommentResponseImpl.fromJson; - - @override - CommentView get commentView; // v0.18.0 - @override - List get recipientIds; // v0.18.0 - @override - @deprecated - String? get formId; - - /// Create a copy of CommentResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentResponseImplCopyWith<_$CommentResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/comment_response.g.dart b/lib/src/v3/models/comment/comment_response.g.dart deleted file mode 100644 index 2b0db42c..00000000 --- a/lib/src/v3/models/comment/comment_response.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentResponseImpl _$$CommentResponseImplFromJson( - Map json) => - _$CommentResponseImpl( - commentView: - CommentView.fromJson(json['comment_view'] as Map), - recipientIds: (json['recipient_ids'] as List) - .map((e) => (e as num).toInt()) - .toList(), - formId: json['form_id'] as String?, - ); - -Map _$$CommentResponseImplToJson( - _$CommentResponseImpl instance) => - { - 'comment_view': instance.commentView.toJson(), - 'recipient_ids': instance.recipientIds, - 'form_id': instance.formId, - }; diff --git a/lib/src/v3/models/comment/get_comments_response.dart b/lib/src/v3/models/comment/get_comments_response.dart deleted file mode 100644 index 2449a621..00000000 --- a/lib/src/v3/models/comment/get_comments_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'get_comments_response.freezed.dart'; -part 'get_comments_response.g.dart'; - -@freezed -class GetCommentsResponse with _$GetCommentsResponse { - @modelSerde - const factory GetCommentsResponse({ - required List comments, // v0.18.0 - }) = _GetCommentsResponse; - - const GetCommentsResponse._(); - factory GetCommentsResponse.fromJson(Map json) => - _$GetCommentsResponseFromJson(json); -} diff --git a/lib/src/v3/models/comment/get_comments_response.freezed.dart b/lib/src/v3/models/comment/get_comments_response.freezed.dart deleted file mode 100644 index 676689ca..00000000 --- a/lib/src/v3/models/comment/get_comments_response.freezed.dart +++ /dev/null @@ -1,176 +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 'get_comments_response.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'); - -GetCommentsResponse _$GetCommentsResponseFromJson(Map json) { - return _GetCommentsResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetCommentsResponse { - List get comments => throw _privateConstructorUsedError; - - /// Serializes this GetCommentsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetCommentsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCommentsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCommentsResponseCopyWith<$Res> { - factory $GetCommentsResponseCopyWith( - GetCommentsResponse value, $Res Function(GetCommentsResponse) then) = - _$GetCommentsResponseCopyWithImpl<$Res, GetCommentsResponse>; - @useResult - $Res call({List comments}); -} - -/// @nodoc -class _$GetCommentsResponseCopyWithImpl<$Res, $Val extends GetCommentsResponse> - implements $GetCommentsResponseCopyWith<$Res> { - _$GetCommentsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetCommentsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? comments = null, - }) { - return _then(_value.copyWith( - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetCommentsResponseImplCopyWith<$Res> - implements $GetCommentsResponseCopyWith<$Res> { - factory _$$GetCommentsResponseImplCopyWith(_$GetCommentsResponseImpl value, - $Res Function(_$GetCommentsResponseImpl) then) = - __$$GetCommentsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List comments}); -} - -/// @nodoc -class __$$GetCommentsResponseImplCopyWithImpl<$Res> - extends _$GetCommentsResponseCopyWithImpl<$Res, _$GetCommentsResponseImpl> - implements _$$GetCommentsResponseImplCopyWith<$Res> { - __$$GetCommentsResponseImplCopyWithImpl(_$GetCommentsResponseImpl _value, - $Res Function(_$GetCommentsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetCommentsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? comments = null, - }) { - return _then(_$GetCommentsResponseImpl( - comments: null == comments - ? _value._comments - : comments // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetCommentsResponseImpl extends _GetCommentsResponse { - const _$GetCommentsResponseImpl({required final List comments}) - : _comments = comments, - super._(); - - factory _$GetCommentsResponseImpl.fromJson(Map json) => - _$$GetCommentsResponseImplFromJson(json); - - final List _comments; - @override - List get comments { - if (_comments is EqualUnmodifiableListView) return _comments; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_comments); - } - - @override - String toString() { - return 'GetCommentsResponse(comments: $comments)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCommentsResponseImpl && - const DeepCollectionEquality().equals(other._comments, _comments)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_comments)); - - /// Create a copy of GetCommentsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCommentsResponseImplCopyWith<_$GetCommentsResponseImpl> get copyWith => - __$$GetCommentsResponseImplCopyWithImpl<_$GetCommentsResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetCommentsResponseImplToJson( - this, - ); - } -} - -abstract class _GetCommentsResponse extends GetCommentsResponse { - const factory _GetCommentsResponse( - {required final List comments}) = _$GetCommentsResponseImpl; - const _GetCommentsResponse._() : super._(); - - factory _GetCommentsResponse.fromJson(Map json) = - _$GetCommentsResponseImpl.fromJson; - - @override - List get comments; - - /// Create a copy of GetCommentsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCommentsResponseImplCopyWith<_$GetCommentsResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/get_comments_response.g.dart b/lib/src/v3/models/comment/get_comments_response.g.dart deleted file mode 100644 index a4613d11..00000000 --- a/lib/src/v3/models/comment/get_comments_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_comments_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetCommentsResponseImpl _$$GetCommentsResponseImplFromJson( - Map json) => - _$GetCommentsResponseImpl( - comments: (json['comments'] as List) - .map((e) => CommentView.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetCommentsResponseImplToJson( - _$GetCommentsResponseImpl instance) => - { - 'comments': instance.comments.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/comment/list_comment_likes_response.dart b/lib/src/v3/models/comment/list_comment_likes_response.dart deleted file mode 100644 index 4c69dd89..00000000 --- a/lib/src/v3/models/comment/list_comment_likes_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_comment_likes_response.freezed.dart'; -part 'list_comment_likes_response.g.dart'; - -@freezed -class ListCommentLikesResponse with _$ListCommentLikesResponse { - @modelSerde - const factory ListCommentLikesResponse({ - required List commentLikes, // v0.19.2 (required) - }) = _ListCommentLikesResponse; - - const ListCommentLikesResponse._(); - factory ListCommentLikesResponse.fromJson(Map json) => - _$ListCommentLikesResponseFromJson(json); -} diff --git a/lib/src/v3/models/comment/list_comment_likes_response.freezed.dart b/lib/src/v3/models/comment/list_comment_likes_response.freezed.dart deleted file mode 100644 index 582a921a..00000000 --- a/lib/src/v3/models/comment/list_comment_likes_response.freezed.dart +++ /dev/null @@ -1,184 +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 'list_comment_likes_response.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'); - -ListCommentLikesResponse _$ListCommentLikesResponseFromJson( - Map json) { - return _ListCommentLikesResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListCommentLikesResponse { - List get commentLikes => throw _privateConstructorUsedError; - - /// Serializes this ListCommentLikesResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListCommentLikesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListCommentLikesResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListCommentLikesResponseCopyWith<$Res> { - factory $ListCommentLikesResponseCopyWith(ListCommentLikesResponse value, - $Res Function(ListCommentLikesResponse) then) = - _$ListCommentLikesResponseCopyWithImpl<$Res, ListCommentLikesResponse>; - @useResult - $Res call({List commentLikes}); -} - -/// @nodoc -class _$ListCommentLikesResponseCopyWithImpl<$Res, - $Val extends ListCommentLikesResponse> - implements $ListCommentLikesResponseCopyWith<$Res> { - _$ListCommentLikesResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListCommentLikesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentLikes = null, - }) { - return _then(_value.copyWith( - commentLikes: null == commentLikes - ? _value.commentLikes - : commentLikes // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListCommentLikesResponseImplCopyWith<$Res> - implements $ListCommentLikesResponseCopyWith<$Res> { - factory _$$ListCommentLikesResponseImplCopyWith( - _$ListCommentLikesResponseImpl value, - $Res Function(_$ListCommentLikesResponseImpl) then) = - __$$ListCommentLikesResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List commentLikes}); -} - -/// @nodoc -class __$$ListCommentLikesResponseImplCopyWithImpl<$Res> - extends _$ListCommentLikesResponseCopyWithImpl<$Res, - _$ListCommentLikesResponseImpl> - implements _$$ListCommentLikesResponseImplCopyWith<$Res> { - __$$ListCommentLikesResponseImplCopyWithImpl( - _$ListCommentLikesResponseImpl _value, - $Res Function(_$ListCommentLikesResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListCommentLikesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentLikes = null, - }) { - return _then(_$ListCommentLikesResponseImpl( - commentLikes: null == commentLikes - ? _value._commentLikes - : commentLikes // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListCommentLikesResponseImpl extends _ListCommentLikesResponse { - const _$ListCommentLikesResponseImpl( - {required final List commentLikes}) - : _commentLikes = commentLikes, - super._(); - - factory _$ListCommentLikesResponseImpl.fromJson(Map json) => - _$$ListCommentLikesResponseImplFromJson(json); - - final List _commentLikes; - @override - List get commentLikes { - if (_commentLikes is EqualUnmodifiableListView) return _commentLikes; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_commentLikes); - } - - @override - String toString() { - return 'ListCommentLikesResponse(commentLikes: $commentLikes)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListCommentLikesResponseImpl && - const DeepCollectionEquality() - .equals(other._commentLikes, _commentLikes)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_commentLikes)); - - /// Create a copy of ListCommentLikesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListCommentLikesResponseImplCopyWith<_$ListCommentLikesResponseImpl> - get copyWith => __$$ListCommentLikesResponseImplCopyWithImpl< - _$ListCommentLikesResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListCommentLikesResponseImplToJson( - this, - ); - } -} - -abstract class _ListCommentLikesResponse extends ListCommentLikesResponse { - const factory _ListCommentLikesResponse( - {required final List commentLikes}) = - _$ListCommentLikesResponseImpl; - const _ListCommentLikesResponse._() : super._(); - - factory _ListCommentLikesResponse.fromJson(Map json) = - _$ListCommentLikesResponseImpl.fromJson; - - @override - List get commentLikes; - - /// Create a copy of ListCommentLikesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListCommentLikesResponseImplCopyWith<_$ListCommentLikesResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/list_comment_likes_response.g.dart b/lib/src/v3/models/comment/list_comment_likes_response.g.dart deleted file mode 100644 index 003a74d2..00000000 --- a/lib/src/v3/models/comment/list_comment_likes_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_comment_likes_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListCommentLikesResponseImpl _$$ListCommentLikesResponseImplFromJson( - Map json) => - _$ListCommentLikesResponseImpl( - commentLikes: (json['comment_likes'] as List) - .map((e) => VoteView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListCommentLikesResponseImplToJson( - _$ListCommentLikesResponseImpl instance) => - { - 'comment_likes': instance.commentLikes.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/comment/list_comment_reports_response.dart b/lib/src/v3/models/comment/list_comment_reports_response.dart deleted file mode 100644 index 1ce1c3b3..00000000 --- a/lib/src/v3/models/comment/list_comment_reports_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_comment_reports_response.freezed.dart'; -part 'list_comment_reports_response.g.dart'; - -@freezed -class ListCommentReportsResponse with _$ListCommentReportsResponse { - @modelSerde - const factory ListCommentReportsResponse({ - required List commentReports, // v0.18.0 - }) = _ListCommentReportsResponse; - - const ListCommentReportsResponse._(); - factory ListCommentReportsResponse.fromJson(Map json) => - _$ListCommentReportsResponseFromJson(json); -} diff --git a/lib/src/v3/models/comment/list_comment_reports_response.freezed.dart b/lib/src/v3/models/comment/list_comment_reports_response.freezed.dart deleted file mode 100644 index 13e6b4cb..00000000 --- a/lib/src/v3/models/comment/list_comment_reports_response.freezed.dart +++ /dev/null @@ -1,187 +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 'list_comment_reports_response.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'); - -ListCommentReportsResponse _$ListCommentReportsResponseFromJson( - Map json) { - return _ListCommentReportsResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListCommentReportsResponse { - List get commentReports => - throw _privateConstructorUsedError; - - /// Serializes this ListCommentReportsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListCommentReportsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListCommentReportsResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListCommentReportsResponseCopyWith<$Res> { - factory $ListCommentReportsResponseCopyWith(ListCommentReportsResponse value, - $Res Function(ListCommentReportsResponse) then) = - _$ListCommentReportsResponseCopyWithImpl<$Res, - ListCommentReportsResponse>; - @useResult - $Res call({List commentReports}); -} - -/// @nodoc -class _$ListCommentReportsResponseCopyWithImpl<$Res, - $Val extends ListCommentReportsResponse> - implements $ListCommentReportsResponseCopyWith<$Res> { - _$ListCommentReportsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListCommentReportsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReports = null, - }) { - return _then(_value.copyWith( - commentReports: null == commentReports - ? _value.commentReports - : commentReports // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListCommentReportsResponseImplCopyWith<$Res> - implements $ListCommentReportsResponseCopyWith<$Res> { - factory _$$ListCommentReportsResponseImplCopyWith( - _$ListCommentReportsResponseImpl value, - $Res Function(_$ListCommentReportsResponseImpl) then) = - __$$ListCommentReportsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List commentReports}); -} - -/// @nodoc -class __$$ListCommentReportsResponseImplCopyWithImpl<$Res> - extends _$ListCommentReportsResponseCopyWithImpl<$Res, - _$ListCommentReportsResponseImpl> - implements _$$ListCommentReportsResponseImplCopyWith<$Res> { - __$$ListCommentReportsResponseImplCopyWithImpl( - _$ListCommentReportsResponseImpl _value, - $Res Function(_$ListCommentReportsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListCommentReportsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReports = null, - }) { - return _then(_$ListCommentReportsResponseImpl( - commentReports: null == commentReports - ? _value._commentReports - : commentReports // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListCommentReportsResponseImpl extends _ListCommentReportsResponse { - const _$ListCommentReportsResponseImpl( - {required final List commentReports}) - : _commentReports = commentReports, - super._(); - - factory _$ListCommentReportsResponseImpl.fromJson( - Map json) => - _$$ListCommentReportsResponseImplFromJson(json); - - final List _commentReports; - @override - List get commentReports { - if (_commentReports is EqualUnmodifiableListView) return _commentReports; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_commentReports); - } - - @override - String toString() { - return 'ListCommentReportsResponse(commentReports: $commentReports)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListCommentReportsResponseImpl && - const DeepCollectionEquality() - .equals(other._commentReports, _commentReports)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_commentReports)); - - /// Create a copy of ListCommentReportsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListCommentReportsResponseImplCopyWith<_$ListCommentReportsResponseImpl> - get copyWith => __$$ListCommentReportsResponseImplCopyWithImpl< - _$ListCommentReportsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListCommentReportsResponseImplToJson( - this, - ); - } -} - -abstract class _ListCommentReportsResponse extends ListCommentReportsResponse { - const factory _ListCommentReportsResponse( - {required final List commentReports}) = - _$ListCommentReportsResponseImpl; - const _ListCommentReportsResponse._() : super._(); - - factory _ListCommentReportsResponse.fromJson(Map json) = - _$ListCommentReportsResponseImpl.fromJson; - - @override - List get commentReports; - - /// Create a copy of ListCommentReportsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListCommentReportsResponseImplCopyWith<_$ListCommentReportsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/comment/list_comment_reports_response.g.dart b/lib/src/v3/models/comment/list_comment_reports_response.g.dart deleted file mode 100644 index 20ddfddb..00000000 --- a/lib/src/v3/models/comment/list_comment_reports_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_comment_reports_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListCommentReportsResponseImpl _$$ListCommentReportsResponseImplFromJson( - Map json) => - _$ListCommentReportsResponseImpl( - commentReports: (json['comment_reports'] as List) - .map((e) => CommentReportView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListCommentReportsResponseImplToJson( - _$ListCommentReportsResponseImpl instance) => - { - 'comment_reports': - instance.commentReports.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/community/add_mod_to_community_response.dart b/lib/src/v3/models/community/add_mod_to_community_response.dart deleted file mode 100644 index 8f5056e3..00000000 --- a/lib/src/v3/models/community/add_mod_to_community_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'add_mod_to_community_response.freezed.dart'; -part 'add_mod_to_community_response.g.dart'; - -@freezed -class AddModToCommunityResponse with _$AddModToCommunityResponse { - @modelSerde - const factory AddModToCommunityResponse({ - required List moderators, // v0.18.0 - }) = _AddModToCommunityResponse; - - const AddModToCommunityResponse._(); - factory AddModToCommunityResponse.fromJson(Map json) => - _$AddModToCommunityResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/add_mod_to_community_response.freezed.dart b/lib/src/v3/models/community/add_mod_to_community_response.freezed.dart deleted file mode 100644 index f6b56b16..00000000 --- a/lib/src/v3/models/community/add_mod_to_community_response.freezed.dart +++ /dev/null @@ -1,185 +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 'add_mod_to_community_response.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'); - -AddModToCommunityResponse _$AddModToCommunityResponseFromJson( - Map json) { - return _AddModToCommunityResponse.fromJson(json); -} - -/// @nodoc -mixin _$AddModToCommunityResponse { - List get moderators => - throw _privateConstructorUsedError; - - /// Serializes this AddModToCommunityResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AddModToCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AddModToCommunityResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AddModToCommunityResponseCopyWith<$Res> { - factory $AddModToCommunityResponseCopyWith(AddModToCommunityResponse value, - $Res Function(AddModToCommunityResponse) then) = - _$AddModToCommunityResponseCopyWithImpl<$Res, AddModToCommunityResponse>; - @useResult - $Res call({List moderators}); -} - -/// @nodoc -class _$AddModToCommunityResponseCopyWithImpl<$Res, - $Val extends AddModToCommunityResponse> - implements $AddModToCommunityResponseCopyWith<$Res> { - _$AddModToCommunityResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AddModToCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? moderators = null, - }) { - return _then(_value.copyWith( - moderators: null == moderators - ? _value.moderators - : moderators // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AddModToCommunityResponseImplCopyWith<$Res> - implements $AddModToCommunityResponseCopyWith<$Res> { - factory _$$AddModToCommunityResponseImplCopyWith( - _$AddModToCommunityResponseImpl value, - $Res Function(_$AddModToCommunityResponseImpl) then) = - __$$AddModToCommunityResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List moderators}); -} - -/// @nodoc -class __$$AddModToCommunityResponseImplCopyWithImpl<$Res> - extends _$AddModToCommunityResponseCopyWithImpl<$Res, - _$AddModToCommunityResponseImpl> - implements _$$AddModToCommunityResponseImplCopyWith<$Res> { - __$$AddModToCommunityResponseImplCopyWithImpl( - _$AddModToCommunityResponseImpl _value, - $Res Function(_$AddModToCommunityResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of AddModToCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? moderators = null, - }) { - return _then(_$AddModToCommunityResponseImpl( - moderators: null == moderators - ? _value._moderators - : moderators // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AddModToCommunityResponseImpl extends _AddModToCommunityResponse { - const _$AddModToCommunityResponseImpl( - {required final List moderators}) - : _moderators = moderators, - super._(); - - factory _$AddModToCommunityResponseImpl.fromJson(Map json) => - _$$AddModToCommunityResponseImplFromJson(json); - - final List _moderators; - @override - List get moderators { - if (_moderators is EqualUnmodifiableListView) return _moderators; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_moderators); - } - - @override - String toString() { - return 'AddModToCommunityResponse(moderators: $moderators)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AddModToCommunityResponseImpl && - const DeepCollectionEquality() - .equals(other._moderators, _moderators)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_moderators)); - - /// Create a copy of AddModToCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AddModToCommunityResponseImplCopyWith<_$AddModToCommunityResponseImpl> - get copyWith => __$$AddModToCommunityResponseImplCopyWithImpl< - _$AddModToCommunityResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AddModToCommunityResponseImplToJson( - this, - ); - } -} - -abstract class _AddModToCommunityResponse extends AddModToCommunityResponse { - const factory _AddModToCommunityResponse( - {required final List moderators}) = - _$AddModToCommunityResponseImpl; - const _AddModToCommunityResponse._() : super._(); - - factory _AddModToCommunityResponse.fromJson(Map json) = - _$AddModToCommunityResponseImpl.fromJson; - - @override - List get moderators; - - /// Create a copy of AddModToCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AddModToCommunityResponseImplCopyWith<_$AddModToCommunityResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/add_mod_to_community_response.g.dart b/lib/src/v3/models/community/add_mod_to_community_response.g.dart deleted file mode 100644 index 28675beb..00000000 --- a/lib/src/v3/models/community/add_mod_to_community_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'add_mod_to_community_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AddModToCommunityResponseImpl _$$AddModToCommunityResponseImplFromJson( - Map json) => - _$AddModToCommunityResponseImpl( - moderators: (json['moderators'] as List) - .map( - (e) => CommunityModeratorView.fromJson(e as Map)) - .toList(), - ); - -Map _$$AddModToCommunityResponseImplToJson( - _$AddModToCommunityResponseImpl instance) => - { - 'moderators': instance.moderators.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/community/ban_from_community_response.dart b/lib/src/v3/models/community/ban_from_community_response.dart deleted file mode 100644 index bd598058..00000000 --- a/lib/src/v3/models/community/ban_from_community_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'ban_from_community_response.freezed.dart'; -part 'ban_from_community_response.g.dart'; - -@freezed -class BanFromCommunityResponse with _$BanFromCommunityResponse { - @modelSerde - const factory BanFromCommunityResponse({ - required PersonView personView, // v0.18.0 - required bool banned, // v0.18.0 - }) = _BanFromCommunityResponse; - - const BanFromCommunityResponse._(); - factory BanFromCommunityResponse.fromJson(Map json) => - _$BanFromCommunityResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/ban_from_community_response.freezed.dart b/lib/src/v3/models/community/ban_from_community_response.freezed.dart deleted file mode 100644 index 449cf8b1..00000000 --- a/lib/src/v3/models/community/ban_from_community_response.freezed.dart +++ /dev/null @@ -1,209 +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 'ban_from_community_response.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'); - -BanFromCommunityResponse _$BanFromCommunityResponseFromJson( - Map json) { - return _BanFromCommunityResponse.fromJson(json); -} - -/// @nodoc -mixin _$BanFromCommunityResponse { - PersonView get personView => throw _privateConstructorUsedError; // v0.18.0 - bool get banned => throw _privateConstructorUsedError; - - /// Serializes this BanFromCommunityResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BanFromCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BanFromCommunityResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BanFromCommunityResponseCopyWith<$Res> { - factory $BanFromCommunityResponseCopyWith(BanFromCommunityResponse value, - $Res Function(BanFromCommunityResponse) then) = - _$BanFromCommunityResponseCopyWithImpl<$Res, BanFromCommunityResponse>; - @useResult - $Res call({PersonView personView, bool banned}); - - $PersonViewCopyWith<$Res> get personView; -} - -/// @nodoc -class _$BanFromCommunityResponseCopyWithImpl<$Res, - $Val extends BanFromCommunityResponse> - implements $BanFromCommunityResponseCopyWith<$Res> { - _$BanFromCommunityResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BanFromCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? banned = null, - }) { - return _then(_value.copyWith( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } - - /// Create a copy of BanFromCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonViewCopyWith<$Res> get personView { - return $PersonViewCopyWith<$Res>(_value.personView, (value) { - return _then(_value.copyWith(personView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$BanFromCommunityResponseImplCopyWith<$Res> - implements $BanFromCommunityResponseCopyWith<$Res> { - factory _$$BanFromCommunityResponseImplCopyWith( - _$BanFromCommunityResponseImpl value, - $Res Function(_$BanFromCommunityResponseImpl) then) = - __$$BanFromCommunityResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PersonView personView, bool banned}); - - @override - $PersonViewCopyWith<$Res> get personView; -} - -/// @nodoc -class __$$BanFromCommunityResponseImplCopyWithImpl<$Res> - extends _$BanFromCommunityResponseCopyWithImpl<$Res, - _$BanFromCommunityResponseImpl> - implements _$$BanFromCommunityResponseImplCopyWith<$Res> { - __$$BanFromCommunityResponseImplCopyWithImpl( - _$BanFromCommunityResponseImpl _value, - $Res Function(_$BanFromCommunityResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of BanFromCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? banned = null, - }) { - return _then(_$BanFromCommunityResponseImpl( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$BanFromCommunityResponseImpl extends _BanFromCommunityResponse { - const _$BanFromCommunityResponseImpl( - {required this.personView, required this.banned}) - : super._(); - - factory _$BanFromCommunityResponseImpl.fromJson(Map json) => - _$$BanFromCommunityResponseImplFromJson(json); - - @override - final PersonView personView; -// v0.18.0 - @override - final bool banned; - - @override - String toString() { - return 'BanFromCommunityResponse(personView: $personView, banned: $banned)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BanFromCommunityResponseImpl && - (identical(other.personView, personView) || - other.personView == personView) && - (identical(other.banned, banned) || other.banned == banned)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personView, banned); - - /// Create a copy of BanFromCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BanFromCommunityResponseImplCopyWith<_$BanFromCommunityResponseImpl> - get copyWith => __$$BanFromCommunityResponseImplCopyWithImpl< - _$BanFromCommunityResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BanFromCommunityResponseImplToJson( - this, - ); - } -} - -abstract class _BanFromCommunityResponse extends BanFromCommunityResponse { - const factory _BanFromCommunityResponse( - {required final PersonView personView, - required final bool banned}) = _$BanFromCommunityResponseImpl; - const _BanFromCommunityResponse._() : super._(); - - factory _BanFromCommunityResponse.fromJson(Map json) = - _$BanFromCommunityResponseImpl.fromJson; - - @override - PersonView get personView; // v0.18.0 - @override - bool get banned; - - /// Create a copy of BanFromCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BanFromCommunityResponseImplCopyWith<_$BanFromCommunityResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/ban_from_community_response.g.dart b/lib/src/v3/models/community/ban_from_community_response.g.dart deleted file mode 100644 index 45cebb1e..00000000 --- a/lib/src/v3/models/community/ban_from_community_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ban_from_community_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BanFromCommunityResponseImpl _$$BanFromCommunityResponseImplFromJson( - Map json) => - _$BanFromCommunityResponseImpl( - personView: - PersonView.fromJson(json['person_view'] as Map), - banned: json['banned'] as bool, - ); - -Map _$$BanFromCommunityResponseImplToJson( - _$BanFromCommunityResponseImpl instance) => - { - 'person_view': instance.personView.toJson(), - 'banned': instance.banned, - }; diff --git a/lib/src/v3/models/community/block_community_response.dart b/lib/src/v3/models/community/block_community_response.dart deleted file mode 100644 index d1811065..00000000 --- a/lib/src/v3/models/community/block_community_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'block_community_response.freezed.dart'; -part 'block_community_response.g.dart'; - -@freezed -class BlockCommunityResponse with _$BlockCommunityResponse { - @modelSerde - const factory BlockCommunityResponse({ - required CommunityView communityView, // v0.18.0 - required bool blocked, // v0.18.0 - }) = _BlockCommunityResponse; - - const BlockCommunityResponse._(); - factory BlockCommunityResponse.fromJson(Map json) => - _$BlockCommunityResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/block_community_response.freezed.dart b/lib/src/v3/models/community/block_community_response.freezed.dart deleted file mode 100644 index 2949ff47..00000000 --- a/lib/src/v3/models/community/block_community_response.freezed.dart +++ /dev/null @@ -1,210 +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 'block_community_response.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'); - -BlockCommunityResponse _$BlockCommunityResponseFromJson( - Map json) { - return _BlockCommunityResponse.fromJson(json); -} - -/// @nodoc -mixin _$BlockCommunityResponse { - CommunityView get communityView => - throw _privateConstructorUsedError; // v0.18.0 - bool get blocked => throw _privateConstructorUsedError; - - /// Serializes this BlockCommunityResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BlockCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BlockCommunityResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BlockCommunityResponseCopyWith<$Res> { - factory $BlockCommunityResponseCopyWith(BlockCommunityResponse value, - $Res Function(BlockCommunityResponse) then) = - _$BlockCommunityResponseCopyWithImpl<$Res, BlockCommunityResponse>; - @useResult - $Res call({CommunityView communityView, bool blocked}); - - $CommunityViewCopyWith<$Res> get communityView; -} - -/// @nodoc -class _$BlockCommunityResponseCopyWithImpl<$Res, - $Val extends BlockCommunityResponse> - implements $BlockCommunityResponseCopyWith<$Res> { - _$BlockCommunityResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BlockCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = null, - Object? blocked = null, - }) { - return _then(_value.copyWith( - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } - - /// Create a copy of BlockCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityViewCopyWith<$Res> get communityView { - return $CommunityViewCopyWith<$Res>(_value.communityView, (value) { - return _then(_value.copyWith(communityView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$BlockCommunityResponseImplCopyWith<$Res> - implements $BlockCommunityResponseCopyWith<$Res> { - factory _$$BlockCommunityResponseImplCopyWith( - _$BlockCommunityResponseImpl value, - $Res Function(_$BlockCommunityResponseImpl) then) = - __$$BlockCommunityResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CommunityView communityView, bool blocked}); - - @override - $CommunityViewCopyWith<$Res> get communityView; -} - -/// @nodoc -class __$$BlockCommunityResponseImplCopyWithImpl<$Res> - extends _$BlockCommunityResponseCopyWithImpl<$Res, - _$BlockCommunityResponseImpl> - implements _$$BlockCommunityResponseImplCopyWith<$Res> { - __$$BlockCommunityResponseImplCopyWithImpl( - _$BlockCommunityResponseImpl _value, - $Res Function(_$BlockCommunityResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of BlockCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = null, - Object? blocked = null, - }) { - return _then(_$BlockCommunityResponseImpl( - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$BlockCommunityResponseImpl extends _BlockCommunityResponse { - const _$BlockCommunityResponseImpl( - {required this.communityView, required this.blocked}) - : super._(); - - factory _$BlockCommunityResponseImpl.fromJson(Map json) => - _$$BlockCommunityResponseImplFromJson(json); - - @override - final CommunityView communityView; -// v0.18.0 - @override - final bool blocked; - - @override - String toString() { - return 'BlockCommunityResponse(communityView: $communityView, blocked: $blocked)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BlockCommunityResponseImpl && - (identical(other.communityView, communityView) || - other.communityView == communityView) && - (identical(other.blocked, blocked) || other.blocked == blocked)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityView, blocked); - - /// Create a copy of BlockCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BlockCommunityResponseImplCopyWith<_$BlockCommunityResponseImpl> - get copyWith => __$$BlockCommunityResponseImplCopyWithImpl< - _$BlockCommunityResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BlockCommunityResponseImplToJson( - this, - ); - } -} - -abstract class _BlockCommunityResponse extends BlockCommunityResponse { - const factory _BlockCommunityResponse( - {required final CommunityView communityView, - required final bool blocked}) = _$BlockCommunityResponseImpl; - const _BlockCommunityResponse._() : super._(); - - factory _BlockCommunityResponse.fromJson(Map json) = - _$BlockCommunityResponseImpl.fromJson; - - @override - CommunityView get communityView; // v0.18.0 - @override - bool get blocked; - - /// Create a copy of BlockCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BlockCommunityResponseImplCopyWith<_$BlockCommunityResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/block_community_response.g.dart b/lib/src/v3/models/community/block_community_response.g.dart deleted file mode 100644 index f8877173..00000000 --- a/lib/src/v3/models/community/block_community_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'block_community_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BlockCommunityResponseImpl _$$BlockCommunityResponseImplFromJson( - Map json) => - _$BlockCommunityResponseImpl( - communityView: CommunityView.fromJson( - json['community_view'] as Map), - blocked: json['blocked'] as bool, - ); - -Map _$$BlockCommunityResponseImplToJson( - _$BlockCommunityResponseImpl instance) => - { - 'community_view': instance.communityView.toJson(), - 'blocked': instance.blocked, - }; diff --git a/lib/src/v3/models/community/community.dart b/lib/src/v3/models/community/community.dart deleted file mode 100644 index d2e69f2c..00000000 --- a/lib/src/v3/models/community/community.dart +++ /dev/null @@ -1,38 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../v3.dart'; -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'community.freezed.dart'; -part 'community.g.dart'; - -@freezed -class Community with _$Community { - @modelSerde - const factory Community({ - required int id, // v0.18.0 - required String name, // v0.18.0 - required String title, // v0.18.0 - String? description, // v0.18.0 - required bool removed, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - required bool deleted, // v0.18.0 - required bool nsfw, // v0.18.0 - required String actorId, // v0.18.0 - required bool local, // v0.18.0 - String? icon, // v0.18.0 - String? banner, // v0.18.0 - @deprecated String? followersUrl, // v0.18.1 [deprecated in v0.19.0] - @deprecated String? inboxUrl, // v0.18.1 [deprecated in v0.19.0] - required bool hidden, // v0.18.0 - required bool postingRestrictedToMods, // v0.18.0 - required int instanceId, // v0.18.0 - CommunityVisibility? visibility, // v0.19.4 (required) - }) = _Community; - - const Community._(); - factory Community.fromJson(Map json) => - _$CommunityFromJson(json); -} diff --git a/lib/src/v3/models/community/community.freezed.dart b/lib/src/v3/models/community/community.freezed.dart deleted file mode 100644 index 7782486d..00000000 --- a/lib/src/v3/models/community/community.freezed.dart +++ /dev/null @@ -1,586 +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 'community.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'); - -Community _$CommunityFromJson(Map json) { - return _Community.fromJson(json); -} - -/// @nodoc -mixin _$Community { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get name => throw _privateConstructorUsedError; // v0.18.0 - String get title => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - bool get nsfw => throw _privateConstructorUsedError; // v0.18.0 - String get actorId => throw _privateConstructorUsedError; // v0.18.0 - bool get local => throw _privateConstructorUsedError; // v0.18.0 - String? get icon => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get followersUrl => - throw _privateConstructorUsedError; // v0.18.1 [deprecated in v0.19.0] - @deprecated - String? get inboxUrl => - throw _privateConstructorUsedError; // v0.18.1 [deprecated in v0.19.0] - bool get hidden => throw _privateConstructorUsedError; // v0.18.0 - bool get postingRestrictedToMods => - throw _privateConstructorUsedError; // v0.18.0 - int get instanceId => throw _privateConstructorUsedError; // v0.18.0 - CommunityVisibility? get visibility => throw _privateConstructorUsedError; - - /// Serializes this Community to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Community - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityCopyWith<$Res> { - factory $CommunityCopyWith(Community value, $Res Function(Community) then) = - _$CommunityCopyWithImpl<$Res, Community>; - @useResult - $Res call( - {int id, - String name, - String title, - String? description, - bool removed, - DateTime published, - DateTime? updated, - bool deleted, - bool nsfw, - String actorId, - bool local, - String? icon, - String? banner, - @deprecated String? followersUrl, - @deprecated String? inboxUrl, - bool hidden, - bool postingRestrictedToMods, - int instanceId, - CommunityVisibility? visibility}); -} - -/// @nodoc -class _$CommunityCopyWithImpl<$Res, $Val extends Community> - implements $CommunityCopyWith<$Res> { - _$CommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Community - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? title = null, - Object? description = freezed, - Object? removed = null, - Object? published = null, - Object? updated = freezed, - Object? deleted = null, - Object? nsfw = null, - Object? actorId = null, - Object? local = null, - Object? icon = freezed, - Object? banner = freezed, - Object? followersUrl = freezed, - Object? inboxUrl = freezed, - Object? hidden = null, - Object? postingRestrictedToMods = null, - Object? instanceId = null, - Object? visibility = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - title: null == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - nsfw: null == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool, - actorId: null == actorId - ? _value.actorId - : actorId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - followersUrl: freezed == followersUrl - ? _value.followersUrl - : followersUrl // ignore: cast_nullable_to_non_nullable - as String?, - inboxUrl: freezed == inboxUrl - ? _value.inboxUrl - : inboxUrl // ignore: cast_nullable_to_non_nullable - as String?, - hidden: null == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool, - postingRestrictedToMods: null == postingRestrictedToMods - ? _value.postingRestrictedToMods - : postingRestrictedToMods // ignore: cast_nullable_to_non_nullable - as bool, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - visibility: freezed == visibility - ? _value.visibility - : visibility // ignore: cast_nullable_to_non_nullable - as CommunityVisibility?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CommunityImplCopyWith<$Res> - implements $CommunityCopyWith<$Res> { - factory _$$CommunityImplCopyWith( - _$CommunityImpl value, $Res Function(_$CommunityImpl) then) = - __$$CommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String name, - String title, - String? description, - bool removed, - DateTime published, - DateTime? updated, - bool deleted, - bool nsfw, - String actorId, - bool local, - String? icon, - String? banner, - @deprecated String? followersUrl, - @deprecated String? inboxUrl, - bool hidden, - bool postingRestrictedToMods, - int instanceId, - CommunityVisibility? visibility}); -} - -/// @nodoc -class __$$CommunityImplCopyWithImpl<$Res> - extends _$CommunityCopyWithImpl<$Res, _$CommunityImpl> - implements _$$CommunityImplCopyWith<$Res> { - __$$CommunityImplCopyWithImpl( - _$CommunityImpl _value, $Res Function(_$CommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of Community - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? title = null, - Object? description = freezed, - Object? removed = null, - Object? published = null, - Object? updated = freezed, - Object? deleted = null, - Object? nsfw = null, - Object? actorId = null, - Object? local = null, - Object? icon = freezed, - Object? banner = freezed, - Object? followersUrl = freezed, - Object? inboxUrl = freezed, - Object? hidden = null, - Object? postingRestrictedToMods = null, - Object? instanceId = null, - Object? visibility = freezed, - }) { - return _then(_$CommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - title: null == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - nsfw: null == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool, - actorId: null == actorId - ? _value.actorId - : actorId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - followersUrl: freezed == followersUrl - ? _value.followersUrl - : followersUrl // ignore: cast_nullable_to_non_nullable - as String?, - inboxUrl: freezed == inboxUrl - ? _value.inboxUrl - : inboxUrl // ignore: cast_nullable_to_non_nullable - as String?, - hidden: null == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool, - postingRestrictedToMods: null == postingRestrictedToMods - ? _value.postingRestrictedToMods - : postingRestrictedToMods // ignore: cast_nullable_to_non_nullable - as bool, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - visibility: freezed == visibility - ? _value.visibility - : visibility // ignore: cast_nullable_to_non_nullable - as CommunityVisibility?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityImpl extends _Community { - const _$CommunityImpl( - {required this.id, - required this.name, - required this.title, - this.description, - required this.removed, - required this.published, - this.updated, - required this.deleted, - required this.nsfw, - required this.actorId, - required this.local, - this.icon, - this.banner, - @deprecated this.followersUrl, - @deprecated this.inboxUrl, - required this.hidden, - required this.postingRestrictedToMods, - required this.instanceId, - this.visibility}) - : super._(); - - factory _$CommunityImpl.fromJson(Map json) => - _$$CommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String name; -// v0.18.0 - @override - final String title; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final bool nsfw; -// v0.18.0 - @override - final String actorId; -// v0.18.0 - @override - final bool local; -// v0.18.0 - @override - final String? icon; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - @deprecated - final String? followersUrl; -// v0.18.1 [deprecated in v0.19.0] - @override - @deprecated - final String? inboxUrl; -// v0.18.1 [deprecated in v0.19.0] - @override - final bool hidden; -// v0.18.0 - @override - final bool postingRestrictedToMods; -// v0.18.0 - @override - final int instanceId; -// v0.18.0 - @override - final CommunityVisibility? visibility; - - @override - String toString() { - return 'Community(id: $id, name: $name, title: $title, description: $description, removed: $removed, published: $published, updated: $updated, deleted: $deleted, nsfw: $nsfw, actorId: $actorId, local: $local, icon: $icon, banner: $banner, followersUrl: $followersUrl, inboxUrl: $inboxUrl, hidden: $hidden, postingRestrictedToMods: $postingRestrictedToMods, instanceId: $instanceId, visibility: $visibility)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.title, title) || other.title == title) && - (identical(other.description, description) || - other.description == description) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.nsfw, nsfw) || other.nsfw == nsfw) && - (identical(other.actorId, actorId) || other.actorId == actorId) && - (identical(other.local, local) || other.local == local) && - (identical(other.icon, icon) || other.icon == icon) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.followersUrl, followersUrl) || - other.followersUrl == followersUrl) && - (identical(other.inboxUrl, inboxUrl) || - other.inboxUrl == inboxUrl) && - (identical(other.hidden, hidden) || other.hidden == hidden) && - (identical( - other.postingRestrictedToMods, postingRestrictedToMods) || - other.postingRestrictedToMods == postingRestrictedToMods) && - (identical(other.instanceId, instanceId) || - other.instanceId == instanceId) && - (identical(other.visibility, visibility) || - other.visibility == visibility)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - id, - name, - title, - description, - removed, - published, - updated, - deleted, - nsfw, - actorId, - local, - icon, - banner, - followersUrl, - inboxUrl, - hidden, - postingRestrictedToMods, - instanceId, - visibility - ]); - - /// Create a copy of Community - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityImplCopyWith<_$CommunityImpl> get copyWith => - __$$CommunityImplCopyWithImpl<_$CommunityImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommunityImplToJson( - this, - ); - } -} - -abstract class _Community extends Community { - const factory _Community( - {required final int id, - required final String name, - required final String title, - final String? description, - required final bool removed, - required final DateTime published, - final DateTime? updated, - required final bool deleted, - required final bool nsfw, - required final String actorId, - required final bool local, - final String? icon, - final String? banner, - @deprecated final String? followersUrl, - @deprecated final String? inboxUrl, - required final bool hidden, - required final bool postingRestrictedToMods, - required final int instanceId, - final CommunityVisibility? visibility}) = _$CommunityImpl; - const _Community._() : super._(); - - factory _Community.fromJson(Map json) = - _$CommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get name; // v0.18.0 - @override - String get title; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - bool get nsfw; // v0.18.0 - @override - String get actorId; // v0.18.0 - @override - bool get local; // v0.18.0 - @override - String? get icon; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - @deprecated - String? get followersUrl; // v0.18.1 [deprecated in v0.19.0] - @override - @deprecated - String? get inboxUrl; // v0.18.1 [deprecated in v0.19.0] - @override - bool get hidden; // v0.18.0 - @override - bool get postingRestrictedToMods; // v0.18.0 - @override - int get instanceId; // v0.18.0 - @override - CommunityVisibility? get visibility; - - /// Create a copy of Community - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityImplCopyWith<_$CommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/community.g.dart b/lib/src/v3/models/community/community.g.dart deleted file mode 100644 index 07e9ff82..00000000 --- a/lib/src/v3/models/community/community.g.dart +++ /dev/null @@ -1,69 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityImpl _$$CommunityImplFromJson(Map json) => - _$CommunityImpl( - id: (json['id'] as num).toInt(), - name: json['name'] as String, - title: json['title'] as String, - description: json['description'] as String?, - removed: json['removed'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - deleted: json['deleted'] as bool, - nsfw: json['nsfw'] as bool, - actorId: json['actor_id'] as String, - local: json['local'] as bool, - icon: json['icon'] as String?, - banner: json['banner'] as String?, - followersUrl: json['followers_url'] as String?, - inboxUrl: json['inbox_url'] as String?, - hidden: json['hidden'] as bool, - postingRestrictedToMods: json['posting_restricted_to_mods'] as bool, - instanceId: (json['instance_id'] as num).toInt(), - visibility: json['visibility'] == null - ? null - : CommunityVisibility.fromJson(json['visibility']), - ); - -Map _$$CommunityImplToJson(_$CommunityImpl instance) => - { - 'id': instance.id, - 'name': instance.name, - 'title': instance.title, - 'description': instance.description, - 'removed': instance.removed, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'deleted': instance.deleted, - 'nsfw': instance.nsfw, - 'actor_id': instance.actorId, - 'local': instance.local, - 'icon': instance.icon, - 'banner': instance.banner, - 'followers_url': instance.followersUrl, - 'inbox_url': instance.inboxUrl, - 'hidden': instance.hidden, - 'posting_restricted_to_mods': instance.postingRestrictedToMods, - 'instance_id': instance.instanceId, - 'visibility': instance.visibility?.toJson(), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/community/community_aggregates.dart b/lib/src/v3/models/community/community_aggregates.dart deleted file mode 100644 index 8335c05a..00000000 --- a/lib/src/v3/models/community/community_aggregates.dart +++ /dev/null @@ -1,30 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'community_aggregates.freezed.dart'; -part 'community_aggregates.g.dart'; - -@freezed -class CommunityAggregates with _$CommunityAggregates { - @modelSerde - const factory CommunityAggregates({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int communityId, // v0.18.0 - required int subscribers, // v0.18.0 - required int posts, // v0.18.0 - required int comments, // v0.18.0 - required DateTime published, // v0.18.0 - required int usersActiveDay, // v0.18.0 - required int usersActiveWeek, // v0.18.0 - required int usersActiveMonth, // v0.18.0 - required int usersActiveHalfYear, // v0.18.0 - @deprecated int? hotRank, // v0.18.0 [deprecated in v0.19.0] - int? subscribersLocal, // v0.19.4 (required) - }) = _CommunityAggregates; - - const CommunityAggregates._(); - factory CommunityAggregates.fromJson(Map json) => - _$CommunityAggregatesFromJson(json); -} diff --git a/lib/src/v3/models/community/community_aggregates.freezed.dart b/lib/src/v3/models/community/community_aggregates.freezed.dart deleted file mode 100644 index 5bbb93d8..00000000 --- a/lib/src/v3/models/community/community_aggregates.freezed.dart +++ /dev/null @@ -1,433 +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 'community_aggregates.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'); - -CommunityAggregates _$CommunityAggregatesFromJson(Map json) { - return _CommunityAggregates.fromJson(json); -} - -/// @nodoc -mixin _$CommunityAggregates { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - int get subscribers => throw _privateConstructorUsedError; // v0.18.0 - int get posts => throw _privateConstructorUsedError; // v0.18.0 - int get comments => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveDay => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveWeek => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveMonth => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveHalfYear => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get hotRank => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int? get subscribersLocal => throw _privateConstructorUsedError; - - /// Serializes this CommunityAggregates to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommunityAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityAggregatesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityAggregatesCopyWith<$Res> { - factory $CommunityAggregatesCopyWith( - CommunityAggregates value, $Res Function(CommunityAggregates) then) = - _$CommunityAggregatesCopyWithImpl<$Res, CommunityAggregates>; - @useResult - $Res call( - {@deprecated int? id, - int communityId, - int subscribers, - int posts, - int comments, - DateTime published, - int usersActiveDay, - int usersActiveWeek, - int usersActiveMonth, - int usersActiveHalfYear, - @deprecated int? hotRank, - int? subscribersLocal}); -} - -/// @nodoc -class _$CommunityAggregatesCopyWithImpl<$Res, $Val extends CommunityAggregates> - implements $CommunityAggregatesCopyWith<$Res> { - _$CommunityAggregatesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommunityAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? communityId = null, - Object? subscribers = null, - Object? posts = null, - Object? comments = null, - Object? published = null, - Object? usersActiveDay = null, - Object? usersActiveWeek = null, - Object? usersActiveMonth = null, - Object? usersActiveHalfYear = null, - Object? hotRank = freezed, - Object? subscribersLocal = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - subscribers: null == subscribers - ? _value.subscribers - : subscribers // ignore: cast_nullable_to_non_nullable - as int, - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as int, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - usersActiveDay: null == usersActiveDay - ? _value.usersActiveDay - : usersActiveDay // ignore: cast_nullable_to_non_nullable - as int, - usersActiveWeek: null == usersActiveWeek - ? _value.usersActiveWeek - : usersActiveWeek // ignore: cast_nullable_to_non_nullable - as int, - usersActiveMonth: null == usersActiveMonth - ? _value.usersActiveMonth - : usersActiveMonth // ignore: cast_nullable_to_non_nullable - as int, - usersActiveHalfYear: null == usersActiveHalfYear - ? _value.usersActiveHalfYear - : usersActiveHalfYear // ignore: cast_nullable_to_non_nullable - as int, - hotRank: freezed == hotRank - ? _value.hotRank - : hotRank // ignore: cast_nullable_to_non_nullable - as int?, - subscribersLocal: freezed == subscribersLocal - ? _value.subscribersLocal - : subscribersLocal // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CommunityAggregatesImplCopyWith<$Res> - implements $CommunityAggregatesCopyWith<$Res> { - factory _$$CommunityAggregatesImplCopyWith(_$CommunityAggregatesImpl value, - $Res Function(_$CommunityAggregatesImpl) then) = - __$$CommunityAggregatesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? id, - int communityId, - int subscribers, - int posts, - int comments, - DateTime published, - int usersActiveDay, - int usersActiveWeek, - int usersActiveMonth, - int usersActiveHalfYear, - @deprecated int? hotRank, - int? subscribersLocal}); -} - -/// @nodoc -class __$$CommunityAggregatesImplCopyWithImpl<$Res> - extends _$CommunityAggregatesCopyWithImpl<$Res, _$CommunityAggregatesImpl> - implements _$$CommunityAggregatesImplCopyWith<$Res> { - __$$CommunityAggregatesImplCopyWithImpl(_$CommunityAggregatesImpl _value, - $Res Function(_$CommunityAggregatesImpl) _then) - : super(_value, _then); - - /// Create a copy of CommunityAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? communityId = null, - Object? subscribers = null, - Object? posts = null, - Object? comments = null, - Object? published = null, - Object? usersActiveDay = null, - Object? usersActiveWeek = null, - Object? usersActiveMonth = null, - Object? usersActiveHalfYear = null, - Object? hotRank = freezed, - Object? subscribersLocal = freezed, - }) { - return _then(_$CommunityAggregatesImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - subscribers: null == subscribers - ? _value.subscribers - : subscribers // ignore: cast_nullable_to_non_nullable - as int, - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as int, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - usersActiveDay: null == usersActiveDay - ? _value.usersActiveDay - : usersActiveDay // ignore: cast_nullable_to_non_nullable - as int, - usersActiveWeek: null == usersActiveWeek - ? _value.usersActiveWeek - : usersActiveWeek // ignore: cast_nullable_to_non_nullable - as int, - usersActiveMonth: null == usersActiveMonth - ? _value.usersActiveMonth - : usersActiveMonth // ignore: cast_nullable_to_non_nullable - as int, - usersActiveHalfYear: null == usersActiveHalfYear - ? _value.usersActiveHalfYear - : usersActiveHalfYear // ignore: cast_nullable_to_non_nullable - as int, - hotRank: freezed == hotRank - ? _value.hotRank - : hotRank // ignore: cast_nullable_to_non_nullable - as int?, - subscribersLocal: freezed == subscribersLocal - ? _value.subscribersLocal - : subscribersLocal // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityAggregatesImpl extends _CommunityAggregates { - const _$CommunityAggregatesImpl( - {@deprecated this.id, - required this.communityId, - required this.subscribers, - required this.posts, - required this.comments, - required this.published, - required this.usersActiveDay, - required this.usersActiveWeek, - required this.usersActiveMonth, - required this.usersActiveHalfYear, - @deprecated this.hotRank, - this.subscribersLocal}) - : super._(); - - factory _$CommunityAggregatesImpl.fromJson(Map json) => - _$$CommunityAggregatesImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int communityId; -// v0.18.0 - @override - final int subscribers; -// v0.18.0 - @override - final int posts; -// v0.18.0 - @override - final int comments; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final int usersActiveDay; -// v0.18.0 - @override - final int usersActiveWeek; -// v0.18.0 - @override - final int usersActiveMonth; -// v0.18.0 - @override - final int usersActiveHalfYear; -// v0.18.0 - @override - @deprecated - final int? hotRank; -// v0.18.0 [deprecated in v0.19.0] - @override - final int? subscribersLocal; - - @override - String toString() { - return 'CommunityAggregates(id: $id, communityId: $communityId, subscribers: $subscribers, posts: $posts, comments: $comments, published: $published, usersActiveDay: $usersActiveDay, usersActiveWeek: $usersActiveWeek, usersActiveMonth: $usersActiveMonth, usersActiveHalfYear: $usersActiveHalfYear, hotRank: $hotRank, subscribersLocal: $subscribersLocal)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityAggregatesImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.subscribers, subscribers) || - other.subscribers == subscribers) && - (identical(other.posts, posts) || other.posts == posts) && - (identical(other.comments, comments) || - other.comments == comments) && - (identical(other.published, published) || - other.published == published) && - (identical(other.usersActiveDay, usersActiveDay) || - other.usersActiveDay == usersActiveDay) && - (identical(other.usersActiveWeek, usersActiveWeek) || - other.usersActiveWeek == usersActiveWeek) && - (identical(other.usersActiveMonth, usersActiveMonth) || - other.usersActiveMonth == usersActiveMonth) && - (identical(other.usersActiveHalfYear, usersActiveHalfYear) || - other.usersActiveHalfYear == usersActiveHalfYear) && - (identical(other.hotRank, hotRank) || other.hotRank == hotRank) && - (identical(other.subscribersLocal, subscribersLocal) || - other.subscribersLocal == subscribersLocal)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - communityId, - subscribers, - posts, - comments, - published, - usersActiveDay, - usersActiveWeek, - usersActiveMonth, - usersActiveHalfYear, - hotRank, - subscribersLocal); - - /// Create a copy of CommunityAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityAggregatesImplCopyWith<_$CommunityAggregatesImpl> get copyWith => - __$$CommunityAggregatesImplCopyWithImpl<_$CommunityAggregatesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommunityAggregatesImplToJson( - this, - ); - } -} - -abstract class _CommunityAggregates extends CommunityAggregates { - const factory _CommunityAggregates( - {@deprecated final int? id, - required final int communityId, - required final int subscribers, - required final int posts, - required final int comments, - required final DateTime published, - required final int usersActiveDay, - required final int usersActiveWeek, - required final int usersActiveMonth, - required final int usersActiveHalfYear, - @deprecated final int? hotRank, - final int? subscribersLocal}) = _$CommunityAggregatesImpl; - const _CommunityAggregates._() : super._(); - - factory _CommunityAggregates.fromJson(Map json) = - _$CommunityAggregatesImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get communityId; // v0.18.0 - @override - int get subscribers; // v0.18.0 - @override - int get posts; // v0.18.0 - @override - int get comments; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - int get usersActiveDay; // v0.18.0 - @override - int get usersActiveWeek; // v0.18.0 - @override - int get usersActiveMonth; // v0.18.0 - @override - int get usersActiveHalfYear; // v0.18.0 - @override - @deprecated - int? get hotRank; // v0.18.0 [deprecated in v0.19.0] - @override - int? get subscribersLocal; - - /// Create a copy of CommunityAggregates - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityAggregatesImplCopyWith<_$CommunityAggregatesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/community_aggregates.g.dart b/lib/src/v3/models/community/community_aggregates.g.dart deleted file mode 100644 index a103b06c..00000000 --- a/lib/src/v3/models/community/community_aggregates.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community_aggregates.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityAggregatesImpl _$$CommunityAggregatesImplFromJson( - Map json) => - _$CommunityAggregatesImpl( - id: (json['id'] as num?)?.toInt(), - communityId: (json['community_id'] as num).toInt(), - subscribers: (json['subscribers'] as num).toInt(), - posts: (json['posts'] as num).toInt(), - comments: (json['comments'] as num).toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - usersActiveDay: (json['users_active_day'] as num).toInt(), - usersActiveWeek: (json['users_active_week'] as num).toInt(), - usersActiveMonth: (json['users_active_month'] as num).toInt(), - usersActiveHalfYear: (json['users_active_half_year'] as num).toInt(), - hotRank: (json['hot_rank'] as num?)?.toInt(), - subscribersLocal: (json['subscribers_local'] as num?)?.toInt(), - ); - -Map _$$CommunityAggregatesImplToJson( - _$CommunityAggregatesImpl instance) => - { - 'id': instance.id, - 'community_id': instance.communityId, - 'subscribers': instance.subscribers, - 'posts': instance.posts, - 'comments': instance.comments, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'users_active_day': instance.usersActiveDay, - 'users_active_week': instance.usersActiveWeek, - 'users_active_month': instance.usersActiveMonth, - 'users_active_half_year': instance.usersActiveHalfYear, - 'hot_rank': instance.hotRank, - 'subscribers_local': instance.subscribersLocal, - }; diff --git a/lib/src/v3/models/community/community_response.dart b/lib/src/v3/models/community/community_response.dart deleted file mode 100644 index 4569946f..00000000 --- a/lib/src/v3/models/community/community_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'community_response.freezed.dart'; -part 'community_response.g.dart'; - -@freezed -class CommunityResponse with _$CommunityResponse { - @modelSerde - const factory CommunityResponse({ - required CommunityView communityView, // v0.18.0 - required List discussionLanguages, // v0.18.0 - }) = _CommunityResponse; - - const CommunityResponse._(); - factory CommunityResponse.fromJson(Map json) => - _$CommunityResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/community_response.freezed.dart b/lib/src/v3/models/community/community_response.freezed.dart deleted file mode 100644 index b9bacc1f..00000000 --- a/lib/src/v3/models/community/community_response.freezed.dart +++ /dev/null @@ -1,216 +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 'community_response.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'); - -CommunityResponse _$CommunityResponseFromJson(Map json) { - return _CommunityResponse.fromJson(json); -} - -/// @nodoc -mixin _$CommunityResponse { - CommunityView get communityView => - throw _privateConstructorUsedError; // v0.18.0 - List get discussionLanguages => throw _privateConstructorUsedError; - - /// Serializes this CommunityResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityResponseCopyWith<$Res> { - factory $CommunityResponseCopyWith( - CommunityResponse value, $Res Function(CommunityResponse) then) = - _$CommunityResponseCopyWithImpl<$Res, CommunityResponse>; - @useResult - $Res call({CommunityView communityView, List discussionLanguages}); - - $CommunityViewCopyWith<$Res> get communityView; -} - -/// @nodoc -class _$CommunityResponseCopyWithImpl<$Res, $Val extends CommunityResponse> - implements $CommunityResponseCopyWith<$Res> { - _$CommunityResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = null, - Object? discussionLanguages = null, - }) { - return _then(_value.copyWith( - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - discussionLanguages: null == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of CommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityViewCopyWith<$Res> get communityView { - return $CommunityViewCopyWith<$Res>(_value.communityView, (value) { - return _then(_value.copyWith(communityView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommunityResponseImplCopyWith<$Res> - implements $CommunityResponseCopyWith<$Res> { - factory _$$CommunityResponseImplCopyWith(_$CommunityResponseImpl value, - $Res Function(_$CommunityResponseImpl) then) = - __$$CommunityResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CommunityView communityView, List discussionLanguages}); - - @override - $CommunityViewCopyWith<$Res> get communityView; -} - -/// @nodoc -class __$$CommunityResponseImplCopyWithImpl<$Res> - extends _$CommunityResponseCopyWithImpl<$Res, _$CommunityResponseImpl> - implements _$$CommunityResponseImplCopyWith<$Res> { - __$$CommunityResponseImplCopyWithImpl(_$CommunityResponseImpl _value, - $Res Function(_$CommunityResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of CommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = null, - Object? discussionLanguages = null, - }) { - return _then(_$CommunityResponseImpl( - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - discussionLanguages: null == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityResponseImpl extends _CommunityResponse { - const _$CommunityResponseImpl( - {required this.communityView, - required final List discussionLanguages}) - : _discussionLanguages = discussionLanguages, - super._(); - - factory _$CommunityResponseImpl.fromJson(Map json) => - _$$CommunityResponseImplFromJson(json); - - @override - final CommunityView communityView; -// v0.18.0 - final List _discussionLanguages; -// v0.18.0 - @override - List get discussionLanguages { - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_discussionLanguages); - } - - @override - String toString() { - return 'CommunityResponse(communityView: $communityView, discussionLanguages: $discussionLanguages)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityResponseImpl && - (identical(other.communityView, communityView) || - other.communityView == communityView) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityView, - const DeepCollectionEquality().hash(_discussionLanguages)); - - /// Create a copy of CommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityResponseImplCopyWith<_$CommunityResponseImpl> get copyWith => - __$$CommunityResponseImplCopyWithImpl<_$CommunityResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommunityResponseImplToJson( - this, - ); - } -} - -abstract class _CommunityResponse extends CommunityResponse { - const factory _CommunityResponse( - {required final CommunityView communityView, - required final List discussionLanguages}) = _$CommunityResponseImpl; - const _CommunityResponse._() : super._(); - - factory _CommunityResponse.fromJson(Map json) = - _$CommunityResponseImpl.fromJson; - - @override - CommunityView get communityView; // v0.18.0 - @override - List get discussionLanguages; - - /// Create a copy of CommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityResponseImplCopyWith<_$CommunityResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/community_response.g.dart b/lib/src/v3/models/community/community_response.g.dart deleted file mode 100644 index a179c250..00000000 --- a/lib/src/v3/models/community/community_response.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityResponseImpl _$$CommunityResponseImplFromJson( - Map json) => - _$CommunityResponseImpl( - communityView: CommunityView.fromJson( - json['community_view'] as Map), - discussionLanguages: (json['discussion_languages'] as List) - .map((e) => (e as num).toInt()) - .toList(), - ); - -Map _$$CommunityResponseImplToJson( - _$CommunityResponseImpl instance) => - { - 'community_view': instance.communityView.toJson(), - 'discussion_languages': instance.discussionLanguages, - }; diff --git a/lib/src/v3/models/community/get_community_response.dart b/lib/src/v3/models/community/get_community_response.dart deleted file mode 100644 index 52c031c6..00000000 --- a/lib/src/v3/models/community/get_community_response.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; -import '../models.dart'; - -part 'get_community_response.freezed.dart'; -part 'get_community_response.g.dart'; - -@freezed -class GetCommunityResponse with _$GetCommunityResponse { - @modelSerde - const factory GetCommunityResponse({ - required CommunityView communityView, // v0.18.0 - Site? site, // v0.18.0 - required List moderators, // v0.18.0 - required List discussionLanguages, // v0.18.0 - }) = _GetCommunityResponse; - - const GetCommunityResponse._(); - factory GetCommunityResponse.fromJson(Map json) => - _$GetCommunityResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/get_community_response.freezed.dart b/lib/src/v3/models/community/get_community_response.freezed.dart deleted file mode 100644 index 61831773..00000000 --- a/lib/src/v3/models/community/get_community_response.freezed.dart +++ /dev/null @@ -1,296 +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 'get_community_response.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'); - -GetCommunityResponse _$GetCommunityResponseFromJson(Map json) { - return _GetCommunityResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetCommunityResponse { - CommunityView get communityView => - throw _privateConstructorUsedError; // v0.18.0 - Site? get site => throw _privateConstructorUsedError; // v0.18.0 - List get moderators => - throw _privateConstructorUsedError; // v0.18.0 - List get discussionLanguages => throw _privateConstructorUsedError; - - /// Serializes this GetCommunityResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCommunityResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCommunityResponseCopyWith<$Res> { - factory $GetCommunityResponseCopyWith(GetCommunityResponse value, - $Res Function(GetCommunityResponse) then) = - _$GetCommunityResponseCopyWithImpl<$Res, GetCommunityResponse>; - @useResult - $Res call( - {CommunityView communityView, - Site? site, - List moderators, - List discussionLanguages}); - - $CommunityViewCopyWith<$Res> get communityView; - $SiteCopyWith<$Res>? get site; -} - -/// @nodoc -class _$GetCommunityResponseCopyWithImpl<$Res, - $Val extends GetCommunityResponse> - implements $GetCommunityResponseCopyWith<$Res> { - _$GetCommunityResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = null, - Object? site = freezed, - Object? moderators = null, - Object? discussionLanguages = null, - }) { - return _then(_value.copyWith( - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - site: freezed == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site?, - moderators: null == moderators - ? _value.moderators - : moderators // ignore: cast_nullable_to_non_nullable - as List, - discussionLanguages: null == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityViewCopyWith<$Res> get communityView { - return $CommunityViewCopyWith<$Res>(_value.communityView, (value) { - return _then(_value.copyWith(communityView: value) as $Val); - }); - } - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteCopyWith<$Res>? get site { - if (_value.site == null) { - return null; - } - - return $SiteCopyWith<$Res>(_value.site!, (value) { - return _then(_value.copyWith(site: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetCommunityResponseImplCopyWith<$Res> - implements $GetCommunityResponseCopyWith<$Res> { - factory _$$GetCommunityResponseImplCopyWith(_$GetCommunityResponseImpl value, - $Res Function(_$GetCommunityResponseImpl) then) = - __$$GetCommunityResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommunityView communityView, - Site? site, - List moderators, - List discussionLanguages}); - - @override - $CommunityViewCopyWith<$Res> get communityView; - @override - $SiteCopyWith<$Res>? get site; -} - -/// @nodoc -class __$$GetCommunityResponseImplCopyWithImpl<$Res> - extends _$GetCommunityResponseCopyWithImpl<$Res, _$GetCommunityResponseImpl> - implements _$$GetCommunityResponseImplCopyWith<$Res> { - __$$GetCommunityResponseImplCopyWithImpl(_$GetCommunityResponseImpl _value, - $Res Function(_$GetCommunityResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = null, - Object? site = freezed, - Object? moderators = null, - Object? discussionLanguages = null, - }) { - return _then(_$GetCommunityResponseImpl( - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - site: freezed == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site?, - moderators: null == moderators - ? _value._moderators - : moderators // ignore: cast_nullable_to_non_nullable - as List, - discussionLanguages: null == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetCommunityResponseImpl extends _GetCommunityResponse { - const _$GetCommunityResponseImpl( - {required this.communityView, - this.site, - required final List moderators, - required final List discussionLanguages}) - : _moderators = moderators, - _discussionLanguages = discussionLanguages, - super._(); - - factory _$GetCommunityResponseImpl.fromJson(Map json) => - _$$GetCommunityResponseImplFromJson(json); - - @override - final CommunityView communityView; -// v0.18.0 - @override - final Site? site; -// v0.18.0 - final List _moderators; -// v0.18.0 - @override - List get moderators { - if (_moderators is EqualUnmodifiableListView) return _moderators; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_moderators); - } - -// v0.18.0 - final List _discussionLanguages; -// v0.18.0 - @override - List get discussionLanguages { - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_discussionLanguages); - } - - @override - String toString() { - return 'GetCommunityResponse(communityView: $communityView, site: $site, moderators: $moderators, discussionLanguages: $discussionLanguages)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCommunityResponseImpl && - (identical(other.communityView, communityView) || - other.communityView == communityView) && - (identical(other.site, site) || other.site == site) && - const DeepCollectionEquality() - .equals(other._moderators, _moderators) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - communityView, - site, - const DeepCollectionEquality().hash(_moderators), - const DeepCollectionEquality().hash(_discussionLanguages)); - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCommunityResponseImplCopyWith<_$GetCommunityResponseImpl> - get copyWith => - __$$GetCommunityResponseImplCopyWithImpl<_$GetCommunityResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetCommunityResponseImplToJson( - this, - ); - } -} - -abstract class _GetCommunityResponse extends GetCommunityResponse { - const factory _GetCommunityResponse( - {required final CommunityView communityView, - final Site? site, - required final List moderators, - required final List discussionLanguages}) = - _$GetCommunityResponseImpl; - const _GetCommunityResponse._() : super._(); - - factory _GetCommunityResponse.fromJson(Map json) = - _$GetCommunityResponseImpl.fromJson; - - @override - CommunityView get communityView; // v0.18.0 - @override - Site? get site; // v0.18.0 - @override - List get moderators; // v0.18.0 - @override - List get discussionLanguages; - - /// Create a copy of GetCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCommunityResponseImplCopyWith<_$GetCommunityResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/get_community_response.g.dart b/lib/src/v3/models/community/get_community_response.g.dart deleted file mode 100644 index 620b863d..00000000 --- a/lib/src/v3/models/community/get_community_response.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_community_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetCommunityResponseImpl _$$GetCommunityResponseImplFromJson( - Map json) => - _$GetCommunityResponseImpl( - communityView: CommunityView.fromJson( - json['community_view'] as Map), - site: json['site'] == null - ? null - : Site.fromJson(json['site'] as Map), - moderators: (json['moderators'] as List) - .map( - (e) => CommunityModeratorView.fromJson(e as Map)) - .toList(), - discussionLanguages: (json['discussion_languages'] as List) - .map((e) => (e as num).toInt()) - .toList(), - ); - -Map _$$GetCommunityResponseImplToJson( - _$GetCommunityResponseImpl instance) => - { - 'community_view': instance.communityView.toJson(), - 'site': instance.site?.toJson(), - 'moderators': instance.moderators.map((e) => e.toJson()).toList(), - 'discussion_languages': instance.discussionLanguages, - }; diff --git a/lib/src/v3/models/community/hide_community_response.dart b/lib/src/v3/models/community/hide_community_response.dart deleted file mode 100644 index cabbc127..00000000 --- a/lib/src/v3/models/community/hide_community_response.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'hide_community_response.freezed.dart'; -part 'hide_community_response.g.dart'; - -@freezed -class HideCommunityResponse with _$HideCommunityResponse { - @modelSerde - const factory HideCommunityResponse({ - @deprecated CommunityView? communityView, - @deprecated List? discussionLanguages, - bool? success, // Only available in lemmy v0.19.0 and above - }) = _HideCommunityResponse; - - const HideCommunityResponse._(); - factory HideCommunityResponse.fromJson(Map json) => - _$HideCommunityResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/hide_community_response.freezed.dart b/lib/src/v3/models/community/hide_community_response.freezed.dart deleted file mode 100644 index e6cdc347..00000000 --- a/lib/src/v3/models/community/hide_community_response.freezed.dart +++ /dev/null @@ -1,254 +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 'hide_community_response.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'); - -HideCommunityResponse _$HideCommunityResponseFromJson( - Map json) { - return _HideCommunityResponse.fromJson(json); -} - -/// @nodoc -mixin _$HideCommunityResponse { - @deprecated - CommunityView? get communityView => throw _privateConstructorUsedError; - @deprecated - List? get discussionLanguages => throw _privateConstructorUsedError; - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this HideCommunityResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of HideCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $HideCommunityResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $HideCommunityResponseCopyWith<$Res> { - factory $HideCommunityResponseCopyWith(HideCommunityResponse value, - $Res Function(HideCommunityResponse) then) = - _$HideCommunityResponseCopyWithImpl<$Res, HideCommunityResponse>; - @useResult - $Res call( - {@deprecated CommunityView? communityView, - @deprecated List? discussionLanguages, - bool? success}); - - $CommunityViewCopyWith<$Res>? get communityView; -} - -/// @nodoc -class _$HideCommunityResponseCopyWithImpl<$Res, - $Val extends HideCommunityResponse> - implements $HideCommunityResponseCopyWith<$Res> { - _$HideCommunityResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of HideCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = freezed, - Object? discussionLanguages = freezed, - Object? success = freezed, - }) { - return _then(_value.copyWith( - communityView: freezed == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView?, - discussionLanguages: freezed == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } - - /// Create a copy of HideCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityViewCopyWith<$Res>? get communityView { - if (_value.communityView == null) { - return null; - } - - return $CommunityViewCopyWith<$Res>(_value.communityView!, (value) { - return _then(_value.copyWith(communityView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$HideCommunityResponseImplCopyWith<$Res> - implements $HideCommunityResponseCopyWith<$Res> { - factory _$$HideCommunityResponseImplCopyWith( - _$HideCommunityResponseImpl value, - $Res Function(_$HideCommunityResponseImpl) then) = - __$$HideCommunityResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated CommunityView? communityView, - @deprecated List? discussionLanguages, - bool? success}); - - @override - $CommunityViewCopyWith<$Res>? get communityView; -} - -/// @nodoc -class __$$HideCommunityResponseImplCopyWithImpl<$Res> - extends _$HideCommunityResponseCopyWithImpl<$Res, - _$HideCommunityResponseImpl> - implements _$$HideCommunityResponseImplCopyWith<$Res> { - __$$HideCommunityResponseImplCopyWithImpl(_$HideCommunityResponseImpl _value, - $Res Function(_$HideCommunityResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of HideCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityView = freezed, - Object? discussionLanguages = freezed, - Object? success = freezed, - }) { - return _then(_$HideCommunityResponseImpl( - communityView: freezed == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView?, - discussionLanguages: freezed == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$HideCommunityResponseImpl extends _HideCommunityResponse { - const _$HideCommunityResponseImpl( - {@deprecated this.communityView, - @deprecated final List? discussionLanguages, - this.success}) - : _discussionLanguages = discussionLanguages, - super._(); - - factory _$HideCommunityResponseImpl.fromJson(Map json) => - _$$HideCommunityResponseImplFromJson(json); - - @override - @deprecated - final CommunityView? communityView; - final List? _discussionLanguages; - @override - @deprecated - List? get discussionLanguages { - final value = _discussionLanguages; - if (value == null) return null; - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final bool? success; - - @override - String toString() { - return 'HideCommunityResponse(communityView: $communityView, discussionLanguages: $discussionLanguages, success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$HideCommunityResponseImpl && - (identical(other.communityView, communityView) || - other.communityView == communityView) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityView, - const DeepCollectionEquality().hash(_discussionLanguages), success); - - /// Create a copy of HideCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$HideCommunityResponseImplCopyWith<_$HideCommunityResponseImpl> - get copyWith => __$$HideCommunityResponseImplCopyWithImpl< - _$HideCommunityResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$HideCommunityResponseImplToJson( - this, - ); - } -} - -abstract class _HideCommunityResponse extends HideCommunityResponse { - const factory _HideCommunityResponse( - {@deprecated final CommunityView? communityView, - @deprecated final List? discussionLanguages, - final bool? success}) = _$HideCommunityResponseImpl; - const _HideCommunityResponse._() : super._(); - - factory _HideCommunityResponse.fromJson(Map json) = - _$HideCommunityResponseImpl.fromJson; - - @override - @deprecated - CommunityView? get communityView; - @override - @deprecated - List? get discussionLanguages; - @override - bool? get success; - - /// Create a copy of HideCommunityResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$HideCommunityResponseImplCopyWith<_$HideCommunityResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/hide_community_response.g.dart b/lib/src/v3/models/community/hide_community_response.g.dart deleted file mode 100644 index 70751b1f..00000000 --- a/lib/src/v3/models/community/hide_community_response.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'hide_community_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$HideCommunityResponseImpl _$$HideCommunityResponseImplFromJson( - Map json) => - _$HideCommunityResponseImpl( - communityView: json['community_view'] == null - ? null - : CommunityView.fromJson( - json['community_view'] as Map), - discussionLanguages: (json['discussion_languages'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - success: json['success'] as bool?, - ); - -Map _$$HideCommunityResponseImplToJson( - _$HideCommunityResponseImpl instance) => - { - 'community_view': instance.communityView?.toJson(), - 'discussion_languages': instance.discussionLanguages, - 'success': instance.success, - }; diff --git a/lib/src/v3/models/community/list_communities_response.dart b/lib/src/v3/models/community/list_communities_response.dart deleted file mode 100644 index f80b5761..00000000 --- a/lib/src/v3/models/community/list_communities_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_communities_response.freezed.dart'; -part 'list_communities_response.g.dart'; - -@freezed -class ListCommunitiesResponse with _$ListCommunitiesResponse { - @modelSerde - const factory ListCommunitiesResponse({ - required List communities, // v0.18.0 - }) = _ListCommunitiesResponse; - - const ListCommunitiesResponse._(); - factory ListCommunitiesResponse.fromJson(Map json) => - _$ListCommunitiesResponseFromJson(json); -} diff --git a/lib/src/v3/models/community/list_communities_response.freezed.dart b/lib/src/v3/models/community/list_communities_response.freezed.dart deleted file mode 100644 index e534af43..00000000 --- a/lib/src/v3/models/community/list_communities_response.freezed.dart +++ /dev/null @@ -1,184 +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 'list_communities_response.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'); - -ListCommunitiesResponse _$ListCommunitiesResponseFromJson( - Map json) { - return _ListCommunitiesResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListCommunitiesResponse { - List get communities => throw _privateConstructorUsedError; - - /// Serializes this ListCommunitiesResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListCommunitiesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListCommunitiesResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListCommunitiesResponseCopyWith<$Res> { - factory $ListCommunitiesResponseCopyWith(ListCommunitiesResponse value, - $Res Function(ListCommunitiesResponse) then) = - _$ListCommunitiesResponseCopyWithImpl<$Res, ListCommunitiesResponse>; - @useResult - $Res call({List communities}); -} - -/// @nodoc -class _$ListCommunitiesResponseCopyWithImpl<$Res, - $Val extends ListCommunitiesResponse> - implements $ListCommunitiesResponseCopyWith<$Res> { - _$ListCommunitiesResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListCommunitiesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communities = null, - }) { - return _then(_value.copyWith( - communities: null == communities - ? _value.communities - : communities // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListCommunitiesResponseImplCopyWith<$Res> - implements $ListCommunitiesResponseCopyWith<$Res> { - factory _$$ListCommunitiesResponseImplCopyWith( - _$ListCommunitiesResponseImpl value, - $Res Function(_$ListCommunitiesResponseImpl) then) = - __$$ListCommunitiesResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List communities}); -} - -/// @nodoc -class __$$ListCommunitiesResponseImplCopyWithImpl<$Res> - extends _$ListCommunitiesResponseCopyWithImpl<$Res, - _$ListCommunitiesResponseImpl> - implements _$$ListCommunitiesResponseImplCopyWith<$Res> { - __$$ListCommunitiesResponseImplCopyWithImpl( - _$ListCommunitiesResponseImpl _value, - $Res Function(_$ListCommunitiesResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListCommunitiesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communities = null, - }) { - return _then(_$ListCommunitiesResponseImpl( - communities: null == communities - ? _value._communities - : communities // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListCommunitiesResponseImpl extends _ListCommunitiesResponse { - const _$ListCommunitiesResponseImpl( - {required final List communities}) - : _communities = communities, - super._(); - - factory _$ListCommunitiesResponseImpl.fromJson(Map json) => - _$$ListCommunitiesResponseImplFromJson(json); - - final List _communities; - @override - List get communities { - if (_communities is EqualUnmodifiableListView) return _communities; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_communities); - } - - @override - String toString() { - return 'ListCommunitiesResponse(communities: $communities)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListCommunitiesResponseImpl && - const DeepCollectionEquality() - .equals(other._communities, _communities)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_communities)); - - /// Create a copy of ListCommunitiesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListCommunitiesResponseImplCopyWith<_$ListCommunitiesResponseImpl> - get copyWith => __$$ListCommunitiesResponseImplCopyWithImpl< - _$ListCommunitiesResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListCommunitiesResponseImplToJson( - this, - ); - } -} - -abstract class _ListCommunitiesResponse extends ListCommunitiesResponse { - const factory _ListCommunitiesResponse( - {required final List communities}) = - _$ListCommunitiesResponseImpl; - const _ListCommunitiesResponse._() : super._(); - - factory _ListCommunitiesResponse.fromJson(Map json) = - _$ListCommunitiesResponseImpl.fromJson; - - @override - List get communities; - - /// Create a copy of ListCommunitiesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListCommunitiesResponseImplCopyWith<_$ListCommunitiesResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/community/list_communities_response.g.dart b/lib/src/v3/models/community/list_communities_response.g.dart deleted file mode 100644 index 89f4e2fd..00000000 --- a/lib/src/v3/models/community/list_communities_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_communities_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListCommunitiesResponseImpl _$$ListCommunitiesResponseImplFromJson( - Map json) => - _$ListCommunitiesResponseImpl( - communities: (json['communities'] as List) - .map((e) => CommunityView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListCommunitiesResponseImplToJson( - _$ListCommunitiesResponseImpl instance) => - { - 'communities': instance.communities.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/custom_emoji/custom_emoji.dart b/lib/src/v3/models/custom_emoji/custom_emoji.dart deleted file mode 100644 index 60c8e825..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'custom_emoji.freezed.dart'; -part 'custom_emoji.g.dart'; - -@freezed -class CustomEmoji with _$CustomEmoji { - @modelSerde - const factory CustomEmoji({ - required int id, // v0.18.0 - required int localSiteId, // v0.18.0 - required String shortcode, // v0.18.0 - required String imageUrl, // v0.18.0 - required String altText, // v0.18.0 - required String category, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - }) = _CustomEmoji; - - const CustomEmoji._(); - factory CustomEmoji.fromJson(Map json) => - _$CustomEmojiFromJson(json); -} diff --git a/lib/src/v3/models/custom_emoji/custom_emoji.freezed.dart b/lib/src/v3/models/custom_emoji/custom_emoji.freezed.dart deleted file mode 100644 index 9a97754b..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji.freezed.dart +++ /dev/null @@ -1,324 +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 'custom_emoji.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'); - -CustomEmoji _$CustomEmojiFromJson(Map json) { - return _CustomEmoji.fromJson(json); -} - -/// @nodoc -mixin _$CustomEmoji { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get localSiteId => throw _privateConstructorUsedError; // v0.18.0 - String get shortcode => throw _privateConstructorUsedError; // v0.18.0 - String get imageUrl => throw _privateConstructorUsedError; // v0.18.0 - String get altText => throw _privateConstructorUsedError; // v0.18.0 - String get category => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; - - /// Serializes this CustomEmoji to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CustomEmojiCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CustomEmojiCopyWith<$Res> { - factory $CustomEmojiCopyWith( - CustomEmoji value, $Res Function(CustomEmoji) then) = - _$CustomEmojiCopyWithImpl<$Res, CustomEmoji>; - @useResult - $Res call( - {int id, - int localSiteId, - String shortcode, - String imageUrl, - String altText, - String category, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class _$CustomEmojiCopyWithImpl<$Res, $Val extends CustomEmoji> - implements $CustomEmojiCopyWith<$Res> { - _$CustomEmojiCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? localSiteId = null, - Object? shortcode = null, - Object? imageUrl = null, - Object? altText = null, - Object? category = null, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - localSiteId: null == localSiteId - ? _value.localSiteId - : localSiteId // ignore: cast_nullable_to_non_nullable - as int, - shortcode: null == shortcode - ? _value.shortcode - : shortcode // ignore: cast_nullable_to_non_nullable - as String, - imageUrl: null == imageUrl - ? _value.imageUrl - : imageUrl // ignore: cast_nullable_to_non_nullable - as String, - altText: null == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String, - category: null == category - ? _value.category - : category // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CustomEmojiImplCopyWith<$Res> - implements $CustomEmojiCopyWith<$Res> { - factory _$$CustomEmojiImplCopyWith( - _$CustomEmojiImpl value, $Res Function(_$CustomEmojiImpl) then) = - __$$CustomEmojiImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int localSiteId, - String shortcode, - String imageUrl, - String altText, - String category, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class __$$CustomEmojiImplCopyWithImpl<$Res> - extends _$CustomEmojiCopyWithImpl<$Res, _$CustomEmojiImpl> - implements _$$CustomEmojiImplCopyWith<$Res> { - __$$CustomEmojiImplCopyWithImpl( - _$CustomEmojiImpl _value, $Res Function(_$CustomEmojiImpl) _then) - : super(_value, _then); - - /// Create a copy of CustomEmoji - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? localSiteId = null, - Object? shortcode = null, - Object? imageUrl = null, - Object? altText = null, - Object? category = null, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_$CustomEmojiImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - localSiteId: null == localSiteId - ? _value.localSiteId - : localSiteId // ignore: cast_nullable_to_non_nullable - as int, - shortcode: null == shortcode - ? _value.shortcode - : shortcode // ignore: cast_nullable_to_non_nullable - as String, - imageUrl: null == imageUrl - ? _value.imageUrl - : imageUrl // ignore: cast_nullable_to_non_nullable - as String, - altText: null == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String, - category: null == category - ? _value.category - : category // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CustomEmojiImpl extends _CustomEmoji { - const _$CustomEmojiImpl( - {required this.id, - required this.localSiteId, - required this.shortcode, - required this.imageUrl, - required this.altText, - required this.category, - required this.published, - this.updated}) - : super._(); - - factory _$CustomEmojiImpl.fromJson(Map json) => - _$$CustomEmojiImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int localSiteId; -// v0.18.0 - @override - final String shortcode; -// v0.18.0 - @override - final String imageUrl; -// v0.18.0 - @override - final String altText; -// v0.18.0 - @override - final String category; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; - - @override - String toString() { - return 'CustomEmoji(id: $id, localSiteId: $localSiteId, shortcode: $shortcode, imageUrl: $imageUrl, altText: $altText, category: $category, published: $published, updated: $updated)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CustomEmojiImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.localSiteId, localSiteId) || - other.localSiteId == localSiteId) && - (identical(other.shortcode, shortcode) || - other.shortcode == shortcode) && - (identical(other.imageUrl, imageUrl) || - other.imageUrl == imageUrl) && - (identical(other.altText, altText) || other.altText == altText) && - (identical(other.category, category) || - other.category == category) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, localSiteId, shortcode, - imageUrl, altText, category, published, updated); - - /// Create a copy of CustomEmoji - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CustomEmojiImplCopyWith<_$CustomEmojiImpl> get copyWith => - __$$CustomEmojiImplCopyWithImpl<_$CustomEmojiImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CustomEmojiImplToJson( - this, - ); - } -} - -abstract class _CustomEmoji extends CustomEmoji { - const factory _CustomEmoji( - {required final int id, - required final int localSiteId, - required final String shortcode, - required final String imageUrl, - required final String altText, - required final String category, - required final DateTime published, - final DateTime? updated}) = _$CustomEmojiImpl; - const _CustomEmoji._() : super._(); - - factory _CustomEmoji.fromJson(Map json) = - _$CustomEmojiImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get localSiteId; // v0.18.0 - @override - String get shortcode; // v0.18.0 - @override - String get imageUrl; // v0.18.0 - @override - String get altText; // v0.18.0 - @override - String get category; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; - - /// Create a copy of CustomEmoji - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CustomEmojiImplCopyWith<_$CustomEmojiImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/custom_emoji/custom_emoji.g.dart b/lib/src/v3/models/custom_emoji/custom_emoji.g.dart deleted file mode 100644 index 79f0884a..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji.g.dart +++ /dev/null @@ -1,45 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'custom_emoji.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CustomEmojiImpl _$$CustomEmojiImplFromJson(Map json) => - _$CustomEmojiImpl( - id: (json['id'] as num).toInt(), - localSiteId: (json['local_site_id'] as num).toInt(), - shortcode: json['shortcode'] as String, - imageUrl: json['image_url'] as String, - altText: json['alt_text'] as String, - category: json['category'] as String, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - ); - -Map _$$CustomEmojiImplToJson(_$CustomEmojiImpl instance) => - { - 'id': instance.id, - 'local_site_id': instance.localSiteId, - 'shortcode': instance.shortcode, - 'image_url': instance.imageUrl, - 'alt_text': instance.altText, - 'category': instance.category, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/custom_emoji/custom_emoji_keyword.dart b/lib/src/v3/models/custom_emoji/custom_emoji_keyword.dart deleted file mode 100644 index 287dd754..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji_keyword.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'custom_emoji_keyword.freezed.dart'; -part 'custom_emoji_keyword.g.dart'; - -@freezed -class CustomEmojiKeyword with _$CustomEmojiKeyword { - @modelSerde - const factory CustomEmojiKeyword({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int customEmojiId, // v0.18.0 - required String keyword, // v0.18.0 - }) = _CustomEmojiKeyword; - - const CustomEmojiKeyword._(); - factory CustomEmojiKeyword.fromJson(Map json) => - _$CustomEmojiKeywordFromJson(json); -} diff --git a/lib/src/v3/models/custom_emoji/custom_emoji_keyword.freezed.dart b/lib/src/v3/models/custom_emoji/custom_emoji_keyword.freezed.dart deleted file mode 100644 index 7a3206eb..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji_keyword.freezed.dart +++ /dev/null @@ -1,211 +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 'custom_emoji_keyword.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'); - -CustomEmojiKeyword _$CustomEmojiKeywordFromJson(Map json) { - return _CustomEmojiKeyword.fromJson(json); -} - -/// @nodoc -mixin _$CustomEmojiKeyword { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get customEmojiId => throw _privateConstructorUsedError; // v0.18.0 - String get keyword => throw _privateConstructorUsedError; - - /// Serializes this CustomEmojiKeyword to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomEmojiKeyword - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CustomEmojiKeywordCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CustomEmojiKeywordCopyWith<$Res> { - factory $CustomEmojiKeywordCopyWith( - CustomEmojiKeyword value, $Res Function(CustomEmojiKeyword) then) = - _$CustomEmojiKeywordCopyWithImpl<$Res, CustomEmojiKeyword>; - @useResult - $Res call({@deprecated int? id, int customEmojiId, String keyword}); -} - -/// @nodoc -class _$CustomEmojiKeywordCopyWithImpl<$Res, $Val extends CustomEmojiKeyword> - implements $CustomEmojiKeywordCopyWith<$Res> { - _$CustomEmojiKeywordCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CustomEmojiKeyword - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? customEmojiId = null, - Object? keyword = null, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - customEmojiId: null == customEmojiId - ? _value.customEmojiId - : customEmojiId // ignore: cast_nullable_to_non_nullable - as int, - keyword: null == keyword - ? _value.keyword - : keyword // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CustomEmojiKeywordImplCopyWith<$Res> - implements $CustomEmojiKeywordCopyWith<$Res> { - factory _$$CustomEmojiKeywordImplCopyWith(_$CustomEmojiKeywordImpl value, - $Res Function(_$CustomEmojiKeywordImpl) then) = - __$$CustomEmojiKeywordImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({@deprecated int? id, int customEmojiId, String keyword}); -} - -/// @nodoc -class __$$CustomEmojiKeywordImplCopyWithImpl<$Res> - extends _$CustomEmojiKeywordCopyWithImpl<$Res, _$CustomEmojiKeywordImpl> - implements _$$CustomEmojiKeywordImplCopyWith<$Res> { - __$$CustomEmojiKeywordImplCopyWithImpl(_$CustomEmojiKeywordImpl _value, - $Res Function(_$CustomEmojiKeywordImpl) _then) - : super(_value, _then); - - /// Create a copy of CustomEmojiKeyword - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? customEmojiId = null, - Object? keyword = null, - }) { - return _then(_$CustomEmojiKeywordImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - customEmojiId: null == customEmojiId - ? _value.customEmojiId - : customEmojiId // ignore: cast_nullable_to_non_nullable - as int, - keyword: null == keyword - ? _value.keyword - : keyword // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CustomEmojiKeywordImpl extends _CustomEmojiKeyword { - const _$CustomEmojiKeywordImpl( - {@deprecated this.id, required this.customEmojiId, required this.keyword}) - : super._(); - - factory _$CustomEmojiKeywordImpl.fromJson(Map json) => - _$$CustomEmojiKeywordImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int customEmojiId; -// v0.18.0 - @override - final String keyword; - - @override - String toString() { - return 'CustomEmojiKeyword(id: $id, customEmojiId: $customEmojiId, keyword: $keyword)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CustomEmojiKeywordImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.customEmojiId, customEmojiId) || - other.customEmojiId == customEmojiId) && - (identical(other.keyword, keyword) || other.keyword == keyword)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, customEmojiId, keyword); - - /// Create a copy of CustomEmojiKeyword - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CustomEmojiKeywordImplCopyWith<_$CustomEmojiKeywordImpl> get copyWith => - __$$CustomEmojiKeywordImplCopyWithImpl<_$CustomEmojiKeywordImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CustomEmojiKeywordImplToJson( - this, - ); - } -} - -abstract class _CustomEmojiKeyword extends CustomEmojiKeyword { - const factory _CustomEmojiKeyword( - {@deprecated final int? id, - required final int customEmojiId, - required final String keyword}) = _$CustomEmojiKeywordImpl; - const _CustomEmojiKeyword._() : super._(); - - factory _CustomEmojiKeyword.fromJson(Map json) = - _$CustomEmojiKeywordImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get customEmojiId; // v0.18.0 - @override - String get keyword; - - /// Create a copy of CustomEmojiKeyword - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CustomEmojiKeywordImplCopyWith<_$CustomEmojiKeywordImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/custom_emoji/custom_emoji_keyword.g.dart b/lib/src/v3/models/custom_emoji/custom_emoji_keyword.g.dart deleted file mode 100644 index 7d38758b..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji_keyword.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'custom_emoji_keyword.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CustomEmojiKeywordImpl _$$CustomEmojiKeywordImplFromJson( - Map json) => - _$CustomEmojiKeywordImpl( - id: (json['id'] as num?)?.toInt(), - customEmojiId: (json['custom_emoji_id'] as num).toInt(), - keyword: json['keyword'] as String, - ); - -Map _$$CustomEmojiKeywordImplToJson( - _$CustomEmojiKeywordImpl instance) => - { - 'id': instance.id, - 'custom_emoji_id': instance.customEmojiId, - 'keyword': instance.keyword, - }; diff --git a/lib/src/v3/models/custom_emoji/custom_emoji_response.dart b/lib/src/v3/models/custom_emoji/custom_emoji_response.dart deleted file mode 100644 index 4b28f897..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'custom_emoji_response.freezed.dart'; -part 'custom_emoji_response.g.dart'; - -@freezed -class CustomEmojiResponse with _$CustomEmojiResponse { - @modelSerde - const factory CustomEmojiResponse({ - required CustomEmojiView customEmoji, // v0.18.0 - }) = _CustomEmojiResponse; - - const CustomEmojiResponse._(); - factory CustomEmojiResponse.fromJson(Map json) => - _$CustomEmojiResponseFromJson(json); -} diff --git a/lib/src/v3/models/custom_emoji/custom_emoji_response.freezed.dart b/lib/src/v3/models/custom_emoji/custom_emoji_response.freezed.dart deleted file mode 100644 index 84af3213..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji_response.freezed.dart +++ /dev/null @@ -1,184 +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 'custom_emoji_response.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'); - -CustomEmojiResponse _$CustomEmojiResponseFromJson(Map json) { - return _CustomEmojiResponse.fromJson(json); -} - -/// @nodoc -mixin _$CustomEmojiResponse { - CustomEmojiView get customEmoji => throw _privateConstructorUsedError; - - /// Serializes this CustomEmojiResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CustomEmojiResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CustomEmojiResponseCopyWith<$Res> { - factory $CustomEmojiResponseCopyWith( - CustomEmojiResponse value, $Res Function(CustomEmojiResponse) then) = - _$CustomEmojiResponseCopyWithImpl<$Res, CustomEmojiResponse>; - @useResult - $Res call({CustomEmojiView customEmoji}); - - $CustomEmojiViewCopyWith<$Res> get customEmoji; -} - -/// @nodoc -class _$CustomEmojiResponseCopyWithImpl<$Res, $Val extends CustomEmojiResponse> - implements $CustomEmojiResponseCopyWith<$Res> { - _$CustomEmojiResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? customEmoji = null, - }) { - return _then(_value.copyWith( - customEmoji: null == customEmoji - ? _value.customEmoji - : customEmoji // ignore: cast_nullable_to_non_nullable - as CustomEmojiView, - ) as $Val); - } - - /// Create a copy of CustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CustomEmojiViewCopyWith<$Res> get customEmoji { - return $CustomEmojiViewCopyWith<$Res>(_value.customEmoji, (value) { - return _then(_value.copyWith(customEmoji: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CustomEmojiResponseImplCopyWith<$Res> - implements $CustomEmojiResponseCopyWith<$Res> { - factory _$$CustomEmojiResponseImplCopyWith(_$CustomEmojiResponseImpl value, - $Res Function(_$CustomEmojiResponseImpl) then) = - __$$CustomEmojiResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CustomEmojiView customEmoji}); - - @override - $CustomEmojiViewCopyWith<$Res> get customEmoji; -} - -/// @nodoc -class __$$CustomEmojiResponseImplCopyWithImpl<$Res> - extends _$CustomEmojiResponseCopyWithImpl<$Res, _$CustomEmojiResponseImpl> - implements _$$CustomEmojiResponseImplCopyWith<$Res> { - __$$CustomEmojiResponseImplCopyWithImpl(_$CustomEmojiResponseImpl _value, - $Res Function(_$CustomEmojiResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of CustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? customEmoji = null, - }) { - return _then(_$CustomEmojiResponseImpl( - customEmoji: null == customEmoji - ? _value.customEmoji - : customEmoji // ignore: cast_nullable_to_non_nullable - as CustomEmojiView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CustomEmojiResponseImpl extends _CustomEmojiResponse { - const _$CustomEmojiResponseImpl({required this.customEmoji}) : super._(); - - factory _$CustomEmojiResponseImpl.fromJson(Map json) => - _$$CustomEmojiResponseImplFromJson(json); - - @override - final CustomEmojiView customEmoji; - - @override - String toString() { - return 'CustomEmojiResponse(customEmoji: $customEmoji)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CustomEmojiResponseImpl && - (identical(other.customEmoji, customEmoji) || - other.customEmoji == customEmoji)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, customEmoji); - - /// Create a copy of CustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CustomEmojiResponseImplCopyWith<_$CustomEmojiResponseImpl> get copyWith => - __$$CustomEmojiResponseImplCopyWithImpl<_$CustomEmojiResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CustomEmojiResponseImplToJson( - this, - ); - } -} - -abstract class _CustomEmojiResponse extends CustomEmojiResponse { - const factory _CustomEmojiResponse( - {required final CustomEmojiView customEmoji}) = _$CustomEmojiResponseImpl; - const _CustomEmojiResponse._() : super._(); - - factory _CustomEmojiResponse.fromJson(Map json) = - _$CustomEmojiResponseImpl.fromJson; - - @override - CustomEmojiView get customEmoji; - - /// Create a copy of CustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CustomEmojiResponseImplCopyWith<_$CustomEmojiResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/custom_emoji/custom_emoji_response.g.dart b/lib/src/v3/models/custom_emoji/custom_emoji_response.g.dart deleted file mode 100644 index dfa085d0..00000000 --- a/lib/src/v3/models/custom_emoji/custom_emoji_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'custom_emoji_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CustomEmojiResponseImpl _$$CustomEmojiResponseImplFromJson( - Map json) => - _$CustomEmojiResponseImpl( - customEmoji: CustomEmojiView.fromJson( - json['custom_emoji'] as Map), - ); - -Map _$$CustomEmojiResponseImplToJson( - _$CustomEmojiResponseImpl instance) => - { - 'custom_emoji': instance.customEmoji.toJson(), - }; diff --git a/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.dart b/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.dart deleted file mode 100644 index b3644bdd..00000000 --- a/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'delete_custom_emoji_response.freezed.dart'; -part 'delete_custom_emoji_response.g.dart'; - -@freezed -class DeleteCustomEmojiResponse with _$DeleteCustomEmojiResponse { - @modelSerde - const factory DeleteCustomEmojiResponse({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required bool success, // v0.18.0 - }) = _DeleteCustomEmojiResponse; - - const DeleteCustomEmojiResponse._(); - factory DeleteCustomEmojiResponse.fromJson(Map json) => - _$DeleteCustomEmojiResponseFromJson(json); -} diff --git a/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.freezed.dart b/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.freezed.dart deleted file mode 100644 index 41c35a02..00000000 --- a/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.freezed.dart +++ /dev/null @@ -1,197 +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 'delete_custom_emoji_response.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'); - -DeleteCustomEmojiResponse _$DeleteCustomEmojiResponseFromJson( - Map json) { - return _DeleteCustomEmojiResponse.fromJson(json); -} - -/// @nodoc -mixin _$DeleteCustomEmojiResponse { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - bool get success => throw _privateConstructorUsedError; - - /// Serializes this DeleteCustomEmojiResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeleteCustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeleteCustomEmojiResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeleteCustomEmojiResponseCopyWith<$Res> { - factory $DeleteCustomEmojiResponseCopyWith(DeleteCustomEmojiResponse value, - $Res Function(DeleteCustomEmojiResponse) then) = - _$DeleteCustomEmojiResponseCopyWithImpl<$Res, DeleteCustomEmojiResponse>; - @useResult - $Res call({@deprecated int? id, bool success}); -} - -/// @nodoc -class _$DeleteCustomEmojiResponseCopyWithImpl<$Res, - $Val extends DeleteCustomEmojiResponse> - implements $DeleteCustomEmojiResponseCopyWith<$Res> { - _$DeleteCustomEmojiResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeleteCustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? success = null, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - success: null == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeleteCustomEmojiResponseImplCopyWith<$Res> - implements $DeleteCustomEmojiResponseCopyWith<$Res> { - factory _$$DeleteCustomEmojiResponseImplCopyWith( - _$DeleteCustomEmojiResponseImpl value, - $Res Function(_$DeleteCustomEmojiResponseImpl) then) = - __$$DeleteCustomEmojiResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({@deprecated int? id, bool success}); -} - -/// @nodoc -class __$$DeleteCustomEmojiResponseImplCopyWithImpl<$Res> - extends _$DeleteCustomEmojiResponseCopyWithImpl<$Res, - _$DeleteCustomEmojiResponseImpl> - implements _$$DeleteCustomEmojiResponseImplCopyWith<$Res> { - __$$DeleteCustomEmojiResponseImplCopyWithImpl( - _$DeleteCustomEmojiResponseImpl _value, - $Res Function(_$DeleteCustomEmojiResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of DeleteCustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? success = null, - }) { - return _then(_$DeleteCustomEmojiResponseImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - success: null == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$DeleteCustomEmojiResponseImpl extends _DeleteCustomEmojiResponse { - const _$DeleteCustomEmojiResponseImpl( - {@deprecated this.id, required this.success}) - : super._(); - - factory _$DeleteCustomEmojiResponseImpl.fromJson(Map json) => - _$$DeleteCustomEmojiResponseImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final bool success; - - @override - String toString() { - return 'DeleteCustomEmojiResponse(id: $id, success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeleteCustomEmojiResponseImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, success); - - /// Create a copy of DeleteCustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeleteCustomEmojiResponseImplCopyWith<_$DeleteCustomEmojiResponseImpl> - get copyWith => __$$DeleteCustomEmojiResponseImplCopyWithImpl< - _$DeleteCustomEmojiResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DeleteCustomEmojiResponseImplToJson( - this, - ); - } -} - -abstract class _DeleteCustomEmojiResponse extends DeleteCustomEmojiResponse { - const factory _DeleteCustomEmojiResponse( - {@deprecated final int? id, - required final bool success}) = _$DeleteCustomEmojiResponseImpl; - const _DeleteCustomEmojiResponse._() : super._(); - - factory _DeleteCustomEmojiResponse.fromJson(Map json) = - _$DeleteCustomEmojiResponseImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - bool get success; - - /// Create a copy of DeleteCustomEmojiResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeleteCustomEmojiResponseImplCopyWith<_$DeleteCustomEmojiResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.g.dart b/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.g.dart deleted file mode 100644 index 12446f50..00000000 --- a/lib/src/v3/models/custom_emoji/delete_custom_emoji_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'delete_custom_emoji_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$DeleteCustomEmojiResponseImpl _$$DeleteCustomEmojiResponseImplFromJson( - Map json) => - _$DeleteCustomEmojiResponseImpl( - id: (json['id'] as num?)?.toInt(), - success: json['success'] as bool, - ); - -Map _$$DeleteCustomEmojiResponseImplToJson( - _$DeleteCustomEmojiResponseImpl instance) => - { - 'id': instance.id, - 'success': instance.success, - }; diff --git a/lib/src/v3/models/federated_instances/federated_instances.dart b/lib/src/v3/models/federated_instances/federated_instances.dart deleted file mode 100644 index 7e096e48..00000000 --- a/lib/src/v3/models/federated_instances/federated_instances.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'federated_instances.freezed.dart'; -part 'federated_instances.g.dart'; - -@freezed -class FederatedInstances with _$FederatedInstances { - @modelSerde - const factory FederatedInstances({ - required List linked, // v0.18.0 - required List allowed, // v0.18.0 - required List blocked, // v0.18.0 - }) = _FederatedInstances; - - const FederatedInstances._(); - factory FederatedInstances.fromJson(Map json) => - _$FederatedInstancesFromJson(json); -} diff --git a/lib/src/v3/models/federated_instances/federated_instances.freezed.dart b/lib/src/v3/models/federated_instances/federated_instances.freezed.dart deleted file mode 100644 index 0a9477cb..00000000 --- a/lib/src/v3/models/federated_instances/federated_instances.freezed.dart +++ /dev/null @@ -1,244 +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 'federated_instances.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'); - -FederatedInstances _$FederatedInstancesFromJson(Map json) { - return _FederatedInstances.fromJson(json); -} - -/// @nodoc -mixin _$FederatedInstances { - List get linked => - throw _privateConstructorUsedError; // v0.18.0 - List get allowed => - throw _privateConstructorUsedError; // v0.18.0 - List get blocked => - throw _privateConstructorUsedError; - - /// Serializes this FederatedInstances to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of FederatedInstances - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $FederatedInstancesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $FederatedInstancesCopyWith<$Res> { - factory $FederatedInstancesCopyWith( - FederatedInstances value, $Res Function(FederatedInstances) then) = - _$FederatedInstancesCopyWithImpl<$Res, FederatedInstances>; - @useResult - $Res call( - {List linked, - List allowed, - List blocked}); -} - -/// @nodoc -class _$FederatedInstancesCopyWithImpl<$Res, $Val extends FederatedInstances> - implements $FederatedInstancesCopyWith<$Res> { - _$FederatedInstancesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of FederatedInstances - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? linked = null, - Object? allowed = null, - Object? blocked = null, - }) { - return _then(_value.copyWith( - linked: null == linked - ? _value.linked - : linked // ignore: cast_nullable_to_non_nullable - as List, - allowed: null == allowed - ? _value.allowed - : allowed // ignore: cast_nullable_to_non_nullable - as List, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$FederatedInstancesImplCopyWith<$Res> - implements $FederatedInstancesCopyWith<$Res> { - factory _$$FederatedInstancesImplCopyWith(_$FederatedInstancesImpl value, - $Res Function(_$FederatedInstancesImpl) then) = - __$$FederatedInstancesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {List linked, - List allowed, - List blocked}); -} - -/// @nodoc -class __$$FederatedInstancesImplCopyWithImpl<$Res> - extends _$FederatedInstancesCopyWithImpl<$Res, _$FederatedInstancesImpl> - implements _$$FederatedInstancesImplCopyWith<$Res> { - __$$FederatedInstancesImplCopyWithImpl(_$FederatedInstancesImpl _value, - $Res Function(_$FederatedInstancesImpl) _then) - : super(_value, _then); - - /// Create a copy of FederatedInstances - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? linked = null, - Object? allowed = null, - Object? blocked = null, - }) { - return _then(_$FederatedInstancesImpl( - linked: null == linked - ? _value._linked - : linked // ignore: cast_nullable_to_non_nullable - as List, - allowed: null == allowed - ? _value._allowed - : allowed // ignore: cast_nullable_to_non_nullable - as List, - blocked: null == blocked - ? _value._blocked - : blocked // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$FederatedInstancesImpl extends _FederatedInstances { - const _$FederatedInstancesImpl( - {required final List linked, - required final List allowed, - required final List blocked}) - : _linked = linked, - _allowed = allowed, - _blocked = blocked, - super._(); - - factory _$FederatedInstancesImpl.fromJson(Map json) => - _$$FederatedInstancesImplFromJson(json); - - final List _linked; - @override - List get linked { - if (_linked is EqualUnmodifiableListView) return _linked; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_linked); - } - -// v0.18.0 - final List _allowed; -// v0.18.0 - @override - List get allowed { - if (_allowed is EqualUnmodifiableListView) return _allowed; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_allowed); - } - -// v0.18.0 - final List _blocked; -// v0.18.0 - @override - List get blocked { - if (_blocked is EqualUnmodifiableListView) return _blocked; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_blocked); - } - - @override - String toString() { - return 'FederatedInstances(linked: $linked, allowed: $allowed, blocked: $blocked)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FederatedInstancesImpl && - const DeepCollectionEquality().equals(other._linked, _linked) && - const DeepCollectionEquality().equals(other._allowed, _allowed) && - const DeepCollectionEquality().equals(other._blocked, _blocked)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - const DeepCollectionEquality().hash(_linked), - const DeepCollectionEquality().hash(_allowed), - const DeepCollectionEquality().hash(_blocked)); - - /// Create a copy of FederatedInstances - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$FederatedInstancesImplCopyWith<_$FederatedInstancesImpl> get copyWith => - __$$FederatedInstancesImplCopyWithImpl<_$FederatedInstancesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$FederatedInstancesImplToJson( - this, - ); - } -} - -abstract class _FederatedInstances extends FederatedInstances { - const factory _FederatedInstances( - {required final List linked, - required final List allowed, - required final List blocked}) = - _$FederatedInstancesImpl; - const _FederatedInstances._() : super._(); - - factory _FederatedInstances.fromJson(Map json) = - _$FederatedInstancesImpl.fromJson; - - @override - List get linked; // v0.18.0 - @override - List get allowed; // v0.18.0 - @override - List get blocked; - - /// Create a copy of FederatedInstances - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$FederatedInstancesImplCopyWith<_$FederatedInstancesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/federated_instances/federated_instances.g.dart b/lib/src/v3/models/federated_instances/federated_instances.g.dart deleted file mode 100644 index c5254750..00000000 --- a/lib/src/v3/models/federated_instances/federated_instances.g.dart +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'federated_instances.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$FederatedInstancesImpl _$$FederatedInstancesImplFromJson( - Map json) => - _$FederatedInstancesImpl( - linked: (json['linked'] as List) - .map((e) => - InstanceWithFederationState.fromJson(e as Map)) - .toList(), - allowed: (json['allowed'] as List) - .map((e) => - InstanceWithFederationState.fromJson(e as Map)) - .toList(), - blocked: (json['blocked'] as List) - .map((e) => - InstanceWithFederationState.fromJson(e as Map)) - .toList(), - ); - -Map _$$FederatedInstancesImplToJson( - _$FederatedInstancesImpl instance) => - { - 'linked': instance.linked.map((e) => e.toJson()).toList(), - 'allowed': instance.allowed.map((e) => e.toJson()).toList(), - 'blocked': instance.blocked.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/federated_instances/get_federated_instances_response.dart b/lib/src/v3/models/federated_instances/get_federated_instances_response.dart deleted file mode 100644 index 7777282a..00000000 --- a/lib/src/v3/models/federated_instances/get_federated_instances_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'get_federated_instances_response.freezed.dart'; -part 'get_federated_instances_response.g.dart'; - -@freezed -class GetFederatedInstancesResponse with _$GetFederatedInstancesResponse { - @modelSerde - const factory GetFederatedInstancesResponse({ - FederatedInstances? federatedInstances, // v0.18.0 - }) = _GetFederatedInstancesResponse; - - const GetFederatedInstancesResponse._(); - factory GetFederatedInstancesResponse.fromJson(Map json) => - _$GetFederatedInstancesResponseFromJson(json); -} diff --git a/lib/src/v3/models/federated_instances/get_federated_instances_response.freezed.dart b/lib/src/v3/models/federated_instances/get_federated_instances_response.freezed.dart deleted file mode 100644 index dec9bdc9..00000000 --- a/lib/src/v3/models/federated_instances/get_federated_instances_response.freezed.dart +++ /dev/null @@ -1,204 +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 'get_federated_instances_response.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'); - -GetFederatedInstancesResponse _$GetFederatedInstancesResponseFromJson( - Map json) { - return _GetFederatedInstancesResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetFederatedInstancesResponse { - FederatedInstances? get federatedInstances => - throw _privateConstructorUsedError; - - /// Serializes this GetFederatedInstancesResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetFederatedInstancesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetFederatedInstancesResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetFederatedInstancesResponseCopyWith<$Res> { - factory $GetFederatedInstancesResponseCopyWith( - GetFederatedInstancesResponse value, - $Res Function(GetFederatedInstancesResponse) then) = - _$GetFederatedInstancesResponseCopyWithImpl<$Res, - GetFederatedInstancesResponse>; - @useResult - $Res call({FederatedInstances? federatedInstances}); - - $FederatedInstancesCopyWith<$Res>? get federatedInstances; -} - -/// @nodoc -class _$GetFederatedInstancesResponseCopyWithImpl<$Res, - $Val extends GetFederatedInstancesResponse> - implements $GetFederatedInstancesResponseCopyWith<$Res> { - _$GetFederatedInstancesResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetFederatedInstancesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? federatedInstances = freezed, - }) { - return _then(_value.copyWith( - federatedInstances: freezed == federatedInstances - ? _value.federatedInstances - : federatedInstances // ignore: cast_nullable_to_non_nullable - as FederatedInstances?, - ) as $Val); - } - - /// Create a copy of GetFederatedInstancesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $FederatedInstancesCopyWith<$Res>? get federatedInstances { - if (_value.federatedInstances == null) { - return null; - } - - return $FederatedInstancesCopyWith<$Res>(_value.federatedInstances!, - (value) { - return _then(_value.copyWith(federatedInstances: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetFederatedInstancesResponseImplCopyWith<$Res> - implements $GetFederatedInstancesResponseCopyWith<$Res> { - factory _$$GetFederatedInstancesResponseImplCopyWith( - _$GetFederatedInstancesResponseImpl value, - $Res Function(_$GetFederatedInstancesResponseImpl) then) = - __$$GetFederatedInstancesResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({FederatedInstances? federatedInstances}); - - @override - $FederatedInstancesCopyWith<$Res>? get federatedInstances; -} - -/// @nodoc -class __$$GetFederatedInstancesResponseImplCopyWithImpl<$Res> - extends _$GetFederatedInstancesResponseCopyWithImpl<$Res, - _$GetFederatedInstancesResponseImpl> - implements _$$GetFederatedInstancesResponseImplCopyWith<$Res> { - __$$GetFederatedInstancesResponseImplCopyWithImpl( - _$GetFederatedInstancesResponseImpl _value, - $Res Function(_$GetFederatedInstancesResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetFederatedInstancesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? federatedInstances = freezed, - }) { - return _then(_$GetFederatedInstancesResponseImpl( - federatedInstances: freezed == federatedInstances - ? _value.federatedInstances - : federatedInstances // ignore: cast_nullable_to_non_nullable - as FederatedInstances?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetFederatedInstancesResponseImpl - extends _GetFederatedInstancesResponse { - const _$GetFederatedInstancesResponseImpl({this.federatedInstances}) - : super._(); - - factory _$GetFederatedInstancesResponseImpl.fromJson( - Map json) => - _$$GetFederatedInstancesResponseImplFromJson(json); - - @override - final FederatedInstances? federatedInstances; - - @override - String toString() { - return 'GetFederatedInstancesResponse(federatedInstances: $federatedInstances)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetFederatedInstancesResponseImpl && - (identical(other.federatedInstances, federatedInstances) || - other.federatedInstances == federatedInstances)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, federatedInstances); - - /// Create a copy of GetFederatedInstancesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetFederatedInstancesResponseImplCopyWith< - _$GetFederatedInstancesResponseImpl> - get copyWith => __$$GetFederatedInstancesResponseImplCopyWithImpl< - _$GetFederatedInstancesResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetFederatedInstancesResponseImplToJson( - this, - ); - } -} - -abstract class _GetFederatedInstancesResponse - extends GetFederatedInstancesResponse { - const factory _GetFederatedInstancesResponse( - {final FederatedInstances? federatedInstances}) = - _$GetFederatedInstancesResponseImpl; - const _GetFederatedInstancesResponse._() : super._(); - - factory _GetFederatedInstancesResponse.fromJson(Map json) = - _$GetFederatedInstancesResponseImpl.fromJson; - - @override - FederatedInstances? get federatedInstances; - - /// Create a copy of GetFederatedInstancesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetFederatedInstancesResponseImplCopyWith< - _$GetFederatedInstancesResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/federated_instances/get_federated_instances_response.g.dart b/lib/src/v3/models/federated_instances/get_federated_instances_response.g.dart deleted file mode 100644 index 1f6b3b3a..00000000 --- a/lib/src/v3/models/federated_instances/get_federated_instances_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_federated_instances_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetFederatedInstancesResponseImpl - _$$GetFederatedInstancesResponseImplFromJson(Map json) => - _$GetFederatedInstancesResponseImpl( - federatedInstances: json['federated_instances'] == null - ? null - : FederatedInstances.fromJson( - json['federated_instances'] as Map), - ); - -Map _$$GetFederatedInstancesResponseImplToJson( - _$GetFederatedInstancesResponseImpl instance) => - { - 'federated_instances': instance.federatedInstances?.toJson(), - }; diff --git a/lib/src/v3/models/federated_instances/instance.dart b/lib/src/v3/models/federated_instances/instance.dart deleted file mode 100644 index c2c18b3d..00000000 --- a/lib/src/v3/models/federated_instances/instance.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'instance.freezed.dart'; -part 'instance.g.dart'; - -@freezed -class Instance with _$Instance { - @modelSerde - const factory Instance({ - required int id, // v0.18.0 - required String domain, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - String? software, // v0.18.0 - String? version, // v0.18.0 - }) = _Instance; - - const Instance._(); - factory Instance.fromJson(Map json) => - _$InstanceFromJson(json); -} diff --git a/lib/src/v3/models/federated_instances/instance.freezed.dart b/lib/src/v3/models/federated_instances/instance.freezed.dart deleted file mode 100644 index ef2ecf5b..00000000 --- a/lib/src/v3/models/federated_instances/instance.freezed.dart +++ /dev/null @@ -1,278 +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 'instance.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'); - -Instance _$InstanceFromJson(Map json) { - return _Instance.fromJson(json); -} - -/// @nodoc -mixin _$Instance { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get domain => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - String? get software => throw _privateConstructorUsedError; // v0.18.0 - String? get version => throw _privateConstructorUsedError; - - /// Serializes this Instance to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Instance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $InstanceCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $InstanceCopyWith<$Res> { - factory $InstanceCopyWith(Instance value, $Res Function(Instance) then) = - _$InstanceCopyWithImpl<$Res, Instance>; - @useResult - $Res call( - {int id, - String domain, - DateTime published, - DateTime? updated, - String? software, - String? version}); -} - -/// @nodoc -class _$InstanceCopyWithImpl<$Res, $Val extends Instance> - implements $InstanceCopyWith<$Res> { - _$InstanceCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Instance - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? domain = null, - Object? published = null, - Object? updated = freezed, - Object? software = freezed, - Object? version = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - domain: null == domain - ? _value.domain - : domain // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - software: freezed == software - ? _value.software - : software // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$InstanceImplCopyWith<$Res> - implements $InstanceCopyWith<$Res> { - factory _$$InstanceImplCopyWith( - _$InstanceImpl value, $Res Function(_$InstanceImpl) then) = - __$$InstanceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String domain, - DateTime published, - DateTime? updated, - String? software, - String? version}); -} - -/// @nodoc -class __$$InstanceImplCopyWithImpl<$Res> - extends _$InstanceCopyWithImpl<$Res, _$InstanceImpl> - implements _$$InstanceImplCopyWith<$Res> { - __$$InstanceImplCopyWithImpl( - _$InstanceImpl _value, $Res Function(_$InstanceImpl) _then) - : super(_value, _then); - - /// Create a copy of Instance - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? domain = null, - Object? published = null, - Object? updated = freezed, - Object? software = freezed, - Object? version = freezed, - }) { - return _then(_$InstanceImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - domain: null == domain - ? _value.domain - : domain // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - software: freezed == software - ? _value.software - : software // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$InstanceImpl extends _Instance { - const _$InstanceImpl( - {required this.id, - required this.domain, - required this.published, - this.updated, - this.software, - this.version}) - : super._(); - - factory _$InstanceImpl.fromJson(Map json) => - _$$InstanceImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String domain; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final String? software; -// v0.18.0 - @override - final String? version; - - @override - String toString() { - return 'Instance(id: $id, domain: $domain, published: $published, updated: $updated, software: $software, version: $version)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InstanceImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.domain, domain) || other.domain == domain) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.software, software) || - other.software == software) && - (identical(other.version, version) || other.version == version)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, id, domain, published, updated, software, version); - - /// Create a copy of Instance - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$InstanceImplCopyWith<_$InstanceImpl> get copyWith => - __$$InstanceImplCopyWithImpl<_$InstanceImpl>(this, _$identity); - - @override - Map toJson() { - return _$$InstanceImplToJson( - this, - ); - } -} - -abstract class _Instance extends Instance { - const factory _Instance( - {required final int id, - required final String domain, - required final DateTime published, - final DateTime? updated, - final String? software, - final String? version}) = _$InstanceImpl; - const _Instance._() : super._(); - - factory _Instance.fromJson(Map json) = - _$InstanceImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get domain; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - String? get software; // v0.18.0 - @override - String? get version; - - /// Create a copy of Instance - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$InstanceImplCopyWith<_$InstanceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/federated_instances/instance.g.dart b/lib/src/v3/models/federated_instances/instance.g.dart deleted file mode 100644 index 60f49f2d..00000000 --- a/lib/src/v3/models/federated_instances/instance.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'instance.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$InstanceImpl _$$InstanceImplFromJson(Map json) => - _$InstanceImpl( - id: (json['id'] as num).toInt(), - domain: json['domain'] as String, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - software: json['software'] as String?, - version: json['version'] as String?, - ); - -Map _$$InstanceImplToJson(_$InstanceImpl instance) => - { - 'id': instance.id, - 'domain': instance.domain, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'software': instance.software, - 'version': instance.version, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/federated_instances/instance_with_federation_state.dart b/lib/src/v3/models/federated_instances/instance_with_federation_state.dart deleted file mode 100644 index ad2c7700..00000000 --- a/lib/src/v3/models/federated_instances/instance_with_federation_state.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'instance_with_federation_state.freezed.dart'; -part 'instance_with_federation_state.g.dart'; - -@freezed -class InstanceWithFederationState with _$InstanceWithFederationState { - @modelSerde - const factory InstanceWithFederationState({ - required int id, // v0.19.0 (required) - required String domain, // v0.19.0 (required) - required DateTime published, // v0.19.0 (required) - DateTime? updated, // v0.19.0 (optional) - String? software, // v0.19.0 (optional) - String? version, // v0.19.0 (optional) - ReadableFederationState? federationState, // v0.19.0 (optional) - }) = _InstanceWithFederationState; - - const InstanceWithFederationState._(); - factory InstanceWithFederationState.fromJson(Map json) => - _$InstanceWithFederationStateFromJson(json); -} diff --git a/lib/src/v3/models/federated_instances/instance_with_federation_state.freezed.dart b/lib/src/v3/models/federated_instances/instance_with_federation_state.freezed.dart deleted file mode 100644 index ff2f5deb..00000000 --- a/lib/src/v3/models/federated_instances/instance_with_federation_state.freezed.dart +++ /dev/null @@ -1,337 +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 'instance_with_federation_state.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'); - -InstanceWithFederationState _$InstanceWithFederationStateFromJson( - Map json) { - return _InstanceWithFederationState.fromJson(json); -} - -/// @nodoc -mixin _$InstanceWithFederationState { - int get id => throw _privateConstructorUsedError; // v0.19.0 (required) - String get domain => throw _privateConstructorUsedError; // v0.19.0 (required) - DateTime get published => - throw _privateConstructorUsedError; // v0.19.0 (required) - DateTime? get updated => - throw _privateConstructorUsedError; // v0.19.0 (optional) - String? get software => - throw _privateConstructorUsedError; // v0.19.0 (optional) - String? get version => - throw _privateConstructorUsedError; // v0.19.0 (optional) - ReadableFederationState? get federationState => - throw _privateConstructorUsedError; - - /// Serializes this InstanceWithFederationState to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of InstanceWithFederationState - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $InstanceWithFederationStateCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $InstanceWithFederationStateCopyWith<$Res> { - factory $InstanceWithFederationStateCopyWith( - InstanceWithFederationState value, - $Res Function(InstanceWithFederationState) then) = - _$InstanceWithFederationStateCopyWithImpl<$Res, - InstanceWithFederationState>; - @useResult - $Res call( - {int id, - String domain, - DateTime published, - DateTime? updated, - String? software, - String? version, - ReadableFederationState? federationState}); - - $ReadableFederationStateCopyWith<$Res>? get federationState; -} - -/// @nodoc -class _$InstanceWithFederationStateCopyWithImpl<$Res, - $Val extends InstanceWithFederationState> - implements $InstanceWithFederationStateCopyWith<$Res> { - _$InstanceWithFederationStateCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of InstanceWithFederationState - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? domain = null, - Object? published = null, - Object? updated = freezed, - Object? software = freezed, - Object? version = freezed, - Object? federationState = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - domain: null == domain - ? _value.domain - : domain // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - software: freezed == software - ? _value.software - : software // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - federationState: freezed == federationState - ? _value.federationState - : federationState // ignore: cast_nullable_to_non_nullable - as ReadableFederationState?, - ) as $Val); - } - - /// Create a copy of InstanceWithFederationState - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ReadableFederationStateCopyWith<$Res>? get federationState { - if (_value.federationState == null) { - return null; - } - - return $ReadableFederationStateCopyWith<$Res>(_value.federationState!, - (value) { - return _then(_value.copyWith(federationState: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$InstanceWithFederationStateImplCopyWith<$Res> - implements $InstanceWithFederationStateCopyWith<$Res> { - factory _$$InstanceWithFederationStateImplCopyWith( - _$InstanceWithFederationStateImpl value, - $Res Function(_$InstanceWithFederationStateImpl) then) = - __$$InstanceWithFederationStateImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String domain, - DateTime published, - DateTime? updated, - String? software, - String? version, - ReadableFederationState? federationState}); - - @override - $ReadableFederationStateCopyWith<$Res>? get federationState; -} - -/// @nodoc -class __$$InstanceWithFederationStateImplCopyWithImpl<$Res> - extends _$InstanceWithFederationStateCopyWithImpl<$Res, - _$InstanceWithFederationStateImpl> - implements _$$InstanceWithFederationStateImplCopyWith<$Res> { - __$$InstanceWithFederationStateImplCopyWithImpl( - _$InstanceWithFederationStateImpl _value, - $Res Function(_$InstanceWithFederationStateImpl) _then) - : super(_value, _then); - - /// Create a copy of InstanceWithFederationState - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? domain = null, - Object? published = null, - Object? updated = freezed, - Object? software = freezed, - Object? version = freezed, - Object? federationState = freezed, - }) { - return _then(_$InstanceWithFederationStateImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - domain: null == domain - ? _value.domain - : domain // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - software: freezed == software - ? _value.software - : software // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - federationState: freezed == federationState - ? _value.federationState - : federationState // ignore: cast_nullable_to_non_nullable - as ReadableFederationState?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$InstanceWithFederationStateImpl extends _InstanceWithFederationState { - const _$InstanceWithFederationStateImpl( - {required this.id, - required this.domain, - required this.published, - this.updated, - this.software, - this.version, - this.federationState}) - : super._(); - - factory _$InstanceWithFederationStateImpl.fromJson( - Map json) => - _$$InstanceWithFederationStateImplFromJson(json); - - @override - final int id; -// v0.19.0 (required) - @override - final String domain; -// v0.19.0 (required) - @override - final DateTime published; -// v0.19.0 (required) - @override - final DateTime? updated; -// v0.19.0 (optional) - @override - final String? software; -// v0.19.0 (optional) - @override - final String? version; -// v0.19.0 (optional) - @override - final ReadableFederationState? federationState; - - @override - String toString() { - return 'InstanceWithFederationState(id: $id, domain: $domain, published: $published, updated: $updated, software: $software, version: $version, federationState: $federationState)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InstanceWithFederationStateImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.domain, domain) || other.domain == domain) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.software, software) || - other.software == software) && - (identical(other.version, version) || other.version == version) && - (identical(other.federationState, federationState) || - other.federationState == federationState)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, domain, published, updated, - software, version, federationState); - - /// Create a copy of InstanceWithFederationState - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$InstanceWithFederationStateImplCopyWith<_$InstanceWithFederationStateImpl> - get copyWith => __$$InstanceWithFederationStateImplCopyWithImpl< - _$InstanceWithFederationStateImpl>(this, _$identity); - - @override - Map toJson() { - return _$$InstanceWithFederationStateImplToJson( - this, - ); - } -} - -abstract class _InstanceWithFederationState - extends InstanceWithFederationState { - const factory _InstanceWithFederationState( - {required final int id, - required final String domain, - required final DateTime published, - final DateTime? updated, - final String? software, - final String? version, - final ReadableFederationState? federationState}) = - _$InstanceWithFederationStateImpl; - const _InstanceWithFederationState._() : super._(); - - factory _InstanceWithFederationState.fromJson(Map json) = - _$InstanceWithFederationStateImpl.fromJson; - - @override - int get id; // v0.19.0 (required) - @override - String get domain; // v0.19.0 (required) - @override - DateTime get published; // v0.19.0 (required) - @override - DateTime? get updated; // v0.19.0 (optional) - @override - String? get software; // v0.19.0 (optional) - @override - String? get version; // v0.19.0 (optional) - @override - ReadableFederationState? get federationState; - - /// Create a copy of InstanceWithFederationState - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$InstanceWithFederationStateImplCopyWith<_$InstanceWithFederationStateImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/federated_instances/instance_with_federation_state.g.dart b/lib/src/v3/models/federated_instances/instance_with_federation_state.g.dart deleted file mode 100644 index 482212c2..00000000 --- a/lib/src/v3/models/federated_instances/instance_with_federation_state.g.dart +++ /dev/null @@ -1,48 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'instance_with_federation_state.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$InstanceWithFederationStateImpl _$$InstanceWithFederationStateImplFromJson( - Map json) => - _$InstanceWithFederationStateImpl( - id: (json['id'] as num).toInt(), - domain: json['domain'] as String, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - software: json['software'] as String?, - version: json['version'] as String?, - federationState: json['federation_state'] == null - ? null - : ReadableFederationState.fromJson( - json['federation_state'] as Map), - ); - -Map _$$InstanceWithFederationStateImplToJson( - _$InstanceWithFederationStateImpl instance) => - { - 'id': instance.id, - 'domain': instance.domain, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'software': instance.software, - 'version': instance.version, - 'federation_state': instance.federationState?.toJson(), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/federated_instances/readable_federation_state.dart b/lib/src/v3/models/federated_instances/readable_federation_state.dart deleted file mode 100644 index 1e8bee92..00000000 --- a/lib/src/v3/models/federated_instances/readable_federation_state.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'readable_federation_state.freezed.dart'; -part 'readable_federation_state.g.dart'; - -@freezed -class ReadableFederationState with _$ReadableFederationState { - @modelSerde - const factory ReadableFederationState({ - required int instanceId, // v0.19.0 (required) - int? lastSuccessfulId, // v0.19.0 (optional) - DateTime? lastSuccessfulPublishedTime, // v0.19.0 (optional) - required int failCount, // v0.19.0 (required) - DateTime? lastRetry, // v0.19.0 (optional) - DateTime? nextRetry, // v0.19.0 (optional) - }) = _ReadableFederationState; - - const ReadableFederationState._(); - factory ReadableFederationState.fromJson(Map json) => - _$ReadableFederationStateFromJson(json); -} diff --git a/lib/src/v3/models/federated_instances/readable_federation_state.freezed.dart b/lib/src/v3/models/federated_instances/readable_federation_state.freezed.dart deleted file mode 100644 index 58209bae..00000000 --- a/lib/src/v3/models/federated_instances/readable_federation_state.freezed.dart +++ /dev/null @@ -1,295 +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 'readable_federation_state.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'); - -ReadableFederationState _$ReadableFederationStateFromJson( - Map json) { - return _ReadableFederationState.fromJson(json); -} - -/// @nodoc -mixin _$ReadableFederationState { - int get instanceId => - throw _privateConstructorUsedError; // v0.19.0 (required) - int? get lastSuccessfulId => - throw _privateConstructorUsedError; // v0.19.0 (optional) - DateTime? get lastSuccessfulPublishedTime => - throw _privateConstructorUsedError; // v0.19.0 (optional) - int get failCount => throw _privateConstructorUsedError; // v0.19.0 (required) - DateTime? get lastRetry => - throw _privateConstructorUsedError; // v0.19.0 (optional) - DateTime? get nextRetry => throw _privateConstructorUsedError; - - /// Serializes this ReadableFederationState to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ReadableFederationState - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ReadableFederationStateCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ReadableFederationStateCopyWith<$Res> { - factory $ReadableFederationStateCopyWith(ReadableFederationState value, - $Res Function(ReadableFederationState) then) = - _$ReadableFederationStateCopyWithImpl<$Res, ReadableFederationState>; - @useResult - $Res call( - {int instanceId, - int? lastSuccessfulId, - DateTime? lastSuccessfulPublishedTime, - int failCount, - DateTime? lastRetry, - DateTime? nextRetry}); -} - -/// @nodoc -class _$ReadableFederationStateCopyWithImpl<$Res, - $Val extends ReadableFederationState> - implements $ReadableFederationStateCopyWith<$Res> { - _$ReadableFederationStateCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ReadableFederationState - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? instanceId = null, - Object? lastSuccessfulId = freezed, - Object? lastSuccessfulPublishedTime = freezed, - Object? failCount = null, - Object? lastRetry = freezed, - Object? nextRetry = freezed, - }) { - return _then(_value.copyWith( - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - lastSuccessfulId: freezed == lastSuccessfulId - ? _value.lastSuccessfulId - : lastSuccessfulId // ignore: cast_nullable_to_non_nullable - as int?, - lastSuccessfulPublishedTime: freezed == lastSuccessfulPublishedTime - ? _value.lastSuccessfulPublishedTime - : lastSuccessfulPublishedTime // ignore: cast_nullable_to_non_nullable - as DateTime?, - failCount: null == failCount - ? _value.failCount - : failCount // ignore: cast_nullable_to_non_nullable - as int, - lastRetry: freezed == lastRetry - ? _value.lastRetry - : lastRetry // ignore: cast_nullable_to_non_nullable - as DateTime?, - nextRetry: freezed == nextRetry - ? _value.nextRetry - : nextRetry // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ReadableFederationStateImplCopyWith<$Res> - implements $ReadableFederationStateCopyWith<$Res> { - factory _$$ReadableFederationStateImplCopyWith( - _$ReadableFederationStateImpl value, - $Res Function(_$ReadableFederationStateImpl) then) = - __$$ReadableFederationStateImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int instanceId, - int? lastSuccessfulId, - DateTime? lastSuccessfulPublishedTime, - int failCount, - DateTime? lastRetry, - DateTime? nextRetry}); -} - -/// @nodoc -class __$$ReadableFederationStateImplCopyWithImpl<$Res> - extends _$ReadableFederationStateCopyWithImpl<$Res, - _$ReadableFederationStateImpl> - implements _$$ReadableFederationStateImplCopyWith<$Res> { - __$$ReadableFederationStateImplCopyWithImpl( - _$ReadableFederationStateImpl _value, - $Res Function(_$ReadableFederationStateImpl) _then) - : super(_value, _then); - - /// Create a copy of ReadableFederationState - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? instanceId = null, - Object? lastSuccessfulId = freezed, - Object? lastSuccessfulPublishedTime = freezed, - Object? failCount = null, - Object? lastRetry = freezed, - Object? nextRetry = freezed, - }) { - return _then(_$ReadableFederationStateImpl( - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - lastSuccessfulId: freezed == lastSuccessfulId - ? _value.lastSuccessfulId - : lastSuccessfulId // ignore: cast_nullable_to_non_nullable - as int?, - lastSuccessfulPublishedTime: freezed == lastSuccessfulPublishedTime - ? _value.lastSuccessfulPublishedTime - : lastSuccessfulPublishedTime // ignore: cast_nullable_to_non_nullable - as DateTime?, - failCount: null == failCount - ? _value.failCount - : failCount // ignore: cast_nullable_to_non_nullable - as int, - lastRetry: freezed == lastRetry - ? _value.lastRetry - : lastRetry // ignore: cast_nullable_to_non_nullable - as DateTime?, - nextRetry: freezed == nextRetry - ? _value.nextRetry - : nextRetry // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ReadableFederationStateImpl extends _ReadableFederationState { - const _$ReadableFederationStateImpl( - {required this.instanceId, - this.lastSuccessfulId, - this.lastSuccessfulPublishedTime, - required this.failCount, - this.lastRetry, - this.nextRetry}) - : super._(); - - factory _$ReadableFederationStateImpl.fromJson(Map json) => - _$$ReadableFederationStateImplFromJson(json); - - @override - final int instanceId; -// v0.19.0 (required) - @override - final int? lastSuccessfulId; -// v0.19.0 (optional) - @override - final DateTime? lastSuccessfulPublishedTime; -// v0.19.0 (optional) - @override - final int failCount; -// v0.19.0 (required) - @override - final DateTime? lastRetry; -// v0.19.0 (optional) - @override - final DateTime? nextRetry; - - @override - String toString() { - return 'ReadableFederationState(instanceId: $instanceId, lastSuccessfulId: $lastSuccessfulId, lastSuccessfulPublishedTime: $lastSuccessfulPublishedTime, failCount: $failCount, lastRetry: $lastRetry, nextRetry: $nextRetry)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ReadableFederationStateImpl && - (identical(other.instanceId, instanceId) || - other.instanceId == instanceId) && - (identical(other.lastSuccessfulId, lastSuccessfulId) || - other.lastSuccessfulId == lastSuccessfulId) && - (identical(other.lastSuccessfulPublishedTime, - lastSuccessfulPublishedTime) || - other.lastSuccessfulPublishedTime == - lastSuccessfulPublishedTime) && - (identical(other.failCount, failCount) || - other.failCount == failCount) && - (identical(other.lastRetry, lastRetry) || - other.lastRetry == lastRetry) && - (identical(other.nextRetry, nextRetry) || - other.nextRetry == nextRetry)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, instanceId, lastSuccessfulId, - lastSuccessfulPublishedTime, failCount, lastRetry, nextRetry); - - /// Create a copy of ReadableFederationState - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ReadableFederationStateImplCopyWith<_$ReadableFederationStateImpl> - get copyWith => __$$ReadableFederationStateImplCopyWithImpl< - _$ReadableFederationStateImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ReadableFederationStateImplToJson( - this, - ); - } -} - -abstract class _ReadableFederationState extends ReadableFederationState { - const factory _ReadableFederationState( - {required final int instanceId, - final int? lastSuccessfulId, - final DateTime? lastSuccessfulPublishedTime, - required final int failCount, - final DateTime? lastRetry, - final DateTime? nextRetry}) = _$ReadableFederationStateImpl; - const _ReadableFederationState._() : super._(); - - factory _ReadableFederationState.fromJson(Map json) = - _$ReadableFederationStateImpl.fromJson; - - @override - int get instanceId; // v0.19.0 (required) - @override - int? get lastSuccessfulId; // v0.19.0 (optional) - @override - DateTime? get lastSuccessfulPublishedTime; // v0.19.0 (optional) - @override - int get failCount; // v0.19.0 (required) - @override - DateTime? get lastRetry; // v0.19.0 (optional) - @override - DateTime? get nextRetry; - - /// Create a copy of ReadableFederationState - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ReadableFederationStateImplCopyWith<_$ReadableFederationStateImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/federated_instances/readable_federation_state.g.dart b/lib/src/v3/models/federated_instances/readable_federation_state.g.dart deleted file mode 100644 index 00edf149..00000000 --- a/lib/src/v3/models/federated_instances/readable_federation_state.g.dart +++ /dev/null @@ -1,49 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'readable_federation_state.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ReadableFederationStateImpl _$$ReadableFederationStateImplFromJson( - Map json) => - _$ReadableFederationStateImpl( - instanceId: (json['instance_id'] as num).toInt(), - lastSuccessfulId: (json['last_successful_id'] as num?)?.toInt(), - lastSuccessfulPublishedTime: _$JsonConverterFromJson( - json['last_successful_published_time'], - const ForceUtcDateTime().fromJson), - failCount: (json['fail_count'] as num).toInt(), - lastRetry: _$JsonConverterFromJson( - json['last_retry'], const ForceUtcDateTime().fromJson), - nextRetry: _$JsonConverterFromJson( - json['next_retry'], const ForceUtcDateTime().fromJson), - ); - -Map _$$ReadableFederationStateImplToJson( - _$ReadableFederationStateImpl instance) => - { - 'instance_id': instance.instanceId, - 'last_successful_id': instance.lastSuccessfulId, - 'last_successful_published_time': _$JsonConverterToJson( - instance.lastSuccessfulPublishedTime, - const ForceUtcDateTime().toJson), - 'fail_count': instance.failCount, - 'last_retry': _$JsonConverterToJson( - instance.lastRetry, const ForceUtcDateTime().toJson), - 'next_retry': _$JsonConverterToJson( - instance.nextRetry, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/image/image_details.dart b/lib/src/v3/models/image/image_details.dart deleted file mode 100644 index 01b25cf4..00000000 --- a/lib/src/v3/models/image/image_details.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'image_details.freezed.dart'; -part 'image_details.g.dart'; - -@freezed -class ImageDetails with _$ImageDetails { - @modelSerde - const factory ImageDetails({ - required String link, // v0.19.6 (required) - required int width, // v0.19.6 (required) - required int height, // v0.19.6 (required) - required String contentType, // v0.19.6 (required) - }) = _ImageDetails; - - const ImageDetails._(); - factory ImageDetails.fromJson(Map json) => - _$ImageDetailsFromJson(json); -} diff --git a/lib/src/v3/models/image/image_details.freezed.dart b/lib/src/v3/models/image/image_details.freezed.dart deleted file mode 100644 index 740534ef..00000000 --- a/lib/src/v3/models/image/image_details.freezed.dart +++ /dev/null @@ -1,228 +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 'image_details.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'); - -ImageDetails _$ImageDetailsFromJson(Map json) { - return _ImageDetails.fromJson(json); -} - -/// @nodoc -mixin _$ImageDetails { - String get link => throw _privateConstructorUsedError; // v0.19.6 (required) - int get width => throw _privateConstructorUsedError; // v0.19.6 (required) - int get height => throw _privateConstructorUsedError; // v0.19.6 (required) - String get contentType => throw _privateConstructorUsedError; - - /// Serializes this ImageDetails to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ImageDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ImageDetailsCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ImageDetailsCopyWith<$Res> { - factory $ImageDetailsCopyWith( - ImageDetails value, $Res Function(ImageDetails) then) = - _$ImageDetailsCopyWithImpl<$Res, ImageDetails>; - @useResult - $Res call({String link, int width, int height, String contentType}); -} - -/// @nodoc -class _$ImageDetailsCopyWithImpl<$Res, $Val extends ImageDetails> - implements $ImageDetailsCopyWith<$Res> { - _$ImageDetailsCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ImageDetails - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? link = null, - Object? width = null, - Object? height = null, - Object? contentType = null, - }) { - return _then(_value.copyWith( - link: null == link - ? _value.link - : link // ignore: cast_nullable_to_non_nullable - as String, - width: null == width - ? _value.width - : width // ignore: cast_nullable_to_non_nullable - as int, - height: null == height - ? _value.height - : height // ignore: cast_nullable_to_non_nullable - as int, - contentType: null == contentType - ? _value.contentType - : contentType // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ImageDetailsImplCopyWith<$Res> - implements $ImageDetailsCopyWith<$Res> { - factory _$$ImageDetailsImplCopyWith( - _$ImageDetailsImpl value, $Res Function(_$ImageDetailsImpl) then) = - __$$ImageDetailsImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String link, int width, int height, String contentType}); -} - -/// @nodoc -class __$$ImageDetailsImplCopyWithImpl<$Res> - extends _$ImageDetailsCopyWithImpl<$Res, _$ImageDetailsImpl> - implements _$$ImageDetailsImplCopyWith<$Res> { - __$$ImageDetailsImplCopyWithImpl( - _$ImageDetailsImpl _value, $Res Function(_$ImageDetailsImpl) _then) - : super(_value, _then); - - /// Create a copy of ImageDetails - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? link = null, - Object? width = null, - Object? height = null, - Object? contentType = null, - }) { - return _then(_$ImageDetailsImpl( - link: null == link - ? _value.link - : link // ignore: cast_nullable_to_non_nullable - as String, - width: null == width - ? _value.width - : width // ignore: cast_nullable_to_non_nullable - as int, - height: null == height - ? _value.height - : height // ignore: cast_nullable_to_non_nullable - as int, - contentType: null == contentType - ? _value.contentType - : contentType // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ImageDetailsImpl extends _ImageDetails { - const _$ImageDetailsImpl( - {required this.link, - required this.width, - required this.height, - required this.contentType}) - : super._(); - - factory _$ImageDetailsImpl.fromJson(Map json) => - _$$ImageDetailsImplFromJson(json); - - @override - final String link; -// v0.19.6 (required) - @override - final int width; -// v0.19.6 (required) - @override - final int height; -// v0.19.6 (required) - @override - final String contentType; - - @override - String toString() { - return 'ImageDetails(link: $link, width: $width, height: $height, contentType: $contentType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ImageDetailsImpl && - (identical(other.link, link) || other.link == link) && - (identical(other.width, width) || other.width == width) && - (identical(other.height, height) || other.height == height) && - (identical(other.contentType, contentType) || - other.contentType == contentType)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, link, width, height, contentType); - - /// Create a copy of ImageDetails - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ImageDetailsImplCopyWith<_$ImageDetailsImpl> get copyWith => - __$$ImageDetailsImplCopyWithImpl<_$ImageDetailsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ImageDetailsImplToJson( - this, - ); - } -} - -abstract class _ImageDetails extends ImageDetails { - const factory _ImageDetails( - {required final String link, - required final int width, - required final int height, - required final String contentType}) = _$ImageDetailsImpl; - const _ImageDetails._() : super._(); - - factory _ImageDetails.fromJson(Map json) = - _$ImageDetailsImpl.fromJson; - - @override - String get link; // v0.19.6 (required) - @override - int get width; // v0.19.6 (required) - @override - int get height; // v0.19.6 (required) - @override - String get contentType; - - /// Create a copy of ImageDetails - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ImageDetailsImplCopyWith<_$ImageDetailsImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/image/image_details.g.dart b/lib/src/v3/models/image/image_details.g.dart deleted file mode 100644 index e77ba815..00000000 --- a/lib/src/v3/models/image/image_details.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'image_details.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ImageDetailsImpl _$$ImageDetailsImplFromJson(Map json) => - _$ImageDetailsImpl( - link: json['link'] as String, - width: (json['width'] as num).toInt(), - height: (json['height'] as num).toInt(), - contentType: json['content_type'] as String, - ); - -Map _$$ImageDetailsImplToJson(_$ImageDetailsImpl instance) => - { - 'link': instance.link, - 'width': instance.width, - 'height': instance.height, - 'content_type': instance.contentType, - }; diff --git a/lib/src/v3/models/image/local_image.dart b/lib/src/v3/models/image/local_image.dart deleted file mode 100644 index f5ac37e8..00000000 --- a/lib/src/v3/models/image/local_image.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'local_image.freezed.dart'; -part 'local_image.g.dart'; - -@freezed -class LocalImage with _$LocalImage { - @modelSerde - const factory LocalImage({ - int? localUserId, // v0.19.0 (optional) - required String pictrsAlias, // v0.19.0 - required String pictrsDeleteToken, // v0.19.0 - required String published, // v0.19.0 - }) = _LocalImage; - - const LocalImage._(); - factory LocalImage.fromJson(Map json) => - _$LocalImageFromJson(json); -} diff --git a/lib/src/v3/models/image/local_image.freezed.dart b/lib/src/v3/models/image/local_image.freezed.dart deleted file mode 100644 index 34447c5b..00000000 --- a/lib/src/v3/models/image/local_image.freezed.dart +++ /dev/null @@ -1,240 +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 'local_image.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'); - -LocalImage _$LocalImageFromJson(Map json) { - return _LocalImage.fromJson(json); -} - -/// @nodoc -mixin _$LocalImage { - int? get localUserId => - throw _privateConstructorUsedError; // v0.19.0 (optional) - String get pictrsAlias => throw _privateConstructorUsedError; // v0.19.0 - String get pictrsDeleteToken => throw _privateConstructorUsedError; // v0.19.0 - String get published => throw _privateConstructorUsedError; - - /// Serializes this LocalImage to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalImage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalImageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalImageCopyWith<$Res> { - factory $LocalImageCopyWith( - LocalImage value, $Res Function(LocalImage) then) = - _$LocalImageCopyWithImpl<$Res, LocalImage>; - @useResult - $Res call( - {int? localUserId, - String pictrsAlias, - String pictrsDeleteToken, - String published}); -} - -/// @nodoc -class _$LocalImageCopyWithImpl<$Res, $Val extends LocalImage> - implements $LocalImageCopyWith<$Res> { - _$LocalImageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalImage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUserId = freezed, - Object? pictrsAlias = null, - Object? pictrsDeleteToken = null, - Object? published = null, - }) { - return _then(_value.copyWith( - localUserId: freezed == localUserId - ? _value.localUserId - : localUserId // ignore: cast_nullable_to_non_nullable - as int?, - pictrsAlias: null == pictrsAlias - ? _value.pictrsAlias - : pictrsAlias // ignore: cast_nullable_to_non_nullable - as String, - pictrsDeleteToken: null == pictrsDeleteToken - ? _value.pictrsDeleteToken - : pictrsDeleteToken // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LocalImageImplCopyWith<$Res> - implements $LocalImageCopyWith<$Res> { - factory _$$LocalImageImplCopyWith( - _$LocalImageImpl value, $Res Function(_$LocalImageImpl) then) = - __$$LocalImageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? localUserId, - String pictrsAlias, - String pictrsDeleteToken, - String published}); -} - -/// @nodoc -class __$$LocalImageImplCopyWithImpl<$Res> - extends _$LocalImageCopyWithImpl<$Res, _$LocalImageImpl> - implements _$$LocalImageImplCopyWith<$Res> { - __$$LocalImageImplCopyWithImpl( - _$LocalImageImpl _value, $Res Function(_$LocalImageImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalImage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUserId = freezed, - Object? pictrsAlias = null, - Object? pictrsDeleteToken = null, - Object? published = null, - }) { - return _then(_$LocalImageImpl( - localUserId: freezed == localUserId - ? _value.localUserId - : localUserId // ignore: cast_nullable_to_non_nullable - as int?, - pictrsAlias: null == pictrsAlias - ? _value.pictrsAlias - : pictrsAlias // ignore: cast_nullable_to_non_nullable - as String, - pictrsDeleteToken: null == pictrsDeleteToken - ? _value.pictrsDeleteToken - : pictrsDeleteToken // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalImageImpl extends _LocalImage { - const _$LocalImageImpl( - {this.localUserId, - required this.pictrsAlias, - required this.pictrsDeleteToken, - required this.published}) - : super._(); - - factory _$LocalImageImpl.fromJson(Map json) => - _$$LocalImageImplFromJson(json); - - @override - final int? localUserId; -// v0.19.0 (optional) - @override - final String pictrsAlias; -// v0.19.0 - @override - final String pictrsDeleteToken; -// v0.19.0 - @override - final String published; - - @override - String toString() { - return 'LocalImage(localUserId: $localUserId, pictrsAlias: $pictrsAlias, pictrsDeleteToken: $pictrsDeleteToken, published: $published)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalImageImpl && - (identical(other.localUserId, localUserId) || - other.localUserId == localUserId) && - (identical(other.pictrsAlias, pictrsAlias) || - other.pictrsAlias == pictrsAlias) && - (identical(other.pictrsDeleteToken, pictrsDeleteToken) || - other.pictrsDeleteToken == pictrsDeleteToken) && - (identical(other.published, published) || - other.published == published)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, localUserId, pictrsAlias, pictrsDeleteToken, published); - - /// Create a copy of LocalImage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalImageImplCopyWith<_$LocalImageImpl> get copyWith => - __$$LocalImageImplCopyWithImpl<_$LocalImageImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LocalImageImplToJson( - this, - ); - } -} - -abstract class _LocalImage extends LocalImage { - const factory _LocalImage( - {final int? localUserId, - required final String pictrsAlias, - required final String pictrsDeleteToken, - required final String published}) = _$LocalImageImpl; - const _LocalImage._() : super._(); - - factory _LocalImage.fromJson(Map json) = - _$LocalImageImpl.fromJson; - - @override - int? get localUserId; // v0.19.0 (optional) - @override - String get pictrsAlias; // v0.19.0 - @override - String get pictrsDeleteToken; // v0.19.0 - @override - String get published; - - /// Create a copy of LocalImage - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalImageImplCopyWith<_$LocalImageImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/image/local_image.g.dart b/lib/src/v3/models/image/local_image.g.dart deleted file mode 100644 index 1a2ce1e4..00000000 --- a/lib/src/v3/models/image/local_image.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_image.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalImageImpl _$$LocalImageImplFromJson(Map json) => - _$LocalImageImpl( - localUserId: (json['local_user_id'] as num?)?.toInt(), - pictrsAlias: json['pictrs_alias'] as String, - pictrsDeleteToken: json['pictrs_delete_token'] as String, - published: json['published'] as String, - ); - -Map _$$LocalImageImplToJson(_$LocalImageImpl instance) => - { - 'local_user_id': instance.localUserId, - 'pictrs_alias': instance.pictrsAlias, - 'pictrs_delete_token': instance.pictrsDeleteToken, - 'published': instance.published, - }; diff --git a/lib/src/v3/models/image/local_image_view.dart b/lib/src/v3/models/image/local_image_view.dart deleted file mode 100644 index f839055c..00000000 --- a/lib/src/v3/models/image/local_image_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../models/models.dart'; - -part 'local_image_view.freezed.dart'; -part 'local_image_view.g.dart'; - -@freezed -class LocalImageView with _$LocalImageView { - @modelSerde - const factory LocalImageView({ - required Person person, // v0.19.4 - required LocalImage localImage, // v0.19.4 - }) = _LocalImageView; - - const LocalImageView._(); - factory LocalImageView.fromJson(Map json) => - _$LocalImageViewFromJson(json); -} diff --git a/lib/src/v3/models/image/local_image_view.freezed.dart b/lib/src/v3/models/image/local_image_view.freezed.dart deleted file mode 100644 index 34c96e9d..00000000 --- a/lib/src/v3/models/image/local_image_view.freezed.dart +++ /dev/null @@ -1,216 +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 'local_image_view.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'); - -LocalImageView _$LocalImageViewFromJson(Map json) { - return _LocalImageView.fromJson(json); -} - -/// @nodoc -mixin _$LocalImageView { - Person get person => throw _privateConstructorUsedError; // v0.19.4 - LocalImage get localImage => throw _privateConstructorUsedError; - - /// Serializes this LocalImageView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalImageViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalImageViewCopyWith<$Res> { - factory $LocalImageViewCopyWith( - LocalImageView value, $Res Function(LocalImageView) then) = - _$LocalImageViewCopyWithImpl<$Res, LocalImageView>; - @useResult - $Res call({Person person, LocalImage localImage}); - - $PersonCopyWith<$Res> get person; - $LocalImageCopyWith<$Res> get localImage; -} - -/// @nodoc -class _$LocalImageViewCopyWithImpl<$Res, $Val extends LocalImageView> - implements $LocalImageViewCopyWith<$Res> { - _$LocalImageViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? localImage = null, - }) { - return _then(_value.copyWith( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - localImage: null == localImage - ? _value.localImage - : localImage // ignore: cast_nullable_to_non_nullable - as LocalImage, - ) as $Val); - } - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get person { - return $PersonCopyWith<$Res>(_value.person, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalImageCopyWith<$Res> get localImage { - return $LocalImageCopyWith<$Res>(_value.localImage, (value) { - return _then(_value.copyWith(localImage: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$LocalImageViewImplCopyWith<$Res> - implements $LocalImageViewCopyWith<$Res> { - factory _$$LocalImageViewImplCopyWith(_$LocalImageViewImpl value, - $Res Function(_$LocalImageViewImpl) then) = - __$$LocalImageViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Person person, LocalImage localImage}); - - @override - $PersonCopyWith<$Res> get person; - @override - $LocalImageCopyWith<$Res> get localImage; -} - -/// @nodoc -class __$$LocalImageViewImplCopyWithImpl<$Res> - extends _$LocalImageViewCopyWithImpl<$Res, _$LocalImageViewImpl> - implements _$$LocalImageViewImplCopyWith<$Res> { - __$$LocalImageViewImplCopyWithImpl( - _$LocalImageViewImpl _value, $Res Function(_$LocalImageViewImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? localImage = null, - }) { - return _then(_$LocalImageViewImpl( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - localImage: null == localImage - ? _value.localImage - : localImage // ignore: cast_nullable_to_non_nullable - as LocalImage, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalImageViewImpl extends _LocalImageView { - const _$LocalImageViewImpl({required this.person, required this.localImage}) - : super._(); - - factory _$LocalImageViewImpl.fromJson(Map json) => - _$$LocalImageViewImplFromJson(json); - - @override - final Person person; -// v0.19.4 - @override - final LocalImage localImage; - - @override - String toString() { - return 'LocalImageView(person: $person, localImage: $localImage)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalImageViewImpl && - (identical(other.person, person) || other.person == person) && - (identical(other.localImage, localImage) || - other.localImage == localImage)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, person, localImage); - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalImageViewImplCopyWith<_$LocalImageViewImpl> get copyWith => - __$$LocalImageViewImplCopyWithImpl<_$LocalImageViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$LocalImageViewImplToJson( - this, - ); - } -} - -abstract class _LocalImageView extends LocalImageView { - const factory _LocalImageView( - {required final Person person, - required final LocalImage localImage}) = _$LocalImageViewImpl; - const _LocalImageView._() : super._(); - - factory _LocalImageView.fromJson(Map json) = - _$LocalImageViewImpl.fromJson; - - @override - Person get person; // v0.19.4 - @override - LocalImage get localImage; - - /// Create a copy of LocalImageView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalImageViewImplCopyWith<_$LocalImageViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/image/local_image_view.g.dart b/lib/src/v3/models/image/local_image_view.g.dart deleted file mode 100644 index 6d6c4c50..00000000 --- a/lib/src/v3/models/image/local_image_view.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_image_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalImageViewImpl _$$LocalImageViewImplFromJson(Map json) => - _$LocalImageViewImpl( - person: Person.fromJson(json['person'] as Map), - localImage: - LocalImage.fromJson(json['local_image'] as Map), - ); - -Map _$$LocalImageViewImplToJson( - _$LocalImageViewImpl instance) => - { - 'person': instance.person.toJson(), - 'local_image': instance.localImage.toJson(), - }; diff --git a/lib/src/v3/models/language/language.dart b/lib/src/v3/models/language/language.dart deleted file mode 100644 index 634b77fe..00000000 --- a/lib/src/v3/models/language/language.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'language.freezed.dart'; -part 'language.g.dart'; - -@freezed -class Language with _$Language { - @modelSerde - const factory Language({ - required int id, // v0.18.0 - required String code, // v0.18.0 - required String name, // v0.18.0 - }) = _Language; - - const Language._(); - factory Language.fromJson(Map json) => - _$LanguageFromJson(json); -} diff --git a/lib/src/v3/models/language/language.freezed.dart b/lib/src/v3/models/language/language.freezed.dart deleted file mode 100644 index e56a1f33..00000000 --- a/lib/src/v3/models/language/language.freezed.dart +++ /dev/null @@ -1,204 +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 'language.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'); - -Language _$LanguageFromJson(Map json) { - return _Language.fromJson(json); -} - -/// @nodoc -mixin _$Language { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get code => throw _privateConstructorUsedError; // v0.18.0 - String get name => throw _privateConstructorUsedError; - - /// Serializes this Language to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Language - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LanguageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LanguageCopyWith<$Res> { - factory $LanguageCopyWith(Language value, $Res Function(Language) then) = - _$LanguageCopyWithImpl<$Res, Language>; - @useResult - $Res call({int id, String code, String name}); -} - -/// @nodoc -class _$LanguageCopyWithImpl<$Res, $Val extends Language> - implements $LanguageCopyWith<$Res> { - _$LanguageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Language - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? code = null, - Object? name = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - code: null == code - ? _value.code - : code // ignore: cast_nullable_to_non_nullable - as String, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LanguageImplCopyWith<$Res> - implements $LanguageCopyWith<$Res> { - factory _$$LanguageImplCopyWith( - _$LanguageImpl value, $Res Function(_$LanguageImpl) then) = - __$$LanguageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int id, String code, String name}); -} - -/// @nodoc -class __$$LanguageImplCopyWithImpl<$Res> - extends _$LanguageCopyWithImpl<$Res, _$LanguageImpl> - implements _$$LanguageImplCopyWith<$Res> { - __$$LanguageImplCopyWithImpl( - _$LanguageImpl _value, $Res Function(_$LanguageImpl) _then) - : super(_value, _then); - - /// Create a copy of Language - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? code = null, - Object? name = null, - }) { - return _then(_$LanguageImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - code: null == code - ? _value.code - : code // ignore: cast_nullable_to_non_nullable - as String, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LanguageImpl extends _Language { - const _$LanguageImpl( - {required this.id, required this.code, required this.name}) - : super._(); - - factory _$LanguageImpl.fromJson(Map json) => - _$$LanguageImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String code; -// v0.18.0 - @override - final String name; - - @override - String toString() { - return 'Language(id: $id, code: $code, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LanguageImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.code, code) || other.code == code) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, code, name); - - /// Create a copy of Language - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LanguageImplCopyWith<_$LanguageImpl> get copyWith => - __$$LanguageImplCopyWithImpl<_$LanguageImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LanguageImplToJson( - this, - ); - } -} - -abstract class _Language extends Language { - const factory _Language( - {required final int id, - required final String code, - required final String name}) = _$LanguageImpl; - const _Language._() : super._(); - - factory _Language.fromJson(Map json) = - _$LanguageImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get code; // v0.18.0 - @override - String get name; - - /// Create a copy of Language - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LanguageImplCopyWith<_$LanguageImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/language/language.g.dart b/lib/src/v3/models/language/language.g.dart deleted file mode 100644 index 61f39020..00000000 --- a/lib/src/v3/models/language/language.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'language.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LanguageImpl _$$LanguageImplFromJson(Map json) => - _$LanguageImpl( - id: (json['id'] as num).toInt(), - code: json['code'] as String, - name: json['name'] as String, - ); - -Map _$$LanguageImplToJson(_$LanguageImpl instance) => - { - 'id': instance.id, - 'code': instance.code, - 'name': instance.name, - }; diff --git a/lib/src/v3/models/local_user/local_user.dart b/lib/src/v3/models/local_user/local_user.dart deleted file mode 100644 index 6bd420b1..00000000 --- a/lib/src/v3/models/local_user/local_user.dart +++ /dev/null @@ -1,46 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; - -part 'local_user.freezed.dart'; -part 'local_user.g.dart'; - -@freezed -class LocalUser with _$LocalUser { - @modelSerde - const factory LocalUser({ - required int id, // v0.18.0 - required int personId, // v0.18.0 - String? email, // v0.18.0 - required bool showNsfw, // v0.18.0 - bool? blurNsfw, // v0.18.3 - bool? autoExpand, // v0.18.3 - required String theme, // v0.18.0 - required SortType defaultSortType, // v0.18.0 - required ListingType defaultListingType, // v0.18.0 - required String interfaceLanguage, // v0.18.0 - required bool showAvatars, // v0.18.0 - required bool sendNotificationsToEmail, // v0.18.0 - @deprecated String? validatorTime, // v0.18.0 [deprecated in v0.19.0] - required bool showScores, // v0.18.0 - required bool showBotAccounts, // v0.18.0 - required bool showReadPosts, // v0.18.0 - @deprecated bool? showNewPostNotifs, // v0.18.0 [deprecated in v0.19.0] - required bool emailVerified, // v0.18.0 - required bool acceptedApplication, // v0.18.0 - @deprecated String? totp2faUrl, // v0.18.0 [deprecated in v0.19.0] - bool? openLinksInNewTab, // v0.18.1 - bool? infiniteScrollEnabled, // v0.19.0 (required) - bool? admin, // v0.19.0 (required) - String? postListingMode, // v0.19.0 (required) - bool? totp2faEnabled, // v0.19.0 (required) - bool? enableKeyboardNavigation, // v0.19.0 (required) - bool? enableAnimatedImages, // v0.19.0 (required) - bool? collapseBotComments, // v0.19.0 (required) - }) = _LocalUser; - - const LocalUser._(); - factory LocalUser.fromJson(Map json) => - _$LocalUserFromJson(json); -} diff --git a/lib/src/v3/models/local_user/local_user.freezed.dart b/lib/src/v3/models/local_user/local_user.freezed.dart deleted file mode 100644 index b0885438..00000000 --- a/lib/src/v3/models/local_user/local_user.freezed.dart +++ /dev/null @@ -1,812 +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 'local_user.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'); - -LocalUser _$LocalUserFromJson(Map json) { - return _LocalUser.fromJson(json); -} - -/// @nodoc -mixin _$LocalUser { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get personId => throw _privateConstructorUsedError; // v0.18.0 - String? get email => throw _privateConstructorUsedError; // v0.18.0 - bool get showNsfw => throw _privateConstructorUsedError; // v0.18.0 - bool? get blurNsfw => throw _privateConstructorUsedError; // v0.18.3 - bool? get autoExpand => throw _privateConstructorUsedError; // v0.18.3 - String get theme => throw _privateConstructorUsedError; // v0.18.0 - SortType get defaultSortType => throw _privateConstructorUsedError; // v0.18.0 - ListingType get defaultListingType => - throw _privateConstructorUsedError; // v0.18.0 - String get interfaceLanguage => throw _privateConstructorUsedError; // v0.18.0 - bool get showAvatars => throw _privateConstructorUsedError; // v0.18.0 - bool get sendNotificationsToEmail => - throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get validatorTime => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - bool get showScores => throw _privateConstructorUsedError; // v0.18.0 - bool get showBotAccounts => throw _privateConstructorUsedError; // v0.18.0 - bool get showReadPosts => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - bool? get showNewPostNotifs => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - bool get emailVerified => throw _privateConstructorUsedError; // v0.18.0 - bool get acceptedApplication => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get totp2faUrl => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - bool? get openLinksInNewTab => throw _privateConstructorUsedError; // v0.18.1 - bool? get infiniteScrollEnabled => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get admin => throw _privateConstructorUsedError; // v0.19.0 (required) - String? get postListingMode => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get totp2faEnabled => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get enableKeyboardNavigation => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get enableAnimatedImages => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get collapseBotComments => throw _privateConstructorUsedError; - - /// Serializes this LocalUser to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalUser - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalUserCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalUserCopyWith<$Res> { - factory $LocalUserCopyWith(LocalUser value, $Res Function(LocalUser) then) = - _$LocalUserCopyWithImpl<$Res, LocalUser>; - @useResult - $Res call( - {int id, - int personId, - String? email, - bool showNsfw, - bool? blurNsfw, - bool? autoExpand, - String theme, - SortType defaultSortType, - ListingType defaultListingType, - String interfaceLanguage, - bool showAvatars, - bool sendNotificationsToEmail, - @deprecated String? validatorTime, - bool showScores, - bool showBotAccounts, - bool showReadPosts, - @deprecated bool? showNewPostNotifs, - bool emailVerified, - bool acceptedApplication, - @deprecated String? totp2faUrl, - bool? openLinksInNewTab, - bool? infiniteScrollEnabled, - bool? admin, - String? postListingMode, - bool? totp2faEnabled, - bool? enableKeyboardNavigation, - bool? enableAnimatedImages, - bool? collapseBotComments}); -} - -/// @nodoc -class _$LocalUserCopyWithImpl<$Res, $Val extends LocalUser> - implements $LocalUserCopyWith<$Res> { - _$LocalUserCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalUser - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? personId = null, - Object? email = freezed, - Object? showNsfw = null, - Object? blurNsfw = freezed, - Object? autoExpand = freezed, - Object? theme = null, - Object? defaultSortType = null, - Object? defaultListingType = null, - Object? interfaceLanguage = null, - Object? showAvatars = null, - Object? sendNotificationsToEmail = null, - Object? validatorTime = freezed, - Object? showScores = null, - Object? showBotAccounts = null, - Object? showReadPosts = null, - Object? showNewPostNotifs = freezed, - Object? emailVerified = null, - Object? acceptedApplication = null, - Object? totp2faUrl = freezed, - Object? openLinksInNewTab = freezed, - Object? infiniteScrollEnabled = freezed, - Object? admin = freezed, - Object? postListingMode = freezed, - Object? totp2faEnabled = freezed, - Object? enableKeyboardNavigation = freezed, - Object? enableAnimatedImages = freezed, - Object? collapseBotComments = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - email: freezed == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String?, - showNsfw: null == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool, - blurNsfw: freezed == blurNsfw - ? _value.blurNsfw - : blurNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - autoExpand: freezed == autoExpand - ? _value.autoExpand - : autoExpand // ignore: cast_nullable_to_non_nullable - as bool?, - theme: null == theme - ? _value.theme - : theme // ignore: cast_nullable_to_non_nullable - as String, - defaultSortType: null == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType, - defaultListingType: null == defaultListingType - ? _value.defaultListingType - : defaultListingType // ignore: cast_nullable_to_non_nullable - as ListingType, - interfaceLanguage: null == interfaceLanguage - ? _value.interfaceLanguage - : interfaceLanguage // ignore: cast_nullable_to_non_nullable - as String, - showAvatars: null == showAvatars - ? _value.showAvatars - : showAvatars // ignore: cast_nullable_to_non_nullable - as bool, - sendNotificationsToEmail: null == sendNotificationsToEmail - ? _value.sendNotificationsToEmail - : sendNotificationsToEmail // ignore: cast_nullable_to_non_nullable - as bool, - validatorTime: freezed == validatorTime - ? _value.validatorTime - : validatorTime // ignore: cast_nullable_to_non_nullable - as String?, - showScores: null == showScores - ? _value.showScores - : showScores // ignore: cast_nullable_to_non_nullable - as bool, - showBotAccounts: null == showBotAccounts - ? _value.showBotAccounts - : showBotAccounts // ignore: cast_nullable_to_non_nullable - as bool, - showReadPosts: null == showReadPosts - ? _value.showReadPosts - : showReadPosts // ignore: cast_nullable_to_non_nullable - as bool, - showNewPostNotifs: freezed == showNewPostNotifs - ? _value.showNewPostNotifs - : showNewPostNotifs // ignore: cast_nullable_to_non_nullable - as bool?, - emailVerified: null == emailVerified - ? _value.emailVerified - : emailVerified // ignore: cast_nullable_to_non_nullable - as bool, - acceptedApplication: null == acceptedApplication - ? _value.acceptedApplication - : acceptedApplication // ignore: cast_nullable_to_non_nullable - as bool, - totp2faUrl: freezed == totp2faUrl - ? _value.totp2faUrl - : totp2faUrl // ignore: cast_nullable_to_non_nullable - as String?, - openLinksInNewTab: freezed == openLinksInNewTab - ? _value.openLinksInNewTab - : openLinksInNewTab // ignore: cast_nullable_to_non_nullable - as bool?, - infiniteScrollEnabled: freezed == infiniteScrollEnabled - ? _value.infiniteScrollEnabled - : infiniteScrollEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as bool?, - postListingMode: freezed == postListingMode - ? _value.postListingMode - : postListingMode // ignore: cast_nullable_to_non_nullable - as String?, - totp2faEnabled: freezed == totp2faEnabled - ? _value.totp2faEnabled - : totp2faEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - enableKeyboardNavigation: freezed == enableKeyboardNavigation - ? _value.enableKeyboardNavigation - : enableKeyboardNavigation // ignore: cast_nullable_to_non_nullable - as bool?, - enableAnimatedImages: freezed == enableAnimatedImages - ? _value.enableAnimatedImages - : enableAnimatedImages // ignore: cast_nullable_to_non_nullable - as bool?, - collapseBotComments: freezed == collapseBotComments - ? _value.collapseBotComments - : collapseBotComments // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LocalUserImplCopyWith<$Res> - implements $LocalUserCopyWith<$Res> { - factory _$$LocalUserImplCopyWith( - _$LocalUserImpl value, $Res Function(_$LocalUserImpl) then) = - __$$LocalUserImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int personId, - String? email, - bool showNsfw, - bool? blurNsfw, - bool? autoExpand, - String theme, - SortType defaultSortType, - ListingType defaultListingType, - String interfaceLanguage, - bool showAvatars, - bool sendNotificationsToEmail, - @deprecated String? validatorTime, - bool showScores, - bool showBotAccounts, - bool showReadPosts, - @deprecated bool? showNewPostNotifs, - bool emailVerified, - bool acceptedApplication, - @deprecated String? totp2faUrl, - bool? openLinksInNewTab, - bool? infiniteScrollEnabled, - bool? admin, - String? postListingMode, - bool? totp2faEnabled, - bool? enableKeyboardNavigation, - bool? enableAnimatedImages, - bool? collapseBotComments}); -} - -/// @nodoc -class __$$LocalUserImplCopyWithImpl<$Res> - extends _$LocalUserCopyWithImpl<$Res, _$LocalUserImpl> - implements _$$LocalUserImplCopyWith<$Res> { - __$$LocalUserImplCopyWithImpl( - _$LocalUserImpl _value, $Res Function(_$LocalUserImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalUser - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? personId = null, - Object? email = freezed, - Object? showNsfw = null, - Object? blurNsfw = freezed, - Object? autoExpand = freezed, - Object? theme = null, - Object? defaultSortType = null, - Object? defaultListingType = null, - Object? interfaceLanguage = null, - Object? showAvatars = null, - Object? sendNotificationsToEmail = null, - Object? validatorTime = freezed, - Object? showScores = null, - Object? showBotAccounts = null, - Object? showReadPosts = null, - Object? showNewPostNotifs = freezed, - Object? emailVerified = null, - Object? acceptedApplication = null, - Object? totp2faUrl = freezed, - Object? openLinksInNewTab = freezed, - Object? infiniteScrollEnabled = freezed, - Object? admin = freezed, - Object? postListingMode = freezed, - Object? totp2faEnabled = freezed, - Object? enableKeyboardNavigation = freezed, - Object? enableAnimatedImages = freezed, - Object? collapseBotComments = freezed, - }) { - return _then(_$LocalUserImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - email: freezed == email - ? _value.email - : email // ignore: cast_nullable_to_non_nullable - as String?, - showNsfw: null == showNsfw - ? _value.showNsfw - : showNsfw // ignore: cast_nullable_to_non_nullable - as bool, - blurNsfw: freezed == blurNsfw - ? _value.blurNsfw - : blurNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - autoExpand: freezed == autoExpand - ? _value.autoExpand - : autoExpand // ignore: cast_nullable_to_non_nullable - as bool?, - theme: null == theme - ? _value.theme - : theme // ignore: cast_nullable_to_non_nullable - as String, - defaultSortType: null == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType, - defaultListingType: null == defaultListingType - ? _value.defaultListingType - : defaultListingType // ignore: cast_nullable_to_non_nullable - as ListingType, - interfaceLanguage: null == interfaceLanguage - ? _value.interfaceLanguage - : interfaceLanguage // ignore: cast_nullable_to_non_nullable - as String, - showAvatars: null == showAvatars - ? _value.showAvatars - : showAvatars // ignore: cast_nullable_to_non_nullable - as bool, - sendNotificationsToEmail: null == sendNotificationsToEmail - ? _value.sendNotificationsToEmail - : sendNotificationsToEmail // ignore: cast_nullable_to_non_nullable - as bool, - validatorTime: freezed == validatorTime - ? _value.validatorTime - : validatorTime // ignore: cast_nullable_to_non_nullable - as String?, - showScores: null == showScores - ? _value.showScores - : showScores // ignore: cast_nullable_to_non_nullable - as bool, - showBotAccounts: null == showBotAccounts - ? _value.showBotAccounts - : showBotAccounts // ignore: cast_nullable_to_non_nullable - as bool, - showReadPosts: null == showReadPosts - ? _value.showReadPosts - : showReadPosts // ignore: cast_nullable_to_non_nullable - as bool, - showNewPostNotifs: freezed == showNewPostNotifs - ? _value.showNewPostNotifs - : showNewPostNotifs // ignore: cast_nullable_to_non_nullable - as bool?, - emailVerified: null == emailVerified - ? _value.emailVerified - : emailVerified // ignore: cast_nullable_to_non_nullable - as bool, - acceptedApplication: null == acceptedApplication - ? _value.acceptedApplication - : acceptedApplication // ignore: cast_nullable_to_non_nullable - as bool, - totp2faUrl: freezed == totp2faUrl - ? _value.totp2faUrl - : totp2faUrl // ignore: cast_nullable_to_non_nullable - as String?, - openLinksInNewTab: freezed == openLinksInNewTab - ? _value.openLinksInNewTab - : openLinksInNewTab // ignore: cast_nullable_to_non_nullable - as bool?, - infiniteScrollEnabled: freezed == infiniteScrollEnabled - ? _value.infiniteScrollEnabled - : infiniteScrollEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as bool?, - postListingMode: freezed == postListingMode - ? _value.postListingMode - : postListingMode // ignore: cast_nullable_to_non_nullable - as String?, - totp2faEnabled: freezed == totp2faEnabled - ? _value.totp2faEnabled - : totp2faEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - enableKeyboardNavigation: freezed == enableKeyboardNavigation - ? _value.enableKeyboardNavigation - : enableKeyboardNavigation // ignore: cast_nullable_to_non_nullable - as bool?, - enableAnimatedImages: freezed == enableAnimatedImages - ? _value.enableAnimatedImages - : enableAnimatedImages // ignore: cast_nullable_to_non_nullable - as bool?, - collapseBotComments: freezed == collapseBotComments - ? _value.collapseBotComments - : collapseBotComments // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalUserImpl extends _LocalUser { - const _$LocalUserImpl( - {required this.id, - required this.personId, - this.email, - required this.showNsfw, - this.blurNsfw, - this.autoExpand, - required this.theme, - required this.defaultSortType, - required this.defaultListingType, - required this.interfaceLanguage, - required this.showAvatars, - required this.sendNotificationsToEmail, - @deprecated this.validatorTime, - required this.showScores, - required this.showBotAccounts, - required this.showReadPosts, - @deprecated this.showNewPostNotifs, - required this.emailVerified, - required this.acceptedApplication, - @deprecated this.totp2faUrl, - this.openLinksInNewTab, - this.infiniteScrollEnabled, - this.admin, - this.postListingMode, - this.totp2faEnabled, - this.enableKeyboardNavigation, - this.enableAnimatedImages, - this.collapseBotComments}) - : super._(); - - factory _$LocalUserImpl.fromJson(Map json) => - _$$LocalUserImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int personId; -// v0.18.0 - @override - final String? email; -// v0.18.0 - @override - final bool showNsfw; -// v0.18.0 - @override - final bool? blurNsfw; -// v0.18.3 - @override - final bool? autoExpand; -// v0.18.3 - @override - final String theme; -// v0.18.0 - @override - final SortType defaultSortType; -// v0.18.0 - @override - final ListingType defaultListingType; -// v0.18.0 - @override - final String interfaceLanguage; -// v0.18.0 - @override - final bool showAvatars; -// v0.18.0 - @override - final bool sendNotificationsToEmail; -// v0.18.0 - @override - @deprecated - final String? validatorTime; -// v0.18.0 [deprecated in v0.19.0] - @override - final bool showScores; -// v0.18.0 - @override - final bool showBotAccounts; -// v0.18.0 - @override - final bool showReadPosts; -// v0.18.0 - @override - @deprecated - final bool? showNewPostNotifs; -// v0.18.0 [deprecated in v0.19.0] - @override - final bool emailVerified; -// v0.18.0 - @override - final bool acceptedApplication; -// v0.18.0 - @override - @deprecated - final String? totp2faUrl; -// v0.18.0 [deprecated in v0.19.0] - @override - final bool? openLinksInNewTab; -// v0.18.1 - @override - final bool? infiniteScrollEnabled; -// v0.19.0 (required) - @override - final bool? admin; -// v0.19.0 (required) - @override - final String? postListingMode; -// v0.19.0 (required) - @override - final bool? totp2faEnabled; -// v0.19.0 (required) - @override - final bool? enableKeyboardNavigation; -// v0.19.0 (required) - @override - final bool? enableAnimatedImages; -// v0.19.0 (required) - @override - final bool? collapseBotComments; - - @override - String toString() { - return 'LocalUser(id: $id, personId: $personId, email: $email, showNsfw: $showNsfw, blurNsfw: $blurNsfw, autoExpand: $autoExpand, theme: $theme, defaultSortType: $defaultSortType, defaultListingType: $defaultListingType, interfaceLanguage: $interfaceLanguage, showAvatars: $showAvatars, sendNotificationsToEmail: $sendNotificationsToEmail, validatorTime: $validatorTime, showScores: $showScores, showBotAccounts: $showBotAccounts, showReadPosts: $showReadPosts, showNewPostNotifs: $showNewPostNotifs, emailVerified: $emailVerified, acceptedApplication: $acceptedApplication, totp2faUrl: $totp2faUrl, openLinksInNewTab: $openLinksInNewTab, infiniteScrollEnabled: $infiniteScrollEnabled, admin: $admin, postListingMode: $postListingMode, totp2faEnabled: $totp2faEnabled, enableKeyboardNavigation: $enableKeyboardNavigation, enableAnimatedImages: $enableAnimatedImages, collapseBotComments: $collapseBotComments)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalUserImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.email, email) || other.email == email) && - (identical(other.showNsfw, showNsfw) || - other.showNsfw == showNsfw) && - (identical(other.blurNsfw, blurNsfw) || - other.blurNsfw == blurNsfw) && - (identical(other.autoExpand, autoExpand) || - other.autoExpand == autoExpand) && - (identical(other.theme, theme) || other.theme == theme) && - (identical(other.defaultSortType, defaultSortType) || - other.defaultSortType == defaultSortType) && - (identical(other.defaultListingType, defaultListingType) || - other.defaultListingType == defaultListingType) && - (identical(other.interfaceLanguage, interfaceLanguage) || - other.interfaceLanguage == interfaceLanguage) && - (identical(other.showAvatars, showAvatars) || - other.showAvatars == showAvatars) && - (identical( - other.sendNotificationsToEmail, sendNotificationsToEmail) || - other.sendNotificationsToEmail == sendNotificationsToEmail) && - (identical(other.validatorTime, validatorTime) || - other.validatorTime == validatorTime) && - (identical(other.showScores, showScores) || - other.showScores == showScores) && - (identical(other.showBotAccounts, showBotAccounts) || - other.showBotAccounts == showBotAccounts) && - (identical(other.showReadPosts, showReadPosts) || - other.showReadPosts == showReadPosts) && - (identical(other.showNewPostNotifs, showNewPostNotifs) || - other.showNewPostNotifs == showNewPostNotifs) && - (identical(other.emailVerified, emailVerified) || - other.emailVerified == emailVerified) && - (identical(other.acceptedApplication, acceptedApplication) || - other.acceptedApplication == acceptedApplication) && - (identical(other.totp2faUrl, totp2faUrl) || - other.totp2faUrl == totp2faUrl) && - (identical(other.openLinksInNewTab, openLinksInNewTab) || - other.openLinksInNewTab == openLinksInNewTab) && - (identical(other.infiniteScrollEnabled, infiniteScrollEnabled) || - other.infiniteScrollEnabled == infiniteScrollEnabled) && - (identical(other.admin, admin) || other.admin == admin) && - (identical(other.postListingMode, postListingMode) || - other.postListingMode == postListingMode) && - (identical(other.totp2faEnabled, totp2faEnabled) || - other.totp2faEnabled == totp2faEnabled) && - (identical( - other.enableKeyboardNavigation, enableKeyboardNavigation) || - other.enableKeyboardNavigation == enableKeyboardNavigation) && - (identical(other.enableAnimatedImages, enableAnimatedImages) || - other.enableAnimatedImages == enableAnimatedImages) && - (identical(other.collapseBotComments, collapseBotComments) || - other.collapseBotComments == collapseBotComments)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - id, - personId, - email, - showNsfw, - blurNsfw, - autoExpand, - theme, - defaultSortType, - defaultListingType, - interfaceLanguage, - showAvatars, - sendNotificationsToEmail, - validatorTime, - showScores, - showBotAccounts, - showReadPosts, - showNewPostNotifs, - emailVerified, - acceptedApplication, - totp2faUrl, - openLinksInNewTab, - infiniteScrollEnabled, - admin, - postListingMode, - totp2faEnabled, - enableKeyboardNavigation, - enableAnimatedImages, - collapseBotComments - ]); - - /// Create a copy of LocalUser - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalUserImplCopyWith<_$LocalUserImpl> get copyWith => - __$$LocalUserImplCopyWithImpl<_$LocalUserImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LocalUserImplToJson( - this, - ); - } -} - -abstract class _LocalUser extends LocalUser { - const factory _LocalUser( - {required final int id, - required final int personId, - final String? email, - required final bool showNsfw, - final bool? blurNsfw, - final bool? autoExpand, - required final String theme, - required final SortType defaultSortType, - required final ListingType defaultListingType, - required final String interfaceLanguage, - required final bool showAvatars, - required final bool sendNotificationsToEmail, - @deprecated final String? validatorTime, - required final bool showScores, - required final bool showBotAccounts, - required final bool showReadPosts, - @deprecated final bool? showNewPostNotifs, - required final bool emailVerified, - required final bool acceptedApplication, - @deprecated final String? totp2faUrl, - final bool? openLinksInNewTab, - final bool? infiniteScrollEnabled, - final bool? admin, - final String? postListingMode, - final bool? totp2faEnabled, - final bool? enableKeyboardNavigation, - final bool? enableAnimatedImages, - final bool? collapseBotComments}) = _$LocalUserImpl; - const _LocalUser._() : super._(); - - factory _LocalUser.fromJson(Map json) = - _$LocalUserImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get personId; // v0.18.0 - @override - String? get email; // v0.18.0 - @override - bool get showNsfw; // v0.18.0 - @override - bool? get blurNsfw; // v0.18.3 - @override - bool? get autoExpand; // v0.18.3 - @override - String get theme; // v0.18.0 - @override - SortType get defaultSortType; // v0.18.0 - @override - ListingType get defaultListingType; // v0.18.0 - @override - String get interfaceLanguage; // v0.18.0 - @override - bool get showAvatars; // v0.18.0 - @override - bool get sendNotificationsToEmail; // v0.18.0 - @override - @deprecated - String? get validatorTime; // v0.18.0 [deprecated in v0.19.0] - @override - bool get showScores; // v0.18.0 - @override - bool get showBotAccounts; // v0.18.0 - @override - bool get showReadPosts; // v0.18.0 - @override - @deprecated - bool? get showNewPostNotifs; // v0.18.0 [deprecated in v0.19.0] - @override - bool get emailVerified; // v0.18.0 - @override - bool get acceptedApplication; // v0.18.0 - @override - @deprecated - String? get totp2faUrl; // v0.18.0 [deprecated in v0.19.0] - @override - bool? get openLinksInNewTab; // v0.18.1 - @override - bool? get infiniteScrollEnabled; // v0.19.0 (required) - @override - bool? get admin; // v0.19.0 (required) - @override - String? get postListingMode; // v0.19.0 (required) - @override - bool? get totp2faEnabled; // v0.19.0 (required) - @override - bool? get enableKeyboardNavigation; // v0.19.0 (required) - @override - bool? get enableAnimatedImages; // v0.19.0 (required) - @override - bool? get collapseBotComments; - - /// Create a copy of LocalUser - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalUserImplCopyWith<_$LocalUserImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/local_user/local_user.g.dart b/lib/src/v3/models/local_user/local_user.g.dart deleted file mode 100644 index 6a1aba0e..00000000 --- a/lib/src/v3/models/local_user/local_user.g.dart +++ /dev/null @@ -1,71 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_user.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalUserImpl _$$LocalUserImplFromJson(Map json) => - _$LocalUserImpl( - id: (json['id'] as num).toInt(), - personId: (json['person_id'] as num).toInt(), - email: json['email'] as String?, - showNsfw: json['show_nsfw'] as bool, - blurNsfw: json['blur_nsfw'] as bool?, - autoExpand: json['auto_expand'] as bool?, - theme: json['theme'] as String, - defaultSortType: SortType.fromJson(json['default_sort_type']), - defaultListingType: ListingType.fromJson(json['default_listing_type']), - interfaceLanguage: json['interface_language'] as String, - showAvatars: json['show_avatars'] as bool, - sendNotificationsToEmail: json['send_notifications_to_email'] as bool, - validatorTime: json['validator_time'] as String?, - showScores: json['show_scores'] as bool, - showBotAccounts: json['show_bot_accounts'] as bool, - showReadPosts: json['show_read_posts'] as bool, - showNewPostNotifs: json['show_new_post_notifs'] as bool?, - emailVerified: json['email_verified'] as bool, - acceptedApplication: json['accepted_application'] as bool, - totp2faUrl: json['totp2fa_url'] as String?, - openLinksInNewTab: json['open_links_in_new_tab'] as bool?, - infiniteScrollEnabled: json['infinite_scroll_enabled'] as bool?, - admin: json['admin'] as bool?, - postListingMode: json['post_listing_mode'] as String?, - totp2faEnabled: json['totp2fa_enabled'] as bool?, - enableKeyboardNavigation: json['enable_keyboard_navigation'] as bool?, - enableAnimatedImages: json['enable_animated_images'] as bool?, - collapseBotComments: json['collapse_bot_comments'] as bool?, - ); - -Map _$$LocalUserImplToJson(_$LocalUserImpl instance) => - { - 'id': instance.id, - 'person_id': instance.personId, - 'email': instance.email, - 'show_nsfw': instance.showNsfw, - 'blur_nsfw': instance.blurNsfw, - 'auto_expand': instance.autoExpand, - 'theme': instance.theme, - 'default_sort_type': instance.defaultSortType.toJson(), - 'default_listing_type': instance.defaultListingType.toJson(), - 'interface_language': instance.interfaceLanguage, - 'show_avatars': instance.showAvatars, - 'send_notifications_to_email': instance.sendNotificationsToEmail, - 'validator_time': instance.validatorTime, - 'show_scores': instance.showScores, - 'show_bot_accounts': instance.showBotAccounts, - 'show_read_posts': instance.showReadPosts, - 'show_new_post_notifs': instance.showNewPostNotifs, - 'email_verified': instance.emailVerified, - 'accepted_application': instance.acceptedApplication, - 'totp2fa_url': instance.totp2faUrl, - 'open_links_in_new_tab': instance.openLinksInNewTab, - 'infinite_scroll_enabled': instance.infiniteScrollEnabled, - 'admin': instance.admin, - 'post_listing_mode': instance.postListingMode, - 'totp2fa_enabled': instance.totp2faEnabled, - 'enable_keyboard_navigation': instance.enableKeyboardNavigation, - 'enable_animated_images': instance.enableAnimatedImages, - 'collapse_bot_comments': instance.collapseBotComments, - }; diff --git a/lib/src/v3/models/local_user/local_user_vote_display_mode.dart b/lib/src/v3/models/local_user/local_user_vote_display_mode.dart deleted file mode 100644 index a7d89fa1..00000000 --- a/lib/src/v3/models/local_user/local_user_vote_display_mode.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'local_user_vote_display_mode.freezed.dart'; -part 'local_user_vote_display_mode.g.dart'; - -@freezed -class LocalUserVoteDisplayMode with _$LocalUserVoteDisplayMode { - @modelSerde - const factory LocalUserVoteDisplayMode({ - int? localUserId, // v0.19.4 (required) - bool? score, // v0.19.4 (required) - bool? upvotes, // v0.19.4 (required) - bool? downvotes, // v0.19.4 (required) - bool? upvotePercentage, // v0.19.4 (required) - }) = _LocalUserVoteDisplayMode; - - const LocalUserVoteDisplayMode._(); - factory LocalUserVoteDisplayMode.fromJson(Map json) => - _$LocalUserVoteDisplayModeFromJson(json); -} diff --git a/lib/src/v3/models/local_user/local_user_vote_display_mode.freezed.dart b/lib/src/v3/models/local_user/local_user_vote_display_mode.freezed.dart deleted file mode 100644 index 28986c0c..00000000 --- a/lib/src/v3/models/local_user/local_user_vote_display_mode.freezed.dart +++ /dev/null @@ -1,267 +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 'local_user_vote_display_mode.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'); - -LocalUserVoteDisplayMode _$LocalUserVoteDisplayModeFromJson( - Map json) { - return _LocalUserVoteDisplayMode.fromJson(json); -} - -/// @nodoc -mixin _$LocalUserVoteDisplayMode { - int? get localUserId => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get score => throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get upvotes => throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get downvotes => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get upvotePercentage => throw _privateConstructorUsedError; - - /// Serializes this LocalUserVoteDisplayMode to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalUserVoteDisplayMode - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalUserVoteDisplayModeCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalUserVoteDisplayModeCopyWith<$Res> { - factory $LocalUserVoteDisplayModeCopyWith(LocalUserVoteDisplayMode value, - $Res Function(LocalUserVoteDisplayMode) then) = - _$LocalUserVoteDisplayModeCopyWithImpl<$Res, LocalUserVoteDisplayMode>; - @useResult - $Res call( - {int? localUserId, - bool? score, - bool? upvotes, - bool? downvotes, - bool? upvotePercentage}); -} - -/// @nodoc -class _$LocalUserVoteDisplayModeCopyWithImpl<$Res, - $Val extends LocalUserVoteDisplayMode> - implements $LocalUserVoteDisplayModeCopyWith<$Res> { - _$LocalUserVoteDisplayModeCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalUserVoteDisplayMode - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUserId = freezed, - Object? score = freezed, - Object? upvotes = freezed, - Object? downvotes = freezed, - Object? upvotePercentage = freezed, - }) { - return _then(_value.copyWith( - localUserId: freezed == localUserId - ? _value.localUserId - : localUserId // ignore: cast_nullable_to_non_nullable - as int?, - score: freezed == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as bool?, - upvotes: freezed == upvotes - ? _value.upvotes - : upvotes // ignore: cast_nullable_to_non_nullable - as bool?, - downvotes: freezed == downvotes - ? _value.downvotes - : downvotes // ignore: cast_nullable_to_non_nullable - as bool?, - upvotePercentage: freezed == upvotePercentage - ? _value.upvotePercentage - : upvotePercentage // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LocalUserVoteDisplayModeImplCopyWith<$Res> - implements $LocalUserVoteDisplayModeCopyWith<$Res> { - factory _$$LocalUserVoteDisplayModeImplCopyWith( - _$LocalUserVoteDisplayModeImpl value, - $Res Function(_$LocalUserVoteDisplayModeImpl) then) = - __$$LocalUserVoteDisplayModeImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? localUserId, - bool? score, - bool? upvotes, - bool? downvotes, - bool? upvotePercentage}); -} - -/// @nodoc -class __$$LocalUserVoteDisplayModeImplCopyWithImpl<$Res> - extends _$LocalUserVoteDisplayModeCopyWithImpl<$Res, - _$LocalUserVoteDisplayModeImpl> - implements _$$LocalUserVoteDisplayModeImplCopyWith<$Res> { - __$$LocalUserVoteDisplayModeImplCopyWithImpl( - _$LocalUserVoteDisplayModeImpl _value, - $Res Function(_$LocalUserVoteDisplayModeImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalUserVoteDisplayMode - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUserId = freezed, - Object? score = freezed, - Object? upvotes = freezed, - Object? downvotes = freezed, - Object? upvotePercentage = freezed, - }) { - return _then(_$LocalUserVoteDisplayModeImpl( - localUserId: freezed == localUserId - ? _value.localUserId - : localUserId // ignore: cast_nullable_to_non_nullable - as int?, - score: freezed == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as bool?, - upvotes: freezed == upvotes - ? _value.upvotes - : upvotes // ignore: cast_nullable_to_non_nullable - as bool?, - downvotes: freezed == downvotes - ? _value.downvotes - : downvotes // ignore: cast_nullable_to_non_nullable - as bool?, - upvotePercentage: freezed == upvotePercentage - ? _value.upvotePercentage - : upvotePercentage // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalUserVoteDisplayModeImpl extends _LocalUserVoteDisplayMode { - const _$LocalUserVoteDisplayModeImpl( - {this.localUserId, - this.score, - this.upvotes, - this.downvotes, - this.upvotePercentage}) - : super._(); - - factory _$LocalUserVoteDisplayModeImpl.fromJson(Map json) => - _$$LocalUserVoteDisplayModeImplFromJson(json); - - @override - final int? localUserId; -// v0.19.4 (required) - @override - final bool? score; -// v0.19.4 (required) - @override - final bool? upvotes; -// v0.19.4 (required) - @override - final bool? downvotes; -// v0.19.4 (required) - @override - final bool? upvotePercentage; - - @override - String toString() { - return 'LocalUserVoteDisplayMode(localUserId: $localUserId, score: $score, upvotes: $upvotes, downvotes: $downvotes, upvotePercentage: $upvotePercentage)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalUserVoteDisplayModeImpl && - (identical(other.localUserId, localUserId) || - other.localUserId == localUserId) && - (identical(other.score, score) || other.score == score) && - (identical(other.upvotes, upvotes) || other.upvotes == upvotes) && - (identical(other.downvotes, downvotes) || - other.downvotes == downvotes) && - (identical(other.upvotePercentage, upvotePercentage) || - other.upvotePercentage == upvotePercentage)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, localUserId, score, upvotes, downvotes, upvotePercentage); - - /// Create a copy of LocalUserVoteDisplayMode - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalUserVoteDisplayModeImplCopyWith<_$LocalUserVoteDisplayModeImpl> - get copyWith => __$$LocalUserVoteDisplayModeImplCopyWithImpl< - _$LocalUserVoteDisplayModeImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LocalUserVoteDisplayModeImplToJson( - this, - ); - } -} - -abstract class _LocalUserVoteDisplayMode extends LocalUserVoteDisplayMode { - const factory _LocalUserVoteDisplayMode( - {final int? localUserId, - final bool? score, - final bool? upvotes, - final bool? downvotes, - final bool? upvotePercentage}) = _$LocalUserVoteDisplayModeImpl; - const _LocalUserVoteDisplayMode._() : super._(); - - factory _LocalUserVoteDisplayMode.fromJson(Map json) = - _$LocalUserVoteDisplayModeImpl.fromJson; - - @override - int? get localUserId; // v0.19.4 (required) - @override - bool? get score; // v0.19.4 (required) - @override - bool? get upvotes; // v0.19.4 (required) - @override - bool? get downvotes; // v0.19.4 (required) - @override - bool? get upvotePercentage; - - /// Create a copy of LocalUserVoteDisplayMode - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalUserVoteDisplayModeImplCopyWith<_$LocalUserVoteDisplayModeImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/local_user/local_user_vote_display_mode.g.dart b/lib/src/v3/models/local_user/local_user_vote_display_mode.g.dart deleted file mode 100644 index 961654d4..00000000 --- a/lib/src/v3/models/local_user/local_user_vote_display_mode.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_user_vote_display_mode.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalUserVoteDisplayModeImpl _$$LocalUserVoteDisplayModeImplFromJson( - Map json) => - _$LocalUserVoteDisplayModeImpl( - localUserId: (json['local_user_id'] as num?)?.toInt(), - score: json['score'] as bool?, - upvotes: json['upvotes'] as bool?, - downvotes: json['downvotes'] as bool?, - upvotePercentage: json['upvote_percentage'] as bool?, - ); - -Map _$$LocalUserVoteDisplayModeImplToJson( - _$LocalUserVoteDisplayModeImpl instance) => - { - 'local_user_id': instance.localUserId, - 'score': instance.score, - 'upvotes': instance.upvotes, - 'downvotes': instance.downvotes, - 'upvote_percentage': instance.upvotePercentage, - }; diff --git a/lib/src/v3/models/mod/mod_add.dart b/lib/src/v3/models/mod/mod_add.dart deleted file mode 100644 index c49d7499..00000000 --- a/lib/src/v3/models/mod/mod_add.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_add.freezed.dart'; -part 'mod_add.g.dart'; - -@freezed -class ModAdd with _$ModAdd { - @modelSerde - const factory ModAdd({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int otherPersonId, // v0.18.0 - required bool removed, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModAdd; - - const ModAdd._(); - factory ModAdd.fromJson(Map json) => _$ModAddFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_add.freezed.dart b/lib/src/v3/models/mod/mod_add.freezed.dart deleted file mode 100644 index 139fa71f..00000000 --- a/lib/src/v3/models/mod/mod_add.freezed.dart +++ /dev/null @@ -1,257 +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 'mod_add.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'); - -ModAdd _$ModAddFromJson(Map json) { - return _ModAdd.fromJson(json); -} - -/// @nodoc -mixin _$ModAdd { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get otherPersonId => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModAdd to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModAdd - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModAddCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModAddCopyWith<$Res> { - factory $ModAddCopyWith(ModAdd value, $Res Function(ModAdd) then) = - _$ModAddCopyWithImpl<$Res, ModAdd>; - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModAddCopyWithImpl<$Res, $Val extends ModAdd> - implements $ModAddCopyWith<$Res> { - _$ModAddCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModAdd - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? removed = null, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModAddImplCopyWith<$Res> implements $ModAddCopyWith<$Res> { - factory _$$ModAddImplCopyWith( - _$ModAddImpl value, $Res Function(_$ModAddImpl) then) = - __$$ModAddImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModAddImplCopyWithImpl<$Res> - extends _$ModAddCopyWithImpl<$Res, _$ModAddImpl> - implements _$$ModAddImplCopyWith<$Res> { - __$$ModAddImplCopyWithImpl( - _$ModAddImpl _value, $Res Function(_$ModAddImpl) _then) - : super(_value, _then); - - /// Create a copy of ModAdd - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? removed = null, - Object? when = null, - }) { - return _then(_$ModAddImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModAddImpl extends _ModAdd { - const _$ModAddImpl( - {required this.id, - required this.modPersonId, - required this.otherPersonId, - required this.removed, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModAddImpl.fromJson(Map json) => - _$$ModAddImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int otherPersonId; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModAdd(id: $id, modPersonId: $modPersonId, otherPersonId: $otherPersonId, removed: $removed, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModAddImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.otherPersonId, otherPersonId) || - other.otherPersonId == otherPersonId) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, modPersonId, otherPersonId, removed, when); - - /// Create a copy of ModAdd - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModAddImplCopyWith<_$ModAddImpl> get copyWith => - __$$ModAddImplCopyWithImpl<_$ModAddImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModAddImplToJson( - this, - ); - } -} - -abstract class _ModAdd extends ModAdd { - const factory _ModAdd( - {required final int id, - required final int modPersonId, - required final int otherPersonId, - required final bool removed, - @JsonKey(name: 'when_') required final String when}) = _$ModAddImpl; - const _ModAdd._() : super._(); - - factory _ModAdd.fromJson(Map json) = _$ModAddImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get otherPersonId; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModAdd - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModAddImplCopyWith<_$ModAddImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_add.g.dart b/lib/src/v3/models/mod/mod_add.g.dart deleted file mode 100644 index e24f57ca..00000000 --- a/lib/src/v3/models/mod/mod_add.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_add.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModAddImpl _$$ModAddImplFromJson(Map json) => _$ModAddImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - otherPersonId: (json['other_person_id'] as num).toInt(), - removed: json['removed'] as bool, - when: json['when_'] as String, - ); - -Map _$$ModAddImplToJson(_$ModAddImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'other_person_id': instance.otherPersonId, - 'removed': instance.removed, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_add_community.dart b/lib/src/v3/models/mod/mod_add_community.dart deleted file mode 100644 index f95693f1..00000000 --- a/lib/src/v3/models/mod/mod_add_community.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_add_community.freezed.dart'; -part 'mod_add_community.g.dart'; - -@freezed -class ModAddCommunity with _$ModAddCommunity { - @modelSerde - const factory ModAddCommunity({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int otherPersonId, // v0.18.0 - required int communityId, // v0.18.0 - required bool removed, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModAddCommunity; - - const ModAddCommunity._(); - factory ModAddCommunity.fromJson(Map json) => - _$ModAddCommunityFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_add_community.freezed.dart b/lib/src/v3/models/mod/mod_add_community.freezed.dart deleted file mode 100644 index b5e02c38..00000000 --- a/lib/src/v3/models/mod/mod_add_community.freezed.dart +++ /dev/null @@ -1,285 +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 'mod_add_community.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'); - -ModAddCommunity _$ModAddCommunityFromJson(Map json) { - return _ModAddCommunity.fromJson(json); -} - -/// @nodoc -mixin _$ModAddCommunity { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get otherPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModAddCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModAddCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModAddCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModAddCommunityCopyWith<$Res> { - factory $ModAddCommunityCopyWith( - ModAddCommunity value, $Res Function(ModAddCommunity) then) = - _$ModAddCommunityCopyWithImpl<$Res, ModAddCommunity>; - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - int communityId, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModAddCommunityCopyWithImpl<$Res, $Val extends ModAddCommunity> - implements $ModAddCommunityCopyWith<$Res> { - _$ModAddCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModAddCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? communityId = null, - Object? removed = null, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModAddCommunityImplCopyWith<$Res> - implements $ModAddCommunityCopyWith<$Res> { - factory _$$ModAddCommunityImplCopyWith(_$ModAddCommunityImpl value, - $Res Function(_$ModAddCommunityImpl) then) = - __$$ModAddCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - int communityId, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModAddCommunityImplCopyWithImpl<$Res> - extends _$ModAddCommunityCopyWithImpl<$Res, _$ModAddCommunityImpl> - implements _$$ModAddCommunityImplCopyWith<$Res> { - __$$ModAddCommunityImplCopyWithImpl( - _$ModAddCommunityImpl _value, $Res Function(_$ModAddCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of ModAddCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? communityId = null, - Object? removed = null, - Object? when = null, - }) { - return _then(_$ModAddCommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModAddCommunityImpl extends _ModAddCommunity { - const _$ModAddCommunityImpl( - {required this.id, - required this.modPersonId, - required this.otherPersonId, - required this.communityId, - required this.removed, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModAddCommunityImpl.fromJson(Map json) => - _$$ModAddCommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int otherPersonId; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModAddCommunity(id: $id, modPersonId: $modPersonId, otherPersonId: $otherPersonId, communityId: $communityId, removed: $removed, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModAddCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.otherPersonId, otherPersonId) || - other.otherPersonId == otherPersonId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, id, modPersonId, otherPersonId, communityId, removed, when); - - /// Create a copy of ModAddCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModAddCommunityImplCopyWith<_$ModAddCommunityImpl> get copyWith => - __$$ModAddCommunityImplCopyWithImpl<_$ModAddCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModAddCommunityImplToJson( - this, - ); - } -} - -abstract class _ModAddCommunity extends ModAddCommunity { - const factory _ModAddCommunity( - {required final int id, - required final int modPersonId, - required final int otherPersonId, - required final int communityId, - required final bool removed, - @JsonKey(name: 'when_') required final String when}) = - _$ModAddCommunityImpl; - const _ModAddCommunity._() : super._(); - - factory _ModAddCommunity.fromJson(Map json) = - _$ModAddCommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get otherPersonId; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModAddCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModAddCommunityImplCopyWith<_$ModAddCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_add_community.g.dart b/lib/src/v3/models/mod/mod_add_community.g.dart deleted file mode 100644 index 03da96ee..00000000 --- a/lib/src/v3/models/mod/mod_add_community.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_add_community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModAddCommunityImpl _$$ModAddCommunityImplFromJson( - Map json) => - _$ModAddCommunityImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - otherPersonId: (json['other_person_id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - removed: json['removed'] as bool, - when: json['when_'] as String, - ); - -Map _$$ModAddCommunityImplToJson( - _$ModAddCommunityImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'other_person_id': instance.otherPersonId, - 'community_id': instance.communityId, - 'removed': instance.removed, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_ban.dart b/lib/src/v3/models/mod/mod_ban.dart deleted file mode 100644 index 5183c956..00000000 --- a/lib/src/v3/models/mod/mod_ban.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_ban.freezed.dart'; -part 'mod_ban.g.dart'; - -@freezed -class ModBan with _$ModBan { - @modelSerde - const factory ModBan({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int otherPersonId, // v0.18.0 - String? reason, // v0.18.0 - required bool banned, // v0.18.0 - String? expires, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModBan; - - const ModBan._(); - factory ModBan.fromJson(Map json) => _$ModBanFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_ban.freezed.dart b/lib/src/v3/models/mod/mod_ban.freezed.dart deleted file mode 100644 index 6fee6ea2..00000000 --- a/lib/src/v3/models/mod/mod_ban.freezed.dart +++ /dev/null @@ -1,299 +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 'mod_ban.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'); - -ModBan _$ModBanFromJson(Map json) { - return _ModBan.fromJson(json); -} - -/// @nodoc -mixin _$ModBan { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get otherPersonId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get banned => throw _privateConstructorUsedError; // v0.18.0 - String? get expires => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModBan to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModBan - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModBanCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModBanCopyWith<$Res> { - factory $ModBanCopyWith(ModBan value, $Res Function(ModBan) then) = - _$ModBanCopyWithImpl<$Res, ModBan>; - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - String? reason, - bool banned, - String? expires, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModBanCopyWithImpl<$Res, $Val extends ModBan> - implements $ModBanCopyWith<$Res> { - _$ModBanCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModBan - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? reason = freezed, - Object? banned = null, - Object? expires = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModBanImplCopyWith<$Res> implements $ModBanCopyWith<$Res> { - factory _$$ModBanImplCopyWith( - _$ModBanImpl value, $Res Function(_$ModBanImpl) then) = - __$$ModBanImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - String? reason, - bool banned, - String? expires, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModBanImplCopyWithImpl<$Res> - extends _$ModBanCopyWithImpl<$Res, _$ModBanImpl> - implements _$$ModBanImplCopyWith<$Res> { - __$$ModBanImplCopyWithImpl( - _$ModBanImpl _value, $Res Function(_$ModBanImpl) _then) - : super(_value, _then); - - /// Create a copy of ModBan - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? reason = freezed, - Object? banned = null, - Object? expires = freezed, - Object? when = null, - }) { - return _then(_$ModBanImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModBanImpl extends _ModBan { - const _$ModBanImpl( - {required this.id, - required this.modPersonId, - required this.otherPersonId, - this.reason, - required this.banned, - this.expires, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModBanImpl.fromJson(Map json) => - _$$ModBanImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int otherPersonId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final bool banned; -// v0.18.0 - @override - final String? expires; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModBan(id: $id, modPersonId: $modPersonId, otherPersonId: $otherPersonId, reason: $reason, banned: $banned, expires: $expires, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModBanImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.otherPersonId, otherPersonId) || - other.otherPersonId == otherPersonId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.banned, banned) || other.banned == banned) && - (identical(other.expires, expires) || other.expires == expires) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, modPersonId, otherPersonId, - reason, banned, expires, when); - - /// Create a copy of ModBan - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModBanImplCopyWith<_$ModBanImpl> get copyWith => - __$$ModBanImplCopyWithImpl<_$ModBanImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModBanImplToJson( - this, - ); - } -} - -abstract class _ModBan extends ModBan { - const factory _ModBan( - {required final int id, - required final int modPersonId, - required final int otherPersonId, - final String? reason, - required final bool banned, - final String? expires, - @JsonKey(name: 'when_') required final String when}) = _$ModBanImpl; - const _ModBan._() : super._(); - - factory _ModBan.fromJson(Map json) = _$ModBanImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get otherPersonId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - bool get banned; // v0.18.0 - @override - String? get expires; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModBan - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModBanImplCopyWith<_$ModBanImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_ban.g.dart b/lib/src/v3/models/mod/mod_ban.g.dart deleted file mode 100644 index a0af8765..00000000 --- a/lib/src/v3/models/mod/mod_ban.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_ban.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModBanImpl _$$ModBanImplFromJson(Map json) => _$ModBanImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - otherPersonId: (json['other_person_id'] as num).toInt(), - reason: json['reason'] as String?, - banned: json['banned'] as bool, - expires: json['expires'] as String?, - when: json['when_'] as String, - ); - -Map _$$ModBanImplToJson(_$ModBanImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'other_person_id': instance.otherPersonId, - 'reason': instance.reason, - 'banned': instance.banned, - 'expires': instance.expires, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_ban_from_community.dart b/lib/src/v3/models/mod/mod_ban_from_community.dart deleted file mode 100644 index cc7c7cf3..00000000 --- a/lib/src/v3/models/mod/mod_ban_from_community.dart +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_ban_from_community.freezed.dart'; -part 'mod_ban_from_community.g.dart'; - -@freezed -class ModBanFromCommunity with _$ModBanFromCommunity { - @modelSerde - const factory ModBanFromCommunity({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int otherPersonId, // v0.18.0 - required int communityId, // v0.18.0 - String? reason, // v0.18.0 - required bool banned, // v0.18.0 - String? expires, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModBanFromCommunity; - - const ModBanFromCommunity._(); - factory ModBanFromCommunity.fromJson(Map json) => - _$ModBanFromCommunityFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_ban_from_community.freezed.dart b/lib/src/v3/models/mod/mod_ban_from_community.freezed.dart deleted file mode 100644 index 6c78f45c..00000000 --- a/lib/src/v3/models/mod/mod_ban_from_community.freezed.dart +++ /dev/null @@ -1,327 +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 'mod_ban_from_community.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'); - -ModBanFromCommunity _$ModBanFromCommunityFromJson(Map json) { - return _ModBanFromCommunity.fromJson(json); -} - -/// @nodoc -mixin _$ModBanFromCommunity { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get otherPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get banned => throw _privateConstructorUsedError; // v0.18.0 - String? get expires => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModBanFromCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModBanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModBanFromCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModBanFromCommunityCopyWith<$Res> { - factory $ModBanFromCommunityCopyWith( - ModBanFromCommunity value, $Res Function(ModBanFromCommunity) then) = - _$ModBanFromCommunityCopyWithImpl<$Res, ModBanFromCommunity>; - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - int communityId, - String? reason, - bool banned, - String? expires, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModBanFromCommunityCopyWithImpl<$Res, $Val extends ModBanFromCommunity> - implements $ModBanFromCommunityCopyWith<$Res> { - _$ModBanFromCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModBanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? communityId = null, - Object? reason = freezed, - Object? banned = null, - Object? expires = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModBanFromCommunityImplCopyWith<$Res> - implements $ModBanFromCommunityCopyWith<$Res> { - factory _$$ModBanFromCommunityImplCopyWith(_$ModBanFromCommunityImpl value, - $Res Function(_$ModBanFromCommunityImpl) then) = - __$$ModBanFromCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - int communityId, - String? reason, - bool banned, - String? expires, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModBanFromCommunityImplCopyWithImpl<$Res> - extends _$ModBanFromCommunityCopyWithImpl<$Res, _$ModBanFromCommunityImpl> - implements _$$ModBanFromCommunityImplCopyWith<$Res> { - __$$ModBanFromCommunityImplCopyWithImpl(_$ModBanFromCommunityImpl _value, - $Res Function(_$ModBanFromCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of ModBanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? communityId = null, - Object? reason = freezed, - Object? banned = null, - Object? expires = freezed, - Object? when = null, - }) { - return _then(_$ModBanFromCommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModBanFromCommunityImpl extends _ModBanFromCommunity { - const _$ModBanFromCommunityImpl( - {required this.id, - required this.modPersonId, - required this.otherPersonId, - required this.communityId, - this.reason, - required this.banned, - this.expires, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModBanFromCommunityImpl.fromJson(Map json) => - _$$ModBanFromCommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int otherPersonId; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final bool banned; -// v0.18.0 - @override - final String? expires; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModBanFromCommunity(id: $id, modPersonId: $modPersonId, otherPersonId: $otherPersonId, communityId: $communityId, reason: $reason, banned: $banned, expires: $expires, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModBanFromCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.otherPersonId, otherPersonId) || - other.otherPersonId == otherPersonId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.banned, banned) || other.banned == banned) && - (identical(other.expires, expires) || other.expires == expires) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, modPersonId, otherPersonId, - communityId, reason, banned, expires, when); - - /// Create a copy of ModBanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModBanFromCommunityImplCopyWith<_$ModBanFromCommunityImpl> get copyWith => - __$$ModBanFromCommunityImplCopyWithImpl<_$ModBanFromCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModBanFromCommunityImplToJson( - this, - ); - } -} - -abstract class _ModBanFromCommunity extends ModBanFromCommunity { - const factory _ModBanFromCommunity( - {required final int id, - required final int modPersonId, - required final int otherPersonId, - required final int communityId, - final String? reason, - required final bool banned, - final String? expires, - @JsonKey(name: 'when_') required final String when}) = - _$ModBanFromCommunityImpl; - const _ModBanFromCommunity._() : super._(); - - factory _ModBanFromCommunity.fromJson(Map json) = - _$ModBanFromCommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get otherPersonId; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - bool get banned; // v0.18.0 - @override - String? get expires; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModBanFromCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModBanFromCommunityImplCopyWith<_$ModBanFromCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_ban_from_community.g.dart b/lib/src/v3/models/mod/mod_ban_from_community.g.dart deleted file mode 100644 index ba06661d..00000000 --- a/lib/src/v3/models/mod/mod_ban_from_community.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_ban_from_community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModBanFromCommunityImpl _$$ModBanFromCommunityImplFromJson( - Map json) => - _$ModBanFromCommunityImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - otherPersonId: (json['other_person_id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - reason: json['reason'] as String?, - banned: json['banned'] as bool, - expires: json['expires'] as String?, - when: json['when_'] as String, - ); - -Map _$$ModBanFromCommunityImplToJson( - _$ModBanFromCommunityImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'other_person_id': instance.otherPersonId, - 'community_id': instance.communityId, - 'reason': instance.reason, - 'banned': instance.banned, - 'expires': instance.expires, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_feature_post.dart b/lib/src/v3/models/mod/mod_feature_post.dart deleted file mode 100644 index c0cd73b3..00000000 --- a/lib/src/v3/models/mod/mod_feature_post.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_feature_post.freezed.dart'; -part 'mod_feature_post.g.dart'; - -@freezed -class ModFeaturePost with _$ModFeaturePost { - @modelSerde - const factory ModFeaturePost({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int postId, // v0.18.0 - required bool featured, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - required bool isFeaturedCommunity, // v0.18.0 - }) = _ModFeaturePost; - - const ModFeaturePost._(); - factory ModFeaturePost.fromJson(Map json) => - _$ModFeaturePostFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_feature_post.freezed.dart b/lib/src/v3/models/mod/mod_feature_post.freezed.dart deleted file mode 100644 index 990a2d1c..00000000 --- a/lib/src/v3/models/mod/mod_feature_post.freezed.dart +++ /dev/null @@ -1,284 +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 'mod_feature_post.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'); - -ModFeaturePost _$ModFeaturePostFromJson(Map json) { - return _ModFeaturePost.fromJson(json); -} - -/// @nodoc -mixin _$ModFeaturePost { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get featured => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; // v0.18.0 - bool get isFeaturedCommunity => throw _privateConstructorUsedError; - - /// Serializes this ModFeaturePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModFeaturePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModFeaturePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModFeaturePostCopyWith<$Res> { - factory $ModFeaturePostCopyWith( - ModFeaturePost value, $Res Function(ModFeaturePost) then) = - _$ModFeaturePostCopyWithImpl<$Res, ModFeaturePost>; - @useResult - $Res call( - {int id, - int modPersonId, - int postId, - bool featured, - @JsonKey(name: 'when_') String when, - bool isFeaturedCommunity}); -} - -/// @nodoc -class _$ModFeaturePostCopyWithImpl<$Res, $Val extends ModFeaturePost> - implements $ModFeaturePostCopyWith<$Res> { - _$ModFeaturePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModFeaturePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? postId = null, - Object? featured = null, - Object? when = null, - Object? isFeaturedCommunity = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - featured: null == featured - ? _value.featured - : featured // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - isFeaturedCommunity: null == isFeaturedCommunity - ? _value.isFeaturedCommunity - : isFeaturedCommunity // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModFeaturePostImplCopyWith<$Res> - implements $ModFeaturePostCopyWith<$Res> { - factory _$$ModFeaturePostImplCopyWith(_$ModFeaturePostImpl value, - $Res Function(_$ModFeaturePostImpl) then) = - __$$ModFeaturePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int postId, - bool featured, - @JsonKey(name: 'when_') String when, - bool isFeaturedCommunity}); -} - -/// @nodoc -class __$$ModFeaturePostImplCopyWithImpl<$Res> - extends _$ModFeaturePostCopyWithImpl<$Res, _$ModFeaturePostImpl> - implements _$$ModFeaturePostImplCopyWith<$Res> { - __$$ModFeaturePostImplCopyWithImpl( - _$ModFeaturePostImpl _value, $Res Function(_$ModFeaturePostImpl) _then) - : super(_value, _then); - - /// Create a copy of ModFeaturePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? postId = null, - Object? featured = null, - Object? when = null, - Object? isFeaturedCommunity = null, - }) { - return _then(_$ModFeaturePostImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - featured: null == featured - ? _value.featured - : featured // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - isFeaturedCommunity: null == isFeaturedCommunity - ? _value.isFeaturedCommunity - : isFeaturedCommunity // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModFeaturePostImpl extends _ModFeaturePost { - const _$ModFeaturePostImpl( - {required this.id, - required this.modPersonId, - required this.postId, - required this.featured, - @JsonKey(name: 'when_') required this.when, - required this.isFeaturedCommunity}) - : super._(); - - factory _$ModFeaturePostImpl.fromJson(Map json) => - _$$ModFeaturePostImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final bool featured; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; -// v0.18.0 - @override - final bool isFeaturedCommunity; - - @override - String toString() { - return 'ModFeaturePost(id: $id, modPersonId: $modPersonId, postId: $postId, featured: $featured, when: $when, isFeaturedCommunity: $isFeaturedCommunity)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModFeaturePostImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.featured, featured) || - other.featured == featured) && - (identical(other.when, when) || other.when == when) && - (identical(other.isFeaturedCommunity, isFeaturedCommunity) || - other.isFeaturedCommunity == isFeaturedCommunity)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, modPersonId, postId, - featured, when, isFeaturedCommunity); - - /// Create a copy of ModFeaturePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModFeaturePostImplCopyWith<_$ModFeaturePostImpl> get copyWith => - __$$ModFeaturePostImplCopyWithImpl<_$ModFeaturePostImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModFeaturePostImplToJson( - this, - ); - } -} - -abstract class _ModFeaturePost extends ModFeaturePost { - const factory _ModFeaturePost( - {required final int id, - required final int modPersonId, - required final int postId, - required final bool featured, - @JsonKey(name: 'when_') required final String when, - required final bool isFeaturedCommunity}) = _$ModFeaturePostImpl; - const _ModFeaturePost._() : super._(); - - factory _ModFeaturePost.fromJson(Map json) = - _$ModFeaturePostImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - bool get featured; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; // v0.18.0 - @override - bool get isFeaturedCommunity; - - /// Create a copy of ModFeaturePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModFeaturePostImplCopyWith<_$ModFeaturePostImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_feature_post.g.dart b/lib/src/v3/models/mod/mod_feature_post.g.dart deleted file mode 100644 index 57b34e61..00000000 --- a/lib/src/v3/models/mod/mod_feature_post.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_feature_post.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModFeaturePostImpl _$$ModFeaturePostImplFromJson(Map json) => - _$ModFeaturePostImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - postId: (json['post_id'] as num).toInt(), - featured: json['featured'] as bool, - when: json['when_'] as String, - isFeaturedCommunity: json['is_featured_community'] as bool, - ); - -Map _$$ModFeaturePostImplToJson( - _$ModFeaturePostImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'post_id': instance.postId, - 'featured': instance.featured, - 'when_': instance.when, - 'is_featured_community': instance.isFeaturedCommunity, - }; diff --git a/lib/src/v3/models/mod/mod_hide_community.dart b/lib/src/v3/models/mod/mod_hide_community.dart deleted file mode 100644 index 134fe7b3..00000000 --- a/lib/src/v3/models/mod/mod_hide_community.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_hide_community.freezed.dart'; -part 'mod_hide_community.g.dart'; - -@freezed -class ModHideCommunity with _$ModHideCommunity { - @modelSerde - const factory ModHideCommunity({ - required int id, // v0.18.0 - required int communityId, // v0.18.0 - required int modPersonId, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - String? reason, // v0.18.0 - required bool hidden, // v0.18.0 - }) = _ModHideCommunity; - - const ModHideCommunity._(); - factory ModHideCommunity.fromJson(Map json) => - _$ModHideCommunityFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_hide_community.freezed.dart b/lib/src/v3/models/mod/mod_hide_community.freezed.dart deleted file mode 100644 index 0284120a..00000000 --- a/lib/src/v3/models/mod/mod_hide_community.freezed.dart +++ /dev/null @@ -1,283 +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 'mod_hide_community.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'); - -ModHideCommunity _$ModHideCommunityFromJson(Map json) { - return _ModHideCommunity.fromJson(json); -} - -/// @nodoc -mixin _$ModHideCommunity { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get hidden => throw _privateConstructorUsedError; - - /// Serializes this ModHideCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModHideCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModHideCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModHideCommunityCopyWith<$Res> { - factory $ModHideCommunityCopyWith( - ModHideCommunity value, $Res Function(ModHideCommunity) then) = - _$ModHideCommunityCopyWithImpl<$Res, ModHideCommunity>; - @useResult - $Res call( - {int id, - int communityId, - int modPersonId, - @JsonKey(name: 'when_') String when, - String? reason, - bool hidden}); -} - -/// @nodoc -class _$ModHideCommunityCopyWithImpl<$Res, $Val extends ModHideCommunity> - implements $ModHideCommunityCopyWith<$Res> { - _$ModHideCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModHideCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? communityId = null, - Object? modPersonId = null, - Object? when = null, - Object? reason = freezed, - Object? hidden = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - hidden: null == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModHideCommunityImplCopyWith<$Res> - implements $ModHideCommunityCopyWith<$Res> { - factory _$$ModHideCommunityImplCopyWith(_$ModHideCommunityImpl value, - $Res Function(_$ModHideCommunityImpl) then) = - __$$ModHideCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int communityId, - int modPersonId, - @JsonKey(name: 'when_') String when, - String? reason, - bool hidden}); -} - -/// @nodoc -class __$$ModHideCommunityImplCopyWithImpl<$Res> - extends _$ModHideCommunityCopyWithImpl<$Res, _$ModHideCommunityImpl> - implements _$$ModHideCommunityImplCopyWith<$Res> { - __$$ModHideCommunityImplCopyWithImpl(_$ModHideCommunityImpl _value, - $Res Function(_$ModHideCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of ModHideCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? communityId = null, - Object? modPersonId = null, - Object? when = null, - Object? reason = freezed, - Object? hidden = null, - }) { - return _then(_$ModHideCommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - hidden: null == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModHideCommunityImpl extends _ModHideCommunity { - const _$ModHideCommunityImpl( - {required this.id, - required this.communityId, - required this.modPersonId, - @JsonKey(name: 'when_') required this.when, - this.reason, - required this.hidden}) - : super._(); - - factory _$ModHideCommunityImpl.fromJson(Map json) => - _$$ModHideCommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final bool hidden; - - @override - String toString() { - return 'ModHideCommunity(id: $id, communityId: $communityId, modPersonId: $modPersonId, when: $when, reason: $reason, hidden: $hidden)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModHideCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.when, when) || other.when == when) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.hidden, hidden) || other.hidden == hidden)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, id, communityId, modPersonId, when, reason, hidden); - - /// Create a copy of ModHideCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModHideCommunityImplCopyWith<_$ModHideCommunityImpl> get copyWith => - __$$ModHideCommunityImplCopyWithImpl<_$ModHideCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModHideCommunityImplToJson( - this, - ); - } -} - -abstract class _ModHideCommunity extends ModHideCommunity { - const factory _ModHideCommunity( - {required final int id, - required final int communityId, - required final int modPersonId, - @JsonKey(name: 'when_') required final String when, - final String? reason, - required final bool hidden}) = _$ModHideCommunityImpl; - const _ModHideCommunity._() : super._(); - - factory _ModHideCommunity.fromJson(Map json) = - _$ModHideCommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - bool get hidden; - - /// Create a copy of ModHideCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModHideCommunityImplCopyWith<_$ModHideCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_hide_community.g.dart b/lib/src/v3/models/mod/mod_hide_community.g.dart deleted file mode 100644 index 8fc74775..00000000 --- a/lib/src/v3/models/mod/mod_hide_community.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_hide_community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModHideCommunityImpl _$$ModHideCommunityImplFromJson( - Map json) => - _$ModHideCommunityImpl( - id: (json['id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - when: json['when_'] as String, - reason: json['reason'] as String?, - hidden: json['hidden'] as bool, - ); - -Map _$$ModHideCommunityImplToJson( - _$ModHideCommunityImpl instance) => - { - 'id': instance.id, - 'community_id': instance.communityId, - 'mod_person_id': instance.modPersonId, - 'when_': instance.when, - 'reason': instance.reason, - 'hidden': instance.hidden, - }; diff --git a/lib/src/v3/models/mod/mod_lock_post.dart b/lib/src/v3/models/mod/mod_lock_post.dart deleted file mode 100644 index 1a61d076..00000000 --- a/lib/src/v3/models/mod/mod_lock_post.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_lock_post.freezed.dart'; -part 'mod_lock_post.g.dart'; - -@freezed -class ModLockPost with _$ModLockPost { - @modelSerde - const factory ModLockPost({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int postId, // v0.18.0 - required bool locked, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModLockPost; - - const ModLockPost._(); - factory ModLockPost.fromJson(Map json) => - _$ModLockPostFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_lock_post.freezed.dart b/lib/src/v3/models/mod/mod_lock_post.freezed.dart deleted file mode 100644 index 712e24f7..00000000 --- a/lib/src/v3/models/mod/mod_lock_post.freezed.dart +++ /dev/null @@ -1,260 +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 'mod_lock_post.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'); - -ModLockPost _$ModLockPostFromJson(Map json) { - return _ModLockPost.fromJson(json); -} - -/// @nodoc -mixin _$ModLockPost { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - bool get locked => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModLockPost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModLockPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModLockPostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModLockPostCopyWith<$Res> { - factory $ModLockPostCopyWith( - ModLockPost value, $Res Function(ModLockPost) then) = - _$ModLockPostCopyWithImpl<$Res, ModLockPost>; - @useResult - $Res call( - {int id, - int modPersonId, - int postId, - bool locked, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModLockPostCopyWithImpl<$Res, $Val extends ModLockPost> - implements $ModLockPostCopyWith<$Res> { - _$ModLockPostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModLockPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? postId = null, - Object? locked = null, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - locked: null == locked - ? _value.locked - : locked // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModLockPostImplCopyWith<$Res> - implements $ModLockPostCopyWith<$Res> { - factory _$$ModLockPostImplCopyWith( - _$ModLockPostImpl value, $Res Function(_$ModLockPostImpl) then) = - __$$ModLockPostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int postId, - bool locked, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModLockPostImplCopyWithImpl<$Res> - extends _$ModLockPostCopyWithImpl<$Res, _$ModLockPostImpl> - implements _$$ModLockPostImplCopyWith<$Res> { - __$$ModLockPostImplCopyWithImpl( - _$ModLockPostImpl _value, $Res Function(_$ModLockPostImpl) _then) - : super(_value, _then); - - /// Create a copy of ModLockPost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? postId = null, - Object? locked = null, - Object? when = null, - }) { - return _then(_$ModLockPostImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - locked: null == locked - ? _value.locked - : locked // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModLockPostImpl extends _ModLockPost { - const _$ModLockPostImpl( - {required this.id, - required this.modPersonId, - required this.postId, - required this.locked, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModLockPostImpl.fromJson(Map json) => - _$$ModLockPostImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final bool locked; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModLockPost(id: $id, modPersonId: $modPersonId, postId: $postId, locked: $locked, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModLockPostImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.locked, locked) || other.locked == locked) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, modPersonId, postId, locked, when); - - /// Create a copy of ModLockPost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModLockPostImplCopyWith<_$ModLockPostImpl> get copyWith => - __$$ModLockPostImplCopyWithImpl<_$ModLockPostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModLockPostImplToJson( - this, - ); - } -} - -abstract class _ModLockPost extends ModLockPost { - const factory _ModLockPost( - {required final int id, - required final int modPersonId, - required final int postId, - required final bool locked, - @JsonKey(name: 'when_') required final String when}) = _$ModLockPostImpl; - const _ModLockPost._() : super._(); - - factory _ModLockPost.fromJson(Map json) = - _$ModLockPostImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - bool get locked; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModLockPost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModLockPostImplCopyWith<_$ModLockPostImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_lock_post.g.dart b/lib/src/v3/models/mod/mod_lock_post.g.dart deleted file mode 100644 index 9b6466a7..00000000 --- a/lib/src/v3/models/mod/mod_lock_post.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_lock_post.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModLockPostImpl _$$ModLockPostImplFromJson(Map json) => - _$ModLockPostImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - postId: (json['post_id'] as num).toInt(), - locked: json['locked'] as bool, - when: json['when_'] as String, - ); - -Map _$$ModLockPostImplToJson(_$ModLockPostImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'post_id': instance.postId, - 'locked': instance.locked, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_remove_comment.dart b/lib/src/v3/models/mod/mod_remove_comment.dart deleted file mode 100644 index 7a0fdc51..00000000 --- a/lib/src/v3/models/mod/mod_remove_comment.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_remove_comment.freezed.dart'; -part 'mod_remove_comment.g.dart'; - -@freezed -class ModRemoveComment with _$ModRemoveComment { - @modelSerde - const factory ModRemoveComment({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int commentId, // v0.18.0 - String? reason, // v0.18.0 - required bool removed, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModRemoveComment; - - const ModRemoveComment._(); - factory ModRemoveComment.fromJson(Map json) => - _$ModRemoveCommentFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_remove_comment.freezed.dart b/lib/src/v3/models/mod/mod_remove_comment.freezed.dart deleted file mode 100644 index 7f95fd21..00000000 --- a/lib/src/v3/models/mod/mod_remove_comment.freezed.dart +++ /dev/null @@ -1,284 +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 'mod_remove_comment.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'); - -ModRemoveComment _$ModRemoveCommentFromJson(Map json) { - return _ModRemoveComment.fromJson(json); -} - -/// @nodoc -mixin _$ModRemoveComment { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModRemoveComment to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModRemoveComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModRemoveCommentCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModRemoveCommentCopyWith<$Res> { - factory $ModRemoveCommentCopyWith( - ModRemoveComment value, $Res Function(ModRemoveComment) then) = - _$ModRemoveCommentCopyWithImpl<$Res, ModRemoveComment>; - @useResult - $Res call( - {int id, - int modPersonId, - int commentId, - String? reason, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModRemoveCommentCopyWithImpl<$Res, $Val extends ModRemoveComment> - implements $ModRemoveCommentCopyWith<$Res> { - _$ModRemoveCommentCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModRemoveComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? commentId = null, - Object? reason = freezed, - Object? removed = null, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModRemoveCommentImplCopyWith<$Res> - implements $ModRemoveCommentCopyWith<$Res> { - factory _$$ModRemoveCommentImplCopyWith(_$ModRemoveCommentImpl value, - $Res Function(_$ModRemoveCommentImpl) then) = - __$$ModRemoveCommentImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int commentId, - String? reason, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModRemoveCommentImplCopyWithImpl<$Res> - extends _$ModRemoveCommentCopyWithImpl<$Res, _$ModRemoveCommentImpl> - implements _$$ModRemoveCommentImplCopyWith<$Res> { - __$$ModRemoveCommentImplCopyWithImpl(_$ModRemoveCommentImpl _value, - $Res Function(_$ModRemoveCommentImpl) _then) - : super(_value, _then); - - /// Create a copy of ModRemoveComment - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? commentId = null, - Object? reason = freezed, - Object? removed = null, - Object? when = null, - }) { - return _then(_$ModRemoveCommentImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModRemoveCommentImpl extends _ModRemoveComment { - const _$ModRemoveCommentImpl( - {required this.id, - required this.modPersonId, - required this.commentId, - this.reason, - required this.removed, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModRemoveCommentImpl.fromJson(Map json) => - _$$ModRemoveCommentImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int commentId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModRemoveComment(id: $id, modPersonId: $modPersonId, commentId: $commentId, reason: $reason, removed: $removed, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModRemoveCommentImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, id, modPersonId, commentId, reason, removed, when); - - /// Create a copy of ModRemoveComment - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModRemoveCommentImplCopyWith<_$ModRemoveCommentImpl> get copyWith => - __$$ModRemoveCommentImplCopyWithImpl<_$ModRemoveCommentImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModRemoveCommentImplToJson( - this, - ); - } -} - -abstract class _ModRemoveComment extends ModRemoveComment { - const factory _ModRemoveComment( - {required final int id, - required final int modPersonId, - required final int commentId, - final String? reason, - required final bool removed, - @JsonKey(name: 'when_') required final String when}) = - _$ModRemoveCommentImpl; - const _ModRemoveComment._() : super._(); - - factory _ModRemoveComment.fromJson(Map json) = - _$ModRemoveCommentImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get commentId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModRemoveComment - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModRemoveCommentImplCopyWith<_$ModRemoveCommentImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_remove_comment.g.dart b/lib/src/v3/models/mod/mod_remove_comment.g.dart deleted file mode 100644 index 2bdb047b..00000000 --- a/lib/src/v3/models/mod/mod_remove_comment.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_remove_comment.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModRemoveCommentImpl _$$ModRemoveCommentImplFromJson( - Map json) => - _$ModRemoveCommentImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - commentId: (json['comment_id'] as num).toInt(), - reason: json['reason'] as String?, - removed: json['removed'] as bool, - when: json['when_'] as String, - ); - -Map _$$ModRemoveCommentImplToJson( - _$ModRemoveCommentImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'comment_id': instance.commentId, - 'reason': instance.reason, - 'removed': instance.removed, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_remove_community.dart b/lib/src/v3/models/mod/mod_remove_community.dart deleted file mode 100644 index 9e9a6ed3..00000000 --- a/lib/src/v3/models/mod/mod_remove_community.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_remove_community.freezed.dart'; -part 'mod_remove_community.g.dart'; - -@freezed -class ModRemoveCommunity with _$ModRemoveCommunity { - @modelSerde - const factory ModRemoveCommunity({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int communityId, // v0.18.0 - String? reason, // v0.18.0 - required bool removed, // v0.18.0 - @deprecated String? expires, // v0.18.0 [deprecated in v0.19.0] - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModRemoveCommunity; - - const ModRemoveCommunity._(); - factory ModRemoveCommunity.fromJson(Map json) => - _$ModRemoveCommunityFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_remove_community.freezed.dart b/lib/src/v3/models/mod/mod_remove_community.freezed.dart deleted file mode 100644 index a1641c3e..00000000 --- a/lib/src/v3/models/mod/mod_remove_community.freezed.dart +++ /dev/null @@ -1,309 +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 'mod_remove_community.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'); - -ModRemoveCommunity _$ModRemoveCommunityFromJson(Map json) { - return _ModRemoveCommunity.fromJson(json); -} - -/// @nodoc -mixin _$ModRemoveCommunity { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get expires => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModRemoveCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModRemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModRemoveCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModRemoveCommunityCopyWith<$Res> { - factory $ModRemoveCommunityCopyWith( - ModRemoveCommunity value, $Res Function(ModRemoveCommunity) then) = - _$ModRemoveCommunityCopyWithImpl<$Res, ModRemoveCommunity>; - @useResult - $Res call( - {int id, - int modPersonId, - int communityId, - String? reason, - bool removed, - @deprecated String? expires, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModRemoveCommunityCopyWithImpl<$Res, $Val extends ModRemoveCommunity> - implements $ModRemoveCommunityCopyWith<$Res> { - _$ModRemoveCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModRemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? communityId = null, - Object? reason = freezed, - Object? removed = null, - Object? expires = freezed, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModRemoveCommunityImplCopyWith<$Res> - implements $ModRemoveCommunityCopyWith<$Res> { - factory _$$ModRemoveCommunityImplCopyWith(_$ModRemoveCommunityImpl value, - $Res Function(_$ModRemoveCommunityImpl) then) = - __$$ModRemoveCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int communityId, - String? reason, - bool removed, - @deprecated String? expires, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModRemoveCommunityImplCopyWithImpl<$Res> - extends _$ModRemoveCommunityCopyWithImpl<$Res, _$ModRemoveCommunityImpl> - implements _$$ModRemoveCommunityImplCopyWith<$Res> { - __$$ModRemoveCommunityImplCopyWithImpl(_$ModRemoveCommunityImpl _value, - $Res Function(_$ModRemoveCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of ModRemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? communityId = null, - Object? reason = freezed, - Object? removed = null, - Object? expires = freezed, - Object? when = null, - }) { - return _then(_$ModRemoveCommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - expires: freezed == expires - ? _value.expires - : expires // ignore: cast_nullable_to_non_nullable - as String?, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModRemoveCommunityImpl extends _ModRemoveCommunity { - const _$ModRemoveCommunityImpl( - {required this.id, - required this.modPersonId, - required this.communityId, - this.reason, - required this.removed, - @deprecated this.expires, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModRemoveCommunityImpl.fromJson(Map json) => - _$$ModRemoveCommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - @deprecated - final String? expires; -// v0.18.0 [deprecated in v0.19.0] - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModRemoveCommunity(id: $id, modPersonId: $modPersonId, communityId: $communityId, reason: $reason, removed: $removed, expires: $expires, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModRemoveCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.expires, expires) || other.expires == expires) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, modPersonId, communityId, - reason, removed, expires, when); - - /// Create a copy of ModRemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModRemoveCommunityImplCopyWith<_$ModRemoveCommunityImpl> get copyWith => - __$$ModRemoveCommunityImplCopyWithImpl<_$ModRemoveCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModRemoveCommunityImplToJson( - this, - ); - } -} - -abstract class _ModRemoveCommunity extends ModRemoveCommunity { - const factory _ModRemoveCommunity( - {required final int id, - required final int modPersonId, - required final int communityId, - final String? reason, - required final bool removed, - @deprecated final String? expires, - @JsonKey(name: 'when_') required final String when}) = - _$ModRemoveCommunityImpl; - const _ModRemoveCommunity._() : super._(); - - factory _ModRemoveCommunity.fromJson(Map json) = - _$ModRemoveCommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - @deprecated - String? get expires; // v0.18.0 [deprecated in v0.19.0] - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModRemoveCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModRemoveCommunityImplCopyWith<_$ModRemoveCommunityImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_remove_community.g.dart b/lib/src/v3/models/mod/mod_remove_community.g.dart deleted file mode 100644 index 64735197..00000000 --- a/lib/src/v3/models/mod/mod_remove_community.g.dart +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_remove_community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModRemoveCommunityImpl _$$ModRemoveCommunityImplFromJson( - Map json) => - _$ModRemoveCommunityImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - reason: json['reason'] as String?, - removed: json['removed'] as bool, - expires: json['expires'] as String?, - when: json['when_'] as String, - ); - -Map _$$ModRemoveCommunityImplToJson( - _$ModRemoveCommunityImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'community_id': instance.communityId, - 'reason': instance.reason, - 'removed': instance.removed, - 'expires': instance.expires, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_remove_post.dart b/lib/src/v3/models/mod/mod_remove_post.dart deleted file mode 100644 index 53eefdf9..00000000 --- a/lib/src/v3/models/mod/mod_remove_post.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_remove_post.freezed.dart'; -part 'mod_remove_post.g.dart'; - -@freezed -class ModRemovePost with _$ModRemovePost { - @modelSerde - const factory ModRemovePost({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int postId, // v0.18.0 - String? reason, // v0.18.0 - required bool removed, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModRemovePost; - - const ModRemovePost._(); - factory ModRemovePost.fromJson(Map json) => - _$ModRemovePostFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_remove_post.freezed.dart b/lib/src/v3/models/mod/mod_remove_post.freezed.dart deleted file mode 100644 index bec1457a..00000000 --- a/lib/src/v3/models/mod/mod_remove_post.freezed.dart +++ /dev/null @@ -1,282 +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 'mod_remove_post.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'); - -ModRemovePost _$ModRemovePostFromJson(Map json) { - return _ModRemovePost.fromJson(json); -} - -/// @nodoc -mixin _$ModRemovePost { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String? get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModRemovePost to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModRemovePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModRemovePostCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModRemovePostCopyWith<$Res> { - factory $ModRemovePostCopyWith( - ModRemovePost value, $Res Function(ModRemovePost) then) = - _$ModRemovePostCopyWithImpl<$Res, ModRemovePost>; - @useResult - $Res call( - {int id, - int modPersonId, - int postId, - String? reason, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModRemovePostCopyWithImpl<$Res, $Val extends ModRemovePost> - implements $ModRemovePostCopyWith<$Res> { - _$ModRemovePostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModRemovePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? postId = null, - Object? reason = freezed, - Object? removed = null, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModRemovePostImplCopyWith<$Res> - implements $ModRemovePostCopyWith<$Res> { - factory _$$ModRemovePostImplCopyWith( - _$ModRemovePostImpl value, $Res Function(_$ModRemovePostImpl) then) = - __$$ModRemovePostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int postId, - String? reason, - bool removed, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModRemovePostImplCopyWithImpl<$Res> - extends _$ModRemovePostCopyWithImpl<$Res, _$ModRemovePostImpl> - implements _$$ModRemovePostImplCopyWith<$Res> { - __$$ModRemovePostImplCopyWithImpl( - _$ModRemovePostImpl _value, $Res Function(_$ModRemovePostImpl) _then) - : super(_value, _then); - - /// Create a copy of ModRemovePost - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? postId = null, - Object? reason = freezed, - Object? removed = null, - Object? when = null, - }) { - return _then(_$ModRemovePostImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - reason: freezed == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModRemovePostImpl extends _ModRemovePost { - const _$ModRemovePostImpl( - {required this.id, - required this.modPersonId, - required this.postId, - this.reason, - required this.removed, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModRemovePostImpl.fromJson(Map json) => - _$$ModRemovePostImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final String? reason; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModRemovePost(id: $id, modPersonId: $modPersonId, postId: $postId, reason: $reason, removed: $removed, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModRemovePostImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, modPersonId, postId, reason, removed, when); - - /// Create a copy of ModRemovePost - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModRemovePostImplCopyWith<_$ModRemovePostImpl> get copyWith => - __$$ModRemovePostImplCopyWithImpl<_$ModRemovePostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModRemovePostImplToJson( - this, - ); - } -} - -abstract class _ModRemovePost extends ModRemovePost { - const factory _ModRemovePost( - {required final int id, - required final int modPersonId, - required final int postId, - final String? reason, - required final bool removed, - @JsonKey(name: 'when_') required final String when}) = - _$ModRemovePostImpl; - const _ModRemovePost._() : super._(); - - factory _ModRemovePost.fromJson(Map json) = - _$ModRemovePostImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - String? get reason; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModRemovePost - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModRemovePostImplCopyWith<_$ModRemovePostImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_remove_post.g.dart b/lib/src/v3/models/mod/mod_remove_post.g.dart deleted file mode 100644 index 8ac548f0..00000000 --- a/lib/src/v3/models/mod/mod_remove_post.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_remove_post.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModRemovePostImpl _$$ModRemovePostImplFromJson(Map json) => - _$ModRemovePostImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - postId: (json['post_id'] as num).toInt(), - reason: json['reason'] as String?, - removed: json['removed'] as bool, - when: json['when_'] as String, - ); - -Map _$$ModRemovePostImplToJson(_$ModRemovePostImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'post_id': instance.postId, - 'reason': instance.reason, - 'removed': instance.removed, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/mod/mod_transfer_community.dart b/lib/src/v3/models/mod/mod_transfer_community.dart deleted file mode 100644 index 865c8210..00000000 --- a/lib/src/v3/models/mod/mod_transfer_community.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'mod_transfer_community.freezed.dart'; -part 'mod_transfer_community.g.dart'; - -@freezed -class ModTransferCommunity with _$ModTransferCommunity { - @modelSerde - const factory ModTransferCommunity({ - required int id, // v0.18.0 - required int modPersonId, // v0.18.0 - required int otherPersonId, // v0.18.0 - required int communityId, // v0.18.0 - @JsonKey(name: 'when_') required String when, // v0.18.0 - }) = _ModTransferCommunity; - - const ModTransferCommunity._(); - factory ModTransferCommunity.fromJson(Map json) => - _$ModTransferCommunityFromJson(json); -} diff --git a/lib/src/v3/models/mod/mod_transfer_community.freezed.dart b/lib/src/v3/models/mod/mod_transfer_community.freezed.dart deleted file mode 100644 index 48e166d0..00000000 --- a/lib/src/v3/models/mod/mod_transfer_community.freezed.dart +++ /dev/null @@ -1,266 +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 'mod_transfer_community.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'); - -ModTransferCommunity _$ModTransferCommunityFromJson(Map json) { - return _ModTransferCommunity.fromJson(json); -} - -/// @nodoc -mixin _$ModTransferCommunity { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get modPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get otherPersonId => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - @JsonKey(name: 'when_') - String get when => throw _privateConstructorUsedError; - - /// Serializes this ModTransferCommunity to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModTransferCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModTransferCommunityCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModTransferCommunityCopyWith<$Res> { - factory $ModTransferCommunityCopyWith(ModTransferCommunity value, - $Res Function(ModTransferCommunity) then) = - _$ModTransferCommunityCopyWithImpl<$Res, ModTransferCommunity>; - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - int communityId, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class _$ModTransferCommunityCopyWithImpl<$Res, - $Val extends ModTransferCommunity> - implements $ModTransferCommunityCopyWith<$Res> { - _$ModTransferCommunityCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModTransferCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? communityId = null, - Object? when = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ModTransferCommunityImplCopyWith<$Res> - implements $ModTransferCommunityCopyWith<$Res> { - factory _$$ModTransferCommunityImplCopyWith(_$ModTransferCommunityImpl value, - $Res Function(_$ModTransferCommunityImpl) then) = - __$$ModTransferCommunityImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int modPersonId, - int otherPersonId, - int communityId, - @JsonKey(name: 'when_') String when}); -} - -/// @nodoc -class __$$ModTransferCommunityImplCopyWithImpl<$Res> - extends _$ModTransferCommunityCopyWithImpl<$Res, _$ModTransferCommunityImpl> - implements _$$ModTransferCommunityImplCopyWith<$Res> { - __$$ModTransferCommunityImplCopyWithImpl(_$ModTransferCommunityImpl _value, - $Res Function(_$ModTransferCommunityImpl) _then) - : super(_value, _then); - - /// Create a copy of ModTransferCommunity - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? modPersonId = null, - Object? otherPersonId = null, - Object? communityId = null, - Object? when = null, - }) { - return _then(_$ModTransferCommunityImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - modPersonId: null == modPersonId - ? _value.modPersonId - : modPersonId // ignore: cast_nullable_to_non_nullable - as int, - otherPersonId: null == otherPersonId - ? _value.otherPersonId - : otherPersonId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - when: null == when - ? _value.when - : when // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModTransferCommunityImpl extends _ModTransferCommunity { - const _$ModTransferCommunityImpl( - {required this.id, - required this.modPersonId, - required this.otherPersonId, - required this.communityId, - @JsonKey(name: 'when_') required this.when}) - : super._(); - - factory _$ModTransferCommunityImpl.fromJson(Map json) => - _$$ModTransferCommunityImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int modPersonId; -// v0.18.0 - @override - final int otherPersonId; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - @JsonKey(name: 'when_') - final String when; - - @override - String toString() { - return 'ModTransferCommunity(id: $id, modPersonId: $modPersonId, otherPersonId: $otherPersonId, communityId: $communityId, when: $when)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModTransferCommunityImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.modPersonId, modPersonId) || - other.modPersonId == modPersonId) && - (identical(other.otherPersonId, otherPersonId) || - other.otherPersonId == otherPersonId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.when, when) || other.when == when)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, id, modPersonId, otherPersonId, communityId, when); - - /// Create a copy of ModTransferCommunity - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModTransferCommunityImplCopyWith<_$ModTransferCommunityImpl> - get copyWith => - __$$ModTransferCommunityImplCopyWithImpl<_$ModTransferCommunityImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModTransferCommunityImplToJson( - this, - ); - } -} - -abstract class _ModTransferCommunity extends ModTransferCommunity { - const factory _ModTransferCommunity( - {required final int id, - required final int modPersonId, - required final int otherPersonId, - required final int communityId, - @JsonKey(name: 'when_') required final String when}) = - _$ModTransferCommunityImpl; - const _ModTransferCommunity._() : super._(); - - factory _ModTransferCommunity.fromJson(Map json) = - _$ModTransferCommunityImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get modPersonId; // v0.18.0 - @override - int get otherPersonId; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - @JsonKey(name: 'when_') - String get when; - - /// Create a copy of ModTransferCommunity - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModTransferCommunityImplCopyWith<_$ModTransferCommunityImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/mod/mod_transfer_community.g.dart b/lib/src/v3/models/mod/mod_transfer_community.g.dart deleted file mode 100644 index eda29f22..00000000 --- a/lib/src/v3/models/mod/mod_transfer_community.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_transfer_community.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModTransferCommunityImpl _$$ModTransferCommunityImplFromJson( - Map json) => - _$ModTransferCommunityImpl( - id: (json['id'] as num).toInt(), - modPersonId: (json['mod_person_id'] as num).toInt(), - otherPersonId: (json['other_person_id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - when: json['when_'] as String, - ); - -Map _$$ModTransferCommunityImplToJson( - _$ModTransferCommunityImpl instance) => - { - 'id': instance.id, - 'mod_person_id': instance.modPersonId, - 'other_person_id': instance.otherPersonId, - 'community_id': instance.communityId, - 'when_': instance.when, - }; diff --git a/lib/src/v3/models/models.dart b/lib/src/v3/models/models.dart deleted file mode 100644 index 0208e385..00000000 --- a/lib/src/v3/models/models.dart +++ /dev/null @@ -1,111 +0,0 @@ -export 'admin/add_admin_response.dart'; -export 'admin/admin_purge_comment.dart'; -export 'admin/admin_purge_community.dart'; -export 'admin/admin_purge_person.dart'; -export 'admin/admin_purge_post.dart'; -export 'admin/get_unread_registration_application_count_response.dart'; -export 'admin/list_registration_applications_response.dart'; -export 'admin/purge_item_response.dart'; -export 'admin/registration_application.dart'; -export 'admin/registration_application_response.dart'; -export 'comment/comment.dart'; -export 'comment/comment_aggregates.dart'; -export 'comment/comment_reply.dart'; -export 'comment/comment_reply_response.dart'; -export 'comment/comment_report.dart'; -export 'comment/comment_report_response.dart'; -export 'comment/comment_response.dart'; -export 'comment/get_comments_response.dart'; -export 'comment/list_comment_likes_response.dart'; -export 'comment/list_comment_reports_response.dart'; -export 'community/add_mod_to_community_response.dart'; -export 'community/ban_from_community_response.dart'; -export 'community/block_community_response.dart'; -export 'community/community.dart'; -export 'community/community_aggregates.dart'; -export 'community/community_response.dart'; -export 'community/get_community_response.dart'; -export 'community/hide_community_response.dart'; -export 'community/list_communities_response.dart'; -export 'custom_emoji/custom_emoji.dart'; -export 'custom_emoji/custom_emoji_keyword.dart'; -export 'custom_emoji/custom_emoji_response.dart'; -export 'custom_emoji/delete_custom_emoji_response.dart'; -export 'federated_instances/federated_instances.dart'; -export 'federated_instances/get_federated_instances_response.dart'; -export 'federated_instances/instance.dart'; -export 'federated_instances/instance_with_federation_state.dart'; -export 'federated_instances/readable_federation_state.dart'; -export 'image/image_details.dart'; -export 'image/local_image.dart'; -export 'image/local_image_view.dart'; -export 'language/language.dart'; -export 'local_user/local_user.dart'; -export 'local_user/local_user_vote_display_mode.dart'; -export 'mod/mod_add.dart'; -export 'mod/mod_add_community.dart'; -export 'mod/mod_ban.dart'; -export 'mod/mod_ban_from_community.dart'; -export 'mod/mod_feature_post.dart'; -export 'mod/mod_hide_community.dart'; -export 'mod/mod_lock_post.dart'; -export 'mod/mod_remove_comment.dart'; -export 'mod/mod_remove_community.dart'; -export 'mod/mod_remove_post.dart'; -export 'mod/mod_transfer_community.dart'; -export 'modlog/get_modlog_response.dart'; -export 'my_user_info/my_user_info.dart'; -export 'person/person.dart'; -export 'person/person_aggregates.dart'; -export 'person/person_mention.dart'; -export 'post/get_post_response.dart'; -export 'post/get_posts_response.dart'; -export 'post/get_site_metadata_response.dart'; -export 'post/list_post_likes_response.dart'; -export 'post/list_post_reports_response.dart'; -export 'post/mark_post_as_read_response.dart'; -export 'post/post.dart'; -export 'post/post_aggregates.dart'; -export 'post/post_report.dart'; -export 'post/post_report_response.dart'; -export 'post/post_response.dart'; -export 'private_message/list_private_message_reports_response.dart'; -export 'private_message/private_message.dart'; -export 'private_message/private_message_report.dart'; -export 'private_message/private_message_report_response.dart'; -export 'private_message/private_message_response.dart'; -export 'private_message/private_messages_response.dart'; -export 'resolve_object/resolve_object_response.dart'; -export 'search/search_response.dart'; -export 'site/block_instance_response.dart'; -export 'site/get_site_response.dart'; -export 'site/link_metadata.dart'; -export 'site/local_site.dart'; -export 'site/local_site_rate_limit.dart'; -export 'site/local_site_url_blocklist.dart'; -export 'site/site.dart'; -export 'site/site_aggregates.dart'; -export 'site/site_response.dart'; -export 'site/site_view.dart'; -export 'tagline/tagline.dart'; -export 'user/ban_person_response.dart'; -export 'user/banned_persons_response.dart'; -export 'user/block_person_response.dart'; -export 'user/captcha_response.dart'; -export 'user/delete_account_response.dart'; -export 'user/generate_totp_secret_response.dart'; -export 'user/get_captcha_response.dart'; -export 'user/get_person_details_response.dart'; -export 'user/get_person_mentions_response.dart'; -export 'user/get_replies_response.dart'; -export 'user/get_report_count_response.dart'; -export 'user/get_unread_count_response.dart'; -export 'user/list_media_response.dart'; -export 'user/login_response.dart'; -export 'user/password_change_after_reset_response.dart'; -export 'user/password_reset_response.dart'; -export 'user/person_mention_response.dart'; -export 'user/save_user_settings_response.dart'; -export 'user/success_response.dart'; -export 'user/update_totp_response.dart'; -export 'user/verify_email_response.dart'; diff --git a/lib/src/v3/models/modlog/get_modlog_response.dart b/lib/src/v3/models/modlog/get_modlog_response.dart deleted file mode 100644 index b11c8f59..00000000 --- a/lib/src/v3/models/modlog/get_modlog_response.dart +++ /dev/null @@ -1,33 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'get_modlog_response.freezed.dart'; -part 'get_modlog_response.g.dart'; - -@freezed -class GetModlogResponse with _$GetModlogResponse { - @modelSerde - const factory GetModlogResponse({ - required List removedPosts, // v0.18.0 - required List lockedPosts, // v0.18.0 - required List featuredPosts, // v0.18.0 - required List removedComments, // v0.18.0 - required List removedCommunities, // v0.18.0 - required List bannedFromCommunity, // v0.18.0 - required List banned, // v0.18.0 - required List addedToCommunity, // v0.18.0 - required List transferredToCommunity, // v0.18.0 - required List added, // v0.18.0 - required List adminPurgedPersons, // v0.18.0 - required List adminPurgedCommunities, // v0.18.0 - required List adminPurgedPosts, // v0.18.0 - required List adminPurgedComments, // v0.18.0 - required List hiddenCommunities, // v0.18.0 - }) = _GetModlogResponse; - - const GetModlogResponse._(); - factory GetModlogResponse.fromJson(Map json) => - _$GetModlogResponseFromJson(json); -} diff --git a/lib/src/v3/models/modlog/get_modlog_response.freezed.dart b/lib/src/v3/models/modlog/get_modlog_response.freezed.dart deleted file mode 100644 index a676238e..00000000 --- a/lib/src/v3/models/modlog/get_modlog_response.freezed.dart +++ /dev/null @@ -1,636 +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 'get_modlog_response.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'); - -GetModlogResponse _$GetModlogResponseFromJson(Map json) { - return _GetModlogResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetModlogResponse { - List get removedPosts => - throw _privateConstructorUsedError; // v0.18.0 - List get lockedPosts => - throw _privateConstructorUsedError; // v0.18.0 - List get featuredPosts => - throw _privateConstructorUsedError; // v0.18.0 - List get removedComments => - throw _privateConstructorUsedError; // v0.18.0 - List get removedCommunities => - throw _privateConstructorUsedError; // v0.18.0 - List get bannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - List get banned => throw _privateConstructorUsedError; // v0.18.0 - List get addedToCommunity => - throw _privateConstructorUsedError; // v0.18.0 - List get transferredToCommunity => - throw _privateConstructorUsedError; // v0.18.0 - List get added => throw _privateConstructorUsedError; // v0.18.0 - List get adminPurgedPersons => - throw _privateConstructorUsedError; // v0.18.0 - List get adminPurgedCommunities => - throw _privateConstructorUsedError; // v0.18.0 - List get adminPurgedPosts => - throw _privateConstructorUsedError; // v0.18.0 - List get adminPurgedComments => - throw _privateConstructorUsedError; // v0.18.0 - List get hiddenCommunities => - throw _privateConstructorUsedError; - - /// Serializes this GetModlogResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetModlogResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetModlogResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetModlogResponseCopyWith<$Res> { - factory $GetModlogResponseCopyWith( - GetModlogResponse value, $Res Function(GetModlogResponse) then) = - _$GetModlogResponseCopyWithImpl<$Res, GetModlogResponse>; - @useResult - $Res call( - {List removedPosts, - List lockedPosts, - List featuredPosts, - List removedComments, - List removedCommunities, - List bannedFromCommunity, - List banned, - List addedToCommunity, - List transferredToCommunity, - List added, - List adminPurgedPersons, - List adminPurgedCommunities, - List adminPurgedPosts, - List adminPurgedComments, - List hiddenCommunities}); -} - -/// @nodoc -class _$GetModlogResponseCopyWithImpl<$Res, $Val extends GetModlogResponse> - implements $GetModlogResponseCopyWith<$Res> { - _$GetModlogResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetModlogResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? removedPosts = null, - Object? lockedPosts = null, - Object? featuredPosts = null, - Object? removedComments = null, - Object? removedCommunities = null, - Object? bannedFromCommunity = null, - Object? banned = null, - Object? addedToCommunity = null, - Object? transferredToCommunity = null, - Object? added = null, - Object? adminPurgedPersons = null, - Object? adminPurgedCommunities = null, - Object? adminPurgedPosts = null, - Object? adminPurgedComments = null, - Object? hiddenCommunities = null, - }) { - return _then(_value.copyWith( - removedPosts: null == removedPosts - ? _value.removedPosts - : removedPosts // ignore: cast_nullable_to_non_nullable - as List, - lockedPosts: null == lockedPosts - ? _value.lockedPosts - : lockedPosts // ignore: cast_nullable_to_non_nullable - as List, - featuredPosts: null == featuredPosts - ? _value.featuredPosts - : featuredPosts // ignore: cast_nullable_to_non_nullable - as List, - removedComments: null == removedComments - ? _value.removedComments - : removedComments // ignore: cast_nullable_to_non_nullable - as List, - removedCommunities: null == removedCommunities - ? _value.removedCommunities - : removedCommunities // ignore: cast_nullable_to_non_nullable - as List, - bannedFromCommunity: null == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as List, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as List, - addedToCommunity: null == addedToCommunity - ? _value.addedToCommunity - : addedToCommunity // ignore: cast_nullable_to_non_nullable - as List, - transferredToCommunity: null == transferredToCommunity - ? _value.transferredToCommunity - : transferredToCommunity // ignore: cast_nullable_to_non_nullable - as List, - added: null == added - ? _value.added - : added // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedPersons: null == adminPurgedPersons - ? _value.adminPurgedPersons - : adminPurgedPersons // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedCommunities: null == adminPurgedCommunities - ? _value.adminPurgedCommunities - : adminPurgedCommunities // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedPosts: null == adminPurgedPosts - ? _value.adminPurgedPosts - : adminPurgedPosts // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedComments: null == adminPurgedComments - ? _value.adminPurgedComments - : adminPurgedComments // ignore: cast_nullable_to_non_nullable - as List, - hiddenCommunities: null == hiddenCommunities - ? _value.hiddenCommunities - : hiddenCommunities // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetModlogResponseImplCopyWith<$Res> - implements $GetModlogResponseCopyWith<$Res> { - factory _$$GetModlogResponseImplCopyWith(_$GetModlogResponseImpl value, - $Res Function(_$GetModlogResponseImpl) then) = - __$$GetModlogResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {List removedPosts, - List lockedPosts, - List featuredPosts, - List removedComments, - List removedCommunities, - List bannedFromCommunity, - List banned, - List addedToCommunity, - List transferredToCommunity, - List added, - List adminPurgedPersons, - List adminPurgedCommunities, - List adminPurgedPosts, - List adminPurgedComments, - List hiddenCommunities}); -} - -/// @nodoc -class __$$GetModlogResponseImplCopyWithImpl<$Res> - extends _$GetModlogResponseCopyWithImpl<$Res, _$GetModlogResponseImpl> - implements _$$GetModlogResponseImplCopyWith<$Res> { - __$$GetModlogResponseImplCopyWithImpl(_$GetModlogResponseImpl _value, - $Res Function(_$GetModlogResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetModlogResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? removedPosts = null, - Object? lockedPosts = null, - Object? featuredPosts = null, - Object? removedComments = null, - Object? removedCommunities = null, - Object? bannedFromCommunity = null, - Object? banned = null, - Object? addedToCommunity = null, - Object? transferredToCommunity = null, - Object? added = null, - Object? adminPurgedPersons = null, - Object? adminPurgedCommunities = null, - Object? adminPurgedPosts = null, - Object? adminPurgedComments = null, - Object? hiddenCommunities = null, - }) { - return _then(_$GetModlogResponseImpl( - removedPosts: null == removedPosts - ? _value._removedPosts - : removedPosts // ignore: cast_nullable_to_non_nullable - as List, - lockedPosts: null == lockedPosts - ? _value._lockedPosts - : lockedPosts // ignore: cast_nullable_to_non_nullable - as List, - featuredPosts: null == featuredPosts - ? _value._featuredPosts - : featuredPosts // ignore: cast_nullable_to_non_nullable - as List, - removedComments: null == removedComments - ? _value._removedComments - : removedComments // ignore: cast_nullable_to_non_nullable - as List, - removedCommunities: null == removedCommunities - ? _value._removedCommunities - : removedCommunities // ignore: cast_nullable_to_non_nullable - as List, - bannedFromCommunity: null == bannedFromCommunity - ? _value._bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as List, - banned: null == banned - ? _value._banned - : banned // ignore: cast_nullable_to_non_nullable - as List, - addedToCommunity: null == addedToCommunity - ? _value._addedToCommunity - : addedToCommunity // ignore: cast_nullable_to_non_nullable - as List, - transferredToCommunity: null == transferredToCommunity - ? _value._transferredToCommunity - : transferredToCommunity // ignore: cast_nullable_to_non_nullable - as List, - added: null == added - ? _value._added - : added // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedPersons: null == adminPurgedPersons - ? _value._adminPurgedPersons - : adminPurgedPersons // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedCommunities: null == adminPurgedCommunities - ? _value._adminPurgedCommunities - : adminPurgedCommunities // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedPosts: null == adminPurgedPosts - ? _value._adminPurgedPosts - : adminPurgedPosts // ignore: cast_nullable_to_non_nullable - as List, - adminPurgedComments: null == adminPurgedComments - ? _value._adminPurgedComments - : adminPurgedComments // ignore: cast_nullable_to_non_nullable - as List, - hiddenCommunities: null == hiddenCommunities - ? _value._hiddenCommunities - : hiddenCommunities // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetModlogResponseImpl extends _GetModlogResponse { - const _$GetModlogResponseImpl( - {required final List removedPosts, - required final List lockedPosts, - required final List featuredPosts, - required final List removedComments, - required final List removedCommunities, - required final List bannedFromCommunity, - required final List banned, - required final List addedToCommunity, - required final List transferredToCommunity, - required final List added, - required final List adminPurgedPersons, - required final List adminPurgedCommunities, - required final List adminPurgedPosts, - required final List adminPurgedComments, - required final List hiddenCommunities}) - : _removedPosts = removedPosts, - _lockedPosts = lockedPosts, - _featuredPosts = featuredPosts, - _removedComments = removedComments, - _removedCommunities = removedCommunities, - _bannedFromCommunity = bannedFromCommunity, - _banned = banned, - _addedToCommunity = addedToCommunity, - _transferredToCommunity = transferredToCommunity, - _added = added, - _adminPurgedPersons = adminPurgedPersons, - _adminPurgedCommunities = adminPurgedCommunities, - _adminPurgedPosts = adminPurgedPosts, - _adminPurgedComments = adminPurgedComments, - _hiddenCommunities = hiddenCommunities, - super._(); - - factory _$GetModlogResponseImpl.fromJson(Map json) => - _$$GetModlogResponseImplFromJson(json); - - final List _removedPosts; - @override - List get removedPosts { - if (_removedPosts is EqualUnmodifiableListView) return _removedPosts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_removedPosts); - } - -// v0.18.0 - final List _lockedPosts; -// v0.18.0 - @override - List get lockedPosts { - if (_lockedPosts is EqualUnmodifiableListView) return _lockedPosts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_lockedPosts); - } - -// v0.18.0 - final List _featuredPosts; -// v0.18.0 - @override - List get featuredPosts { - if (_featuredPosts is EqualUnmodifiableListView) return _featuredPosts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_featuredPosts); - } - -// v0.18.0 - final List _removedComments; -// v0.18.0 - @override - List get removedComments { - if (_removedComments is EqualUnmodifiableListView) return _removedComments; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_removedComments); - } - -// v0.18.0 - final List _removedCommunities; -// v0.18.0 - @override - List get removedCommunities { - if (_removedCommunities is EqualUnmodifiableListView) - return _removedCommunities; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_removedCommunities); - } - -// v0.18.0 - final List _bannedFromCommunity; -// v0.18.0 - @override - List get bannedFromCommunity { - if (_bannedFromCommunity is EqualUnmodifiableListView) - return _bannedFromCommunity; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_bannedFromCommunity); - } - -// v0.18.0 - final List _banned; -// v0.18.0 - @override - List get banned { - if (_banned is EqualUnmodifiableListView) return _banned; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_banned); - } - -// v0.18.0 - final List _addedToCommunity; -// v0.18.0 - @override - List get addedToCommunity { - if (_addedToCommunity is EqualUnmodifiableListView) - return _addedToCommunity; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_addedToCommunity); - } - -// v0.18.0 - final List _transferredToCommunity; -// v0.18.0 - @override - List get transferredToCommunity { - if (_transferredToCommunity is EqualUnmodifiableListView) - return _transferredToCommunity; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_transferredToCommunity); - } - -// v0.18.0 - final List _added; -// v0.18.0 - @override - List get added { - if (_added is EqualUnmodifiableListView) return _added; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_added); - } - -// v0.18.0 - final List _adminPurgedPersons; -// v0.18.0 - @override - List get adminPurgedPersons { - if (_adminPurgedPersons is EqualUnmodifiableListView) - return _adminPurgedPersons; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_adminPurgedPersons); - } - -// v0.18.0 - final List _adminPurgedCommunities; -// v0.18.0 - @override - List get adminPurgedCommunities { - if (_adminPurgedCommunities is EqualUnmodifiableListView) - return _adminPurgedCommunities; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_adminPurgedCommunities); - } - -// v0.18.0 - final List _adminPurgedPosts; -// v0.18.0 - @override - List get adminPurgedPosts { - if (_adminPurgedPosts is EqualUnmodifiableListView) - return _adminPurgedPosts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_adminPurgedPosts); - } - -// v0.18.0 - final List _adminPurgedComments; -// v0.18.0 - @override - List get adminPurgedComments { - if (_adminPurgedComments is EqualUnmodifiableListView) - return _adminPurgedComments; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_adminPurgedComments); - } - -// v0.18.0 - final List _hiddenCommunities; -// v0.18.0 - @override - List get hiddenCommunities { - if (_hiddenCommunities is EqualUnmodifiableListView) - return _hiddenCommunities; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_hiddenCommunities); - } - - @override - String toString() { - return 'GetModlogResponse(removedPosts: $removedPosts, lockedPosts: $lockedPosts, featuredPosts: $featuredPosts, removedComments: $removedComments, removedCommunities: $removedCommunities, bannedFromCommunity: $bannedFromCommunity, banned: $banned, addedToCommunity: $addedToCommunity, transferredToCommunity: $transferredToCommunity, added: $added, adminPurgedPersons: $adminPurgedPersons, adminPurgedCommunities: $adminPurgedCommunities, adminPurgedPosts: $adminPurgedPosts, adminPurgedComments: $adminPurgedComments, hiddenCommunities: $hiddenCommunities)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetModlogResponseImpl && - const DeepCollectionEquality() - .equals(other._removedPosts, _removedPosts) && - const DeepCollectionEquality() - .equals(other._lockedPosts, _lockedPosts) && - const DeepCollectionEquality() - .equals(other._featuredPosts, _featuredPosts) && - const DeepCollectionEquality() - .equals(other._removedComments, _removedComments) && - const DeepCollectionEquality() - .equals(other._removedCommunities, _removedCommunities) && - const DeepCollectionEquality() - .equals(other._bannedFromCommunity, _bannedFromCommunity) && - const DeepCollectionEquality().equals(other._banned, _banned) && - const DeepCollectionEquality() - .equals(other._addedToCommunity, _addedToCommunity) && - const DeepCollectionEquality().equals( - other._transferredToCommunity, _transferredToCommunity) && - const DeepCollectionEquality().equals(other._added, _added) && - const DeepCollectionEquality() - .equals(other._adminPurgedPersons, _adminPurgedPersons) && - const DeepCollectionEquality().equals( - other._adminPurgedCommunities, _adminPurgedCommunities) && - const DeepCollectionEquality() - .equals(other._adminPurgedPosts, _adminPurgedPosts) && - const DeepCollectionEquality() - .equals(other._adminPurgedComments, _adminPurgedComments) && - const DeepCollectionEquality() - .equals(other._hiddenCommunities, _hiddenCommunities)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - const DeepCollectionEquality().hash(_removedPosts), - const DeepCollectionEquality().hash(_lockedPosts), - const DeepCollectionEquality().hash(_featuredPosts), - const DeepCollectionEquality().hash(_removedComments), - const DeepCollectionEquality().hash(_removedCommunities), - const DeepCollectionEquality().hash(_bannedFromCommunity), - const DeepCollectionEquality().hash(_banned), - const DeepCollectionEquality().hash(_addedToCommunity), - const DeepCollectionEquality().hash(_transferredToCommunity), - const DeepCollectionEquality().hash(_added), - const DeepCollectionEquality().hash(_adminPurgedPersons), - const DeepCollectionEquality().hash(_adminPurgedCommunities), - const DeepCollectionEquality().hash(_adminPurgedPosts), - const DeepCollectionEquality().hash(_adminPurgedComments), - const DeepCollectionEquality().hash(_hiddenCommunities)); - - /// Create a copy of GetModlogResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetModlogResponseImplCopyWith<_$GetModlogResponseImpl> get copyWith => - __$$GetModlogResponseImplCopyWithImpl<_$GetModlogResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetModlogResponseImplToJson( - this, - ); - } -} - -abstract class _GetModlogResponse extends GetModlogResponse { - const factory _GetModlogResponse( - {required final List removedPosts, - required final List lockedPosts, - required final List featuredPosts, - required final List removedComments, - required final List removedCommunities, - required final List bannedFromCommunity, - required final List banned, - required final List addedToCommunity, - required final List transferredToCommunity, - required final List added, - required final List adminPurgedPersons, - required final List adminPurgedCommunities, - required final List adminPurgedPosts, - required final List adminPurgedComments, - required final List hiddenCommunities}) = - _$GetModlogResponseImpl; - const _GetModlogResponse._() : super._(); - - factory _GetModlogResponse.fromJson(Map json) = - _$GetModlogResponseImpl.fromJson; - - @override - List get removedPosts; // v0.18.0 - @override - List get lockedPosts; // v0.18.0 - @override - List get featuredPosts; // v0.18.0 - @override - List get removedComments; // v0.18.0 - @override - List get removedCommunities; // v0.18.0 - @override - List get bannedFromCommunity; // v0.18.0 - @override - List get banned; // v0.18.0 - @override - List get addedToCommunity; // v0.18.0 - @override - List get transferredToCommunity; // v0.18.0 - @override - List get added; // v0.18.0 - @override - List get adminPurgedPersons; // v0.18.0 - @override - List get adminPurgedCommunities; // v0.18.0 - @override - List get adminPurgedPosts; // v0.18.0 - @override - List get adminPurgedComments; // v0.18.0 - @override - List get hiddenCommunities; - - /// Create a copy of GetModlogResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetModlogResponseImplCopyWith<_$GetModlogResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/modlog/get_modlog_response.g.dart b/lib/src/v3/models/modlog/get_modlog_response.g.dart deleted file mode 100644 index 435390ce..00000000 --- a/lib/src/v3/models/modlog/get_modlog_response.g.dart +++ /dev/null @@ -1,93 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_modlog_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetModlogResponseImpl _$$GetModlogResponseImplFromJson( - Map json) => - _$GetModlogResponseImpl( - removedPosts: (json['removed_posts'] as List) - .map((e) => ModRemovePostView.fromJson(e as Map)) - .toList(), - lockedPosts: (json['locked_posts'] as List) - .map((e) => ModLockPostView.fromJson(e as Map)) - .toList(), - featuredPosts: (json['featured_posts'] as List) - .map((e) => ModFeaturePostView.fromJson(e as Map)) - .toList(), - removedComments: (json['removed_comments'] as List) - .map((e) => ModRemoveCommentView.fromJson(e as Map)) - .toList(), - removedCommunities: (json['removed_communities'] as List) - .map( - (e) => ModRemoveCommunityView.fromJson(e as Map)) - .toList(), - bannedFromCommunity: (json['banned_from_community'] as List) - .map((e) => - ModBanFromCommunityView.fromJson(e as Map)) - .toList(), - banned: (json['banned'] as List) - .map((e) => ModBanView.fromJson(e as Map)) - .toList(), - addedToCommunity: (json['added_to_community'] as List) - .map((e) => ModAddCommunityView.fromJson(e as Map)) - .toList(), - transferredToCommunity: - (json['transferred_to_community'] as List) - .map((e) => - ModTransferCommunityView.fromJson(e as Map)) - .toList(), - added: (json['added'] as List) - .map((e) => ModAddView.fromJson(e as Map)) - .toList(), - adminPurgedPersons: (json['admin_purged_persons'] as List) - .map((e) => AdminPurgePersonView.fromJson(e as Map)) - .toList(), - adminPurgedCommunities: - (json['admin_purged_communities'] as List) - .map((e) => - AdminPurgeCommunityView.fromJson(e as Map)) - .toList(), - adminPurgedPosts: (json['admin_purged_posts'] as List) - .map((e) => AdminPurgePostView.fromJson(e as Map)) - .toList(), - adminPurgedComments: (json['admin_purged_comments'] as List) - .map((e) => AdminPurgeCommentView.fromJson(e as Map)) - .toList(), - hiddenCommunities: (json['hidden_communities'] as List) - .map((e) => ModHideCommunityView.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetModlogResponseImplToJson( - _$GetModlogResponseImpl instance) => - { - 'removed_posts': instance.removedPosts.map((e) => e.toJson()).toList(), - 'locked_posts': instance.lockedPosts.map((e) => e.toJson()).toList(), - 'featured_posts': instance.featuredPosts.map((e) => e.toJson()).toList(), - 'removed_comments': - instance.removedComments.map((e) => e.toJson()).toList(), - 'removed_communities': - instance.removedCommunities.map((e) => e.toJson()).toList(), - 'banned_from_community': - instance.bannedFromCommunity.map((e) => e.toJson()).toList(), - 'banned': instance.banned.map((e) => e.toJson()).toList(), - 'added_to_community': - instance.addedToCommunity.map((e) => e.toJson()).toList(), - 'transferred_to_community': - instance.transferredToCommunity.map((e) => e.toJson()).toList(), - 'added': instance.added.map((e) => e.toJson()).toList(), - 'admin_purged_persons': - instance.adminPurgedPersons.map((e) => e.toJson()).toList(), - 'admin_purged_communities': - instance.adminPurgedCommunities.map((e) => e.toJson()).toList(), - 'admin_purged_posts': - instance.adminPurgedPosts.map((e) => e.toJson()).toList(), - 'admin_purged_comments': - instance.adminPurgedComments.map((e) => e.toJson()).toList(), - 'hidden_communities': - instance.hiddenCommunities.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/my_user_info/my_user_info.dart b/lib/src/v3/models/my_user_info/my_user_info.dart deleted file mode 100644 index cabd00ba..00000000 --- a/lib/src/v3/models/my_user_info/my_user_info.dart +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'my_user_info.freezed.dart'; -part 'my_user_info.g.dart'; - -@freezed -class MyUserInfo with _$MyUserInfo { - @modelSerde - const factory MyUserInfo({ - required LocalUserView localUserView, // v0.18.0 - required List follows, // v0.18.0 - required List moderates, // v0.18.0 - required List communityBlocks, // v0.18.0 - List? instanceBlocks, // v0.19.0 (required) - required List personBlocks, // v0.18.0 - required List discussionLanguages, // v0.18.0 - }) = _MyUserInfo; - - const MyUserInfo._(); - factory MyUserInfo.fromJson(Map json) => - _$MyUserInfoFromJson(json); -} diff --git a/lib/src/v3/models/my_user_info/my_user_info.freezed.dart b/lib/src/v3/models/my_user_info/my_user_info.freezed.dart deleted file mode 100644 index 5f026f9e..00000000 --- a/lib/src/v3/models/my_user_info/my_user_info.freezed.dart +++ /dev/null @@ -1,382 +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 'my_user_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'); - -MyUserInfo _$MyUserInfoFromJson(Map json) { - return _MyUserInfo.fromJson(json); -} - -/// @nodoc -mixin _$MyUserInfo { - LocalUserView get localUserView => - throw _privateConstructorUsedError; // v0.18.0 - List get follows => - throw _privateConstructorUsedError; // v0.18.0 - List get moderates => - throw _privateConstructorUsedError; // v0.18.0 - List get communityBlocks => - throw _privateConstructorUsedError; // v0.18.0 - List? get instanceBlocks => - throw _privateConstructorUsedError; // v0.19.0 (required) - List get personBlocks => - throw _privateConstructorUsedError; // v0.18.0 - List get discussionLanguages => throw _privateConstructorUsedError; - - /// Serializes this MyUserInfo to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MyUserInfo - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MyUserInfoCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MyUserInfoCopyWith<$Res> { - factory $MyUserInfoCopyWith( - MyUserInfo value, $Res Function(MyUserInfo) then) = - _$MyUserInfoCopyWithImpl<$Res, MyUserInfo>; - @useResult - $Res call( - {LocalUserView localUserView, - List follows, - List moderates, - List communityBlocks, - List? instanceBlocks, - List personBlocks, - List discussionLanguages}); - - $LocalUserViewCopyWith<$Res> get localUserView; -} - -/// @nodoc -class _$MyUserInfoCopyWithImpl<$Res, $Val extends MyUserInfo> - implements $MyUserInfoCopyWith<$Res> { - _$MyUserInfoCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MyUserInfo - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUserView = null, - Object? follows = null, - Object? moderates = null, - Object? communityBlocks = null, - Object? instanceBlocks = freezed, - Object? personBlocks = null, - Object? discussionLanguages = null, - }) { - return _then(_value.copyWith( - localUserView: null == localUserView - ? _value.localUserView - : localUserView // ignore: cast_nullable_to_non_nullable - as LocalUserView, - follows: null == follows - ? _value.follows - : follows // ignore: cast_nullable_to_non_nullable - as List, - moderates: null == moderates - ? _value.moderates - : moderates // ignore: cast_nullable_to_non_nullable - as List, - communityBlocks: null == communityBlocks - ? _value.communityBlocks - : communityBlocks // ignore: cast_nullable_to_non_nullable - as List, - instanceBlocks: freezed == instanceBlocks - ? _value.instanceBlocks - : instanceBlocks // ignore: cast_nullable_to_non_nullable - as List?, - personBlocks: null == personBlocks - ? _value.personBlocks - : personBlocks // ignore: cast_nullable_to_non_nullable - as List, - discussionLanguages: null == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of MyUserInfo - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalUserViewCopyWith<$Res> get localUserView { - return $LocalUserViewCopyWith<$Res>(_value.localUserView, (value) { - return _then(_value.copyWith(localUserView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$MyUserInfoImplCopyWith<$Res> - implements $MyUserInfoCopyWith<$Res> { - factory _$$MyUserInfoImplCopyWith( - _$MyUserInfoImpl value, $Res Function(_$MyUserInfoImpl) then) = - __$$MyUserInfoImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {LocalUserView localUserView, - List follows, - List moderates, - List communityBlocks, - List? instanceBlocks, - List personBlocks, - List discussionLanguages}); - - @override - $LocalUserViewCopyWith<$Res> get localUserView; -} - -/// @nodoc -class __$$MyUserInfoImplCopyWithImpl<$Res> - extends _$MyUserInfoCopyWithImpl<$Res, _$MyUserInfoImpl> - implements _$$MyUserInfoImplCopyWith<$Res> { - __$$MyUserInfoImplCopyWithImpl( - _$MyUserInfoImpl _value, $Res Function(_$MyUserInfoImpl) _then) - : super(_value, _then); - - /// Create a copy of MyUserInfo - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUserView = null, - Object? follows = null, - Object? moderates = null, - Object? communityBlocks = null, - Object? instanceBlocks = freezed, - Object? personBlocks = null, - Object? discussionLanguages = null, - }) { - return _then(_$MyUserInfoImpl( - localUserView: null == localUserView - ? _value.localUserView - : localUserView // ignore: cast_nullable_to_non_nullable - as LocalUserView, - follows: null == follows - ? _value._follows - : follows // ignore: cast_nullable_to_non_nullable - as List, - moderates: null == moderates - ? _value._moderates - : moderates // ignore: cast_nullable_to_non_nullable - as List, - communityBlocks: null == communityBlocks - ? _value._communityBlocks - : communityBlocks // ignore: cast_nullable_to_non_nullable - as List, - instanceBlocks: freezed == instanceBlocks - ? _value._instanceBlocks - : instanceBlocks // ignore: cast_nullable_to_non_nullable - as List?, - personBlocks: null == personBlocks - ? _value._personBlocks - : personBlocks // ignore: cast_nullable_to_non_nullable - as List, - discussionLanguages: null == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$MyUserInfoImpl extends _MyUserInfo { - const _$MyUserInfoImpl( - {required this.localUserView, - required final List follows, - required final List moderates, - required final List communityBlocks, - final List? instanceBlocks, - required final List personBlocks, - required final List discussionLanguages}) - : _follows = follows, - _moderates = moderates, - _communityBlocks = communityBlocks, - _instanceBlocks = instanceBlocks, - _personBlocks = personBlocks, - _discussionLanguages = discussionLanguages, - super._(); - - factory _$MyUserInfoImpl.fromJson(Map json) => - _$$MyUserInfoImplFromJson(json); - - @override - final LocalUserView localUserView; -// v0.18.0 - final List _follows; -// v0.18.0 - @override - List get follows { - if (_follows is EqualUnmodifiableListView) return _follows; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_follows); - } - -// v0.18.0 - final List _moderates; -// v0.18.0 - @override - List get moderates { - if (_moderates is EqualUnmodifiableListView) return _moderates; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_moderates); - } - -// v0.18.0 - final List _communityBlocks; -// v0.18.0 - @override - List get communityBlocks { - if (_communityBlocks is EqualUnmodifiableListView) return _communityBlocks; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_communityBlocks); - } - -// v0.18.0 - final List? _instanceBlocks; -// v0.18.0 - @override - List? get instanceBlocks { - final value = _instanceBlocks; - if (value == null) return null; - if (_instanceBlocks is EqualUnmodifiableListView) return _instanceBlocks; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - -// v0.19.0 (required) - final List _personBlocks; -// v0.19.0 (required) - @override - List get personBlocks { - if (_personBlocks is EqualUnmodifiableListView) return _personBlocks; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_personBlocks); - } - -// v0.18.0 - final List _discussionLanguages; -// v0.18.0 - @override - List get discussionLanguages { - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_discussionLanguages); - } - - @override - String toString() { - return 'MyUserInfo(localUserView: $localUserView, follows: $follows, moderates: $moderates, communityBlocks: $communityBlocks, instanceBlocks: $instanceBlocks, personBlocks: $personBlocks, discussionLanguages: $discussionLanguages)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MyUserInfoImpl && - (identical(other.localUserView, localUserView) || - other.localUserView == localUserView) && - const DeepCollectionEquality().equals(other._follows, _follows) && - const DeepCollectionEquality() - .equals(other._moderates, _moderates) && - const DeepCollectionEquality() - .equals(other._communityBlocks, _communityBlocks) && - const DeepCollectionEquality() - .equals(other._instanceBlocks, _instanceBlocks) && - const DeepCollectionEquality() - .equals(other._personBlocks, _personBlocks) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - localUserView, - const DeepCollectionEquality().hash(_follows), - const DeepCollectionEquality().hash(_moderates), - const DeepCollectionEquality().hash(_communityBlocks), - const DeepCollectionEquality().hash(_instanceBlocks), - const DeepCollectionEquality().hash(_personBlocks), - const DeepCollectionEquality().hash(_discussionLanguages)); - - /// Create a copy of MyUserInfo - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MyUserInfoImplCopyWith<_$MyUserInfoImpl> get copyWith => - __$$MyUserInfoImplCopyWithImpl<_$MyUserInfoImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MyUserInfoImplToJson( - this, - ); - } -} - -abstract class _MyUserInfo extends MyUserInfo { - const factory _MyUserInfo( - {required final LocalUserView localUserView, - required final List follows, - required final List moderates, - required final List communityBlocks, - final List? instanceBlocks, - required final List personBlocks, - required final List discussionLanguages}) = _$MyUserInfoImpl; - const _MyUserInfo._() : super._(); - - factory _MyUserInfo.fromJson(Map json) = - _$MyUserInfoImpl.fromJson; - - @override - LocalUserView get localUserView; // v0.18.0 - @override - List get follows; // v0.18.0 - @override - List get moderates; // v0.18.0 - @override - List get communityBlocks; // v0.18.0 - @override - List? get instanceBlocks; // v0.19.0 (required) - @override - List get personBlocks; // v0.18.0 - @override - List get discussionLanguages; - - /// Create a copy of MyUserInfo - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MyUserInfoImplCopyWith<_$MyUserInfoImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/my_user_info/my_user_info.g.dart b/lib/src/v3/models/my_user_info/my_user_info.g.dart deleted file mode 100644 index 1512d3e9..00000000 --- a/lib/src/v3/models/my_user_info/my_user_info.g.dart +++ /dev/null @@ -1,45 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'my_user_info.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$MyUserInfoImpl _$$MyUserInfoImplFromJson(Map json) => - _$MyUserInfoImpl( - localUserView: LocalUserView.fromJson( - json['local_user_view'] as Map), - follows: (json['follows'] as List) - .map((e) => CommunityFollowerView.fromJson(e as Map)) - .toList(), - moderates: (json['moderates'] as List) - .map( - (e) => CommunityModeratorView.fromJson(e as Map)) - .toList(), - communityBlocks: (json['community_blocks'] as List) - .map((e) => CommunityBlockView.fromJson(e as Map)) - .toList(), - instanceBlocks: (json['instance_blocks'] as List?) - ?.map((e) => InstanceBlockView.fromJson(e as Map)) - .toList(), - personBlocks: (json['person_blocks'] as List) - .map((e) => PersonBlockView.fromJson(e as Map)) - .toList(), - discussionLanguages: (json['discussion_languages'] as List) - .map((e) => (e as num).toInt()) - .toList(), - ); - -Map _$$MyUserInfoImplToJson(_$MyUserInfoImpl instance) => - { - 'local_user_view': instance.localUserView.toJson(), - 'follows': instance.follows.map((e) => e.toJson()).toList(), - 'moderates': instance.moderates.map((e) => e.toJson()).toList(), - 'community_blocks': - instance.communityBlocks.map((e) => e.toJson()).toList(), - 'instance_blocks': - instance.instanceBlocks?.map((e) => e.toJson()).toList(), - 'person_blocks': instance.personBlocks.map((e) => e.toJson()).toList(), - 'discussion_languages': instance.discussionLanguages, - }; diff --git a/lib/src/v3/models/person/person.dart b/lib/src/v3/models/person/person.dart deleted file mode 100644 index b83cb687..00000000 --- a/lib/src/v3/models/person/person.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'person.freezed.dart'; -part 'person.g.dart'; - -@freezed -class Person with _$Person { - @modelSerde - const factory Person({ - required int id, // v0.18.0 - required String name, // v0.18.0 - String? displayName, // v0.18.0 - String? avatar, // v0.18.0 - required bool banned, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - required String actorId, // v0.18.0 - String? bio, // v0.18.0 - required bool local, // v0.18.0 - String? banner, // v0.18.0 - required bool deleted, // v0.18.0 - @deprecated String? inboxUrl, // v0.18.1 [deprecated in v0.19.0] - String? matrixUserId, // v0.18.0 - @deprecated bool? admin, // v0.18.0 [deprecated in v0.19.0] - required bool botAccount, // v0.18.0 - String? banExpires, // v0.18.0 - required int instanceId, // v0.18.0 - }) = _Person; - - const Person._(); - factory Person.fromJson(Map json) => _$PersonFromJson(json); -} diff --git a/lib/src/v3/models/person/person.freezed.dart b/lib/src/v3/models/person/person.freezed.dart deleted file mode 100644 index 5443e88b..00000000 --- a/lib/src/v3/models/person/person.freezed.dart +++ /dev/null @@ -1,558 +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 'person.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'); - -Person _$PersonFromJson(Map json) { - return _Person.fromJson(json); -} - -/// @nodoc -mixin _$Person { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get name => throw _privateConstructorUsedError; // v0.18.0 - String? get displayName => throw _privateConstructorUsedError; // v0.18.0 - String? get avatar => throw _privateConstructorUsedError; // v0.18.0 - bool get banned => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - String get actorId => throw _privateConstructorUsedError; // v0.18.0 - String? get bio => throw _privateConstructorUsedError; // v0.18.0 - bool get local => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get inboxUrl => - throw _privateConstructorUsedError; // v0.18.1 [deprecated in v0.19.0] - String? get matrixUserId => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - bool? get admin => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - bool get botAccount => throw _privateConstructorUsedError; // v0.18.0 - String? get banExpires => throw _privateConstructorUsedError; // v0.18.0 - int get instanceId => throw _privateConstructorUsedError; - - /// Serializes this Person to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Person - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonCopyWith<$Res> { - factory $PersonCopyWith(Person value, $Res Function(Person) then) = - _$PersonCopyWithImpl<$Res, Person>; - @useResult - $Res call( - {int id, - String name, - String? displayName, - String? avatar, - bool banned, - DateTime published, - DateTime? updated, - String actorId, - String? bio, - bool local, - String? banner, - bool deleted, - @deprecated String? inboxUrl, - String? matrixUserId, - @deprecated bool? admin, - bool botAccount, - String? banExpires, - int instanceId}); -} - -/// @nodoc -class _$PersonCopyWithImpl<$Res, $Val extends Person> - implements $PersonCopyWith<$Res> { - _$PersonCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Person - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? displayName = freezed, - Object? avatar = freezed, - Object? banned = null, - Object? published = null, - Object? updated = freezed, - Object? actorId = null, - Object? bio = freezed, - Object? local = null, - Object? banner = freezed, - Object? deleted = null, - Object? inboxUrl = freezed, - Object? matrixUserId = freezed, - Object? admin = freezed, - Object? botAccount = null, - Object? banExpires = freezed, - Object? instanceId = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - avatar: freezed == avatar - ? _value.avatar - : avatar // ignore: cast_nullable_to_non_nullable - as String?, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - actorId: null == actorId - ? _value.actorId - : actorId // ignore: cast_nullable_to_non_nullable - as String, - bio: freezed == bio - ? _value.bio - : bio // ignore: cast_nullable_to_non_nullable - as String?, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - inboxUrl: freezed == inboxUrl - ? _value.inboxUrl - : inboxUrl // ignore: cast_nullable_to_non_nullable - as String?, - matrixUserId: freezed == matrixUserId - ? _value.matrixUserId - : matrixUserId // ignore: cast_nullable_to_non_nullable - as String?, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as bool?, - botAccount: null == botAccount - ? _value.botAccount - : botAccount // ignore: cast_nullable_to_non_nullable - as bool, - banExpires: freezed == banExpires - ? _value.banExpires - : banExpires // ignore: cast_nullable_to_non_nullable - as String?, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PersonImplCopyWith<$Res> implements $PersonCopyWith<$Res> { - factory _$$PersonImplCopyWith( - _$PersonImpl value, $Res Function(_$PersonImpl) then) = - __$$PersonImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String name, - String? displayName, - String? avatar, - bool banned, - DateTime published, - DateTime? updated, - String actorId, - String? bio, - bool local, - String? banner, - bool deleted, - @deprecated String? inboxUrl, - String? matrixUserId, - @deprecated bool? admin, - bool botAccount, - String? banExpires, - int instanceId}); -} - -/// @nodoc -class __$$PersonImplCopyWithImpl<$Res> - extends _$PersonCopyWithImpl<$Res, _$PersonImpl> - implements _$$PersonImplCopyWith<$Res> { - __$$PersonImplCopyWithImpl( - _$PersonImpl _value, $Res Function(_$PersonImpl) _then) - : super(_value, _then); - - /// Create a copy of Person - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? displayName = freezed, - Object? avatar = freezed, - Object? banned = null, - Object? published = null, - Object? updated = freezed, - Object? actorId = null, - Object? bio = freezed, - Object? local = null, - Object? banner = freezed, - Object? deleted = null, - Object? inboxUrl = freezed, - Object? matrixUserId = freezed, - Object? admin = freezed, - Object? botAccount = null, - Object? banExpires = freezed, - Object? instanceId = null, - }) { - return _then(_$PersonImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - avatar: freezed == avatar - ? _value.avatar - : avatar // ignore: cast_nullable_to_non_nullable - as String?, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - actorId: null == actorId - ? _value.actorId - : actorId // ignore: cast_nullable_to_non_nullable - as String, - bio: freezed == bio - ? _value.bio - : bio // ignore: cast_nullable_to_non_nullable - as String?, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - inboxUrl: freezed == inboxUrl - ? _value.inboxUrl - : inboxUrl // ignore: cast_nullable_to_non_nullable - as String?, - matrixUserId: freezed == matrixUserId - ? _value.matrixUserId - : matrixUserId // ignore: cast_nullable_to_non_nullable - as String?, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as bool?, - botAccount: null == botAccount - ? _value.botAccount - : botAccount // ignore: cast_nullable_to_non_nullable - as bool, - banExpires: freezed == banExpires - ? _value.banExpires - : banExpires // ignore: cast_nullable_to_non_nullable - as String?, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonImpl extends _Person { - const _$PersonImpl( - {required this.id, - required this.name, - this.displayName, - this.avatar, - required this.banned, - required this.published, - this.updated, - required this.actorId, - this.bio, - required this.local, - this.banner, - required this.deleted, - @deprecated this.inboxUrl, - this.matrixUserId, - @deprecated this.admin, - required this.botAccount, - this.banExpires, - required this.instanceId}) - : super._(); - - factory _$PersonImpl.fromJson(Map json) => - _$$PersonImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String name; -// v0.18.0 - @override - final String? displayName; -// v0.18.0 - @override - final String? avatar; -// v0.18.0 - @override - final bool banned; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final String actorId; -// v0.18.0 - @override - final String? bio; -// v0.18.0 - @override - final bool local; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - @deprecated - final String? inboxUrl; -// v0.18.1 [deprecated in v0.19.0] - @override - final String? matrixUserId; -// v0.18.0 - @override - @deprecated - final bool? admin; -// v0.18.0 [deprecated in v0.19.0] - @override - final bool botAccount; -// v0.18.0 - @override - final String? banExpires; -// v0.18.0 - @override - final int instanceId; - - @override - String toString() { - return 'Person(id: $id, name: $name, displayName: $displayName, avatar: $avatar, banned: $banned, published: $published, updated: $updated, actorId: $actorId, bio: $bio, local: $local, banner: $banner, deleted: $deleted, inboxUrl: $inboxUrl, matrixUserId: $matrixUserId, admin: $admin, botAccount: $botAccount, banExpires: $banExpires, instanceId: $instanceId)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.displayName, displayName) || - other.displayName == displayName) && - (identical(other.avatar, avatar) || other.avatar == avatar) && - (identical(other.banned, banned) || other.banned == banned) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.actorId, actorId) || other.actorId == actorId) && - (identical(other.bio, bio) || other.bio == bio) && - (identical(other.local, local) || other.local == local) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.inboxUrl, inboxUrl) || - other.inboxUrl == inboxUrl) && - (identical(other.matrixUserId, matrixUserId) || - other.matrixUserId == matrixUserId) && - (identical(other.admin, admin) || other.admin == admin) && - (identical(other.botAccount, botAccount) || - other.botAccount == botAccount) && - (identical(other.banExpires, banExpires) || - other.banExpires == banExpires) && - (identical(other.instanceId, instanceId) || - other.instanceId == instanceId)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - name, - displayName, - avatar, - banned, - published, - updated, - actorId, - bio, - local, - banner, - deleted, - inboxUrl, - matrixUserId, - admin, - botAccount, - banExpires, - instanceId); - - /// Create a copy of Person - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonImplCopyWith<_$PersonImpl> get copyWith => - __$$PersonImplCopyWithImpl<_$PersonImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PersonImplToJson( - this, - ); - } -} - -abstract class _Person extends Person { - const factory _Person( - {required final int id, - required final String name, - final String? displayName, - final String? avatar, - required final bool banned, - required final DateTime published, - final DateTime? updated, - required final String actorId, - final String? bio, - required final bool local, - final String? banner, - required final bool deleted, - @deprecated final String? inboxUrl, - final String? matrixUserId, - @deprecated final bool? admin, - required final bool botAccount, - final String? banExpires, - required final int instanceId}) = _$PersonImpl; - const _Person._() : super._(); - - factory _Person.fromJson(Map json) = _$PersonImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get name; // v0.18.0 - @override - String? get displayName; // v0.18.0 - @override - String? get avatar; // v0.18.0 - @override - bool get banned; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - String get actorId; // v0.18.0 - @override - String? get bio; // v0.18.0 - @override - bool get local; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - @deprecated - String? get inboxUrl; // v0.18.1 [deprecated in v0.19.0] - @override - String? get matrixUserId; // v0.18.0 - @override - @deprecated - bool? get admin; // v0.18.0 [deprecated in v0.19.0] - @override - bool get botAccount; // v0.18.0 - @override - String? get banExpires; // v0.18.0 - @override - int get instanceId; - - /// Create a copy of Person - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonImplCopyWith<_$PersonImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/person/person.g.dart b/lib/src/v3/models/person/person.g.dart deleted file mode 100644 index 8d9abb8b..00000000 --- a/lib/src/v3/models/person/person.g.dart +++ /dev/null @@ -1,64 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonImpl _$$PersonImplFromJson(Map json) => _$PersonImpl( - id: (json['id'] as num).toInt(), - name: json['name'] as String, - displayName: json['display_name'] as String?, - avatar: json['avatar'] as String?, - banned: json['banned'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - actorId: json['actor_id'] as String, - bio: json['bio'] as String?, - local: json['local'] as bool, - banner: json['banner'] as String?, - deleted: json['deleted'] as bool, - inboxUrl: json['inbox_url'] as String?, - matrixUserId: json['matrix_user_id'] as String?, - admin: json['admin'] as bool?, - botAccount: json['bot_account'] as bool, - banExpires: json['ban_expires'] as String?, - instanceId: (json['instance_id'] as num).toInt(), - ); - -Map _$$PersonImplToJson(_$PersonImpl instance) => - { - 'id': instance.id, - 'name': instance.name, - 'display_name': instance.displayName, - 'avatar': instance.avatar, - 'banned': instance.banned, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'actor_id': instance.actorId, - 'bio': instance.bio, - 'local': instance.local, - 'banner': instance.banner, - 'deleted': instance.deleted, - 'inbox_url': instance.inboxUrl, - 'matrix_user_id': instance.matrixUserId, - 'admin': instance.admin, - 'bot_account': instance.botAccount, - 'ban_expires': instance.banExpires, - 'instance_id': instance.instanceId, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/person/person_aggregates.dart b/lib/src/v3/models/person/person_aggregates.dart deleted file mode 100644 index 78676f27..00000000 --- a/lib/src/v3/models/person/person_aggregates.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'person_aggregates.freezed.dart'; -part 'person_aggregates.g.dart'; - -@freezed -class PersonAggregates with _$PersonAggregates { - @modelSerde - const factory PersonAggregates({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int personId, // v0.18.0 - required int postCount, // v0.18.0 - @deprecated int? postScore, // v0.18.0 [deprecated in v0.19.0] - required int commentCount, // v0.18.0 - @deprecated int? commentScore, // v0.18.0 [deprecated in v0.19.0] - }) = _PersonAggregates; - - const PersonAggregates._(); - factory PersonAggregates.fromJson(Map json) => - _$PersonAggregatesFromJson(json); -} diff --git a/lib/src/v3/models/person/person_aggregates.freezed.dart b/lib/src/v3/models/person/person_aggregates.freezed.dart deleted file mode 100644 index 13183deb..00000000 --- a/lib/src/v3/models/person/person_aggregates.freezed.dart +++ /dev/null @@ -1,294 +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 'person_aggregates.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'); - -PersonAggregates _$PersonAggregatesFromJson(Map json) { - return _PersonAggregates.fromJson(json); -} - -/// @nodoc -mixin _$PersonAggregates { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get personId => throw _privateConstructorUsedError; // v0.18.0 - int get postCount => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get postScore => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get commentCount => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get commentScore => throw _privateConstructorUsedError; - - /// Serializes this PersonAggregates to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PersonAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonAggregatesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonAggregatesCopyWith<$Res> { - factory $PersonAggregatesCopyWith( - PersonAggregates value, $Res Function(PersonAggregates) then) = - _$PersonAggregatesCopyWithImpl<$Res, PersonAggregates>; - @useResult - $Res call( - {@deprecated int? id, - int personId, - int postCount, - @deprecated int? postScore, - int commentCount, - @deprecated int? commentScore}); -} - -/// @nodoc -class _$PersonAggregatesCopyWithImpl<$Res, $Val extends PersonAggregates> - implements $PersonAggregatesCopyWith<$Res> { - _$PersonAggregatesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PersonAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? personId = null, - Object? postCount = null, - Object? postScore = freezed, - Object? commentCount = null, - Object? commentScore = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - postCount: null == postCount - ? _value.postCount - : postCount // ignore: cast_nullable_to_non_nullable - as int, - postScore: freezed == postScore - ? _value.postScore - : postScore // ignore: cast_nullable_to_non_nullable - as int?, - commentCount: null == commentCount - ? _value.commentCount - : commentCount // ignore: cast_nullable_to_non_nullable - as int, - commentScore: freezed == commentScore - ? _value.commentScore - : commentScore // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PersonAggregatesImplCopyWith<$Res> - implements $PersonAggregatesCopyWith<$Res> { - factory _$$PersonAggregatesImplCopyWith(_$PersonAggregatesImpl value, - $Res Function(_$PersonAggregatesImpl) then) = - __$$PersonAggregatesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? id, - int personId, - int postCount, - @deprecated int? postScore, - int commentCount, - @deprecated int? commentScore}); -} - -/// @nodoc -class __$$PersonAggregatesImplCopyWithImpl<$Res> - extends _$PersonAggregatesCopyWithImpl<$Res, _$PersonAggregatesImpl> - implements _$$PersonAggregatesImplCopyWith<$Res> { - __$$PersonAggregatesImplCopyWithImpl(_$PersonAggregatesImpl _value, - $Res Function(_$PersonAggregatesImpl) _then) - : super(_value, _then); - - /// Create a copy of PersonAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? personId = null, - Object? postCount = null, - Object? postScore = freezed, - Object? commentCount = null, - Object? commentScore = freezed, - }) { - return _then(_$PersonAggregatesImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - personId: null == personId - ? _value.personId - : personId // ignore: cast_nullable_to_non_nullable - as int, - postCount: null == postCount - ? _value.postCount - : postCount // ignore: cast_nullable_to_non_nullable - as int, - postScore: freezed == postScore - ? _value.postScore - : postScore // ignore: cast_nullable_to_non_nullable - as int?, - commentCount: null == commentCount - ? _value.commentCount - : commentCount // ignore: cast_nullable_to_non_nullable - as int, - commentScore: freezed == commentScore - ? _value.commentScore - : commentScore // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonAggregatesImpl extends _PersonAggregates { - const _$PersonAggregatesImpl( - {@deprecated this.id, - required this.personId, - required this.postCount, - @deprecated this.postScore, - required this.commentCount, - @deprecated this.commentScore}) - : super._(); - - factory _$PersonAggregatesImpl.fromJson(Map json) => - _$$PersonAggregatesImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int personId; -// v0.18.0 - @override - final int postCount; -// v0.18.0 - @override - @deprecated - final int? postScore; -// v0.18.0 [deprecated in v0.19.0] - @override - final int commentCount; -// v0.18.0 - @override - @deprecated - final int? commentScore; - - @override - String toString() { - return 'PersonAggregates(id: $id, personId: $personId, postCount: $postCount, postScore: $postScore, commentCount: $commentCount, commentScore: $commentScore)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonAggregatesImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.personId, personId) || - other.personId == personId) && - (identical(other.postCount, postCount) || - other.postCount == postCount) && - (identical(other.postScore, postScore) || - other.postScore == postScore) && - (identical(other.commentCount, commentCount) || - other.commentCount == commentCount) && - (identical(other.commentScore, commentScore) || - other.commentScore == commentScore)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, personId, postCount, - postScore, commentCount, commentScore); - - /// Create a copy of PersonAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonAggregatesImplCopyWith<_$PersonAggregatesImpl> get copyWith => - __$$PersonAggregatesImplCopyWithImpl<_$PersonAggregatesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PersonAggregatesImplToJson( - this, - ); - } -} - -abstract class _PersonAggregates extends PersonAggregates { - const factory _PersonAggregates( - {@deprecated final int? id, - required final int personId, - required final int postCount, - @deprecated final int? postScore, - required final int commentCount, - @deprecated final int? commentScore}) = _$PersonAggregatesImpl; - const _PersonAggregates._() : super._(); - - factory _PersonAggregates.fromJson(Map json) = - _$PersonAggregatesImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get personId; // v0.18.0 - @override - int get postCount; // v0.18.0 - @override - @deprecated - int? get postScore; // v0.18.0 [deprecated in v0.19.0] - @override - int get commentCount; // v0.18.0 - @override - @deprecated - int? get commentScore; - - /// Create a copy of PersonAggregates - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonAggregatesImplCopyWith<_$PersonAggregatesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/person/person_aggregates.g.dart b/lib/src/v3/models/person/person_aggregates.g.dart deleted file mode 100644 index 6ed5167b..00000000 --- a/lib/src/v3/models/person/person_aggregates.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person_aggregates.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonAggregatesImpl _$$PersonAggregatesImplFromJson( - Map json) => - _$PersonAggregatesImpl( - id: (json['id'] as num?)?.toInt(), - personId: (json['person_id'] as num).toInt(), - postCount: (json['post_count'] as num).toInt(), - postScore: (json['post_score'] as num?)?.toInt(), - commentCount: (json['comment_count'] as num).toInt(), - commentScore: (json['comment_score'] as num?)?.toInt(), - ); - -Map _$$PersonAggregatesImplToJson( - _$PersonAggregatesImpl instance) => - { - 'id': instance.id, - 'person_id': instance.personId, - 'post_count': instance.postCount, - 'post_score': instance.postScore, - 'comment_count': instance.commentCount, - 'comment_score': instance.commentScore, - }; diff --git a/lib/src/v3/models/person/person_mention.dart b/lib/src/v3/models/person/person_mention.dart deleted file mode 100644 index ffa4f7db..00000000 --- a/lib/src/v3/models/person/person_mention.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'person_mention.freezed.dart'; -part 'person_mention.g.dart'; - -@freezed -class PersonMention with _$PersonMention { - @modelSerde - const factory PersonMention({ - required int id, // v0.18.0 - required int recipientId, // v0.18.0 - required int commentId, // v0.18.0 - required bool read, // v0.18.0 - required DateTime published, // v0.18.0 - }) = _PersonMention; - - const PersonMention._(); - factory PersonMention.fromJson(Map json) => - _$PersonMentionFromJson(json); -} diff --git a/lib/src/v3/models/person/person_mention.freezed.dart b/lib/src/v3/models/person/person_mention.freezed.dart deleted file mode 100644 index 9441dd1b..00000000 --- a/lib/src/v3/models/person/person_mention.freezed.dart +++ /dev/null @@ -1,251 +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 'person_mention.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'); - -PersonMention _$PersonMentionFromJson(Map json) { - return _PersonMention.fromJson(json); -} - -/// @nodoc -mixin _$PersonMention { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get recipientId => throw _privateConstructorUsedError; // v0.18.0 - int get commentId => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; - - /// Serializes this PersonMention to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PersonMention - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonMentionCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonMentionCopyWith<$Res> { - factory $PersonMentionCopyWith( - PersonMention value, $Res Function(PersonMention) then) = - _$PersonMentionCopyWithImpl<$Res, PersonMention>; - @useResult - $Res call( - {int id, int recipientId, int commentId, bool read, DateTime published}); -} - -/// @nodoc -class _$PersonMentionCopyWithImpl<$Res, $Val extends PersonMention> - implements $PersonMentionCopyWith<$Res> { - _$PersonMentionCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PersonMention - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? recipientId = null, - Object? commentId = null, - Object? read = null, - Object? published = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PersonMentionImplCopyWith<$Res> - implements $PersonMentionCopyWith<$Res> { - factory _$$PersonMentionImplCopyWith( - _$PersonMentionImpl value, $Res Function(_$PersonMentionImpl) then) = - __$$PersonMentionImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, int recipientId, int commentId, bool read, DateTime published}); -} - -/// @nodoc -class __$$PersonMentionImplCopyWithImpl<$Res> - extends _$PersonMentionCopyWithImpl<$Res, _$PersonMentionImpl> - implements _$$PersonMentionImplCopyWith<$Res> { - __$$PersonMentionImplCopyWithImpl( - _$PersonMentionImpl _value, $Res Function(_$PersonMentionImpl) _then) - : super(_value, _then); - - /// Create a copy of PersonMention - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? recipientId = null, - Object? commentId = null, - Object? read = null, - Object? published = null, - }) { - return _then(_$PersonMentionImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - commentId: null == commentId - ? _value.commentId - : commentId // ignore: cast_nullable_to_non_nullable - as int, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonMentionImpl extends _PersonMention { - const _$PersonMentionImpl( - {required this.id, - required this.recipientId, - required this.commentId, - required this.read, - required this.published}) - : super._(); - - factory _$PersonMentionImpl.fromJson(Map json) => - _$$PersonMentionImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int recipientId; -// v0.18.0 - @override - final int commentId; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final DateTime published; - - @override - String toString() { - return 'PersonMention(id: $id, recipientId: $recipientId, commentId: $commentId, read: $read, published: $published)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonMentionImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.recipientId, recipientId) || - other.recipientId == recipientId) && - (identical(other.commentId, commentId) || - other.commentId == commentId) && - (identical(other.read, read) || other.read == read) && - (identical(other.published, published) || - other.published == published)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, recipientId, commentId, read, published); - - /// Create a copy of PersonMention - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonMentionImplCopyWith<_$PersonMentionImpl> get copyWith => - __$$PersonMentionImplCopyWithImpl<_$PersonMentionImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PersonMentionImplToJson( - this, - ); - } -} - -abstract class _PersonMention extends PersonMention { - const factory _PersonMention( - {required final int id, - required final int recipientId, - required final int commentId, - required final bool read, - required final DateTime published}) = _$PersonMentionImpl; - const _PersonMention._() : super._(); - - factory _PersonMention.fromJson(Map json) = - _$PersonMentionImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get recipientId; // v0.18.0 - @override - int get commentId; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - DateTime get published; - - /// Create a copy of PersonMention - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonMentionImplCopyWith<_$PersonMentionImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/person/person_mention.g.dart b/lib/src/v3/models/person/person_mention.g.dart deleted file mode 100644 index 889b6ace..00000000 --- a/lib/src/v3/models/person/person_mention.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person_mention.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonMentionImpl _$$PersonMentionImplFromJson(Map json) => - _$PersonMentionImpl( - id: (json['id'] as num).toInt(), - recipientId: (json['recipient_id'] as num).toInt(), - commentId: (json['comment_id'] as num).toInt(), - read: json['read'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - ); - -Map _$$PersonMentionImplToJson(_$PersonMentionImpl instance) => - { - 'id': instance.id, - 'recipient_id': instance.recipientId, - 'comment_id': instance.commentId, - 'read': instance.read, - 'published': const ForceUtcDateTime().toJson(instance.published), - }; diff --git a/lib/src/v3/models/post/get_post_response.dart b/lib/src/v3/models/post/get_post_response.dart deleted file mode 100644 index e067208d..00000000 --- a/lib/src/v3/models/post/get_post_response.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'get_post_response.freezed.dart'; -part 'get_post_response.g.dart'; - -@freezed -class GetPostResponse with _$GetPostResponse { - @modelSerde - const factory GetPostResponse({ - required PostView postView, // v0.18.0 - required CommunityView communityView, // v0.18.0 - required List moderators, // v0.18.0 - required List crossPosts, // v0.18.0 - }) = _GetPostResponse; - - const GetPostResponse._(); - factory GetPostResponse.fromJson(Map json) => - _$GetPostResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/get_post_response.freezed.dart b/lib/src/v3/models/post/get_post_response.freezed.dart deleted file mode 100644 index 9cbe3d60..00000000 --- a/lib/src/v3/models/post/get_post_response.freezed.dart +++ /dev/null @@ -1,289 +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 'get_post_response.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'); - -GetPostResponse _$GetPostResponseFromJson(Map json) { - return _GetPostResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetPostResponse { - PostView get postView => throw _privateConstructorUsedError; // v0.18.0 - CommunityView get communityView => - throw _privateConstructorUsedError; // v0.18.0 - List get moderators => - throw _privateConstructorUsedError; // v0.18.0 - List get crossPosts => throw _privateConstructorUsedError; - - /// Serializes this GetPostResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPostResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPostResponseCopyWith<$Res> { - factory $GetPostResponseCopyWith( - GetPostResponse value, $Res Function(GetPostResponse) then) = - _$GetPostResponseCopyWithImpl<$Res, GetPostResponse>; - @useResult - $Res call( - {PostView postView, - CommunityView communityView, - List moderators, - List crossPosts}); - - $PostViewCopyWith<$Res> get postView; - $CommunityViewCopyWith<$Res> get communityView; -} - -/// @nodoc -class _$GetPostResponseCopyWithImpl<$Res, $Val extends GetPostResponse> - implements $GetPostResponseCopyWith<$Res> { - _$GetPostResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postView = null, - Object? communityView = null, - Object? moderators = null, - Object? crossPosts = null, - }) { - return _then(_value.copyWith( - postView: null == postView - ? _value.postView - : postView // ignore: cast_nullable_to_non_nullable - as PostView, - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - moderators: null == moderators - ? _value.moderators - : moderators // ignore: cast_nullable_to_non_nullable - as List, - crossPosts: null == crossPosts - ? _value.crossPosts - : crossPosts // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostViewCopyWith<$Res> get postView { - return $PostViewCopyWith<$Res>(_value.postView, (value) { - return _then(_value.copyWith(postView: value) as $Val); - }); - } - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityViewCopyWith<$Res> get communityView { - return $CommunityViewCopyWith<$Res>(_value.communityView, (value) { - return _then(_value.copyWith(communityView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetPostResponseImplCopyWith<$Res> - implements $GetPostResponseCopyWith<$Res> { - factory _$$GetPostResponseImplCopyWith(_$GetPostResponseImpl value, - $Res Function(_$GetPostResponseImpl) then) = - __$$GetPostResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {PostView postView, - CommunityView communityView, - List moderators, - List crossPosts}); - - @override - $PostViewCopyWith<$Res> get postView; - @override - $CommunityViewCopyWith<$Res> get communityView; -} - -/// @nodoc -class __$$GetPostResponseImplCopyWithImpl<$Res> - extends _$GetPostResponseCopyWithImpl<$Res, _$GetPostResponseImpl> - implements _$$GetPostResponseImplCopyWith<$Res> { - __$$GetPostResponseImplCopyWithImpl( - _$GetPostResponseImpl _value, $Res Function(_$GetPostResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postView = null, - Object? communityView = null, - Object? moderators = null, - Object? crossPosts = null, - }) { - return _then(_$GetPostResponseImpl( - postView: null == postView - ? _value.postView - : postView // ignore: cast_nullable_to_non_nullable - as PostView, - communityView: null == communityView - ? _value.communityView - : communityView // ignore: cast_nullable_to_non_nullable - as CommunityView, - moderators: null == moderators - ? _value._moderators - : moderators // ignore: cast_nullable_to_non_nullable - as List, - crossPosts: null == crossPosts - ? _value._crossPosts - : crossPosts // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetPostResponseImpl extends _GetPostResponse { - const _$GetPostResponseImpl( - {required this.postView, - required this.communityView, - required final List moderators, - required final List crossPosts}) - : _moderators = moderators, - _crossPosts = crossPosts, - super._(); - - factory _$GetPostResponseImpl.fromJson(Map json) => - _$$GetPostResponseImplFromJson(json); - - @override - final PostView postView; -// v0.18.0 - @override - final CommunityView communityView; -// v0.18.0 - final List _moderators; -// v0.18.0 - @override - List get moderators { - if (_moderators is EqualUnmodifiableListView) return _moderators; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_moderators); - } - -// v0.18.0 - final List _crossPosts; -// v0.18.0 - @override - List get crossPosts { - if (_crossPosts is EqualUnmodifiableListView) return _crossPosts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_crossPosts); - } - - @override - String toString() { - return 'GetPostResponse(postView: $postView, communityView: $communityView, moderators: $moderators, crossPosts: $crossPosts)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPostResponseImpl && - (identical(other.postView, postView) || - other.postView == postView) && - (identical(other.communityView, communityView) || - other.communityView == communityView) && - const DeepCollectionEquality() - .equals(other._moderators, _moderators) && - const DeepCollectionEquality() - .equals(other._crossPosts, _crossPosts)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - postView, - communityView, - const DeepCollectionEquality().hash(_moderators), - const DeepCollectionEquality().hash(_crossPosts)); - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPostResponseImplCopyWith<_$GetPostResponseImpl> get copyWith => - __$$GetPostResponseImplCopyWithImpl<_$GetPostResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetPostResponseImplToJson( - this, - ); - } -} - -abstract class _GetPostResponse extends GetPostResponse { - const factory _GetPostResponse( - {required final PostView postView, - required final CommunityView communityView, - required final List moderators, - required final List crossPosts}) = _$GetPostResponseImpl; - const _GetPostResponse._() : super._(); - - factory _GetPostResponse.fromJson(Map json) = - _$GetPostResponseImpl.fromJson; - - @override - PostView get postView; // v0.18.0 - @override - CommunityView get communityView; // v0.18.0 - @override - List get moderators; // v0.18.0 - @override - List get crossPosts; - - /// Create a copy of GetPostResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPostResponseImplCopyWith<_$GetPostResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/get_post_response.g.dart b/lib/src/v3/models/post/get_post_response.g.dart deleted file mode 100644 index 069d169b..00000000 --- a/lib/src/v3/models/post/get_post_response.g.dart +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_post_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetPostResponseImpl _$$GetPostResponseImplFromJson( - Map json) => - _$GetPostResponseImpl( - postView: PostView.fromJson(json['post_view'] as Map), - communityView: CommunityView.fromJson( - json['community_view'] as Map), - moderators: (json['moderators'] as List) - .map( - (e) => CommunityModeratorView.fromJson(e as Map)) - .toList(), - crossPosts: (json['cross_posts'] as List) - .map((e) => PostView.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetPostResponseImplToJson( - _$GetPostResponseImpl instance) => - { - 'post_view': instance.postView.toJson(), - 'community_view': instance.communityView.toJson(), - 'moderators': instance.moderators.map((e) => e.toJson()).toList(), - 'cross_posts': instance.crossPosts.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/post/get_posts_response.dart b/lib/src/v3/models/post/get_posts_response.dart deleted file mode 100644 index 5a01f217..00000000 --- a/lib/src/v3/models/post/get_posts_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'get_posts_response.freezed.dart'; -part 'get_posts_response.g.dart'; - -@freezed -class GetPostsResponse with _$GetPostsResponse { - @modelSerde - const factory GetPostsResponse({ - required List posts, // v0.18.0 - String? nextPage, // v0.19.0 (optional) - }) = _GetPostsResponse; - - const GetPostsResponse._(); - factory GetPostsResponse.fromJson(Map json) => - _$GetPostsResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/get_posts_response.freezed.dart b/lib/src/v3/models/post/get_posts_response.freezed.dart deleted file mode 100644 index e330f37a..00000000 --- a/lib/src/v3/models/post/get_posts_response.freezed.dart +++ /dev/null @@ -1,197 +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 'get_posts_response.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'); - -GetPostsResponse _$GetPostsResponseFromJson(Map json) { - return _GetPostsResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetPostsResponse { - List get posts => throw _privateConstructorUsedError; // v0.18.0 - String? get nextPage => throw _privateConstructorUsedError; - - /// Serializes this GetPostsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPostsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPostsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPostsResponseCopyWith<$Res> { - factory $GetPostsResponseCopyWith( - GetPostsResponse value, $Res Function(GetPostsResponse) then) = - _$GetPostsResponseCopyWithImpl<$Res, GetPostsResponse>; - @useResult - $Res call({List posts, String? nextPage}); -} - -/// @nodoc -class _$GetPostsResponseCopyWithImpl<$Res, $Val extends GetPostsResponse> - implements $GetPostsResponseCopyWith<$Res> { - _$GetPostsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPostsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? posts = null, - Object? nextPage = freezed, - }) { - return _then(_value.copyWith( - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as List, - nextPage: freezed == nextPage - ? _value.nextPage - : nextPage // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPostsResponseImplCopyWith<$Res> - implements $GetPostsResponseCopyWith<$Res> { - factory _$$GetPostsResponseImplCopyWith(_$GetPostsResponseImpl value, - $Res Function(_$GetPostsResponseImpl) then) = - __$$GetPostsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List posts, String? nextPage}); -} - -/// @nodoc -class __$$GetPostsResponseImplCopyWithImpl<$Res> - extends _$GetPostsResponseCopyWithImpl<$Res, _$GetPostsResponseImpl> - implements _$$GetPostsResponseImplCopyWith<$Res> { - __$$GetPostsResponseImplCopyWithImpl(_$GetPostsResponseImpl _value, - $Res Function(_$GetPostsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPostsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? posts = null, - Object? nextPage = freezed, - }) { - return _then(_$GetPostsResponseImpl( - posts: null == posts - ? _value._posts - : posts // ignore: cast_nullable_to_non_nullable - as List, - nextPage: freezed == nextPage - ? _value.nextPage - : nextPage // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetPostsResponseImpl extends _GetPostsResponse { - const _$GetPostsResponseImpl( - {required final List posts, this.nextPage}) - : _posts = posts, - super._(); - - factory _$GetPostsResponseImpl.fromJson(Map json) => - _$$GetPostsResponseImplFromJson(json); - - final List _posts; - @override - List get posts { - if (_posts is EqualUnmodifiableListView) return _posts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_posts); - } - -// v0.18.0 - @override - final String? nextPage; - - @override - String toString() { - return 'GetPostsResponse(posts: $posts, nextPage: $nextPage)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPostsResponseImpl && - const DeepCollectionEquality().equals(other._posts, _posts) && - (identical(other.nextPage, nextPage) || - other.nextPage == nextPage)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_posts), nextPage); - - /// Create a copy of GetPostsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPostsResponseImplCopyWith<_$GetPostsResponseImpl> get copyWith => - __$$GetPostsResponseImplCopyWithImpl<_$GetPostsResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetPostsResponseImplToJson( - this, - ); - } -} - -abstract class _GetPostsResponse extends GetPostsResponse { - const factory _GetPostsResponse( - {required final List posts, - final String? nextPage}) = _$GetPostsResponseImpl; - const _GetPostsResponse._() : super._(); - - factory _GetPostsResponse.fromJson(Map json) = - _$GetPostsResponseImpl.fromJson; - - @override - List get posts; // v0.18.0 - @override - String? get nextPage; - - /// Create a copy of GetPostsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPostsResponseImplCopyWith<_$GetPostsResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/get_posts_response.g.dart b/lib/src/v3/models/post/get_posts_response.g.dart deleted file mode 100644 index fcbb5219..00000000 --- a/lib/src/v3/models/post/get_posts_response.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_posts_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetPostsResponseImpl _$$GetPostsResponseImplFromJson( - Map json) => - _$GetPostsResponseImpl( - posts: (json['posts'] as List) - .map((e) => PostView.fromJson(e as Map)) - .toList(), - nextPage: json['next_page'] as String?, - ); - -Map _$$GetPostsResponseImplToJson( - _$GetPostsResponseImpl instance) => - { - 'posts': instance.posts.map((e) => e.toJson()).toList(), - 'next_page': instance.nextPage, - }; diff --git a/lib/src/v3/models/post/get_site_metadata_response.dart b/lib/src/v3/models/post/get_site_metadata_response.dart deleted file mode 100644 index f8f9cf74..00000000 --- a/lib/src/v3/models/post/get_site_metadata_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'get_site_metadata_response.freezed.dart'; -part 'get_site_metadata_response.g.dart'; - -@freezed -class GetSiteMetadataResponse with _$GetSiteMetadataResponse { - @modelSerde - const factory GetSiteMetadataResponse({ - required LinkMetadata metadata, // v0.18.0 - }) = _GetSiteMetadataResponse; - - const GetSiteMetadataResponse._(); - factory GetSiteMetadataResponse.fromJson(Map json) => - _$GetSiteMetadataResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/get_site_metadata_response.freezed.dart b/lib/src/v3/models/post/get_site_metadata_response.freezed.dart deleted file mode 100644 index a4d2c9eb..00000000 --- a/lib/src/v3/models/post/get_site_metadata_response.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 'get_site_metadata_response.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'); - -GetSiteMetadataResponse _$GetSiteMetadataResponseFromJson( - Map json) { - return _GetSiteMetadataResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetSiteMetadataResponse { - LinkMetadata get metadata => throw _privateConstructorUsedError; - - /// Serializes this GetSiteMetadataResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetSiteMetadataResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetSiteMetadataResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetSiteMetadataResponseCopyWith<$Res> { - factory $GetSiteMetadataResponseCopyWith(GetSiteMetadataResponse value, - $Res Function(GetSiteMetadataResponse) then) = - _$GetSiteMetadataResponseCopyWithImpl<$Res, GetSiteMetadataResponse>; - @useResult - $Res call({LinkMetadata metadata}); - - $LinkMetadataCopyWith<$Res> get metadata; -} - -/// @nodoc -class _$GetSiteMetadataResponseCopyWithImpl<$Res, - $Val extends GetSiteMetadataResponse> - implements $GetSiteMetadataResponseCopyWith<$Res> { - _$GetSiteMetadataResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetSiteMetadataResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? metadata = null, - }) { - return _then(_value.copyWith( - metadata: null == metadata - ? _value.metadata - : metadata // ignore: cast_nullable_to_non_nullable - as LinkMetadata, - ) as $Val); - } - - /// Create a copy of GetSiteMetadataResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LinkMetadataCopyWith<$Res> get metadata { - return $LinkMetadataCopyWith<$Res>(_value.metadata, (value) { - return _then(_value.copyWith(metadata: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetSiteMetadataResponseImplCopyWith<$Res> - implements $GetSiteMetadataResponseCopyWith<$Res> { - factory _$$GetSiteMetadataResponseImplCopyWith( - _$GetSiteMetadataResponseImpl value, - $Res Function(_$GetSiteMetadataResponseImpl) then) = - __$$GetSiteMetadataResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({LinkMetadata metadata}); - - @override - $LinkMetadataCopyWith<$Res> get metadata; -} - -/// @nodoc -class __$$GetSiteMetadataResponseImplCopyWithImpl<$Res> - extends _$GetSiteMetadataResponseCopyWithImpl<$Res, - _$GetSiteMetadataResponseImpl> - implements _$$GetSiteMetadataResponseImplCopyWith<$Res> { - __$$GetSiteMetadataResponseImplCopyWithImpl( - _$GetSiteMetadataResponseImpl _value, - $Res Function(_$GetSiteMetadataResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetSiteMetadataResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? metadata = null, - }) { - return _then(_$GetSiteMetadataResponseImpl( - metadata: null == metadata - ? _value.metadata - : metadata // ignore: cast_nullable_to_non_nullable - as LinkMetadata, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetSiteMetadataResponseImpl extends _GetSiteMetadataResponse { - const _$GetSiteMetadataResponseImpl({required this.metadata}) : super._(); - - factory _$GetSiteMetadataResponseImpl.fromJson(Map json) => - _$$GetSiteMetadataResponseImplFromJson(json); - - @override - final LinkMetadata metadata; - - @override - String toString() { - return 'GetSiteMetadataResponse(metadata: $metadata)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetSiteMetadataResponseImpl && - (identical(other.metadata, metadata) || - other.metadata == metadata)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, metadata); - - /// Create a copy of GetSiteMetadataResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetSiteMetadataResponseImplCopyWith<_$GetSiteMetadataResponseImpl> - get copyWith => __$$GetSiteMetadataResponseImplCopyWithImpl< - _$GetSiteMetadataResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetSiteMetadataResponseImplToJson( - this, - ); - } -} - -abstract class _GetSiteMetadataResponse extends GetSiteMetadataResponse { - const factory _GetSiteMetadataResponse( - {required final LinkMetadata metadata}) = _$GetSiteMetadataResponseImpl; - const _GetSiteMetadataResponse._() : super._(); - - factory _GetSiteMetadataResponse.fromJson(Map json) = - _$GetSiteMetadataResponseImpl.fromJson; - - @override - LinkMetadata get metadata; - - /// Create a copy of GetSiteMetadataResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetSiteMetadataResponseImplCopyWith<_$GetSiteMetadataResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/get_site_metadata_response.g.dart b/lib/src/v3/models/post/get_site_metadata_response.g.dart deleted file mode 100644 index e2b87edc..00000000 --- a/lib/src/v3/models/post/get_site_metadata_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_site_metadata_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetSiteMetadataResponseImpl _$$GetSiteMetadataResponseImplFromJson( - Map json) => - _$GetSiteMetadataResponseImpl( - metadata: LinkMetadata.fromJson(json['metadata'] as Map), - ); - -Map _$$GetSiteMetadataResponseImplToJson( - _$GetSiteMetadataResponseImpl instance) => - { - 'metadata': instance.metadata.toJson(), - }; diff --git a/lib/src/v3/models/post/list_post_likes_response.dart b/lib/src/v3/models/post/list_post_likes_response.dart deleted file mode 100644 index 91497a18..00000000 --- a/lib/src/v3/models/post/list_post_likes_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_post_likes_response.freezed.dart'; -part 'list_post_likes_response.g.dart'; - -@freezed -class ListPostLikesResponse with _$ListPostLikesResponse { - @modelSerde - const factory ListPostLikesResponse({ - required List postLikes, // v0.19.2 (required) - }) = _ListPostLikesResponse; - - const ListPostLikesResponse._(); - factory ListPostLikesResponse.fromJson(Map json) => - _$ListPostLikesResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/list_post_likes_response.freezed.dart b/lib/src/v3/models/post/list_post_likes_response.freezed.dart deleted file mode 100644 index fdd7ddc0..00000000 --- a/lib/src/v3/models/post/list_post_likes_response.freezed.dart +++ /dev/null @@ -1,181 +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 'list_post_likes_response.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'); - -ListPostLikesResponse _$ListPostLikesResponseFromJson( - Map json) { - return _ListPostLikesResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListPostLikesResponse { - List get postLikes => throw _privateConstructorUsedError; - - /// Serializes this ListPostLikesResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListPostLikesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListPostLikesResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListPostLikesResponseCopyWith<$Res> { - factory $ListPostLikesResponseCopyWith(ListPostLikesResponse value, - $Res Function(ListPostLikesResponse) then) = - _$ListPostLikesResponseCopyWithImpl<$Res, ListPostLikesResponse>; - @useResult - $Res call({List postLikes}); -} - -/// @nodoc -class _$ListPostLikesResponseCopyWithImpl<$Res, - $Val extends ListPostLikesResponse> - implements $ListPostLikesResponseCopyWith<$Res> { - _$ListPostLikesResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListPostLikesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postLikes = null, - }) { - return _then(_value.copyWith( - postLikes: null == postLikes - ? _value.postLikes - : postLikes // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListPostLikesResponseImplCopyWith<$Res> - implements $ListPostLikesResponseCopyWith<$Res> { - factory _$$ListPostLikesResponseImplCopyWith( - _$ListPostLikesResponseImpl value, - $Res Function(_$ListPostLikesResponseImpl) then) = - __$$ListPostLikesResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List postLikes}); -} - -/// @nodoc -class __$$ListPostLikesResponseImplCopyWithImpl<$Res> - extends _$ListPostLikesResponseCopyWithImpl<$Res, - _$ListPostLikesResponseImpl> - implements _$$ListPostLikesResponseImplCopyWith<$Res> { - __$$ListPostLikesResponseImplCopyWithImpl(_$ListPostLikesResponseImpl _value, - $Res Function(_$ListPostLikesResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListPostLikesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postLikes = null, - }) { - return _then(_$ListPostLikesResponseImpl( - postLikes: null == postLikes - ? _value._postLikes - : postLikes // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListPostLikesResponseImpl extends _ListPostLikesResponse { - const _$ListPostLikesResponseImpl({required final List postLikes}) - : _postLikes = postLikes, - super._(); - - factory _$ListPostLikesResponseImpl.fromJson(Map json) => - _$$ListPostLikesResponseImplFromJson(json); - - final List _postLikes; - @override - List get postLikes { - if (_postLikes is EqualUnmodifiableListView) return _postLikes; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_postLikes); - } - - @override - String toString() { - return 'ListPostLikesResponse(postLikes: $postLikes)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPostLikesResponseImpl && - const DeepCollectionEquality() - .equals(other._postLikes, _postLikes)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_postLikes)); - - /// Create a copy of ListPostLikesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListPostLikesResponseImplCopyWith<_$ListPostLikesResponseImpl> - get copyWith => __$$ListPostLikesResponseImplCopyWithImpl< - _$ListPostLikesResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListPostLikesResponseImplToJson( - this, - ); - } -} - -abstract class _ListPostLikesResponse extends ListPostLikesResponse { - const factory _ListPostLikesResponse( - {required final List postLikes}) = _$ListPostLikesResponseImpl; - const _ListPostLikesResponse._() : super._(); - - factory _ListPostLikesResponse.fromJson(Map json) = - _$ListPostLikesResponseImpl.fromJson; - - @override - List get postLikes; - - /// Create a copy of ListPostLikesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListPostLikesResponseImplCopyWith<_$ListPostLikesResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/list_post_likes_response.g.dart b/lib/src/v3/models/post/list_post_likes_response.g.dart deleted file mode 100644 index 55fc6d2a..00000000 --- a/lib/src/v3/models/post/list_post_likes_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_post_likes_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListPostLikesResponseImpl _$$ListPostLikesResponseImplFromJson( - Map json) => - _$ListPostLikesResponseImpl( - postLikes: (json['post_likes'] as List) - .map((e) => VoteView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListPostLikesResponseImplToJson( - _$ListPostLikesResponseImpl instance) => - { - 'post_likes': instance.postLikes.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/post/list_post_reports_response.dart b/lib/src/v3/models/post/list_post_reports_response.dart deleted file mode 100644 index b10bc9e9..00000000 --- a/lib/src/v3/models/post/list_post_reports_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_post_reports_response.freezed.dart'; -part 'list_post_reports_response.g.dart'; - -@freezed -class ListPostReportsResponse with _$ListPostReportsResponse { - @modelSerde - const factory ListPostReportsResponse({ - required List postReports, // v0.18.0 - }) = _ListPostReportsResponse; - - const ListPostReportsResponse._(); - factory ListPostReportsResponse.fromJson(Map json) => - _$ListPostReportsResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/list_post_reports_response.freezed.dart b/lib/src/v3/models/post/list_post_reports_response.freezed.dart deleted file mode 100644 index 8d3cabca..00000000 --- a/lib/src/v3/models/post/list_post_reports_response.freezed.dart +++ /dev/null @@ -1,184 +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 'list_post_reports_response.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'); - -ListPostReportsResponse _$ListPostReportsResponseFromJson( - Map json) { - return _ListPostReportsResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListPostReportsResponse { - List get postReports => throw _privateConstructorUsedError; - - /// Serializes this ListPostReportsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListPostReportsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListPostReportsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListPostReportsResponseCopyWith<$Res> { - factory $ListPostReportsResponseCopyWith(ListPostReportsResponse value, - $Res Function(ListPostReportsResponse) then) = - _$ListPostReportsResponseCopyWithImpl<$Res, ListPostReportsResponse>; - @useResult - $Res call({List postReports}); -} - -/// @nodoc -class _$ListPostReportsResponseCopyWithImpl<$Res, - $Val extends ListPostReportsResponse> - implements $ListPostReportsResponseCopyWith<$Res> { - _$ListPostReportsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListPostReportsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postReports = null, - }) { - return _then(_value.copyWith( - postReports: null == postReports - ? _value.postReports - : postReports // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListPostReportsResponseImplCopyWith<$Res> - implements $ListPostReportsResponseCopyWith<$Res> { - factory _$$ListPostReportsResponseImplCopyWith( - _$ListPostReportsResponseImpl value, - $Res Function(_$ListPostReportsResponseImpl) then) = - __$$ListPostReportsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List postReports}); -} - -/// @nodoc -class __$$ListPostReportsResponseImplCopyWithImpl<$Res> - extends _$ListPostReportsResponseCopyWithImpl<$Res, - _$ListPostReportsResponseImpl> - implements _$$ListPostReportsResponseImplCopyWith<$Res> { - __$$ListPostReportsResponseImplCopyWithImpl( - _$ListPostReportsResponseImpl _value, - $Res Function(_$ListPostReportsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListPostReportsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postReports = null, - }) { - return _then(_$ListPostReportsResponseImpl( - postReports: null == postReports - ? _value._postReports - : postReports // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListPostReportsResponseImpl extends _ListPostReportsResponse { - const _$ListPostReportsResponseImpl( - {required final List postReports}) - : _postReports = postReports, - super._(); - - factory _$ListPostReportsResponseImpl.fromJson(Map json) => - _$$ListPostReportsResponseImplFromJson(json); - - final List _postReports; - @override - List get postReports { - if (_postReports is EqualUnmodifiableListView) return _postReports; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_postReports); - } - - @override - String toString() { - return 'ListPostReportsResponse(postReports: $postReports)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPostReportsResponseImpl && - const DeepCollectionEquality() - .equals(other._postReports, _postReports)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_postReports)); - - /// Create a copy of ListPostReportsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListPostReportsResponseImplCopyWith<_$ListPostReportsResponseImpl> - get copyWith => __$$ListPostReportsResponseImplCopyWithImpl< - _$ListPostReportsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListPostReportsResponseImplToJson( - this, - ); - } -} - -abstract class _ListPostReportsResponse extends ListPostReportsResponse { - const factory _ListPostReportsResponse( - {required final List postReports}) = - _$ListPostReportsResponseImpl; - const _ListPostReportsResponse._() : super._(); - - factory _ListPostReportsResponse.fromJson(Map json) = - _$ListPostReportsResponseImpl.fromJson; - - @override - List get postReports; - - /// Create a copy of ListPostReportsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListPostReportsResponseImplCopyWith<_$ListPostReportsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/list_post_reports_response.g.dart b/lib/src/v3/models/post/list_post_reports_response.g.dart deleted file mode 100644 index 14e0aed5..00000000 --- a/lib/src/v3/models/post/list_post_reports_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_post_reports_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListPostReportsResponseImpl _$$ListPostReportsResponseImplFromJson( - Map json) => - _$ListPostReportsResponseImpl( - postReports: (json['post_reports'] as List) - .map((e) => PostReportView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListPostReportsResponseImplToJson( - _$ListPostReportsResponseImpl instance) => - { - 'post_reports': instance.postReports.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/post/mark_post_as_read_response.dart b/lib/src/v3/models/post/mark_post_as_read_response.dart deleted file mode 100644 index 043ced1c..00000000 --- a/lib/src/v3/models/post/mark_post_as_read_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'mark_post_as_read_response.freezed.dart'; -part 'mark_post_as_read_response.g.dart'; - -@freezed -class MarkPostAsReadResponse with _$MarkPostAsReadResponse { - @modelSerde - const factory MarkPostAsReadResponse({ - @deprecated PostView? postView, - bool? success, // Only available in lemmy v0.19.0 and above - }) = _MarkPostAsReadResponse; - - const MarkPostAsReadResponse._(); - factory MarkPostAsReadResponse.fromJson(Map json) => - _$MarkPostAsReadResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/mark_post_as_read_response.freezed.dart b/lib/src/v3/models/post/mark_post_as_read_response.freezed.dart deleted file mode 100644 index 2fddf069..00000000 --- a/lib/src/v3/models/post/mark_post_as_read_response.freezed.dart +++ /dev/null @@ -1,214 +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 'mark_post_as_read_response.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'); - -MarkPostAsReadResponse _$MarkPostAsReadResponseFromJson( - Map json) { - return _MarkPostAsReadResponse.fromJson(json); -} - -/// @nodoc -mixin _$MarkPostAsReadResponse { - @deprecated - PostView? get postView => throw _privateConstructorUsedError; - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this MarkPostAsReadResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of MarkPostAsReadResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $MarkPostAsReadResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MarkPostAsReadResponseCopyWith<$Res> { - factory $MarkPostAsReadResponseCopyWith(MarkPostAsReadResponse value, - $Res Function(MarkPostAsReadResponse) then) = - _$MarkPostAsReadResponseCopyWithImpl<$Res, MarkPostAsReadResponse>; - @useResult - $Res call({@deprecated PostView? postView, bool? success}); - - $PostViewCopyWith<$Res>? get postView; -} - -/// @nodoc -class _$MarkPostAsReadResponseCopyWithImpl<$Res, - $Val extends MarkPostAsReadResponse> - implements $MarkPostAsReadResponseCopyWith<$Res> { - _$MarkPostAsReadResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of MarkPostAsReadResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postView = freezed, - Object? success = freezed, - }) { - return _then(_value.copyWith( - postView: freezed == postView - ? _value.postView - : postView // ignore: cast_nullable_to_non_nullable - as PostView?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } - - /// Create a copy of MarkPostAsReadResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostViewCopyWith<$Res>? get postView { - if (_value.postView == null) { - return null; - } - - return $PostViewCopyWith<$Res>(_value.postView!, (value) { - return _then(_value.copyWith(postView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$MarkPostAsReadResponseImplCopyWith<$Res> - implements $MarkPostAsReadResponseCopyWith<$Res> { - factory _$$MarkPostAsReadResponseImplCopyWith( - _$MarkPostAsReadResponseImpl value, - $Res Function(_$MarkPostAsReadResponseImpl) then) = - __$$MarkPostAsReadResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({@deprecated PostView? postView, bool? success}); - - @override - $PostViewCopyWith<$Res>? get postView; -} - -/// @nodoc -class __$$MarkPostAsReadResponseImplCopyWithImpl<$Res> - extends _$MarkPostAsReadResponseCopyWithImpl<$Res, - _$MarkPostAsReadResponseImpl> - implements _$$MarkPostAsReadResponseImplCopyWith<$Res> { - __$$MarkPostAsReadResponseImplCopyWithImpl( - _$MarkPostAsReadResponseImpl _value, - $Res Function(_$MarkPostAsReadResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of MarkPostAsReadResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postView = freezed, - Object? success = freezed, - }) { - return _then(_$MarkPostAsReadResponseImpl( - postView: freezed == postView - ? _value.postView - : postView // ignore: cast_nullable_to_non_nullable - as PostView?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$MarkPostAsReadResponseImpl extends _MarkPostAsReadResponse { - const _$MarkPostAsReadResponseImpl({@deprecated this.postView, this.success}) - : super._(); - - factory _$MarkPostAsReadResponseImpl.fromJson(Map json) => - _$$MarkPostAsReadResponseImplFromJson(json); - - @override - @deprecated - final PostView? postView; - @override - final bool? success; - - @override - String toString() { - return 'MarkPostAsReadResponse(postView: $postView, success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MarkPostAsReadResponseImpl && - (identical(other.postView, postView) || - other.postView == postView) && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postView, success); - - /// Create a copy of MarkPostAsReadResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$MarkPostAsReadResponseImplCopyWith<_$MarkPostAsReadResponseImpl> - get copyWith => __$$MarkPostAsReadResponseImplCopyWithImpl< - _$MarkPostAsReadResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MarkPostAsReadResponseImplToJson( - this, - ); - } -} - -abstract class _MarkPostAsReadResponse extends MarkPostAsReadResponse { - const factory _MarkPostAsReadResponse( - {@deprecated final PostView? postView, - final bool? success}) = _$MarkPostAsReadResponseImpl; - const _MarkPostAsReadResponse._() : super._(); - - factory _MarkPostAsReadResponse.fromJson(Map json) = - _$MarkPostAsReadResponseImpl.fromJson; - - @override - @deprecated - PostView? get postView; - @override - bool? get success; - - /// Create a copy of MarkPostAsReadResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$MarkPostAsReadResponseImplCopyWith<_$MarkPostAsReadResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/mark_post_as_read_response.g.dart b/lib/src/v3/models/post/mark_post_as_read_response.g.dart deleted file mode 100644 index 7ec15f8b..00000000 --- a/lib/src/v3/models/post/mark_post_as_read_response.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mark_post_as_read_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$MarkPostAsReadResponseImpl _$$MarkPostAsReadResponseImplFromJson( - Map json) => - _$MarkPostAsReadResponseImpl( - postView: json['post_view'] == null - ? null - : PostView.fromJson(json['post_view'] as Map), - success: json['success'] as bool?, - ); - -Map _$$MarkPostAsReadResponseImplToJson( - _$MarkPostAsReadResponseImpl instance) => - { - 'post_view': instance.postView?.toJson(), - 'success': instance.success, - }; diff --git a/lib/src/v3/models/post/post.dart b/lib/src/v3/models/post/post.dart deleted file mode 100644 index bd68ee76..00000000 --- a/lib/src/v3/models/post/post.dart +++ /dev/null @@ -1,40 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'post.freezed.dart'; -part 'post.g.dart'; - -@freezed -class Post with _$Post { - @modelSerde - const factory Post({ - required int id, // v0.18.0 - required String name, // v0.18.0 - String? url, // v0.18.0 - String? body, // v0.18.0 - required int creatorId, // v0.18.0 - required int communityId, // v0.18.0 - required bool removed, // v0.18.0 - required bool locked, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - required bool deleted, // v0.18.0 - required bool nsfw, // v0.18.0 - String? embedTitle, // v0.18.0 - String? embedDescription, // v0.18.0 - String? thumbnailUrl, // v0.18.0 - required String apId, // v0.18.0 - required bool local, // v0.18.0 - String? embedVideoUrl, // v0.18.0 - required int languageId, // v0.18.0 - required bool featuredCommunity, // v0.18.0 - required bool featuredLocal, // v0.18.0 - String? urlContentType, // v0.19.4 (optional) - String? altText, // v0.19.4 (optional) - }) = _Post; - - const Post._(); - factory Post.fromJson(Map json) => _$PostFromJson(json); -} diff --git a/lib/src/v3/models/post/post.freezed.dart b/lib/src/v3/models/post/post.freezed.dart deleted file mode 100644 index b5d0628b..00000000 --- a/lib/src/v3/models/post/post.freezed.dart +++ /dev/null @@ -1,665 +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 'post.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'); - -Post _$PostFromJson(Map json) { - return _Post.fromJson(json); -} - -/// @nodoc -mixin _$Post { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get name => throw _privateConstructorUsedError; // v0.18.0 - String? get url => throw _privateConstructorUsedError; // v0.18.0 - String? get body => throw _privateConstructorUsedError; // v0.18.0 - int get creatorId => throw _privateConstructorUsedError; // v0.18.0 - int get communityId => throw _privateConstructorUsedError; // v0.18.0 - bool get removed => throw _privateConstructorUsedError; // v0.18.0 - bool get locked => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - bool get nsfw => throw _privateConstructorUsedError; // v0.18.0 - String? get embedTitle => throw _privateConstructorUsedError; // v0.18.0 - String? get embedDescription => throw _privateConstructorUsedError; // v0.18.0 - String? get thumbnailUrl => throw _privateConstructorUsedError; // v0.18.0 - String get apId => throw _privateConstructorUsedError; // v0.18.0 - bool get local => throw _privateConstructorUsedError; // v0.18.0 - String? get embedVideoUrl => throw _privateConstructorUsedError; // v0.18.0 - int get languageId => throw _privateConstructorUsedError; // v0.18.0 - bool get featuredCommunity => throw _privateConstructorUsedError; // v0.18.0 - bool get featuredLocal => throw _privateConstructorUsedError; // v0.18.0 - String? get urlContentType => - throw _privateConstructorUsedError; // v0.19.4 (optional) - String? get altText => throw _privateConstructorUsedError; - - /// Serializes this Post to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Post - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostCopyWith<$Res> { - factory $PostCopyWith(Post value, $Res Function(Post) then) = - _$PostCopyWithImpl<$Res, Post>; - @useResult - $Res call( - {int id, - String name, - String? url, - String? body, - int creatorId, - int communityId, - bool removed, - bool locked, - DateTime published, - DateTime? updated, - bool deleted, - bool nsfw, - String? embedTitle, - String? embedDescription, - String? thumbnailUrl, - String apId, - bool local, - String? embedVideoUrl, - int languageId, - bool featuredCommunity, - bool featuredLocal, - String? urlContentType, - String? altText}); -} - -/// @nodoc -class _$PostCopyWithImpl<$Res, $Val extends Post> - implements $PostCopyWith<$Res> { - _$PostCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Post - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? url = freezed, - Object? body = freezed, - Object? creatorId = null, - Object? communityId = null, - Object? removed = null, - Object? locked = null, - Object? published = null, - Object? updated = freezed, - Object? deleted = null, - Object? nsfw = null, - Object? embedTitle = freezed, - Object? embedDescription = freezed, - Object? thumbnailUrl = freezed, - Object? apId = null, - Object? local = null, - Object? embedVideoUrl = freezed, - Object? languageId = null, - Object? featuredCommunity = null, - Object? featuredLocal = null, - Object? urlContentType = freezed, - Object? altText = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - body: freezed == body - ? _value.body - : body // ignore: cast_nullable_to_non_nullable - as String?, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - locked: null == locked - ? _value.locked - : locked // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - nsfw: null == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool, - embedTitle: freezed == embedTitle - ? _value.embedTitle - : embedTitle // ignore: cast_nullable_to_non_nullable - as String?, - embedDescription: freezed == embedDescription - ? _value.embedDescription - : embedDescription // ignore: cast_nullable_to_non_nullable - as String?, - thumbnailUrl: freezed == thumbnailUrl - ? _value.thumbnailUrl - : thumbnailUrl // ignore: cast_nullable_to_non_nullable - as String?, - apId: null == apId - ? _value.apId - : apId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - embedVideoUrl: freezed == embedVideoUrl - ? _value.embedVideoUrl - : embedVideoUrl // ignore: cast_nullable_to_non_nullable - as String?, - languageId: null == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int, - featuredCommunity: null == featuredCommunity - ? _value.featuredCommunity - : featuredCommunity // ignore: cast_nullable_to_non_nullable - as bool, - featuredLocal: null == featuredLocal - ? _value.featuredLocal - : featuredLocal // ignore: cast_nullable_to_non_nullable - as bool, - urlContentType: freezed == urlContentType - ? _value.urlContentType - : urlContentType // ignore: cast_nullable_to_non_nullable - as String?, - altText: freezed == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PostImplCopyWith<$Res> implements $PostCopyWith<$Res> { - factory _$$PostImplCopyWith( - _$PostImpl value, $Res Function(_$PostImpl) then) = - __$$PostImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String name, - String? url, - String? body, - int creatorId, - int communityId, - bool removed, - bool locked, - DateTime published, - DateTime? updated, - bool deleted, - bool nsfw, - String? embedTitle, - String? embedDescription, - String? thumbnailUrl, - String apId, - bool local, - String? embedVideoUrl, - int languageId, - bool featuredCommunity, - bool featuredLocal, - String? urlContentType, - String? altText}); -} - -/// @nodoc -class __$$PostImplCopyWithImpl<$Res> - extends _$PostCopyWithImpl<$Res, _$PostImpl> - implements _$$PostImplCopyWith<$Res> { - __$$PostImplCopyWithImpl(_$PostImpl _value, $Res Function(_$PostImpl) _then) - : super(_value, _then); - - /// Create a copy of Post - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? url = freezed, - Object? body = freezed, - Object? creatorId = null, - Object? communityId = null, - Object? removed = null, - Object? locked = null, - Object? published = null, - Object? updated = freezed, - Object? deleted = null, - Object? nsfw = null, - Object? embedTitle = freezed, - Object? embedDescription = freezed, - Object? thumbnailUrl = freezed, - Object? apId = null, - Object? local = null, - Object? embedVideoUrl = freezed, - Object? languageId = null, - Object? featuredCommunity = null, - Object? featuredLocal = null, - Object? urlContentType = freezed, - Object? altText = freezed, - }) { - return _then(_$PostImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - body: freezed == body - ? _value.body - : body // ignore: cast_nullable_to_non_nullable - as String?, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - communityId: null == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int, - removed: null == removed - ? _value.removed - : removed // ignore: cast_nullable_to_non_nullable - as bool, - locked: null == locked - ? _value.locked - : locked // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - nsfw: null == nsfw - ? _value.nsfw - : nsfw // ignore: cast_nullable_to_non_nullable - as bool, - embedTitle: freezed == embedTitle - ? _value.embedTitle - : embedTitle // ignore: cast_nullable_to_non_nullable - as String?, - embedDescription: freezed == embedDescription - ? _value.embedDescription - : embedDescription // ignore: cast_nullable_to_non_nullable - as String?, - thumbnailUrl: freezed == thumbnailUrl - ? _value.thumbnailUrl - : thumbnailUrl // ignore: cast_nullable_to_non_nullable - as String?, - apId: null == apId - ? _value.apId - : apId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - embedVideoUrl: freezed == embedVideoUrl - ? _value.embedVideoUrl - : embedVideoUrl // ignore: cast_nullable_to_non_nullable - as String?, - languageId: null == languageId - ? _value.languageId - : languageId // ignore: cast_nullable_to_non_nullable - as int, - featuredCommunity: null == featuredCommunity - ? _value.featuredCommunity - : featuredCommunity // ignore: cast_nullable_to_non_nullable - as bool, - featuredLocal: null == featuredLocal - ? _value.featuredLocal - : featuredLocal // ignore: cast_nullable_to_non_nullable - as bool, - urlContentType: freezed == urlContentType - ? _value.urlContentType - : urlContentType // ignore: cast_nullable_to_non_nullable - as String?, - altText: freezed == altText - ? _value.altText - : altText // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostImpl extends _Post { - const _$PostImpl( - {required this.id, - required this.name, - this.url, - this.body, - required this.creatorId, - required this.communityId, - required this.removed, - required this.locked, - required this.published, - this.updated, - required this.deleted, - required this.nsfw, - this.embedTitle, - this.embedDescription, - this.thumbnailUrl, - required this.apId, - required this.local, - this.embedVideoUrl, - required this.languageId, - required this.featuredCommunity, - required this.featuredLocal, - this.urlContentType, - this.altText}) - : super._(); - - factory _$PostImpl.fromJson(Map json) => - _$$PostImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String name; -// v0.18.0 - @override - final String? url; -// v0.18.0 - @override - final String? body; -// v0.18.0 - @override - final int creatorId; -// v0.18.0 - @override - final int communityId; -// v0.18.0 - @override - final bool removed; -// v0.18.0 - @override - final bool locked; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final bool nsfw; -// v0.18.0 - @override - final String? embedTitle; -// v0.18.0 - @override - final String? embedDescription; -// v0.18.0 - @override - final String? thumbnailUrl; -// v0.18.0 - @override - final String apId; -// v0.18.0 - @override - final bool local; -// v0.18.0 - @override - final String? embedVideoUrl; -// v0.18.0 - @override - final int languageId; -// v0.18.0 - @override - final bool featuredCommunity; -// v0.18.0 - @override - final bool featuredLocal; -// v0.18.0 - @override - final String? urlContentType; -// v0.19.4 (optional) - @override - final String? altText; - - @override - String toString() { - return 'Post(id: $id, name: $name, url: $url, body: $body, creatorId: $creatorId, communityId: $communityId, removed: $removed, locked: $locked, published: $published, updated: $updated, deleted: $deleted, nsfw: $nsfw, embedTitle: $embedTitle, embedDescription: $embedDescription, thumbnailUrl: $thumbnailUrl, apId: $apId, local: $local, embedVideoUrl: $embedVideoUrl, languageId: $languageId, featuredCommunity: $featuredCommunity, featuredLocal: $featuredLocal, urlContentType: $urlContentType, altText: $altText)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.url, url) || other.url == url) && - (identical(other.body, body) || other.body == body) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.removed, removed) || other.removed == removed) && - (identical(other.locked, locked) || other.locked == locked) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.nsfw, nsfw) || other.nsfw == nsfw) && - (identical(other.embedTitle, embedTitle) || - other.embedTitle == embedTitle) && - (identical(other.embedDescription, embedDescription) || - other.embedDescription == embedDescription) && - (identical(other.thumbnailUrl, thumbnailUrl) || - other.thumbnailUrl == thumbnailUrl) && - (identical(other.apId, apId) || other.apId == apId) && - (identical(other.local, local) || other.local == local) && - (identical(other.embedVideoUrl, embedVideoUrl) || - other.embedVideoUrl == embedVideoUrl) && - (identical(other.languageId, languageId) || - other.languageId == languageId) && - (identical(other.featuredCommunity, featuredCommunity) || - other.featuredCommunity == featuredCommunity) && - (identical(other.featuredLocal, featuredLocal) || - other.featuredLocal == featuredLocal) && - (identical(other.urlContentType, urlContentType) || - other.urlContentType == urlContentType) && - (identical(other.altText, altText) || other.altText == altText)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - id, - name, - url, - body, - creatorId, - communityId, - removed, - locked, - published, - updated, - deleted, - nsfw, - embedTitle, - embedDescription, - thumbnailUrl, - apId, - local, - embedVideoUrl, - languageId, - featuredCommunity, - featuredLocal, - urlContentType, - altText - ]); - - /// Create a copy of Post - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostImplCopyWith<_$PostImpl> get copyWith => - __$$PostImplCopyWithImpl<_$PostImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PostImplToJson( - this, - ); - } -} - -abstract class _Post extends Post { - const factory _Post( - {required final int id, - required final String name, - final String? url, - final String? body, - required final int creatorId, - required final int communityId, - required final bool removed, - required final bool locked, - required final DateTime published, - final DateTime? updated, - required final bool deleted, - required final bool nsfw, - final String? embedTitle, - final String? embedDescription, - final String? thumbnailUrl, - required final String apId, - required final bool local, - final String? embedVideoUrl, - required final int languageId, - required final bool featuredCommunity, - required final bool featuredLocal, - final String? urlContentType, - final String? altText}) = _$PostImpl; - const _Post._() : super._(); - - factory _Post.fromJson(Map json) = _$PostImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get name; // v0.18.0 - @override - String? get url; // v0.18.0 - @override - String? get body; // v0.18.0 - @override - int get creatorId; // v0.18.0 - @override - int get communityId; // v0.18.0 - @override - bool get removed; // v0.18.0 - @override - bool get locked; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - bool get nsfw; // v0.18.0 - @override - String? get embedTitle; // v0.18.0 - @override - String? get embedDescription; // v0.18.0 - @override - String? get thumbnailUrl; // v0.18.0 - @override - String get apId; // v0.18.0 - @override - bool get local; // v0.18.0 - @override - String? get embedVideoUrl; // v0.18.0 - @override - int get languageId; // v0.18.0 - @override - bool get featuredCommunity; // v0.18.0 - @override - bool get featuredLocal; // v0.18.0 - @override - String? get urlContentType; // v0.19.4 (optional) - @override - String? get altText; - - /// Create a copy of Post - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostImplCopyWith<_$PostImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/post.g.dart b/lib/src/v3/models/post/post.g.dart deleted file mode 100644 index 5db9d47c..00000000 --- a/lib/src/v3/models/post/post.g.dart +++ /dev/null @@ -1,74 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostImpl _$$PostImplFromJson(Map json) => _$PostImpl( - id: (json['id'] as num).toInt(), - name: json['name'] as String, - url: json['url'] as String?, - body: json['body'] as String?, - creatorId: (json['creator_id'] as num).toInt(), - communityId: (json['community_id'] as num).toInt(), - removed: json['removed'] as bool, - locked: json['locked'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - deleted: json['deleted'] as bool, - nsfw: json['nsfw'] as bool, - embedTitle: json['embed_title'] as String?, - embedDescription: json['embed_description'] as String?, - thumbnailUrl: json['thumbnail_url'] as String?, - apId: json['ap_id'] as String, - local: json['local'] as bool, - embedVideoUrl: json['embed_video_url'] as String?, - languageId: (json['language_id'] as num).toInt(), - featuredCommunity: json['featured_community'] as bool, - featuredLocal: json['featured_local'] as bool, - urlContentType: json['url_content_type'] as String?, - altText: json['alt_text'] as String?, - ); - -Map _$$PostImplToJson(_$PostImpl instance) => - { - 'id': instance.id, - 'name': instance.name, - 'url': instance.url, - 'body': instance.body, - 'creator_id': instance.creatorId, - 'community_id': instance.communityId, - 'removed': instance.removed, - 'locked': instance.locked, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'deleted': instance.deleted, - 'nsfw': instance.nsfw, - 'embed_title': instance.embedTitle, - 'embed_description': instance.embedDescription, - 'thumbnail_url': instance.thumbnailUrl, - 'ap_id': instance.apId, - 'local': instance.local, - 'embed_video_url': instance.embedVideoUrl, - 'language_id': instance.languageId, - 'featured_community': instance.featuredCommunity, - 'featured_local': instance.featuredLocal, - 'url_content_type': instance.urlContentType, - 'alt_text': instance.altText, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/post/post_aggregates.dart b/lib/src/v3/models/post/post_aggregates.dart deleted file mode 100644 index e9cc61da..00000000 --- a/lib/src/v3/models/post/post_aggregates.dart +++ /dev/null @@ -1,33 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'post_aggregates.freezed.dart'; -part 'post_aggregates.g.dart'; - -@freezed -class PostAggregates with _$PostAggregates { - @modelSerde - const factory PostAggregates({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int postId, // v0.18.0 - required int comments, // v0.18.0 - required int score, // v0.18.0 - required int upvotes, // v0.18.0 - required int downvotes, // v0.18.0 - required DateTime published, // v0.18.0 - @deprecated - String? newestCommentTimeNecro, // v0.18.0 [deprecated in v0.19.0] - String? - newestCommentTime, // v0.18.0, deprecated in v0.19.0, reintroduced in v0.19.2 (required) - @deprecated bool? featuredCommunity, // v0.18.0 [deprecated in v0.19.0] - @deprecated bool? featuredLocal, // v0.18.0 [deprecated in v0.19.0] - @deprecated int? hotRank, // v0.18.0 [deprecated in v0.19.0] - @deprecated int? hotRankActive, // v0.18.0 [deprecated in v0.19.0] - }) = _PostAggregates; - - const PostAggregates._(); - factory PostAggregates.fromJson(Map json) => - _$PostAggregatesFromJson(json); -} diff --git a/lib/src/v3/models/post/post_aggregates.freezed.dart b/lib/src/v3/models/post/post_aggregates.freezed.dart deleted file mode 100644 index 0a3e0520..00000000 --- a/lib/src/v3/models/post/post_aggregates.freezed.dart +++ /dev/null @@ -1,471 +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 'post_aggregates.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'); - -PostAggregates _$PostAggregatesFromJson(Map json) { - return _PostAggregates.fromJson(json); -} - -/// @nodoc -mixin _$PostAggregates { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get postId => throw _privateConstructorUsedError; // v0.18.0 - int get comments => throw _privateConstructorUsedError; // v0.18.0 - int get score => throw _privateConstructorUsedError; // v0.18.0 - int get upvotes => throw _privateConstructorUsedError; // v0.18.0 - int get downvotes => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get newestCommentTimeNecro => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - String? get newestCommentTime => - throw _privateConstructorUsedError; // v0.18.0, deprecated in v0.19.0, reintroduced in v0.19.2 (required) - @deprecated - bool? get featuredCommunity => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - @deprecated - bool? get featuredLocal => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - @deprecated - int? get hotRank => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - @deprecated - int? get hotRankActive => throw _privateConstructorUsedError; - - /// Serializes this PostAggregates to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PostAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostAggregatesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostAggregatesCopyWith<$Res> { - factory $PostAggregatesCopyWith( - PostAggregates value, $Res Function(PostAggregates) then) = - _$PostAggregatesCopyWithImpl<$Res, PostAggregates>; - @useResult - $Res call( - {@deprecated int? id, - int postId, - int comments, - int score, - int upvotes, - int downvotes, - DateTime published, - @deprecated String? newestCommentTimeNecro, - String? newestCommentTime, - @deprecated bool? featuredCommunity, - @deprecated bool? featuredLocal, - @deprecated int? hotRank, - @deprecated int? hotRankActive}); -} - -/// @nodoc -class _$PostAggregatesCopyWithImpl<$Res, $Val extends PostAggregates> - implements $PostAggregatesCopyWith<$Res> { - _$PostAggregatesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PostAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? postId = null, - Object? comments = null, - Object? score = null, - Object? upvotes = null, - Object? downvotes = null, - Object? published = null, - Object? newestCommentTimeNecro = freezed, - Object? newestCommentTime = freezed, - Object? featuredCommunity = freezed, - Object? featuredLocal = freezed, - Object? hotRank = freezed, - Object? hotRankActive = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as int, - upvotes: null == upvotes - ? _value.upvotes - : upvotes // ignore: cast_nullable_to_non_nullable - as int, - downvotes: null == downvotes - ? _value.downvotes - : downvotes // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - newestCommentTimeNecro: freezed == newestCommentTimeNecro - ? _value.newestCommentTimeNecro - : newestCommentTimeNecro // ignore: cast_nullable_to_non_nullable - as String?, - newestCommentTime: freezed == newestCommentTime - ? _value.newestCommentTime - : newestCommentTime // ignore: cast_nullable_to_non_nullable - as String?, - featuredCommunity: freezed == featuredCommunity - ? _value.featuredCommunity - : featuredCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - featuredLocal: freezed == featuredLocal - ? _value.featuredLocal - : featuredLocal // ignore: cast_nullable_to_non_nullable - as bool?, - hotRank: freezed == hotRank - ? _value.hotRank - : hotRank // ignore: cast_nullable_to_non_nullable - as int?, - hotRankActive: freezed == hotRankActive - ? _value.hotRankActive - : hotRankActive // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PostAggregatesImplCopyWith<$Res> - implements $PostAggregatesCopyWith<$Res> { - factory _$$PostAggregatesImplCopyWith(_$PostAggregatesImpl value, - $Res Function(_$PostAggregatesImpl) then) = - __$$PostAggregatesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? id, - int postId, - int comments, - int score, - int upvotes, - int downvotes, - DateTime published, - @deprecated String? newestCommentTimeNecro, - String? newestCommentTime, - @deprecated bool? featuredCommunity, - @deprecated bool? featuredLocal, - @deprecated int? hotRank, - @deprecated int? hotRankActive}); -} - -/// @nodoc -class __$$PostAggregatesImplCopyWithImpl<$Res> - extends _$PostAggregatesCopyWithImpl<$Res, _$PostAggregatesImpl> - implements _$$PostAggregatesImplCopyWith<$Res> { - __$$PostAggregatesImplCopyWithImpl( - _$PostAggregatesImpl _value, $Res Function(_$PostAggregatesImpl) _then) - : super(_value, _then); - - /// Create a copy of PostAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? postId = null, - Object? comments = null, - Object? score = null, - Object? upvotes = null, - Object? downvotes = null, - Object? published = null, - Object? newestCommentTimeNecro = freezed, - Object? newestCommentTime = freezed, - Object? featuredCommunity = freezed, - Object? featuredLocal = freezed, - Object? hotRank = freezed, - Object? hotRankActive = freezed, - }) { - return _then(_$PostAggregatesImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as int, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as int, - upvotes: null == upvotes - ? _value.upvotes - : upvotes // ignore: cast_nullable_to_non_nullable - as int, - downvotes: null == downvotes - ? _value.downvotes - : downvotes // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - newestCommentTimeNecro: freezed == newestCommentTimeNecro - ? _value.newestCommentTimeNecro - : newestCommentTimeNecro // ignore: cast_nullable_to_non_nullable - as String?, - newestCommentTime: freezed == newestCommentTime - ? _value.newestCommentTime - : newestCommentTime // ignore: cast_nullable_to_non_nullable - as String?, - featuredCommunity: freezed == featuredCommunity - ? _value.featuredCommunity - : featuredCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - featuredLocal: freezed == featuredLocal - ? _value.featuredLocal - : featuredLocal // ignore: cast_nullable_to_non_nullable - as bool?, - hotRank: freezed == hotRank - ? _value.hotRank - : hotRank // ignore: cast_nullable_to_non_nullable - as int?, - hotRankActive: freezed == hotRankActive - ? _value.hotRankActive - : hotRankActive // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostAggregatesImpl extends _PostAggregates { - const _$PostAggregatesImpl( - {@deprecated this.id, - required this.postId, - required this.comments, - required this.score, - required this.upvotes, - required this.downvotes, - required this.published, - @deprecated this.newestCommentTimeNecro, - this.newestCommentTime, - @deprecated this.featuredCommunity, - @deprecated this.featuredLocal, - @deprecated this.hotRank, - @deprecated this.hotRankActive}) - : super._(); - - factory _$PostAggregatesImpl.fromJson(Map json) => - _$$PostAggregatesImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int postId; -// v0.18.0 - @override - final int comments; -// v0.18.0 - @override - final int score; -// v0.18.0 - @override - final int upvotes; -// v0.18.0 - @override - final int downvotes; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - @deprecated - final String? newestCommentTimeNecro; -// v0.18.0 [deprecated in v0.19.0] - @override - final String? newestCommentTime; -// v0.18.0, deprecated in v0.19.0, reintroduced in v0.19.2 (required) - @override - @deprecated - final bool? featuredCommunity; -// v0.18.0 [deprecated in v0.19.0] - @override - @deprecated - final bool? featuredLocal; -// v0.18.0 [deprecated in v0.19.0] - @override - @deprecated - final int? hotRank; -// v0.18.0 [deprecated in v0.19.0] - @override - @deprecated - final int? hotRankActive; - - @override - String toString() { - return 'PostAggregates(id: $id, postId: $postId, comments: $comments, score: $score, upvotes: $upvotes, downvotes: $downvotes, published: $published, newestCommentTimeNecro: $newestCommentTimeNecro, newestCommentTime: $newestCommentTime, featuredCommunity: $featuredCommunity, featuredLocal: $featuredLocal, hotRank: $hotRank, hotRankActive: $hotRankActive)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostAggregatesImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.comments, comments) || - other.comments == comments) && - (identical(other.score, score) || other.score == score) && - (identical(other.upvotes, upvotes) || other.upvotes == upvotes) && - (identical(other.downvotes, downvotes) || - other.downvotes == downvotes) && - (identical(other.published, published) || - other.published == published) && - (identical(other.newestCommentTimeNecro, newestCommentTimeNecro) || - other.newestCommentTimeNecro == newestCommentTimeNecro) && - (identical(other.newestCommentTime, newestCommentTime) || - other.newestCommentTime == newestCommentTime) && - (identical(other.featuredCommunity, featuredCommunity) || - other.featuredCommunity == featuredCommunity) && - (identical(other.featuredLocal, featuredLocal) || - other.featuredLocal == featuredLocal) && - (identical(other.hotRank, hotRank) || other.hotRank == hotRank) && - (identical(other.hotRankActive, hotRankActive) || - other.hotRankActive == hotRankActive)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - postId, - comments, - score, - upvotes, - downvotes, - published, - newestCommentTimeNecro, - newestCommentTime, - featuredCommunity, - featuredLocal, - hotRank, - hotRankActive); - - /// Create a copy of PostAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostAggregatesImplCopyWith<_$PostAggregatesImpl> get copyWith => - __$$PostAggregatesImplCopyWithImpl<_$PostAggregatesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PostAggregatesImplToJson( - this, - ); - } -} - -abstract class _PostAggregates extends PostAggregates { - const factory _PostAggregates( - {@deprecated final int? id, - required final int postId, - required final int comments, - required final int score, - required final int upvotes, - required final int downvotes, - required final DateTime published, - @deprecated final String? newestCommentTimeNecro, - final String? newestCommentTime, - @deprecated final bool? featuredCommunity, - @deprecated final bool? featuredLocal, - @deprecated final int? hotRank, - @deprecated final int? hotRankActive}) = _$PostAggregatesImpl; - const _PostAggregates._() : super._(); - - factory _PostAggregates.fromJson(Map json) = - _$PostAggregatesImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get postId; // v0.18.0 - @override - int get comments; // v0.18.0 - @override - int get score; // v0.18.0 - @override - int get upvotes; // v0.18.0 - @override - int get downvotes; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - @deprecated - String? get newestCommentTimeNecro; // v0.18.0 [deprecated in v0.19.0] - @override - String? - get newestCommentTime; // v0.18.0, deprecated in v0.19.0, reintroduced in v0.19.2 (required) - @override - @deprecated - bool? get featuredCommunity; // v0.18.0 [deprecated in v0.19.0] - @override - @deprecated - bool? get featuredLocal; // v0.18.0 [deprecated in v0.19.0] - @override - @deprecated - int? get hotRank; // v0.18.0 [deprecated in v0.19.0] - @override - @deprecated - int? get hotRankActive; - - /// Create a copy of PostAggregates - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostAggregatesImplCopyWith<_$PostAggregatesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/post_aggregates.g.dart b/lib/src/v3/models/post/post_aggregates.g.dart deleted file mode 100644 index e505584d..00000000 --- a/lib/src/v3/models/post/post_aggregates.g.dart +++ /dev/null @@ -1,42 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post_aggregates.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostAggregatesImpl _$$PostAggregatesImplFromJson(Map json) => - _$PostAggregatesImpl( - id: (json['id'] as num?)?.toInt(), - postId: (json['post_id'] as num).toInt(), - comments: (json['comments'] as num).toInt(), - score: (json['score'] as num).toInt(), - upvotes: (json['upvotes'] as num).toInt(), - downvotes: (json['downvotes'] as num).toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - newestCommentTimeNecro: json['newest_comment_time_necro'] as String?, - newestCommentTime: json['newest_comment_time'] as String?, - featuredCommunity: json['featured_community'] as bool?, - featuredLocal: json['featured_local'] as bool?, - hotRank: (json['hot_rank'] as num?)?.toInt(), - hotRankActive: (json['hot_rank_active'] as num?)?.toInt(), - ); - -Map _$$PostAggregatesImplToJson( - _$PostAggregatesImpl instance) => - { - 'id': instance.id, - 'post_id': instance.postId, - 'comments': instance.comments, - 'score': instance.score, - 'upvotes': instance.upvotes, - 'downvotes': instance.downvotes, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'newest_comment_time_necro': instance.newestCommentTimeNecro, - 'newest_comment_time': instance.newestCommentTime, - 'featured_community': instance.featuredCommunity, - 'featured_local': instance.featuredLocal, - 'hot_rank': instance.hotRank, - 'hot_rank_active': instance.hotRankActive, - }; diff --git a/lib/src/v3/models/post/post_report.dart b/lib/src/v3/models/post/post_report.dart deleted file mode 100644 index 793cbaaf..00000000 --- a/lib/src/v3/models/post/post_report.dart +++ /dev/null @@ -1,29 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'post_report.freezed.dart'; -part 'post_report.g.dart'; - -@freezed -class PostReport with _$PostReport { - @modelSerde - const factory PostReport({ - required int id, // v0.18.0 - required int creatorId, // v0.18.0 - required int postId, // v0.18.0 - required String originalPostName, // v0.18.0 - String? originalPostUrl, // v0.18.0 - String? originalPostBody, // v0.18.0 - required String reason, // v0.18.0 - required bool resolved, // v0.18.0 - int? resolverId, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - }) = _PostReport; - - const PostReport._(); - factory PostReport.fromJson(Map json) => - _$PostReportFromJson(json); -} diff --git a/lib/src/v3/models/post/post_report.freezed.dart b/lib/src/v3/models/post/post_report.freezed.dart deleted file mode 100644 index 0e7f9c15..00000000 --- a/lib/src/v3/models/post/post_report.freezed.dart +++ /dev/null @@ -1,400 +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 'post_report.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'); - -PostReport _$PostReportFromJson(Map json) { - return _PostReport.fromJson(json); -} - -/// @nodoc -mixin _$PostReport { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get creatorId => throw _privateConstructorUsedError; // v0.18.0 - int get postId => throw _privateConstructorUsedError; // v0.18.0 - String get originalPostName => throw _privateConstructorUsedError; // v0.18.0 - String? get originalPostUrl => throw _privateConstructorUsedError; // v0.18.0 - String? get originalPostBody => throw _privateConstructorUsedError; // v0.18.0 - String get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get resolved => throw _privateConstructorUsedError; // v0.18.0 - int? get resolverId => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; - - /// Serializes this PostReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PostReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostReportCopyWith<$Res> { - factory $PostReportCopyWith( - PostReport value, $Res Function(PostReport) then) = - _$PostReportCopyWithImpl<$Res, PostReport>; - @useResult - $Res call( - {int id, - int creatorId, - int postId, - String originalPostName, - String? originalPostUrl, - String? originalPostBody, - String reason, - bool resolved, - int? resolverId, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class _$PostReportCopyWithImpl<$Res, $Val extends PostReport> - implements $PostReportCopyWith<$Res> { - _$PostReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PostReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? postId = null, - Object? originalPostName = null, - Object? originalPostUrl = freezed, - Object? originalPostBody = freezed, - Object? reason = null, - Object? resolved = null, - Object? resolverId = freezed, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - originalPostName: null == originalPostName - ? _value.originalPostName - : originalPostName // ignore: cast_nullable_to_non_nullable - as String, - originalPostUrl: freezed == originalPostUrl - ? _value.originalPostUrl - : originalPostUrl // ignore: cast_nullable_to_non_nullable - as String?, - originalPostBody: freezed == originalPostBody - ? _value.originalPostBody - : originalPostBody // ignore: cast_nullable_to_non_nullable - as String?, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - resolverId: freezed == resolverId - ? _value.resolverId - : resolverId // ignore: cast_nullable_to_non_nullable - as int?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PostReportImplCopyWith<$Res> - implements $PostReportCopyWith<$Res> { - factory _$$PostReportImplCopyWith( - _$PostReportImpl value, $Res Function(_$PostReportImpl) then) = - __$$PostReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int creatorId, - int postId, - String originalPostName, - String? originalPostUrl, - String? originalPostBody, - String reason, - bool resolved, - int? resolverId, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class __$$PostReportImplCopyWithImpl<$Res> - extends _$PostReportCopyWithImpl<$Res, _$PostReportImpl> - implements _$$PostReportImplCopyWith<$Res> { - __$$PostReportImplCopyWithImpl( - _$PostReportImpl _value, $Res Function(_$PostReportImpl) _then) - : super(_value, _then); - - /// Create a copy of PostReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? postId = null, - Object? originalPostName = null, - Object? originalPostUrl = freezed, - Object? originalPostBody = freezed, - Object? reason = null, - Object? resolved = null, - Object? resolverId = freezed, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_$PostReportImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - postId: null == postId - ? _value.postId - : postId // ignore: cast_nullable_to_non_nullable - as int, - originalPostName: null == originalPostName - ? _value.originalPostName - : originalPostName // ignore: cast_nullable_to_non_nullable - as String, - originalPostUrl: freezed == originalPostUrl - ? _value.originalPostUrl - : originalPostUrl // ignore: cast_nullable_to_non_nullable - as String?, - originalPostBody: freezed == originalPostBody - ? _value.originalPostBody - : originalPostBody // ignore: cast_nullable_to_non_nullable - as String?, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - resolverId: freezed == resolverId - ? _value.resolverId - : resolverId // ignore: cast_nullable_to_non_nullable - as int?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostReportImpl extends _PostReport { - const _$PostReportImpl( - {required this.id, - required this.creatorId, - required this.postId, - required this.originalPostName, - this.originalPostUrl, - this.originalPostBody, - required this.reason, - required this.resolved, - this.resolverId, - required this.published, - this.updated}) - : super._(); - - factory _$PostReportImpl.fromJson(Map json) => - _$$PostReportImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int creatorId; -// v0.18.0 - @override - final int postId; -// v0.18.0 - @override - final String originalPostName; -// v0.18.0 - @override - final String? originalPostUrl; -// v0.18.0 - @override - final String? originalPostBody; -// v0.18.0 - @override - final String reason; -// v0.18.0 - @override - final bool resolved; -// v0.18.0 - @override - final int? resolverId; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; - - @override - String toString() { - return 'PostReport(id: $id, creatorId: $creatorId, postId: $postId, originalPostName: $originalPostName, originalPostUrl: $originalPostUrl, originalPostBody: $originalPostBody, reason: $reason, resolved: $resolved, resolverId: $resolverId, published: $published, updated: $updated)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostReportImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.postId, postId) || other.postId == postId) && - (identical(other.originalPostName, originalPostName) || - other.originalPostName == originalPostName) && - (identical(other.originalPostUrl, originalPostUrl) || - other.originalPostUrl == originalPostUrl) && - (identical(other.originalPostBody, originalPostBody) || - other.originalPostBody == originalPostBody) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.resolved, resolved) || - other.resolved == resolved) && - (identical(other.resolverId, resolverId) || - other.resolverId == resolverId) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - creatorId, - postId, - originalPostName, - originalPostUrl, - originalPostBody, - reason, - resolved, - resolverId, - published, - updated); - - /// Create a copy of PostReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostReportImplCopyWith<_$PostReportImpl> get copyWith => - __$$PostReportImplCopyWithImpl<_$PostReportImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PostReportImplToJson( - this, - ); - } -} - -abstract class _PostReport extends PostReport { - const factory _PostReport( - {required final int id, - required final int creatorId, - required final int postId, - required final String originalPostName, - final String? originalPostUrl, - final String? originalPostBody, - required final String reason, - required final bool resolved, - final int? resolverId, - required final DateTime published, - final DateTime? updated}) = _$PostReportImpl; - const _PostReport._() : super._(); - - factory _PostReport.fromJson(Map json) = - _$PostReportImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get creatorId; // v0.18.0 - @override - int get postId; // v0.18.0 - @override - String get originalPostName; // v0.18.0 - @override - String? get originalPostUrl; // v0.18.0 - @override - String? get originalPostBody; // v0.18.0 - @override - String get reason; // v0.18.0 - @override - bool get resolved; // v0.18.0 - @override - int? get resolverId; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; - - /// Create a copy of PostReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostReportImplCopyWith<_$PostReportImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/post_report.g.dart b/lib/src/v3/models/post/post_report.g.dart deleted file mode 100644 index 922b46c5..00000000 --- a/lib/src/v3/models/post/post_report.g.dart +++ /dev/null @@ -1,51 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post_report.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostReportImpl _$$PostReportImplFromJson(Map json) => - _$PostReportImpl( - id: (json['id'] as num).toInt(), - creatorId: (json['creator_id'] as num).toInt(), - postId: (json['post_id'] as num).toInt(), - originalPostName: json['original_post_name'] as String, - originalPostUrl: json['original_post_url'] as String?, - originalPostBody: json['original_post_body'] as String?, - reason: json['reason'] as String, - resolved: json['resolved'] as bool, - resolverId: (json['resolver_id'] as num?)?.toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - ); - -Map _$$PostReportImplToJson(_$PostReportImpl instance) => - { - 'id': instance.id, - 'creator_id': instance.creatorId, - 'post_id': instance.postId, - 'original_post_name': instance.originalPostName, - 'original_post_url': instance.originalPostUrl, - 'original_post_body': instance.originalPostBody, - 'reason': instance.reason, - 'resolved': instance.resolved, - 'resolver_id': instance.resolverId, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/post/post_report_response.dart b/lib/src/v3/models/post/post_report_response.dart deleted file mode 100644 index 1b1fe9f3..00000000 --- a/lib/src/v3/models/post/post_report_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'post_report_response.freezed.dart'; -part 'post_report_response.g.dart'; - -@freezed -class PostReportResponse with _$PostReportResponse { - @modelSerde - const factory PostReportResponse({ - required PostReportView postReportView, // v0.18.0 - }) = _PostReportResponse; - - const PostReportResponse._(); - factory PostReportResponse.fromJson(Map json) => - _$PostReportResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/post_report_response.freezed.dart b/lib/src/v3/models/post/post_report_response.freezed.dart deleted file mode 100644 index e10a0956..00000000 --- a/lib/src/v3/models/post/post_report_response.freezed.dart +++ /dev/null @@ -1,185 +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 'post_report_response.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'); - -PostReportResponse _$PostReportResponseFromJson(Map json) { - return _PostReportResponse.fromJson(json); -} - -/// @nodoc -mixin _$PostReportResponse { - PostReportView get postReportView => throw _privateConstructorUsedError; - - /// Serializes this PostReportResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PostReportResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostReportResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostReportResponseCopyWith<$Res> { - factory $PostReportResponseCopyWith( - PostReportResponse value, $Res Function(PostReportResponse) then) = - _$PostReportResponseCopyWithImpl<$Res, PostReportResponse>; - @useResult - $Res call({PostReportView postReportView}); - - $PostReportViewCopyWith<$Res> get postReportView; -} - -/// @nodoc -class _$PostReportResponseCopyWithImpl<$Res, $Val extends PostReportResponse> - implements $PostReportResponseCopyWith<$Res> { - _$PostReportResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PostReportResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postReportView = null, - }) { - return _then(_value.copyWith( - postReportView: null == postReportView - ? _value.postReportView - : postReportView // ignore: cast_nullable_to_non_nullable - as PostReportView, - ) as $Val); - } - - /// Create a copy of PostReportResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostReportViewCopyWith<$Res> get postReportView { - return $PostReportViewCopyWith<$Res>(_value.postReportView, (value) { - return _then(_value.copyWith(postReportView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PostReportResponseImplCopyWith<$Res> - implements $PostReportResponseCopyWith<$Res> { - factory _$$PostReportResponseImplCopyWith(_$PostReportResponseImpl value, - $Res Function(_$PostReportResponseImpl) then) = - __$$PostReportResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PostReportView postReportView}); - - @override - $PostReportViewCopyWith<$Res> get postReportView; -} - -/// @nodoc -class __$$PostReportResponseImplCopyWithImpl<$Res> - extends _$PostReportResponseCopyWithImpl<$Res, _$PostReportResponseImpl> - implements _$$PostReportResponseImplCopyWith<$Res> { - __$$PostReportResponseImplCopyWithImpl(_$PostReportResponseImpl _value, - $Res Function(_$PostReportResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PostReportResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postReportView = null, - }) { - return _then(_$PostReportResponseImpl( - postReportView: null == postReportView - ? _value.postReportView - : postReportView // ignore: cast_nullable_to_non_nullable - as PostReportView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostReportResponseImpl extends _PostReportResponse { - const _$PostReportResponseImpl({required this.postReportView}) : super._(); - - factory _$PostReportResponseImpl.fromJson(Map json) => - _$$PostReportResponseImplFromJson(json); - - @override - final PostReportView postReportView; - - @override - String toString() { - return 'PostReportResponse(postReportView: $postReportView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostReportResponseImpl && - (identical(other.postReportView, postReportView) || - other.postReportView == postReportView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postReportView); - - /// Create a copy of PostReportResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostReportResponseImplCopyWith<_$PostReportResponseImpl> get copyWith => - __$$PostReportResponseImplCopyWithImpl<_$PostReportResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PostReportResponseImplToJson( - this, - ); - } -} - -abstract class _PostReportResponse extends PostReportResponse { - const factory _PostReportResponse( - {required final PostReportView postReportView}) = - _$PostReportResponseImpl; - const _PostReportResponse._() : super._(); - - factory _PostReportResponse.fromJson(Map json) = - _$PostReportResponseImpl.fromJson; - - @override - PostReportView get postReportView; - - /// Create a copy of PostReportResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostReportResponseImplCopyWith<_$PostReportResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/post_report_response.g.dart b/lib/src/v3/models/post/post_report_response.g.dart deleted file mode 100644 index 41471571..00000000 --- a/lib/src/v3/models/post/post_report_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post_report_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostReportResponseImpl _$$PostReportResponseImplFromJson( - Map json) => - _$PostReportResponseImpl( - postReportView: PostReportView.fromJson( - json['post_report_view'] as Map), - ); - -Map _$$PostReportResponseImplToJson( - _$PostReportResponseImpl instance) => - { - 'post_report_view': instance.postReportView.toJson(), - }; diff --git a/lib/src/v3/models/post/post_response.dart b/lib/src/v3/models/post/post_response.dart deleted file mode 100644 index f2e71678..00000000 --- a/lib/src/v3/models/post/post_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'post_response.freezed.dart'; -part 'post_response.g.dart'; - -@freezed -class PostResponse with _$PostResponse { - @modelSerde - const factory PostResponse({ - required PostView postView, // v0.18.0 - }) = _PostResponse; - - const PostResponse._(); - factory PostResponse.fromJson(Map json) => - _$PostResponseFromJson(json); -} diff --git a/lib/src/v3/models/post/post_response.freezed.dart b/lib/src/v3/models/post/post_response.freezed.dart deleted file mode 100644 index 8032cacb..00000000 --- a/lib/src/v3/models/post/post_response.freezed.dart +++ /dev/null @@ -1,183 +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 'post_response.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'); - -PostResponse _$PostResponseFromJson(Map json) { - return _PostResponse.fromJson(json); -} - -/// @nodoc -mixin _$PostResponse { - PostView get postView => throw _privateConstructorUsedError; - - /// Serializes this PostResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PostResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostResponseCopyWith<$Res> { - factory $PostResponseCopyWith( - PostResponse value, $Res Function(PostResponse) then) = - _$PostResponseCopyWithImpl<$Res, PostResponse>; - @useResult - $Res call({PostView postView}); - - $PostViewCopyWith<$Res> get postView; -} - -/// @nodoc -class _$PostResponseCopyWithImpl<$Res, $Val extends PostResponse> - implements $PostResponseCopyWith<$Res> { - _$PostResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PostResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postView = null, - }) { - return _then(_value.copyWith( - postView: null == postView - ? _value.postView - : postView // ignore: cast_nullable_to_non_nullable - as PostView, - ) as $Val); - } - - /// Create a copy of PostResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostViewCopyWith<$Res> get postView { - return $PostViewCopyWith<$Res>(_value.postView, (value) { - return _then(_value.copyWith(postView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PostResponseImplCopyWith<$Res> - implements $PostResponseCopyWith<$Res> { - factory _$$PostResponseImplCopyWith( - _$PostResponseImpl value, $Res Function(_$PostResponseImpl) then) = - __$$PostResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PostView postView}); - - @override - $PostViewCopyWith<$Res> get postView; -} - -/// @nodoc -class __$$PostResponseImplCopyWithImpl<$Res> - extends _$PostResponseCopyWithImpl<$Res, _$PostResponseImpl> - implements _$$PostResponseImplCopyWith<$Res> { - __$$PostResponseImplCopyWithImpl( - _$PostResponseImpl _value, $Res Function(_$PostResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PostResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postView = null, - }) { - return _then(_$PostResponseImpl( - postView: null == postView - ? _value.postView - : postView // ignore: cast_nullable_to_non_nullable - as PostView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostResponseImpl extends _PostResponse { - const _$PostResponseImpl({required this.postView}) : super._(); - - factory _$PostResponseImpl.fromJson(Map json) => - _$$PostResponseImplFromJson(json); - - @override - final PostView postView; - - @override - String toString() { - return 'PostResponse(postView: $postView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostResponseImpl && - (identical(other.postView, postView) || - other.postView == postView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, postView); - - /// Create a copy of PostResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostResponseImplCopyWith<_$PostResponseImpl> get copyWith => - __$$PostResponseImplCopyWithImpl<_$PostResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PostResponseImplToJson( - this, - ); - } -} - -abstract class _PostResponse extends PostResponse { - const factory _PostResponse({required final PostView postView}) = - _$PostResponseImpl; - const _PostResponse._() : super._(); - - factory _PostResponse.fromJson(Map json) = - _$PostResponseImpl.fromJson; - - @override - PostView get postView; - - /// Create a copy of PostResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostResponseImplCopyWith<_$PostResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/post/post_response.g.dart b/lib/src/v3/models/post/post_response.g.dart deleted file mode 100644 index c782ccfd..00000000 --- a/lib/src/v3/models/post/post_response.g.dart +++ /dev/null @@ -1,17 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostResponseImpl _$$PostResponseImplFromJson(Map json) => - _$PostResponseImpl( - postView: PostView.fromJson(json['post_view'] as Map), - ); - -Map _$$PostResponseImplToJson(_$PostResponseImpl instance) => - { - 'post_view': instance.postView.toJson(), - }; diff --git a/lib/src/v3/models/private_message/list_private_message_reports_response.dart b/lib/src/v3/models/private_message/list_private_message_reports_response.dart deleted file mode 100644 index 4ece4bbd..00000000 --- a/lib/src/v3/models/private_message/list_private_message_reports_response.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'list_private_message_reports_response.freezed.dart'; -part 'list_private_message_reports_response.g.dart'; - -@freezed -class ListPrivateMessageReportsResponse - with _$ListPrivateMessageReportsResponse { - @modelSerde - const factory ListPrivateMessageReportsResponse({ - required List privateMessageReports, // v0.18.0 - }) = _ListPrivateMessageReportsResponse; - - const ListPrivateMessageReportsResponse._(); - factory ListPrivateMessageReportsResponse.fromJson( - Map json, - ) => - _$ListPrivateMessageReportsResponseFromJson(json); -} diff --git a/lib/src/v3/models/private_message/list_private_message_reports_response.freezed.dart b/lib/src/v3/models/private_message/list_private_message_reports_response.freezed.dart deleted file mode 100644 index 69787f32..00000000 --- a/lib/src/v3/models/private_message/list_private_message_reports_response.freezed.dart +++ /dev/null @@ -1,194 +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 'list_private_message_reports_response.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'); - -ListPrivateMessageReportsResponse _$ListPrivateMessageReportsResponseFromJson( - Map json) { - return _ListPrivateMessageReportsResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListPrivateMessageReportsResponse { - List get privateMessageReports => - throw _privateConstructorUsedError; - - /// Serializes this ListPrivateMessageReportsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListPrivateMessageReportsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListPrivateMessageReportsResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListPrivateMessageReportsResponseCopyWith<$Res> { - factory $ListPrivateMessageReportsResponseCopyWith( - ListPrivateMessageReportsResponse value, - $Res Function(ListPrivateMessageReportsResponse) then) = - _$ListPrivateMessageReportsResponseCopyWithImpl<$Res, - ListPrivateMessageReportsResponse>; - @useResult - $Res call({List privateMessageReports}); -} - -/// @nodoc -class _$ListPrivateMessageReportsResponseCopyWithImpl<$Res, - $Val extends ListPrivateMessageReportsResponse> - implements $ListPrivateMessageReportsResponseCopyWith<$Res> { - _$ListPrivateMessageReportsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListPrivateMessageReportsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageReports = null, - }) { - return _then(_value.copyWith( - privateMessageReports: null == privateMessageReports - ? _value.privateMessageReports - : privateMessageReports // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListPrivateMessageReportsResponseImplCopyWith<$Res> - implements $ListPrivateMessageReportsResponseCopyWith<$Res> { - factory _$$ListPrivateMessageReportsResponseImplCopyWith( - _$ListPrivateMessageReportsResponseImpl value, - $Res Function(_$ListPrivateMessageReportsResponseImpl) then) = - __$$ListPrivateMessageReportsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List privateMessageReports}); -} - -/// @nodoc -class __$$ListPrivateMessageReportsResponseImplCopyWithImpl<$Res> - extends _$ListPrivateMessageReportsResponseCopyWithImpl<$Res, - _$ListPrivateMessageReportsResponseImpl> - implements _$$ListPrivateMessageReportsResponseImplCopyWith<$Res> { - __$$ListPrivateMessageReportsResponseImplCopyWithImpl( - _$ListPrivateMessageReportsResponseImpl _value, - $Res Function(_$ListPrivateMessageReportsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListPrivateMessageReportsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageReports = null, - }) { - return _then(_$ListPrivateMessageReportsResponseImpl( - privateMessageReports: null == privateMessageReports - ? _value._privateMessageReports - : privateMessageReports // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListPrivateMessageReportsResponseImpl - extends _ListPrivateMessageReportsResponse { - const _$ListPrivateMessageReportsResponseImpl( - {required final List privateMessageReports}) - : _privateMessageReports = privateMessageReports, - super._(); - - factory _$ListPrivateMessageReportsResponseImpl.fromJson( - Map json) => - _$$ListPrivateMessageReportsResponseImplFromJson(json); - - final List _privateMessageReports; - @override - List get privateMessageReports { - if (_privateMessageReports is EqualUnmodifiableListView) - return _privateMessageReports; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_privateMessageReports); - } - - @override - String toString() { - return 'ListPrivateMessageReportsResponse(privateMessageReports: $privateMessageReports)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPrivateMessageReportsResponseImpl && - const DeepCollectionEquality() - .equals(other._privateMessageReports, _privateMessageReports)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_privateMessageReports)); - - /// Create a copy of ListPrivateMessageReportsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListPrivateMessageReportsResponseImplCopyWith< - _$ListPrivateMessageReportsResponseImpl> - get copyWith => __$$ListPrivateMessageReportsResponseImplCopyWithImpl< - _$ListPrivateMessageReportsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ListPrivateMessageReportsResponseImplToJson( - this, - ); - } -} - -abstract class _ListPrivateMessageReportsResponse - extends ListPrivateMessageReportsResponse { - const factory _ListPrivateMessageReportsResponse( - {required final List - privateMessageReports}) = _$ListPrivateMessageReportsResponseImpl; - const _ListPrivateMessageReportsResponse._() : super._(); - - factory _ListPrivateMessageReportsResponse.fromJson( - Map json) = - _$ListPrivateMessageReportsResponseImpl.fromJson; - - @override - List get privateMessageReports; - - /// Create a copy of ListPrivateMessageReportsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListPrivateMessageReportsResponseImplCopyWith< - _$ListPrivateMessageReportsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/private_message/list_private_message_reports_response.g.dart b/lib/src/v3/models/private_message/list_private_message_reports_response.g.dart deleted file mode 100644 index 444afd4b..00000000 --- a/lib/src/v3/models/private_message/list_private_message_reports_response.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_private_message_reports_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListPrivateMessageReportsResponseImpl - _$$ListPrivateMessageReportsResponseImplFromJson( - Map json) => - _$ListPrivateMessageReportsResponseImpl( - privateMessageReports: (json['private_message_reports'] - as List) - .map((e) => - PrivateMessageReportView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListPrivateMessageReportsResponseImplToJson( - _$ListPrivateMessageReportsResponseImpl instance) => - { - 'private_message_reports': - instance.privateMessageReports.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/private_message/private_message.dart b/lib/src/v3/models/private_message/private_message.dart deleted file mode 100644 index e46cb53b..00000000 --- a/lib/src/v3/models/private_message/private_message.dart +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'private_message.freezed.dart'; -part 'private_message.g.dart'; - -@freezed -class PrivateMessage with _$PrivateMessage { - @modelSerde - const factory PrivateMessage({ - required int id, // v0.18.0 - required int creatorId, // v0.18.0 - required int recipientId, // v0.18.0 - required String content, // v0.18.0 - required bool deleted, // v0.18.0 - required bool read, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - required String apId, // v0.18.0 - required bool local, // v0.18.0 - }) = _PrivateMessage; - - const PrivateMessage._(); - factory PrivateMessage.fromJson(Map json) => - _$PrivateMessageFromJson(json); -} diff --git a/lib/src/v3/models/private_message/private_message.freezed.dart b/lib/src/v3/models/private_message/private_message.freezed.dart deleted file mode 100644 index 47f3a7ef..00000000 --- a/lib/src/v3/models/private_message/private_message.freezed.dart +++ /dev/null @@ -1,365 +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 'private_message.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'); - -PrivateMessage _$PrivateMessageFromJson(Map json) { - return _PrivateMessage.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessage { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get creatorId => throw _privateConstructorUsedError; // v0.18.0 - int get recipientId => throw _privateConstructorUsedError; // v0.18.0 - String get content => throw _privateConstructorUsedError; // v0.18.0 - bool get deleted => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - String get apId => throw _privateConstructorUsedError; // v0.18.0 - bool get local => throw _privateConstructorUsedError; - - /// Serializes this PrivateMessage to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessageCopyWith<$Res> { - factory $PrivateMessageCopyWith( - PrivateMessage value, $Res Function(PrivateMessage) then) = - _$PrivateMessageCopyWithImpl<$Res, PrivateMessage>; - @useResult - $Res call( - {int id, - int creatorId, - int recipientId, - String content, - bool deleted, - bool read, - DateTime published, - DateTime? updated, - String apId, - bool local}); -} - -/// @nodoc -class _$PrivateMessageCopyWithImpl<$Res, $Val extends PrivateMessage> - implements $PrivateMessageCopyWith<$Res> { - _$PrivateMessageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? recipientId = null, - Object? content = null, - Object? deleted = null, - Object? read = null, - Object? published = null, - Object? updated = freezed, - Object? apId = null, - Object? local = null, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - apId: null == apId - ? _value.apId - : apId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PrivateMessageImplCopyWith<$Res> - implements $PrivateMessageCopyWith<$Res> { - factory _$$PrivateMessageImplCopyWith(_$PrivateMessageImpl value, - $Res Function(_$PrivateMessageImpl) then) = - __$$PrivateMessageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int creatorId, - int recipientId, - String content, - bool deleted, - bool read, - DateTime published, - DateTime? updated, - String apId, - bool local}); -} - -/// @nodoc -class __$$PrivateMessageImplCopyWithImpl<$Res> - extends _$PrivateMessageCopyWithImpl<$Res, _$PrivateMessageImpl> - implements _$$PrivateMessageImplCopyWith<$Res> { - __$$PrivateMessageImplCopyWithImpl( - _$PrivateMessageImpl _value, $Res Function(_$PrivateMessageImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? recipientId = null, - Object? content = null, - Object? deleted = null, - Object? read = null, - Object? published = null, - Object? updated = freezed, - Object? apId = null, - Object? local = null, - }) { - return _then(_$PrivateMessageImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - recipientId: null == recipientId - ? _value.recipientId - : recipientId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - deleted: null == deleted - ? _value.deleted - : deleted // ignore: cast_nullable_to_non_nullable - as bool, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - apId: null == apId - ? _value.apId - : apId // ignore: cast_nullable_to_non_nullable - as String, - local: null == local - ? _value.local - : local // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessageImpl extends _PrivateMessage { - const _$PrivateMessageImpl( - {required this.id, - required this.creatorId, - required this.recipientId, - required this.content, - required this.deleted, - required this.read, - required this.published, - this.updated, - required this.apId, - required this.local}) - : super._(); - - factory _$PrivateMessageImpl.fromJson(Map json) => - _$$PrivateMessageImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int creatorId; -// v0.18.0 - @override - final int recipientId; -// v0.18.0 - @override - final String content; -// v0.18.0 - @override - final bool deleted; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final String apId; -// v0.18.0 - @override - final bool local; - - @override - String toString() { - return 'PrivateMessage(id: $id, creatorId: $creatorId, recipientId: $recipientId, content: $content, deleted: $deleted, read: $read, published: $published, updated: $updated, apId: $apId, local: $local)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessageImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.recipientId, recipientId) || - other.recipientId == recipientId) && - (identical(other.content, content) || other.content == content) && - (identical(other.deleted, deleted) || other.deleted == deleted) && - (identical(other.read, read) || other.read == read) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.apId, apId) || other.apId == apId) && - (identical(other.local, local) || other.local == local)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, creatorId, recipientId, - content, deleted, read, published, updated, apId, local); - - /// Create a copy of PrivateMessage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessageImplCopyWith<_$PrivateMessageImpl> get copyWith => - __$$PrivateMessageImplCopyWithImpl<_$PrivateMessageImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessageImplToJson( - this, - ); - } -} - -abstract class _PrivateMessage extends PrivateMessage { - const factory _PrivateMessage( - {required final int id, - required final int creatorId, - required final int recipientId, - required final String content, - required final bool deleted, - required final bool read, - required final DateTime published, - final DateTime? updated, - required final String apId, - required final bool local}) = _$PrivateMessageImpl; - const _PrivateMessage._() : super._(); - - factory _PrivateMessage.fromJson(Map json) = - _$PrivateMessageImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get creatorId; // v0.18.0 - @override - int get recipientId; // v0.18.0 - @override - String get content; // v0.18.0 - @override - bool get deleted; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - String get apId; // v0.18.0 - @override - bool get local; - - /// Create a copy of PrivateMessage - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessageImplCopyWith<_$PrivateMessageImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/private_message/private_message.g.dart b/lib/src/v3/models/private_message/private_message.g.dart deleted file mode 100644 index 8f25dae4..00000000 --- a/lib/src/v3/models/private_message/private_message.g.dart +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessageImpl _$$PrivateMessageImplFromJson(Map json) => - _$PrivateMessageImpl( - id: (json['id'] as num).toInt(), - creatorId: (json['creator_id'] as num).toInt(), - recipientId: (json['recipient_id'] as num).toInt(), - content: json['content'] as String, - deleted: json['deleted'] as bool, - read: json['read'] as bool, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - apId: json['ap_id'] as String, - local: json['local'] as bool, - ); - -Map _$$PrivateMessageImplToJson( - _$PrivateMessageImpl instance) => - { - 'id': instance.id, - 'creator_id': instance.creatorId, - 'recipient_id': instance.recipientId, - 'content': instance.content, - 'deleted': instance.deleted, - 'read': instance.read, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'ap_id': instance.apId, - 'local': instance.local, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/private_message/private_message_report.dart b/lib/src/v3/models/private_message/private_message_report.dart deleted file mode 100644 index cb06945d..00000000 --- a/lib/src/v3/models/private_message/private_message_report.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'private_message_report.freezed.dart'; -part 'private_message_report.g.dart'; - -@freezed -class PrivateMessageReport with _$PrivateMessageReport { - @modelSerde - const factory PrivateMessageReport({ - required int id, // v0.18.0 - required int creatorId, // v0.18.0 - required int privateMessageId, // v0.18.0 - required String originalPmText, // v0.18.0 - required String reason, // v0.18.0 - required bool resolved, // v0.18.0 - int? resolverId, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - }) = _PrivateMessageReport; - - const PrivateMessageReport._(); - factory PrivateMessageReport.fromJson(Map json) => - _$PrivateMessageReportFromJson(json); -} diff --git a/lib/src/v3/models/private_message/private_message_report.freezed.dart b/lib/src/v3/models/private_message/private_message_report.freezed.dart deleted file mode 100644 index 864c461a..00000000 --- a/lib/src/v3/models/private_message/private_message_report.freezed.dart +++ /dev/null @@ -1,349 +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 'private_message_report.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'); - -PrivateMessageReport _$PrivateMessageReportFromJson(Map json) { - return _PrivateMessageReport.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessageReport { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get creatorId => throw _privateConstructorUsedError; // v0.18.0 - int get privateMessageId => throw _privateConstructorUsedError; // v0.18.0 - String get originalPmText => throw _privateConstructorUsedError; // v0.18.0 - String get reason => throw _privateConstructorUsedError; // v0.18.0 - bool get resolved => throw _privateConstructorUsedError; // v0.18.0 - int? get resolverId => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; - - /// Serializes this PrivateMessageReport to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessageReportCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessageReportCopyWith<$Res> { - factory $PrivateMessageReportCopyWith(PrivateMessageReport value, - $Res Function(PrivateMessageReport) then) = - _$PrivateMessageReportCopyWithImpl<$Res, PrivateMessageReport>; - @useResult - $Res call( - {int id, - int creatorId, - int privateMessageId, - String originalPmText, - String reason, - bool resolved, - int? resolverId, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class _$PrivateMessageReportCopyWithImpl<$Res, - $Val extends PrivateMessageReport> - implements $PrivateMessageReportCopyWith<$Res> { - _$PrivateMessageReportCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? privateMessageId = null, - Object? originalPmText = null, - Object? reason = null, - Object? resolved = null, - Object? resolverId = freezed, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - originalPmText: null == originalPmText - ? _value.originalPmText - : originalPmText // ignore: cast_nullable_to_non_nullable - as String, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - resolverId: freezed == resolverId - ? _value.resolverId - : resolverId // ignore: cast_nullable_to_non_nullable - as int?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PrivateMessageReportImplCopyWith<$Res> - implements $PrivateMessageReportCopyWith<$Res> { - factory _$$PrivateMessageReportImplCopyWith(_$PrivateMessageReportImpl value, - $Res Function(_$PrivateMessageReportImpl) then) = - __$$PrivateMessageReportImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int creatorId, - int privateMessageId, - String originalPmText, - String reason, - bool resolved, - int? resolverId, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class __$$PrivateMessageReportImplCopyWithImpl<$Res> - extends _$PrivateMessageReportCopyWithImpl<$Res, _$PrivateMessageReportImpl> - implements _$$PrivateMessageReportImplCopyWith<$Res> { - __$$PrivateMessageReportImplCopyWithImpl(_$PrivateMessageReportImpl _value, - $Res Function(_$PrivateMessageReportImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? creatorId = null, - Object? privateMessageId = null, - Object? originalPmText = null, - Object? reason = null, - Object? resolved = null, - Object? resolverId = freezed, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_$PrivateMessageReportImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - creatorId: null == creatorId - ? _value.creatorId - : creatorId // ignore: cast_nullable_to_non_nullable - as int, - privateMessageId: null == privateMessageId - ? _value.privateMessageId - : privateMessageId // ignore: cast_nullable_to_non_nullable - as int, - originalPmText: null == originalPmText - ? _value.originalPmText - : originalPmText // ignore: cast_nullable_to_non_nullable - as String, - reason: null == reason - ? _value.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - resolved: null == resolved - ? _value.resolved - : resolved // ignore: cast_nullable_to_non_nullable - as bool, - resolverId: freezed == resolverId - ? _value.resolverId - : resolverId // ignore: cast_nullable_to_non_nullable - as int?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessageReportImpl extends _PrivateMessageReport { - const _$PrivateMessageReportImpl( - {required this.id, - required this.creatorId, - required this.privateMessageId, - required this.originalPmText, - required this.reason, - required this.resolved, - this.resolverId, - required this.published, - this.updated}) - : super._(); - - factory _$PrivateMessageReportImpl.fromJson(Map json) => - _$$PrivateMessageReportImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int creatorId; -// v0.18.0 - @override - final int privateMessageId; -// v0.18.0 - @override - final String originalPmText; -// v0.18.0 - @override - final String reason; -// v0.18.0 - @override - final bool resolved; -// v0.18.0 - @override - final int? resolverId; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; - - @override - String toString() { - return 'PrivateMessageReport(id: $id, creatorId: $creatorId, privateMessageId: $privateMessageId, originalPmText: $originalPmText, reason: $reason, resolved: $resolved, resolverId: $resolverId, published: $published, updated: $updated)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessageReportImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.creatorId, creatorId) || - other.creatorId == creatorId) && - (identical(other.privateMessageId, privateMessageId) || - other.privateMessageId == privateMessageId) && - (identical(other.originalPmText, originalPmText) || - other.originalPmText == originalPmText) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.resolved, resolved) || - other.resolved == resolved) && - (identical(other.resolverId, resolverId) || - other.resolverId == resolverId) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, creatorId, privateMessageId, - originalPmText, reason, resolved, resolverId, published, updated); - - /// Create a copy of PrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessageReportImplCopyWith<_$PrivateMessageReportImpl> - get copyWith => - __$$PrivateMessageReportImplCopyWithImpl<_$PrivateMessageReportImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessageReportImplToJson( - this, - ); - } -} - -abstract class _PrivateMessageReport extends PrivateMessageReport { - const factory _PrivateMessageReport( - {required final int id, - required final int creatorId, - required final int privateMessageId, - required final String originalPmText, - required final String reason, - required final bool resolved, - final int? resolverId, - required final DateTime published, - final DateTime? updated}) = _$PrivateMessageReportImpl; - const _PrivateMessageReport._() : super._(); - - factory _PrivateMessageReport.fromJson(Map json) = - _$PrivateMessageReportImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get creatorId; // v0.18.0 - @override - int get privateMessageId; // v0.18.0 - @override - String get originalPmText; // v0.18.0 - @override - String get reason; // v0.18.0 - @override - bool get resolved; // v0.18.0 - @override - int? get resolverId; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; - - /// Create a copy of PrivateMessageReport - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessageReportImplCopyWith<_$PrivateMessageReportImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/private_message/private_message_report.g.dart b/lib/src/v3/models/private_message/private_message_report.g.dart deleted file mode 100644 index bdd5ecb6..00000000 --- a/lib/src/v3/models/private_message/private_message_report.g.dart +++ /dev/null @@ -1,49 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message_report.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessageReportImpl _$$PrivateMessageReportImplFromJson( - Map json) => - _$PrivateMessageReportImpl( - id: (json['id'] as num).toInt(), - creatorId: (json['creator_id'] as num).toInt(), - privateMessageId: (json['private_message_id'] as num).toInt(), - originalPmText: json['original_pm_text'] as String, - reason: json['reason'] as String, - resolved: json['resolved'] as bool, - resolverId: (json['resolver_id'] as num?)?.toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - ); - -Map _$$PrivateMessageReportImplToJson( - _$PrivateMessageReportImpl instance) => - { - 'id': instance.id, - 'creator_id': instance.creatorId, - 'private_message_id': instance.privateMessageId, - 'original_pm_text': instance.originalPmText, - 'reason': instance.reason, - 'resolved': instance.resolved, - 'resolver_id': instance.resolverId, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/private_message/private_message_report_response.dart b/lib/src/v3/models/private_message/private_message_report_response.dart deleted file mode 100644 index 20c9a6df..00000000 --- a/lib/src/v3/models/private_message/private_message_report_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'private_message_report_response.freezed.dart'; -part 'private_message_report_response.g.dart'; - -@freezed -class PrivateMessageReportResponse with _$PrivateMessageReportResponse { - @modelSerde - const factory PrivateMessageReportResponse({ - required PrivateMessageReportView privateMessageReportView, // v0.18.0 - }) = _PrivateMessageReportResponse; - - const PrivateMessageReportResponse._(); - factory PrivateMessageReportResponse.fromJson(Map json) => - _$PrivateMessageReportResponseFromJson(json); -} diff --git a/lib/src/v3/models/private_message/private_message_report_response.freezed.dart b/lib/src/v3/models/private_message/private_message_report_response.freezed.dart deleted file mode 100644 index 189b6373..00000000 --- a/lib/src/v3/models/private_message/private_message_report_response.freezed.dart +++ /dev/null @@ -1,201 +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 'private_message_report_response.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'); - -PrivateMessageReportResponse _$PrivateMessageReportResponseFromJson( - Map json) { - return _PrivateMessageReportResponse.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessageReportResponse { - PrivateMessageReportView get privateMessageReportView => - throw _privateConstructorUsedError; - - /// Serializes this PrivateMessageReportResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessageReportResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessageReportResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessageReportResponseCopyWith<$Res> { - factory $PrivateMessageReportResponseCopyWith( - PrivateMessageReportResponse value, - $Res Function(PrivateMessageReportResponse) then) = - _$PrivateMessageReportResponseCopyWithImpl<$Res, - PrivateMessageReportResponse>; - @useResult - $Res call({PrivateMessageReportView privateMessageReportView}); - - $PrivateMessageReportViewCopyWith<$Res> get privateMessageReportView; -} - -/// @nodoc -class _$PrivateMessageReportResponseCopyWithImpl<$Res, - $Val extends PrivateMessageReportResponse> - implements $PrivateMessageReportResponseCopyWith<$Res> { - _$PrivateMessageReportResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessageReportResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageReportView = null, - }) { - return _then(_value.copyWith( - privateMessageReportView: null == privateMessageReportView - ? _value.privateMessageReportView - : privateMessageReportView // ignore: cast_nullable_to_non_nullable - as PrivateMessageReportView, - ) as $Val); - } - - /// Create a copy of PrivateMessageReportResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PrivateMessageReportViewCopyWith<$Res> get privateMessageReportView { - return $PrivateMessageReportViewCopyWith<$Res>( - _value.privateMessageReportView, (value) { - return _then(_value.copyWith(privateMessageReportView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PrivateMessageReportResponseImplCopyWith<$Res> - implements $PrivateMessageReportResponseCopyWith<$Res> { - factory _$$PrivateMessageReportResponseImplCopyWith( - _$PrivateMessageReportResponseImpl value, - $Res Function(_$PrivateMessageReportResponseImpl) then) = - __$$PrivateMessageReportResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PrivateMessageReportView privateMessageReportView}); - - @override - $PrivateMessageReportViewCopyWith<$Res> get privateMessageReportView; -} - -/// @nodoc -class __$$PrivateMessageReportResponseImplCopyWithImpl<$Res> - extends _$PrivateMessageReportResponseCopyWithImpl<$Res, - _$PrivateMessageReportResponseImpl> - implements _$$PrivateMessageReportResponseImplCopyWith<$Res> { - __$$PrivateMessageReportResponseImplCopyWithImpl( - _$PrivateMessageReportResponseImpl _value, - $Res Function(_$PrivateMessageReportResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessageReportResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageReportView = null, - }) { - return _then(_$PrivateMessageReportResponseImpl( - privateMessageReportView: null == privateMessageReportView - ? _value.privateMessageReportView - : privateMessageReportView // ignore: cast_nullable_to_non_nullable - as PrivateMessageReportView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessageReportResponseImpl extends _PrivateMessageReportResponse { - const _$PrivateMessageReportResponseImpl( - {required this.privateMessageReportView}) - : super._(); - - factory _$PrivateMessageReportResponseImpl.fromJson( - Map json) => - _$$PrivateMessageReportResponseImplFromJson(json); - - @override - final PrivateMessageReportView privateMessageReportView; - - @override - String toString() { - return 'PrivateMessageReportResponse(privateMessageReportView: $privateMessageReportView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessageReportResponseImpl && - (identical( - other.privateMessageReportView, privateMessageReportView) || - other.privateMessageReportView == privateMessageReportView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageReportView); - - /// Create a copy of PrivateMessageReportResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessageReportResponseImplCopyWith< - _$PrivateMessageReportResponseImpl> - get copyWith => __$$PrivateMessageReportResponseImplCopyWithImpl< - _$PrivateMessageReportResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessageReportResponseImplToJson( - this, - ); - } -} - -abstract class _PrivateMessageReportResponse - extends PrivateMessageReportResponse { - const factory _PrivateMessageReportResponse( - {required final PrivateMessageReportView privateMessageReportView}) = - _$PrivateMessageReportResponseImpl; - const _PrivateMessageReportResponse._() : super._(); - - factory _PrivateMessageReportResponse.fromJson(Map json) = - _$PrivateMessageReportResponseImpl.fromJson; - - @override - PrivateMessageReportView get privateMessageReportView; - - /// Create a copy of PrivateMessageReportResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessageReportResponseImplCopyWith< - _$PrivateMessageReportResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/private_message/private_message_report_response.g.dart b/lib/src/v3/models/private_message/private_message_report_response.g.dart deleted file mode 100644 index 551b60fc..00000000 --- a/lib/src/v3/models/private_message/private_message_report_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message_report_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessageReportResponseImpl _$$PrivateMessageReportResponseImplFromJson( - Map json) => - _$PrivateMessageReportResponseImpl( - privateMessageReportView: PrivateMessageReportView.fromJson( - json['private_message_report_view'] as Map), - ); - -Map _$$PrivateMessageReportResponseImplToJson( - _$PrivateMessageReportResponseImpl instance) => - { - 'private_message_report_view': instance.privateMessageReportView.toJson(), - }; diff --git a/lib/src/v3/models/private_message/private_message_response.dart b/lib/src/v3/models/private_message/private_message_response.dart deleted file mode 100644 index 352df640..00000000 --- a/lib/src/v3/models/private_message/private_message_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'private_message_response.freezed.dart'; -part 'private_message_response.g.dart'; - -@freezed -class PrivateMessageResponse with _$PrivateMessageResponse { - @modelSerde - const factory PrivateMessageResponse({ - required PrivateMessageView privateMessageView, // v0.18.0 - }) = _PrivateMessageResponse; - - const PrivateMessageResponse._(); - factory PrivateMessageResponse.fromJson(Map json) => - _$PrivateMessageResponseFromJson(json); -} diff --git a/lib/src/v3/models/private_message/private_message_response.freezed.dart b/lib/src/v3/models/private_message/private_message_response.freezed.dart deleted file mode 100644 index 8de7dc43..00000000 --- a/lib/src/v3/models/private_message/private_message_response.freezed.dart +++ /dev/null @@ -1,193 +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 'private_message_response.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'); - -PrivateMessageResponse _$PrivateMessageResponseFromJson( - Map json) { - return _PrivateMessageResponse.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessageResponse { - PrivateMessageView get privateMessageView => - throw _privateConstructorUsedError; - - /// Serializes this PrivateMessageResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessageResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessageResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessageResponseCopyWith<$Res> { - factory $PrivateMessageResponseCopyWith(PrivateMessageResponse value, - $Res Function(PrivateMessageResponse) then) = - _$PrivateMessageResponseCopyWithImpl<$Res, PrivateMessageResponse>; - @useResult - $Res call({PrivateMessageView privateMessageView}); - - $PrivateMessageViewCopyWith<$Res> get privateMessageView; -} - -/// @nodoc -class _$PrivateMessageResponseCopyWithImpl<$Res, - $Val extends PrivateMessageResponse> - implements $PrivateMessageResponseCopyWith<$Res> { - _$PrivateMessageResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessageResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageView = null, - }) { - return _then(_value.copyWith( - privateMessageView: null == privateMessageView - ? _value.privateMessageView - : privateMessageView // ignore: cast_nullable_to_non_nullable - as PrivateMessageView, - ) as $Val); - } - - /// Create a copy of PrivateMessageResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PrivateMessageViewCopyWith<$Res> get privateMessageView { - return $PrivateMessageViewCopyWith<$Res>(_value.privateMessageView, - (value) { - return _then(_value.copyWith(privateMessageView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PrivateMessageResponseImplCopyWith<$Res> - implements $PrivateMessageResponseCopyWith<$Res> { - factory _$$PrivateMessageResponseImplCopyWith( - _$PrivateMessageResponseImpl value, - $Res Function(_$PrivateMessageResponseImpl) then) = - __$$PrivateMessageResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PrivateMessageView privateMessageView}); - - @override - $PrivateMessageViewCopyWith<$Res> get privateMessageView; -} - -/// @nodoc -class __$$PrivateMessageResponseImplCopyWithImpl<$Res> - extends _$PrivateMessageResponseCopyWithImpl<$Res, - _$PrivateMessageResponseImpl> - implements _$$PrivateMessageResponseImplCopyWith<$Res> { - __$$PrivateMessageResponseImplCopyWithImpl( - _$PrivateMessageResponseImpl _value, - $Res Function(_$PrivateMessageResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessageResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageView = null, - }) { - return _then(_$PrivateMessageResponseImpl( - privateMessageView: null == privateMessageView - ? _value.privateMessageView - : privateMessageView // ignore: cast_nullable_to_non_nullable - as PrivateMessageView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessageResponseImpl extends _PrivateMessageResponse { - const _$PrivateMessageResponseImpl({required this.privateMessageView}) - : super._(); - - factory _$PrivateMessageResponseImpl.fromJson(Map json) => - _$$PrivateMessageResponseImplFromJson(json); - - @override - final PrivateMessageView privateMessageView; - - @override - String toString() { - return 'PrivateMessageResponse(privateMessageView: $privateMessageView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessageResponseImpl && - (identical(other.privateMessageView, privateMessageView) || - other.privateMessageView == privateMessageView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageView); - - /// Create a copy of PrivateMessageResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessageResponseImplCopyWith<_$PrivateMessageResponseImpl> - get copyWith => __$$PrivateMessageResponseImplCopyWithImpl< - _$PrivateMessageResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessageResponseImplToJson( - this, - ); - } -} - -abstract class _PrivateMessageResponse extends PrivateMessageResponse { - const factory _PrivateMessageResponse( - {required final PrivateMessageView privateMessageView}) = - _$PrivateMessageResponseImpl; - const _PrivateMessageResponse._() : super._(); - - factory _PrivateMessageResponse.fromJson(Map json) = - _$PrivateMessageResponseImpl.fromJson; - - @override - PrivateMessageView get privateMessageView; - - /// Create a copy of PrivateMessageResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessageResponseImplCopyWith<_$PrivateMessageResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/private_message/private_message_response.g.dart b/lib/src/v3/models/private_message/private_message_response.g.dart deleted file mode 100644 index 8ca21de0..00000000 --- a/lib/src/v3/models/private_message/private_message_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessageResponseImpl _$$PrivateMessageResponseImplFromJson( - Map json) => - _$PrivateMessageResponseImpl( - privateMessageView: PrivateMessageView.fromJson( - json['private_message_view'] as Map), - ); - -Map _$$PrivateMessageResponseImplToJson( - _$PrivateMessageResponseImpl instance) => - { - 'private_message_view': instance.privateMessageView.toJson(), - }; diff --git a/lib/src/v3/models/private_message/private_messages_response.dart b/lib/src/v3/models/private_message/private_messages_response.dart deleted file mode 100644 index 1e371c16..00000000 --- a/lib/src/v3/models/private_message/private_messages_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'private_messages_response.freezed.dart'; -part 'private_messages_response.g.dart'; - -@freezed -class PrivateMessagesResponse with _$PrivateMessagesResponse { - @modelSerde - const factory PrivateMessagesResponse({ - required List privateMessages, // v0.18.0 - }) = _PrivateMessagesResponse; - - const PrivateMessagesResponse._(); - factory PrivateMessagesResponse.fromJson(Map json) => - _$PrivateMessagesResponseFromJson(json); -} diff --git a/lib/src/v3/models/private_message/private_messages_response.freezed.dart b/lib/src/v3/models/private_message/private_messages_response.freezed.dart deleted file mode 100644 index cef78bcb..00000000 --- a/lib/src/v3/models/private_message/private_messages_response.freezed.dart +++ /dev/null @@ -1,185 +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 'private_messages_response.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'); - -PrivateMessagesResponse _$PrivateMessagesResponseFromJson( - Map json) { - return _PrivateMessagesResponse.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessagesResponse { - List get privateMessages => - throw _privateConstructorUsedError; - - /// Serializes this PrivateMessagesResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessagesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessagesResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessagesResponseCopyWith<$Res> { - factory $PrivateMessagesResponseCopyWith(PrivateMessagesResponse value, - $Res Function(PrivateMessagesResponse) then) = - _$PrivateMessagesResponseCopyWithImpl<$Res, PrivateMessagesResponse>; - @useResult - $Res call({List privateMessages}); -} - -/// @nodoc -class _$PrivateMessagesResponseCopyWithImpl<$Res, - $Val extends PrivateMessagesResponse> - implements $PrivateMessagesResponseCopyWith<$Res> { - _$PrivateMessagesResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessagesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessages = null, - }) { - return _then(_value.copyWith( - privateMessages: null == privateMessages - ? _value.privateMessages - : privateMessages // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PrivateMessagesResponseImplCopyWith<$Res> - implements $PrivateMessagesResponseCopyWith<$Res> { - factory _$$PrivateMessagesResponseImplCopyWith( - _$PrivateMessagesResponseImpl value, - $Res Function(_$PrivateMessagesResponseImpl) then) = - __$$PrivateMessagesResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List privateMessages}); -} - -/// @nodoc -class __$$PrivateMessagesResponseImplCopyWithImpl<$Res> - extends _$PrivateMessagesResponseCopyWithImpl<$Res, - _$PrivateMessagesResponseImpl> - implements _$$PrivateMessagesResponseImplCopyWith<$Res> { - __$$PrivateMessagesResponseImplCopyWithImpl( - _$PrivateMessagesResponseImpl _value, - $Res Function(_$PrivateMessagesResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessagesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessages = null, - }) { - return _then(_$PrivateMessagesResponseImpl( - privateMessages: null == privateMessages - ? _value._privateMessages - : privateMessages // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessagesResponseImpl extends _PrivateMessagesResponse { - const _$PrivateMessagesResponseImpl( - {required final List privateMessages}) - : _privateMessages = privateMessages, - super._(); - - factory _$PrivateMessagesResponseImpl.fromJson(Map json) => - _$$PrivateMessagesResponseImplFromJson(json); - - final List _privateMessages; - @override - List get privateMessages { - if (_privateMessages is EqualUnmodifiableListView) return _privateMessages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_privateMessages); - } - - @override - String toString() { - return 'PrivateMessagesResponse(privateMessages: $privateMessages)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessagesResponseImpl && - const DeepCollectionEquality() - .equals(other._privateMessages, _privateMessages)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_privateMessages)); - - /// Create a copy of PrivateMessagesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessagesResponseImplCopyWith<_$PrivateMessagesResponseImpl> - get copyWith => __$$PrivateMessagesResponseImplCopyWithImpl< - _$PrivateMessagesResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessagesResponseImplToJson( - this, - ); - } -} - -abstract class _PrivateMessagesResponse extends PrivateMessagesResponse { - const factory _PrivateMessagesResponse( - {required final List privateMessages}) = - _$PrivateMessagesResponseImpl; - const _PrivateMessagesResponse._() : super._(); - - factory _PrivateMessagesResponse.fromJson(Map json) = - _$PrivateMessagesResponseImpl.fromJson; - - @override - List get privateMessages; - - /// Create a copy of PrivateMessagesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessagesResponseImplCopyWith<_$PrivateMessagesResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/private_message/private_messages_response.g.dart b/lib/src/v3/models/private_message/private_messages_response.g.dart deleted file mode 100644 index 13ffd6eb..00000000 --- a/lib/src/v3/models/private_message/private_messages_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_messages_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessagesResponseImpl _$$PrivateMessagesResponseImplFromJson( - Map json) => - _$PrivateMessagesResponseImpl( - privateMessages: (json['private_messages'] as List) - .map((e) => PrivateMessageView.fromJson(e as Map)) - .toList(), - ); - -Map _$$PrivateMessagesResponseImplToJson( - _$PrivateMessagesResponseImpl instance) => - { - 'private_messages': - instance.privateMessages.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/resolve_object/resolve_object_response.dart b/lib/src/v3/models/resolve_object/resolve_object_response.dart deleted file mode 100644 index f76a0d55..00000000 --- a/lib/src/v3/models/resolve_object/resolve_object_response.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'resolve_object_response.freezed.dart'; -part 'resolve_object_response.g.dart'; - -@freezed -class ResolveObjectResponse with _$ResolveObjectResponse { - @modelSerde - const factory ResolveObjectResponse({ - CommentView? comment, // v0.18.0 - PostView? post, // v0.18.0 - CommunityView? community, // v0.18.0 - PersonView? person, // v0.18.0 - }) = _ResolveObjectResponse; - - const ResolveObjectResponse._(); - factory ResolveObjectResponse.fromJson(Map json) => - _$ResolveObjectResponseFromJson(json); -} diff --git a/lib/src/v3/models/resolve_object/resolve_object_response.freezed.dart b/lib/src/v3/models/resolve_object/resolve_object_response.freezed.dart deleted file mode 100644 index d7aa70a3..00000000 --- a/lib/src/v3/models/resolve_object/resolve_object_response.freezed.dart +++ /dev/null @@ -1,308 +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 'resolve_object_response.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'); - -ResolveObjectResponse _$ResolveObjectResponseFromJson( - Map json) { - return _ResolveObjectResponse.fromJson(json); -} - -/// @nodoc -mixin _$ResolveObjectResponse { - CommentView? get comment => throw _privateConstructorUsedError; // v0.18.0 - PostView? get post => throw _privateConstructorUsedError; // v0.18.0 - CommunityView? get community => throw _privateConstructorUsedError; // v0.18.0 - PersonView? get person => throw _privateConstructorUsedError; - - /// Serializes this ResolveObjectResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ResolveObjectResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ResolveObjectResponseCopyWith<$Res> { - factory $ResolveObjectResponseCopyWith(ResolveObjectResponse value, - $Res Function(ResolveObjectResponse) then) = - _$ResolveObjectResponseCopyWithImpl<$Res, ResolveObjectResponse>; - @useResult - $Res call( - {CommentView? comment, - PostView? post, - CommunityView? community, - PersonView? person}); - - $CommentViewCopyWith<$Res>? get comment; - $PostViewCopyWith<$Res>? get post; - $CommunityViewCopyWith<$Res>? get community; - $PersonViewCopyWith<$Res>? get person; -} - -/// @nodoc -class _$ResolveObjectResponseCopyWithImpl<$Res, - $Val extends ResolveObjectResponse> - implements $ResolveObjectResponseCopyWith<$Res> { - _$ResolveObjectResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? comment = freezed, - Object? post = freezed, - Object? community = freezed, - Object? person = freezed, - }) { - return _then(_value.copyWith( - comment: freezed == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as CommentView?, - post: freezed == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as PostView?, - community: freezed == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as CommunityView?, - person: freezed == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as PersonView?, - ) as $Val); - } - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentViewCopyWith<$Res>? get comment { - if (_value.comment == null) { - return null; - } - - return $CommentViewCopyWith<$Res>(_value.comment!, (value) { - return _then(_value.copyWith(comment: value) as $Val); - }); - } - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostViewCopyWith<$Res>? get post { - if (_value.post == null) { - return null; - } - - return $PostViewCopyWith<$Res>(_value.post!, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityViewCopyWith<$Res>? get community { - if (_value.community == null) { - return null; - } - - return $CommunityViewCopyWith<$Res>(_value.community!, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonViewCopyWith<$Res>? get person { - if (_value.person == null) { - return null; - } - - return $PersonViewCopyWith<$Res>(_value.person!, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ResolveObjectResponseImplCopyWith<$Res> - implements $ResolveObjectResponseCopyWith<$Res> { - factory _$$ResolveObjectResponseImplCopyWith( - _$ResolveObjectResponseImpl value, - $Res Function(_$ResolveObjectResponseImpl) then) = - __$$ResolveObjectResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommentView? comment, - PostView? post, - CommunityView? community, - PersonView? person}); - - @override - $CommentViewCopyWith<$Res>? get comment; - @override - $PostViewCopyWith<$Res>? get post; - @override - $CommunityViewCopyWith<$Res>? get community; - @override - $PersonViewCopyWith<$Res>? get person; -} - -/// @nodoc -class __$$ResolveObjectResponseImplCopyWithImpl<$Res> - extends _$ResolveObjectResponseCopyWithImpl<$Res, - _$ResolveObjectResponseImpl> - implements _$$ResolveObjectResponseImplCopyWith<$Res> { - __$$ResolveObjectResponseImplCopyWithImpl(_$ResolveObjectResponseImpl _value, - $Res Function(_$ResolveObjectResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? comment = freezed, - Object? post = freezed, - Object? community = freezed, - Object? person = freezed, - }) { - return _then(_$ResolveObjectResponseImpl( - comment: freezed == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as CommentView?, - post: freezed == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as PostView?, - community: freezed == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as CommunityView?, - person: freezed == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as PersonView?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ResolveObjectResponseImpl extends _ResolveObjectResponse { - const _$ResolveObjectResponseImpl( - {this.comment, this.post, this.community, this.person}) - : super._(); - - factory _$ResolveObjectResponseImpl.fromJson(Map json) => - _$$ResolveObjectResponseImplFromJson(json); - - @override - final CommentView? comment; -// v0.18.0 - @override - final PostView? post; -// v0.18.0 - @override - final CommunityView? community; -// v0.18.0 - @override - final PersonView? person; - - @override - String toString() { - return 'ResolveObjectResponse(comment: $comment, post: $post, community: $community, person: $person)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ResolveObjectResponseImpl && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community) && - (identical(other.person, person) || other.person == person)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, comment, post, community, person); - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ResolveObjectResponseImplCopyWith<_$ResolveObjectResponseImpl> - get copyWith => __$$ResolveObjectResponseImplCopyWithImpl< - _$ResolveObjectResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ResolveObjectResponseImplToJson( - this, - ); - } -} - -abstract class _ResolveObjectResponse extends ResolveObjectResponse { - const factory _ResolveObjectResponse( - {final CommentView? comment, - final PostView? post, - final CommunityView? community, - final PersonView? person}) = _$ResolveObjectResponseImpl; - const _ResolveObjectResponse._() : super._(); - - factory _ResolveObjectResponse.fromJson(Map json) = - _$ResolveObjectResponseImpl.fromJson; - - @override - CommentView? get comment; // v0.18.0 - @override - PostView? get post; // v0.18.0 - @override - CommunityView? get community; // v0.18.0 - @override - PersonView? get person; - - /// Create a copy of ResolveObjectResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ResolveObjectResponseImplCopyWith<_$ResolveObjectResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/resolve_object/resolve_object_response.g.dart b/lib/src/v3/models/resolve_object/resolve_object_response.g.dart deleted file mode 100644 index 71ecab31..00000000 --- a/lib/src/v3/models/resolve_object/resolve_object_response.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'resolve_object_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ResolveObjectResponseImpl _$$ResolveObjectResponseImplFromJson( - Map json) => - _$ResolveObjectResponseImpl( - comment: json['comment'] == null - ? null - : CommentView.fromJson(json['comment'] as Map), - post: json['post'] == null - ? null - : PostView.fromJson(json['post'] as Map), - community: json['community'] == null - ? null - : CommunityView.fromJson(json['community'] as Map), - person: json['person'] == null - ? null - : PersonView.fromJson(json['person'] as Map), - ); - -Map _$$ResolveObjectResponseImplToJson( - _$ResolveObjectResponseImpl instance) => - { - 'comment': instance.comment?.toJson(), - 'post': instance.post?.toJson(), - 'community': instance.community?.toJson(), - 'person': instance.person?.toJson(), - }; diff --git a/lib/src/v3/models/search/search_response.dart b/lib/src/v3/models/search/search_response.dart deleted file mode 100644 index ff082bab..00000000 --- a/lib/src/v3/models/search/search_response.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; -import '../../views/views.dart'; - -part 'search_response.freezed.dart'; -part 'search_response.g.dart'; - -@freezed -class SearchResponse with _$SearchResponse { - @modelSerde - const factory SearchResponse({ - @JsonKey(name: 'type_') required SearchType type, // v0.18.0 - required List comments, // v0.18.0 - required List posts, // v0.18.0 - required List communities, // v0.18.0 - required List users, // v0.18.0 - }) = _SearchResponse; - - const SearchResponse._(); - factory SearchResponse.fromJson(Map json) => - _$SearchResponseFromJson(json); -} diff --git a/lib/src/v3/models/search/search_response.freezed.dart b/lib/src/v3/models/search/search_response.freezed.dart deleted file mode 100644 index f488f33f..00000000 --- a/lib/src/v3/models/search/search_response.freezed.dart +++ /dev/null @@ -1,299 +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 'search_response.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'); - -SearchResponse _$SearchResponseFromJson(Map json) { - return _SearchResponse.fromJson(json); -} - -/// @nodoc -mixin _$SearchResponse { - @JsonKey(name: 'type_') - SearchType get type => throw _privateConstructorUsedError; // v0.18.0 - List get comments => - throw _privateConstructorUsedError; // v0.18.0 - List get posts => throw _privateConstructorUsedError; // v0.18.0 - List get communities => - throw _privateConstructorUsedError; // v0.18.0 - List get users => throw _privateConstructorUsedError; - - /// Serializes this SearchResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SearchResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SearchResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SearchResponseCopyWith<$Res> { - factory $SearchResponseCopyWith( - SearchResponse value, $Res Function(SearchResponse) then) = - _$SearchResponseCopyWithImpl<$Res, SearchResponse>; - @useResult - $Res call( - {@JsonKey(name: 'type_') SearchType type, - List comments, - List posts, - List communities, - List users}); -} - -/// @nodoc -class _$SearchResponseCopyWithImpl<$Res, $Val extends SearchResponse> - implements $SearchResponseCopyWith<$Res> { - _$SearchResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SearchResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = null, - Object? comments = null, - Object? posts = null, - Object? communities = null, - Object? users = null, - }) { - return _then(_value.copyWith( - type: null == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as SearchType, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as List, - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as List, - communities: null == communities - ? _value.communities - : communities // ignore: cast_nullable_to_non_nullable - as List, - users: null == users - ? _value.users - : users // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SearchResponseImplCopyWith<$Res> - implements $SearchResponseCopyWith<$Res> { - factory _$$SearchResponseImplCopyWith(_$SearchResponseImpl value, - $Res Function(_$SearchResponseImpl) then) = - __$$SearchResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@JsonKey(name: 'type_') SearchType type, - List comments, - List posts, - List communities, - List users}); -} - -/// @nodoc -class __$$SearchResponseImplCopyWithImpl<$Res> - extends _$SearchResponseCopyWithImpl<$Res, _$SearchResponseImpl> - implements _$$SearchResponseImplCopyWith<$Res> { - __$$SearchResponseImplCopyWithImpl( - _$SearchResponseImpl _value, $Res Function(_$SearchResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of SearchResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = null, - Object? comments = null, - Object? posts = null, - Object? communities = null, - Object? users = null, - }) { - return _then(_$SearchResponseImpl( - type: null == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as SearchType, - comments: null == comments - ? _value._comments - : comments // ignore: cast_nullable_to_non_nullable - as List, - posts: null == posts - ? _value._posts - : posts // ignore: cast_nullable_to_non_nullable - as List, - communities: null == communities - ? _value._communities - : communities // ignore: cast_nullable_to_non_nullable - as List, - users: null == users - ? _value._users - : users // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SearchResponseImpl extends _SearchResponse { - const _$SearchResponseImpl( - {@JsonKey(name: 'type_') required this.type, - required final List comments, - required final List posts, - required final List communities, - required final List users}) - : _comments = comments, - _posts = posts, - _communities = communities, - _users = users, - super._(); - - factory _$SearchResponseImpl.fromJson(Map json) => - _$$SearchResponseImplFromJson(json); - - @override - @JsonKey(name: 'type_') - final SearchType type; -// v0.18.0 - final List _comments; -// v0.18.0 - @override - List get comments { - if (_comments is EqualUnmodifiableListView) return _comments; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_comments); - } - -// v0.18.0 - final List _posts; -// v0.18.0 - @override - List get posts { - if (_posts is EqualUnmodifiableListView) return _posts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_posts); - } - -// v0.18.0 - final List _communities; -// v0.18.0 - @override - List get communities { - if (_communities is EqualUnmodifiableListView) return _communities; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_communities); - } - -// v0.18.0 - final List _users; -// v0.18.0 - @override - List get users { - if (_users is EqualUnmodifiableListView) return _users; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_users); - } - - @override - String toString() { - return 'SearchResponse(type: $type, comments: $comments, posts: $posts, communities: $communities, users: $users)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SearchResponseImpl && - (identical(other.type, type) || other.type == type) && - const DeepCollectionEquality().equals(other._comments, _comments) && - const DeepCollectionEquality().equals(other._posts, _posts) && - const DeepCollectionEquality() - .equals(other._communities, _communities) && - const DeepCollectionEquality().equals(other._users, _users)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - type, - const DeepCollectionEquality().hash(_comments), - const DeepCollectionEquality().hash(_posts), - const DeepCollectionEquality().hash(_communities), - const DeepCollectionEquality().hash(_users)); - - /// Create a copy of SearchResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SearchResponseImplCopyWith<_$SearchResponseImpl> get copyWith => - __$$SearchResponseImplCopyWithImpl<_$SearchResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$SearchResponseImplToJson( - this, - ); - } -} - -abstract class _SearchResponse extends SearchResponse { - const factory _SearchResponse( - {@JsonKey(name: 'type_') required final SearchType type, - required final List comments, - required final List posts, - required final List communities, - required final List users}) = _$SearchResponseImpl; - const _SearchResponse._() : super._(); - - factory _SearchResponse.fromJson(Map json) = - _$SearchResponseImpl.fromJson; - - @override - @JsonKey(name: 'type_') - SearchType get type; // v0.18.0 - @override - List get comments; // v0.18.0 - @override - List get posts; // v0.18.0 - @override - List get communities; // v0.18.0 - @override - List get users; - - /// Create a copy of SearchResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SearchResponseImplCopyWith<_$SearchResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/search/search_response.g.dart b/lib/src/v3/models/search/search_response.g.dart deleted file mode 100644 index f5afefde..00000000 --- a/lib/src/v3/models/search/search_response.g.dart +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'search_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SearchResponseImpl _$$SearchResponseImplFromJson(Map json) => - _$SearchResponseImpl( - type: SearchType.fromJson(json['type_'] as String), - comments: (json['comments'] as List) - .map((e) => CommentView.fromJson(e as Map)) - .toList(), - posts: (json['posts'] as List) - .map((e) => PostView.fromJson(e as Map)) - .toList(), - communities: (json['communities'] as List) - .map((e) => CommunityView.fromJson(e as Map)) - .toList(), - users: (json['users'] as List) - .map((e) => PersonView.fromJson(e as Map)) - .toList(), - ); - -Map _$$SearchResponseImplToJson( - _$SearchResponseImpl instance) => - { - 'type_': instance.type.toJson(), - 'comments': instance.comments.map((e) => e.toJson()).toList(), - 'posts': instance.posts.map((e) => e.toJson()).toList(), - 'communities': instance.communities.map((e) => e.toJson()).toList(), - 'users': instance.users.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/site/block_instance_response.dart b/lib/src/v3/models/site/block_instance_response.dart deleted file mode 100644 index 11b19ec1..00000000 --- a/lib/src/v3/models/site/block_instance_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'block_instance_response.freezed.dart'; -part 'block_instance_response.g.dart'; - -@freezed -class BlockInstanceResponse with _$BlockInstanceResponse { - @modelSerde - const factory BlockInstanceResponse({ - required bool blocked, // v0.19.0 (required) - }) = _BlockInstanceResponse; - - const BlockInstanceResponse._(); - factory BlockInstanceResponse.fromJson(Map json) => - _$BlockInstanceResponseFromJson(json); -} diff --git a/lib/src/v3/models/site/block_instance_response.freezed.dart b/lib/src/v3/models/site/block_instance_response.freezed.dart deleted file mode 100644 index 0a91ef03..00000000 --- a/lib/src/v3/models/site/block_instance_response.freezed.dart +++ /dev/null @@ -1,172 +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 'block_instance_response.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'); - -BlockInstanceResponse _$BlockInstanceResponseFromJson( - Map json) { - return _BlockInstanceResponse.fromJson(json); -} - -/// @nodoc -mixin _$BlockInstanceResponse { - bool get blocked => throw _privateConstructorUsedError; - - /// Serializes this BlockInstanceResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BlockInstanceResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BlockInstanceResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BlockInstanceResponseCopyWith<$Res> { - factory $BlockInstanceResponseCopyWith(BlockInstanceResponse value, - $Res Function(BlockInstanceResponse) then) = - _$BlockInstanceResponseCopyWithImpl<$Res, BlockInstanceResponse>; - @useResult - $Res call({bool blocked}); -} - -/// @nodoc -class _$BlockInstanceResponseCopyWithImpl<$Res, - $Val extends BlockInstanceResponse> - implements $BlockInstanceResponseCopyWith<$Res> { - _$BlockInstanceResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BlockInstanceResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? blocked = null, - }) { - return _then(_value.copyWith( - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BlockInstanceResponseImplCopyWith<$Res> - implements $BlockInstanceResponseCopyWith<$Res> { - factory _$$BlockInstanceResponseImplCopyWith( - _$BlockInstanceResponseImpl value, - $Res Function(_$BlockInstanceResponseImpl) then) = - __$$BlockInstanceResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool blocked}); -} - -/// @nodoc -class __$$BlockInstanceResponseImplCopyWithImpl<$Res> - extends _$BlockInstanceResponseCopyWithImpl<$Res, - _$BlockInstanceResponseImpl> - implements _$$BlockInstanceResponseImplCopyWith<$Res> { - __$$BlockInstanceResponseImplCopyWithImpl(_$BlockInstanceResponseImpl _value, - $Res Function(_$BlockInstanceResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of BlockInstanceResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? blocked = null, - }) { - return _then(_$BlockInstanceResponseImpl( - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$BlockInstanceResponseImpl extends _BlockInstanceResponse { - const _$BlockInstanceResponseImpl({required this.blocked}) : super._(); - - factory _$BlockInstanceResponseImpl.fromJson(Map json) => - _$$BlockInstanceResponseImplFromJson(json); - - @override - final bool blocked; - - @override - String toString() { - return 'BlockInstanceResponse(blocked: $blocked)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BlockInstanceResponseImpl && - (identical(other.blocked, blocked) || other.blocked == blocked)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, blocked); - - /// Create a copy of BlockInstanceResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BlockInstanceResponseImplCopyWith<_$BlockInstanceResponseImpl> - get copyWith => __$$BlockInstanceResponseImplCopyWithImpl< - _$BlockInstanceResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BlockInstanceResponseImplToJson( - this, - ); - } -} - -abstract class _BlockInstanceResponse extends BlockInstanceResponse { - const factory _BlockInstanceResponse({required final bool blocked}) = - _$BlockInstanceResponseImpl; - const _BlockInstanceResponse._() : super._(); - - factory _BlockInstanceResponse.fromJson(Map json) = - _$BlockInstanceResponseImpl.fromJson; - - @override - bool get blocked; - - /// Create a copy of BlockInstanceResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BlockInstanceResponseImplCopyWith<_$BlockInstanceResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/block_instance_response.g.dart b/lib/src/v3/models/site/block_instance_response.g.dart deleted file mode 100644 index 2a03175d..00000000 --- a/lib/src/v3/models/site/block_instance_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'block_instance_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BlockInstanceResponseImpl _$$BlockInstanceResponseImplFromJson( - Map json) => - _$BlockInstanceResponseImpl( - blocked: json['blocked'] as bool, - ); - -Map _$$BlockInstanceResponseImplToJson( - _$BlockInstanceResponseImpl instance) => - { - 'blocked': instance.blocked, - }; diff --git a/lib/src/v3/models/site/get_site_response.dart b/lib/src/v3/models/site/get_site_response.dart deleted file mode 100644 index 4d4dac56..00000000 --- a/lib/src/v3/models/site/get_site_response.dart +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; -import '../models.dart'; - -part 'get_site_response.freezed.dart'; -part 'get_site_response.g.dart'; - -@freezed -class GetSiteResponse with _$GetSiteResponse { - @modelSerde - const factory GetSiteResponse({ - required SiteView siteView, // v0.18.0 - required List admins, // v0.18.0 - required String version, // v0.18.0 - MyUserInfo? myUser, // v0.18.0 - required List allLanguages, // v0.18.0 - required List discussionLanguages, // v0.18.0 - required List taglines, // v0.18.0 - required List customEmojis, // v0.18.0 - List? blockedUrls, // v0.19.4 (required) - }) = _GetSiteResponse; - - const GetSiteResponse._(); - factory GetSiteResponse.fromJson(Map json) => - _$GetSiteResponseFromJson(json); -} diff --git a/lib/src/v3/models/site/get_site_response.freezed.dart b/lib/src/v3/models/site/get_site_response.freezed.dart deleted file mode 100644 index dba23d92..00000000 --- a/lib/src/v3/models/site/get_site_response.freezed.dart +++ /dev/null @@ -1,441 +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 'get_site_response.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'); - -GetSiteResponse _$GetSiteResponseFromJson(Map json) { - return _GetSiteResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetSiteResponse { - SiteView get siteView => throw _privateConstructorUsedError; // v0.18.0 - List get admins => throw _privateConstructorUsedError; // v0.18.0 - String get version => throw _privateConstructorUsedError; // v0.18.0 - MyUserInfo? get myUser => throw _privateConstructorUsedError; // v0.18.0 - List get allLanguages => - throw _privateConstructorUsedError; // v0.18.0 - List get discussionLanguages => - throw _privateConstructorUsedError; // v0.18.0 - List get taglines => throw _privateConstructorUsedError; // v0.18.0 - List get customEmojis => - throw _privateConstructorUsedError; // v0.18.0 - List? get blockedUrls => - throw _privateConstructorUsedError; - - /// Serializes this GetSiteResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetSiteResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetSiteResponseCopyWith<$Res> { - factory $GetSiteResponseCopyWith( - GetSiteResponse value, $Res Function(GetSiteResponse) then) = - _$GetSiteResponseCopyWithImpl<$Res, GetSiteResponse>; - @useResult - $Res call( - {SiteView siteView, - List admins, - String version, - MyUserInfo? myUser, - List allLanguages, - List discussionLanguages, - List taglines, - List customEmojis, - List? blockedUrls}); - - $SiteViewCopyWith<$Res> get siteView; - $MyUserInfoCopyWith<$Res>? get myUser; -} - -/// @nodoc -class _$GetSiteResponseCopyWithImpl<$Res, $Val extends GetSiteResponse> - implements $GetSiteResponseCopyWith<$Res> { - _$GetSiteResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? siteView = null, - Object? admins = null, - Object? version = null, - Object? myUser = freezed, - Object? allLanguages = null, - Object? discussionLanguages = null, - Object? taglines = null, - Object? customEmojis = null, - Object? blockedUrls = freezed, - }) { - return _then(_value.copyWith( - siteView: null == siteView - ? _value.siteView - : siteView // ignore: cast_nullable_to_non_nullable - as SiteView, - admins: null == admins - ? _value.admins - : admins // ignore: cast_nullable_to_non_nullable - as List, - version: null == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String, - myUser: freezed == myUser - ? _value.myUser - : myUser // ignore: cast_nullable_to_non_nullable - as MyUserInfo?, - allLanguages: null == allLanguages - ? _value.allLanguages - : allLanguages // ignore: cast_nullable_to_non_nullable - as List, - discussionLanguages: null == discussionLanguages - ? _value.discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - taglines: null == taglines - ? _value.taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List, - customEmojis: null == customEmojis - ? _value.customEmojis - : customEmojis // ignore: cast_nullable_to_non_nullable - as List, - blockedUrls: freezed == blockedUrls - ? _value.blockedUrls - : blockedUrls // ignore: cast_nullable_to_non_nullable - as List?, - ) as $Val); - } - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteViewCopyWith<$Res> get siteView { - return $SiteViewCopyWith<$Res>(_value.siteView, (value) { - return _then(_value.copyWith(siteView: value) as $Val); - }); - } - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $MyUserInfoCopyWith<$Res>? get myUser { - if (_value.myUser == null) { - return null; - } - - return $MyUserInfoCopyWith<$Res>(_value.myUser!, (value) { - return _then(_value.copyWith(myUser: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetSiteResponseImplCopyWith<$Res> - implements $GetSiteResponseCopyWith<$Res> { - factory _$$GetSiteResponseImplCopyWith(_$GetSiteResponseImpl value, - $Res Function(_$GetSiteResponseImpl) then) = - __$$GetSiteResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {SiteView siteView, - List admins, - String version, - MyUserInfo? myUser, - List allLanguages, - List discussionLanguages, - List taglines, - List customEmojis, - List? blockedUrls}); - - @override - $SiteViewCopyWith<$Res> get siteView; - @override - $MyUserInfoCopyWith<$Res>? get myUser; -} - -/// @nodoc -class __$$GetSiteResponseImplCopyWithImpl<$Res> - extends _$GetSiteResponseCopyWithImpl<$Res, _$GetSiteResponseImpl> - implements _$$GetSiteResponseImplCopyWith<$Res> { - __$$GetSiteResponseImplCopyWithImpl( - _$GetSiteResponseImpl _value, $Res Function(_$GetSiteResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? siteView = null, - Object? admins = null, - Object? version = null, - Object? myUser = freezed, - Object? allLanguages = null, - Object? discussionLanguages = null, - Object? taglines = null, - Object? customEmojis = null, - Object? blockedUrls = freezed, - }) { - return _then(_$GetSiteResponseImpl( - siteView: null == siteView - ? _value.siteView - : siteView // ignore: cast_nullable_to_non_nullable - as SiteView, - admins: null == admins - ? _value._admins - : admins // ignore: cast_nullable_to_non_nullable - as List, - version: null == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String, - myUser: freezed == myUser - ? _value.myUser - : myUser // ignore: cast_nullable_to_non_nullable - as MyUserInfo?, - allLanguages: null == allLanguages - ? _value._allLanguages - : allLanguages // ignore: cast_nullable_to_non_nullable - as List, - discussionLanguages: null == discussionLanguages - ? _value._discussionLanguages - : discussionLanguages // ignore: cast_nullable_to_non_nullable - as List, - taglines: null == taglines - ? _value._taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List, - customEmojis: null == customEmojis - ? _value._customEmojis - : customEmojis // ignore: cast_nullable_to_non_nullable - as List, - blockedUrls: freezed == blockedUrls - ? _value._blockedUrls - : blockedUrls // ignore: cast_nullable_to_non_nullable - as List?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetSiteResponseImpl extends _GetSiteResponse { - const _$GetSiteResponseImpl( - {required this.siteView, - required final List admins, - required this.version, - this.myUser, - required final List allLanguages, - required final List discussionLanguages, - required final List taglines, - required final List customEmojis, - final List? blockedUrls}) - : _admins = admins, - _allLanguages = allLanguages, - _discussionLanguages = discussionLanguages, - _taglines = taglines, - _customEmojis = customEmojis, - _blockedUrls = blockedUrls, - super._(); - - factory _$GetSiteResponseImpl.fromJson(Map json) => - _$$GetSiteResponseImplFromJson(json); - - @override - final SiteView siteView; -// v0.18.0 - final List _admins; -// v0.18.0 - @override - List get admins { - if (_admins is EqualUnmodifiableListView) return _admins; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_admins); - } - -// v0.18.0 - @override - final String version; -// v0.18.0 - @override - final MyUserInfo? myUser; -// v0.18.0 - final List _allLanguages; -// v0.18.0 - @override - List get allLanguages { - if (_allLanguages is EqualUnmodifiableListView) return _allLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_allLanguages); - } - -// v0.18.0 - final List _discussionLanguages; -// v0.18.0 - @override - List get discussionLanguages { - if (_discussionLanguages is EqualUnmodifiableListView) - return _discussionLanguages; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_discussionLanguages); - } - -// v0.18.0 - final List _taglines; -// v0.18.0 - @override - List get taglines { - if (_taglines is EqualUnmodifiableListView) return _taglines; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_taglines); - } - -// v0.18.0 - final List _customEmojis; -// v0.18.0 - @override - List get customEmojis { - if (_customEmojis is EqualUnmodifiableListView) return _customEmojis; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_customEmojis); - } - -// v0.18.0 - final List? _blockedUrls; -// v0.18.0 - @override - List? get blockedUrls { - final value = _blockedUrls; - if (value == null) return null; - if (_blockedUrls is EqualUnmodifiableListView) return _blockedUrls; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - String toString() { - return 'GetSiteResponse(siteView: $siteView, admins: $admins, version: $version, myUser: $myUser, allLanguages: $allLanguages, discussionLanguages: $discussionLanguages, taglines: $taglines, customEmojis: $customEmojis, blockedUrls: $blockedUrls)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetSiteResponseImpl && - (identical(other.siteView, siteView) || - other.siteView == siteView) && - const DeepCollectionEquality().equals(other._admins, _admins) && - (identical(other.version, version) || other.version == version) && - (identical(other.myUser, myUser) || other.myUser == myUser) && - const DeepCollectionEquality() - .equals(other._allLanguages, _allLanguages) && - const DeepCollectionEquality() - .equals(other._discussionLanguages, _discussionLanguages) && - const DeepCollectionEquality().equals(other._taglines, _taglines) && - const DeepCollectionEquality() - .equals(other._customEmojis, _customEmojis) && - const DeepCollectionEquality() - .equals(other._blockedUrls, _blockedUrls)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - siteView, - const DeepCollectionEquality().hash(_admins), - version, - myUser, - const DeepCollectionEquality().hash(_allLanguages), - const DeepCollectionEquality().hash(_discussionLanguages), - const DeepCollectionEquality().hash(_taglines), - const DeepCollectionEquality().hash(_customEmojis), - const DeepCollectionEquality().hash(_blockedUrls)); - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetSiteResponseImplCopyWith<_$GetSiteResponseImpl> get copyWith => - __$$GetSiteResponseImplCopyWithImpl<_$GetSiteResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetSiteResponseImplToJson( - this, - ); - } -} - -abstract class _GetSiteResponse extends GetSiteResponse { - const factory _GetSiteResponse( - {required final SiteView siteView, - required final List admins, - required final String version, - final MyUserInfo? myUser, - required final List allLanguages, - required final List discussionLanguages, - required final List taglines, - required final List customEmojis, - final List? blockedUrls}) = _$GetSiteResponseImpl; - const _GetSiteResponse._() : super._(); - - factory _GetSiteResponse.fromJson(Map json) = - _$GetSiteResponseImpl.fromJson; - - @override - SiteView get siteView; // v0.18.0 - @override - List get admins; // v0.18.0 - @override - String get version; // v0.18.0 - @override - MyUserInfo? get myUser; // v0.18.0 - @override - List get allLanguages; // v0.18.0 - @override - List get discussionLanguages; // v0.18.0 - @override - List get taglines; // v0.18.0 - @override - List get customEmojis; // v0.18.0 - @override - List? get blockedUrls; - - /// Create a copy of GetSiteResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetSiteResponseImplCopyWith<_$GetSiteResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/get_site_response.g.dart b/lib/src/v3/models/site/get_site_response.g.dart deleted file mode 100644 index 9ab4b327..00000000 --- a/lib/src/v3/models/site/get_site_response.g.dart +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_site_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetSiteResponseImpl _$$GetSiteResponseImplFromJson( - Map json) => - _$GetSiteResponseImpl( - siteView: SiteView.fromJson(json['site_view'] as Map), - admins: (json['admins'] as List) - .map((e) => PersonView.fromJson(e as Map)) - .toList(), - version: json['version'] as String, - myUser: json['my_user'] == null - ? null - : MyUserInfo.fromJson(json['my_user'] as Map), - allLanguages: (json['all_languages'] as List) - .map((e) => Language.fromJson(e as Map)) - .toList(), - discussionLanguages: (json['discussion_languages'] as List) - .map((e) => (e as num).toInt()) - .toList(), - taglines: (json['taglines'] as List) - .map((e) => Tagline.fromJson(e as Map)) - .toList(), - customEmojis: (json['custom_emojis'] as List) - .map((e) => CustomEmojiView.fromJson(e as Map)) - .toList(), - blockedUrls: (json['blocked_urls'] as List?) - ?.map( - (e) => LocalSiteUrlBlocklist.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetSiteResponseImplToJson( - _$GetSiteResponseImpl instance) => - { - 'site_view': instance.siteView.toJson(), - 'admins': instance.admins.map((e) => e.toJson()).toList(), - 'version': instance.version, - 'my_user': instance.myUser?.toJson(), - 'all_languages': instance.allLanguages.map((e) => e.toJson()).toList(), - 'discussion_languages': instance.discussionLanguages, - 'taglines': instance.taglines.map((e) => e.toJson()).toList(), - 'custom_emojis': instance.customEmojis.map((e) => e.toJson()).toList(), - 'blocked_urls': instance.blockedUrls?.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/site/link_metadata.dart b/lib/src/v3/models/site/link_metadata.dart deleted file mode 100644 index 80e9c04d..00000000 --- a/lib/src/v3/models/site/link_metadata.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'link_metadata.freezed.dart'; -part 'link_metadata.g.dart'; - -@freezed -class LinkMetadata with _$LinkMetadata { - @modelSerde - const factory LinkMetadata({ - String? title, // v0.18.0 - String? description, // v0.18.0 - String? image, // v0.18.0 - String? embedVideoUrl, // v0.18.0 - String? contentType, // v0.19.4 (optional) - }) = _LinkMetadata; - - const LinkMetadata._(); - factory LinkMetadata.fromJson(Map json) => - _$LinkMetadataFromJson(json); -} diff --git a/lib/src/v3/models/site/link_metadata.freezed.dart b/lib/src/v3/models/site/link_metadata.freezed.dart deleted file mode 100644 index b17def62..00000000 --- a/lib/src/v3/models/site/link_metadata.freezed.dart +++ /dev/null @@ -1,259 +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 'link_metadata.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'); - -LinkMetadata _$LinkMetadataFromJson(Map json) { - return _LinkMetadata.fromJson(json); -} - -/// @nodoc -mixin _$LinkMetadata { - String? get title => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - String? get image => throw _privateConstructorUsedError; // v0.18.0 - String? get embedVideoUrl => throw _privateConstructorUsedError; // v0.18.0 - String? get contentType => throw _privateConstructorUsedError; - - /// Serializes this LinkMetadata to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LinkMetadata - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LinkMetadataCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LinkMetadataCopyWith<$Res> { - factory $LinkMetadataCopyWith( - LinkMetadata value, $Res Function(LinkMetadata) then) = - _$LinkMetadataCopyWithImpl<$Res, LinkMetadata>; - @useResult - $Res call( - {String? title, - String? description, - String? image, - String? embedVideoUrl, - String? contentType}); -} - -/// @nodoc -class _$LinkMetadataCopyWithImpl<$Res, $Val extends LinkMetadata> - implements $LinkMetadataCopyWith<$Res> { - _$LinkMetadataCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LinkMetadata - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? title = freezed, - Object? description = freezed, - Object? image = freezed, - Object? embedVideoUrl = freezed, - Object? contentType = freezed, - }) { - return _then(_value.copyWith( - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - image: freezed == image - ? _value.image - : image // ignore: cast_nullable_to_non_nullable - as String?, - embedVideoUrl: freezed == embedVideoUrl - ? _value.embedVideoUrl - : embedVideoUrl // ignore: cast_nullable_to_non_nullable - as String?, - contentType: freezed == contentType - ? _value.contentType - : contentType // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LinkMetadataImplCopyWith<$Res> - implements $LinkMetadataCopyWith<$Res> { - factory _$$LinkMetadataImplCopyWith( - _$LinkMetadataImpl value, $Res Function(_$LinkMetadataImpl) then) = - __$$LinkMetadataImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? title, - String? description, - String? image, - String? embedVideoUrl, - String? contentType}); -} - -/// @nodoc -class __$$LinkMetadataImplCopyWithImpl<$Res> - extends _$LinkMetadataCopyWithImpl<$Res, _$LinkMetadataImpl> - implements _$$LinkMetadataImplCopyWith<$Res> { - __$$LinkMetadataImplCopyWithImpl( - _$LinkMetadataImpl _value, $Res Function(_$LinkMetadataImpl) _then) - : super(_value, _then); - - /// Create a copy of LinkMetadata - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? title = freezed, - Object? description = freezed, - Object? image = freezed, - Object? embedVideoUrl = freezed, - Object? contentType = freezed, - }) { - return _then(_$LinkMetadataImpl( - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - image: freezed == image - ? _value.image - : image // ignore: cast_nullable_to_non_nullable - as String?, - embedVideoUrl: freezed == embedVideoUrl - ? _value.embedVideoUrl - : embedVideoUrl // ignore: cast_nullable_to_non_nullable - as String?, - contentType: freezed == contentType - ? _value.contentType - : contentType // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LinkMetadataImpl extends _LinkMetadata { - const _$LinkMetadataImpl( - {this.title, - this.description, - this.image, - this.embedVideoUrl, - this.contentType}) - : super._(); - - factory _$LinkMetadataImpl.fromJson(Map json) => - _$$LinkMetadataImplFromJson(json); - - @override - final String? title; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final String? image; -// v0.18.0 - @override - final String? embedVideoUrl; -// v0.18.0 - @override - final String? contentType; - - @override - String toString() { - return 'LinkMetadata(title: $title, description: $description, image: $image, embedVideoUrl: $embedVideoUrl, contentType: $contentType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LinkMetadataImpl && - (identical(other.title, title) || other.title == title) && - (identical(other.description, description) || - other.description == description) && - (identical(other.image, image) || other.image == image) && - (identical(other.embedVideoUrl, embedVideoUrl) || - other.embedVideoUrl == embedVideoUrl) && - (identical(other.contentType, contentType) || - other.contentType == contentType)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, title, description, image, embedVideoUrl, contentType); - - /// Create a copy of LinkMetadata - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LinkMetadataImplCopyWith<_$LinkMetadataImpl> get copyWith => - __$$LinkMetadataImplCopyWithImpl<_$LinkMetadataImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LinkMetadataImplToJson( - this, - ); - } -} - -abstract class _LinkMetadata extends LinkMetadata { - const factory _LinkMetadata( - {final String? title, - final String? description, - final String? image, - final String? embedVideoUrl, - final String? contentType}) = _$LinkMetadataImpl; - const _LinkMetadata._() : super._(); - - factory _LinkMetadata.fromJson(Map json) = - _$LinkMetadataImpl.fromJson; - - @override - String? get title; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - String? get image; // v0.18.0 - @override - String? get embedVideoUrl; // v0.18.0 - @override - String? get contentType; - - /// Create a copy of LinkMetadata - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LinkMetadataImplCopyWith<_$LinkMetadataImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/link_metadata.g.dart b/lib/src/v3/models/site/link_metadata.g.dart deleted file mode 100644 index 99c3b532..00000000 --- a/lib/src/v3/models/site/link_metadata.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'link_metadata.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LinkMetadataImpl _$$LinkMetadataImplFromJson(Map json) => - _$LinkMetadataImpl( - title: json['title'] as String?, - description: json['description'] as String?, - image: json['image'] as String?, - embedVideoUrl: json['embed_video_url'] as String?, - contentType: json['content_type'] as String?, - ); - -Map _$$LinkMetadataImplToJson(_$LinkMetadataImpl instance) => - { - 'title': instance.title, - 'description': instance.description, - 'image': instance.image, - 'embed_video_url': instance.embedVideoUrl, - 'content_type': instance.contentType, - }; diff --git a/lib/src/v3/models/site/local_site.dart b/lib/src/v3/models/site/local_site.dart deleted file mode 100644 index 5f4c785e..00000000 --- a/lib/src/v3/models/site/local_site.dart +++ /dev/null @@ -1,46 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; -import '../../enums/enums.dart'; - -part 'local_site.freezed.dart'; -part 'local_site.g.dart'; - -@freezed -class LocalSite with _$LocalSite { - @modelSerde - const factory LocalSite({ - required int id, // v0.18.0 - required int siteId, // v0.18.0 - required bool siteSetup, // v0.18.0 - required bool enableDownvotes, // v0.18.0 - required bool enableNsfw, // v0.18.0 - required bool communityCreationAdminOnly, // v0.18.0 - required bool requireEmailVerification, // v0.18.0 - String? applicationQuestion, // v0.18.0 - required bool privateInstance, // v0.18.0 - required String defaultTheme, // v0.18.0 - required ListingType defaultPostListingType, // v0.18.0 - String? legalInformation, // v0.18.0 - required bool hideModlogModNames, // v0.18.0 - required bool applicationEmailAdmins, // v0.18.0 - String? slurFilterRegex, // v0.18.0 - required int actorNameMaxLength, // v0.18.0 - required bool federationEnabled, // v0.18.0 - @deprecated int? federationWorkerCount, // v0.18.0 [deprecated in v0.18.1] - required bool captchaEnabled, // v0.18.0 - required String captchaDifficulty, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - required RegistrationMode registrationMode, // v0.18.0 - required bool reportsEmailAdmins, // v0.18.0 - bool? federationSignedFetch, // v0.19.0 (required) - String? defaultPostListingMode, // v0.19.4 (required) - SortType? defaultSortType, // v0.19.4 (required) - }) = _LocalSite; - - const LocalSite._(); - factory LocalSite.fromJson(Map json) => - _$LocalSiteFromJson(json); -} diff --git a/lib/src/v3/models/site/local_site.freezed.dart b/lib/src/v3/models/site/local_site.freezed.dart deleted file mode 100644 index f17de1fa..00000000 --- a/lib/src/v3/models/site/local_site.freezed.dart +++ /dev/null @@ -1,783 +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 'local_site.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'); - -LocalSite _$LocalSiteFromJson(Map json) { - return _LocalSite.fromJson(json); -} - -/// @nodoc -mixin _$LocalSite { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get siteId => throw _privateConstructorUsedError; // v0.18.0 - bool get siteSetup => throw _privateConstructorUsedError; // v0.18.0 - bool get enableDownvotes => throw _privateConstructorUsedError; // v0.18.0 - bool get enableNsfw => throw _privateConstructorUsedError; // v0.18.0 - bool get communityCreationAdminOnly => - throw _privateConstructorUsedError; // v0.18.0 - bool get requireEmailVerification => - throw _privateConstructorUsedError; // v0.18.0 - String? get applicationQuestion => - throw _privateConstructorUsedError; // v0.18.0 - bool get privateInstance => throw _privateConstructorUsedError; // v0.18.0 - String get defaultTheme => throw _privateConstructorUsedError; // v0.18.0 - ListingType get defaultPostListingType => - throw _privateConstructorUsedError; // v0.18.0 - String? get legalInformation => throw _privateConstructorUsedError; // v0.18.0 - bool get hideModlogModNames => throw _privateConstructorUsedError; // v0.18.0 - bool get applicationEmailAdmins => - throw _privateConstructorUsedError; // v0.18.0 - String? get slurFilterRegex => throw _privateConstructorUsedError; // v0.18.0 - int get actorNameMaxLength => throw _privateConstructorUsedError; // v0.18.0 - bool get federationEnabled => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - int? get federationWorkerCount => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.18.1] - bool get captchaEnabled => throw _privateConstructorUsedError; // v0.18.0 - String get captchaDifficulty => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - RegistrationMode get registrationMode => - throw _privateConstructorUsedError; // v0.18.0 - bool get reportsEmailAdmins => throw _privateConstructorUsedError; // v0.18.0 - bool? get federationSignedFetch => - throw _privateConstructorUsedError; // v0.19.0 (required) - String? get defaultPostListingMode => - throw _privateConstructorUsedError; // v0.19.4 (required) - SortType? get defaultSortType => throw _privateConstructorUsedError; - - /// Serializes this LocalSite to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalSiteCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalSiteCopyWith<$Res> { - factory $LocalSiteCopyWith(LocalSite value, $Res Function(LocalSite) then) = - _$LocalSiteCopyWithImpl<$Res, LocalSite>; - @useResult - $Res call( - {int id, - int siteId, - bool siteSetup, - bool enableDownvotes, - bool enableNsfw, - bool communityCreationAdminOnly, - bool requireEmailVerification, - String? applicationQuestion, - bool privateInstance, - String defaultTheme, - ListingType defaultPostListingType, - String? legalInformation, - bool hideModlogModNames, - bool applicationEmailAdmins, - String? slurFilterRegex, - int actorNameMaxLength, - bool federationEnabled, - @deprecated int? federationWorkerCount, - bool captchaEnabled, - String captchaDifficulty, - DateTime published, - DateTime? updated, - RegistrationMode registrationMode, - bool reportsEmailAdmins, - bool? federationSignedFetch, - String? defaultPostListingMode, - SortType? defaultSortType}); -} - -/// @nodoc -class _$LocalSiteCopyWithImpl<$Res, $Val extends LocalSite> - implements $LocalSiteCopyWith<$Res> { - _$LocalSiteCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? siteId = null, - Object? siteSetup = null, - Object? enableDownvotes = null, - Object? enableNsfw = null, - Object? communityCreationAdminOnly = null, - Object? requireEmailVerification = null, - Object? applicationQuestion = freezed, - Object? privateInstance = null, - Object? defaultTheme = null, - Object? defaultPostListingType = null, - Object? legalInformation = freezed, - Object? hideModlogModNames = null, - Object? applicationEmailAdmins = null, - Object? slurFilterRegex = freezed, - Object? actorNameMaxLength = null, - Object? federationEnabled = null, - Object? federationWorkerCount = freezed, - Object? captchaEnabled = null, - Object? captchaDifficulty = null, - Object? published = null, - Object? updated = freezed, - Object? registrationMode = null, - Object? reportsEmailAdmins = null, - Object? federationSignedFetch = freezed, - Object? defaultPostListingMode = freezed, - Object? defaultSortType = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - siteId: null == siteId - ? _value.siteId - : siteId // ignore: cast_nullable_to_non_nullable - as int, - siteSetup: null == siteSetup - ? _value.siteSetup - : siteSetup // ignore: cast_nullable_to_non_nullable - as bool, - enableDownvotes: null == enableDownvotes - ? _value.enableDownvotes - : enableDownvotes // ignore: cast_nullable_to_non_nullable - as bool, - enableNsfw: null == enableNsfw - ? _value.enableNsfw - : enableNsfw // ignore: cast_nullable_to_non_nullable - as bool, - communityCreationAdminOnly: null == communityCreationAdminOnly - ? _value.communityCreationAdminOnly - : communityCreationAdminOnly // ignore: cast_nullable_to_non_nullable - as bool, - requireEmailVerification: null == requireEmailVerification - ? _value.requireEmailVerification - : requireEmailVerification // ignore: cast_nullable_to_non_nullable - as bool, - applicationQuestion: freezed == applicationQuestion - ? _value.applicationQuestion - : applicationQuestion // ignore: cast_nullable_to_non_nullable - as String?, - privateInstance: null == privateInstance - ? _value.privateInstance - : privateInstance // ignore: cast_nullable_to_non_nullable - as bool, - defaultTheme: null == defaultTheme - ? _value.defaultTheme - : defaultTheme // ignore: cast_nullable_to_non_nullable - as String, - defaultPostListingType: null == defaultPostListingType - ? _value.defaultPostListingType - : defaultPostListingType // ignore: cast_nullable_to_non_nullable - as ListingType, - legalInformation: freezed == legalInformation - ? _value.legalInformation - : legalInformation // ignore: cast_nullable_to_non_nullable - as String?, - hideModlogModNames: null == hideModlogModNames - ? _value.hideModlogModNames - : hideModlogModNames // ignore: cast_nullable_to_non_nullable - as bool, - applicationEmailAdmins: null == applicationEmailAdmins - ? _value.applicationEmailAdmins - : applicationEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool, - slurFilterRegex: freezed == slurFilterRegex - ? _value.slurFilterRegex - : slurFilterRegex // ignore: cast_nullable_to_non_nullable - as String?, - actorNameMaxLength: null == actorNameMaxLength - ? _value.actorNameMaxLength - : actorNameMaxLength // ignore: cast_nullable_to_non_nullable - as int, - federationEnabled: null == federationEnabled - ? _value.federationEnabled - : federationEnabled // ignore: cast_nullable_to_non_nullable - as bool, - federationWorkerCount: freezed == federationWorkerCount - ? _value.federationWorkerCount - : federationWorkerCount // ignore: cast_nullable_to_non_nullable - as int?, - captchaEnabled: null == captchaEnabled - ? _value.captchaEnabled - : captchaEnabled // ignore: cast_nullable_to_non_nullable - as bool, - captchaDifficulty: null == captchaDifficulty - ? _value.captchaDifficulty - : captchaDifficulty // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - registrationMode: null == registrationMode - ? _value.registrationMode - : registrationMode // ignore: cast_nullable_to_non_nullable - as RegistrationMode, - reportsEmailAdmins: null == reportsEmailAdmins - ? _value.reportsEmailAdmins - : reportsEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool, - federationSignedFetch: freezed == federationSignedFetch - ? _value.federationSignedFetch - : federationSignedFetch // ignore: cast_nullable_to_non_nullable - as bool?, - defaultPostListingMode: freezed == defaultPostListingMode - ? _value.defaultPostListingMode - : defaultPostListingMode // ignore: cast_nullable_to_non_nullable - as String?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LocalSiteImplCopyWith<$Res> - implements $LocalSiteCopyWith<$Res> { - factory _$$LocalSiteImplCopyWith( - _$LocalSiteImpl value, $Res Function(_$LocalSiteImpl) then) = - __$$LocalSiteImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int siteId, - bool siteSetup, - bool enableDownvotes, - bool enableNsfw, - bool communityCreationAdminOnly, - bool requireEmailVerification, - String? applicationQuestion, - bool privateInstance, - String defaultTheme, - ListingType defaultPostListingType, - String? legalInformation, - bool hideModlogModNames, - bool applicationEmailAdmins, - String? slurFilterRegex, - int actorNameMaxLength, - bool federationEnabled, - @deprecated int? federationWorkerCount, - bool captchaEnabled, - String captchaDifficulty, - DateTime published, - DateTime? updated, - RegistrationMode registrationMode, - bool reportsEmailAdmins, - bool? federationSignedFetch, - String? defaultPostListingMode, - SortType? defaultSortType}); -} - -/// @nodoc -class __$$LocalSiteImplCopyWithImpl<$Res> - extends _$LocalSiteCopyWithImpl<$Res, _$LocalSiteImpl> - implements _$$LocalSiteImplCopyWith<$Res> { - __$$LocalSiteImplCopyWithImpl( - _$LocalSiteImpl _value, $Res Function(_$LocalSiteImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalSite - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? siteId = null, - Object? siteSetup = null, - Object? enableDownvotes = null, - Object? enableNsfw = null, - Object? communityCreationAdminOnly = null, - Object? requireEmailVerification = null, - Object? applicationQuestion = freezed, - Object? privateInstance = null, - Object? defaultTheme = null, - Object? defaultPostListingType = null, - Object? legalInformation = freezed, - Object? hideModlogModNames = null, - Object? applicationEmailAdmins = null, - Object? slurFilterRegex = freezed, - Object? actorNameMaxLength = null, - Object? federationEnabled = null, - Object? federationWorkerCount = freezed, - Object? captchaEnabled = null, - Object? captchaDifficulty = null, - Object? published = null, - Object? updated = freezed, - Object? registrationMode = null, - Object? reportsEmailAdmins = null, - Object? federationSignedFetch = freezed, - Object? defaultPostListingMode = freezed, - Object? defaultSortType = freezed, - }) { - return _then(_$LocalSiteImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - siteId: null == siteId - ? _value.siteId - : siteId // ignore: cast_nullable_to_non_nullable - as int, - siteSetup: null == siteSetup - ? _value.siteSetup - : siteSetup // ignore: cast_nullable_to_non_nullable - as bool, - enableDownvotes: null == enableDownvotes - ? _value.enableDownvotes - : enableDownvotes // ignore: cast_nullable_to_non_nullable - as bool, - enableNsfw: null == enableNsfw - ? _value.enableNsfw - : enableNsfw // ignore: cast_nullable_to_non_nullable - as bool, - communityCreationAdminOnly: null == communityCreationAdminOnly - ? _value.communityCreationAdminOnly - : communityCreationAdminOnly // ignore: cast_nullable_to_non_nullable - as bool, - requireEmailVerification: null == requireEmailVerification - ? _value.requireEmailVerification - : requireEmailVerification // ignore: cast_nullable_to_non_nullable - as bool, - applicationQuestion: freezed == applicationQuestion - ? _value.applicationQuestion - : applicationQuestion // ignore: cast_nullable_to_non_nullable - as String?, - privateInstance: null == privateInstance - ? _value.privateInstance - : privateInstance // ignore: cast_nullable_to_non_nullable - as bool, - defaultTheme: null == defaultTheme - ? _value.defaultTheme - : defaultTheme // ignore: cast_nullable_to_non_nullable - as String, - defaultPostListingType: null == defaultPostListingType - ? _value.defaultPostListingType - : defaultPostListingType // ignore: cast_nullable_to_non_nullable - as ListingType, - legalInformation: freezed == legalInformation - ? _value.legalInformation - : legalInformation // ignore: cast_nullable_to_non_nullable - as String?, - hideModlogModNames: null == hideModlogModNames - ? _value.hideModlogModNames - : hideModlogModNames // ignore: cast_nullable_to_non_nullable - as bool, - applicationEmailAdmins: null == applicationEmailAdmins - ? _value.applicationEmailAdmins - : applicationEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool, - slurFilterRegex: freezed == slurFilterRegex - ? _value.slurFilterRegex - : slurFilterRegex // ignore: cast_nullable_to_non_nullable - as String?, - actorNameMaxLength: null == actorNameMaxLength - ? _value.actorNameMaxLength - : actorNameMaxLength // ignore: cast_nullable_to_non_nullable - as int, - federationEnabled: null == federationEnabled - ? _value.federationEnabled - : federationEnabled // ignore: cast_nullable_to_non_nullable - as bool, - federationWorkerCount: freezed == federationWorkerCount - ? _value.federationWorkerCount - : federationWorkerCount // ignore: cast_nullable_to_non_nullable - as int?, - captchaEnabled: null == captchaEnabled - ? _value.captchaEnabled - : captchaEnabled // ignore: cast_nullable_to_non_nullable - as bool, - captchaDifficulty: null == captchaDifficulty - ? _value.captchaDifficulty - : captchaDifficulty // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - registrationMode: null == registrationMode - ? _value.registrationMode - : registrationMode // ignore: cast_nullable_to_non_nullable - as RegistrationMode, - reportsEmailAdmins: null == reportsEmailAdmins - ? _value.reportsEmailAdmins - : reportsEmailAdmins // ignore: cast_nullable_to_non_nullable - as bool, - federationSignedFetch: freezed == federationSignedFetch - ? _value.federationSignedFetch - : federationSignedFetch // ignore: cast_nullable_to_non_nullable - as bool?, - defaultPostListingMode: freezed == defaultPostListingMode - ? _value.defaultPostListingMode - : defaultPostListingMode // ignore: cast_nullable_to_non_nullable - as String?, - defaultSortType: freezed == defaultSortType - ? _value.defaultSortType - : defaultSortType // ignore: cast_nullable_to_non_nullable - as SortType?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalSiteImpl extends _LocalSite { - const _$LocalSiteImpl( - {required this.id, - required this.siteId, - required this.siteSetup, - required this.enableDownvotes, - required this.enableNsfw, - required this.communityCreationAdminOnly, - required this.requireEmailVerification, - this.applicationQuestion, - required this.privateInstance, - required this.defaultTheme, - required this.defaultPostListingType, - this.legalInformation, - required this.hideModlogModNames, - required this.applicationEmailAdmins, - this.slurFilterRegex, - required this.actorNameMaxLength, - required this.federationEnabled, - @deprecated this.federationWorkerCount, - required this.captchaEnabled, - required this.captchaDifficulty, - required this.published, - this.updated, - required this.registrationMode, - required this.reportsEmailAdmins, - this.federationSignedFetch, - this.defaultPostListingMode, - this.defaultSortType}) - : super._(); - - factory _$LocalSiteImpl.fromJson(Map json) => - _$$LocalSiteImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int siteId; -// v0.18.0 - @override - final bool siteSetup; -// v0.18.0 - @override - final bool enableDownvotes; -// v0.18.0 - @override - final bool enableNsfw; -// v0.18.0 - @override - final bool communityCreationAdminOnly; -// v0.18.0 - @override - final bool requireEmailVerification; -// v0.18.0 - @override - final String? applicationQuestion; -// v0.18.0 - @override - final bool privateInstance; -// v0.18.0 - @override - final String defaultTheme; -// v0.18.0 - @override - final ListingType defaultPostListingType; -// v0.18.0 - @override - final String? legalInformation; -// v0.18.0 - @override - final bool hideModlogModNames; -// v0.18.0 - @override - final bool applicationEmailAdmins; -// v0.18.0 - @override - final String? slurFilterRegex; -// v0.18.0 - @override - final int actorNameMaxLength; -// v0.18.0 - @override - final bool federationEnabled; -// v0.18.0 - @override - @deprecated - final int? federationWorkerCount; -// v0.18.0 [deprecated in v0.18.1] - @override - final bool captchaEnabled; -// v0.18.0 - @override - final String captchaDifficulty; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final RegistrationMode registrationMode; -// v0.18.0 - @override - final bool reportsEmailAdmins; -// v0.18.0 - @override - final bool? federationSignedFetch; -// v0.19.0 (required) - @override - final String? defaultPostListingMode; -// v0.19.4 (required) - @override - final SortType? defaultSortType; - - @override - String toString() { - return 'LocalSite(id: $id, siteId: $siteId, siteSetup: $siteSetup, enableDownvotes: $enableDownvotes, enableNsfw: $enableNsfw, communityCreationAdminOnly: $communityCreationAdminOnly, requireEmailVerification: $requireEmailVerification, applicationQuestion: $applicationQuestion, privateInstance: $privateInstance, defaultTheme: $defaultTheme, defaultPostListingType: $defaultPostListingType, legalInformation: $legalInformation, hideModlogModNames: $hideModlogModNames, applicationEmailAdmins: $applicationEmailAdmins, slurFilterRegex: $slurFilterRegex, actorNameMaxLength: $actorNameMaxLength, federationEnabled: $federationEnabled, federationWorkerCount: $federationWorkerCount, captchaEnabled: $captchaEnabled, captchaDifficulty: $captchaDifficulty, published: $published, updated: $updated, registrationMode: $registrationMode, reportsEmailAdmins: $reportsEmailAdmins, federationSignedFetch: $federationSignedFetch, defaultPostListingMode: $defaultPostListingMode, defaultSortType: $defaultSortType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalSiteImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.siteId, siteId) || other.siteId == siteId) && - (identical(other.siteSetup, siteSetup) || - other.siteSetup == siteSetup) && - (identical(other.enableDownvotes, enableDownvotes) || - other.enableDownvotes == enableDownvotes) && - (identical(other.enableNsfw, enableNsfw) || - other.enableNsfw == enableNsfw) && - (identical(other.communityCreationAdminOnly, - communityCreationAdminOnly) || - other.communityCreationAdminOnly == - communityCreationAdminOnly) && - (identical(other.requireEmailVerification, requireEmailVerification) || - other.requireEmailVerification == requireEmailVerification) && - (identical(other.applicationQuestion, applicationQuestion) || - other.applicationQuestion == applicationQuestion) && - (identical(other.privateInstance, privateInstance) || - other.privateInstance == privateInstance) && - (identical(other.defaultTheme, defaultTheme) || - other.defaultTheme == defaultTheme) && - (identical(other.defaultPostListingType, defaultPostListingType) || - other.defaultPostListingType == defaultPostListingType) && - (identical(other.legalInformation, legalInformation) || - other.legalInformation == legalInformation) && - (identical(other.hideModlogModNames, hideModlogModNames) || - other.hideModlogModNames == hideModlogModNames) && - (identical(other.applicationEmailAdmins, applicationEmailAdmins) || - other.applicationEmailAdmins == applicationEmailAdmins) && - (identical(other.slurFilterRegex, slurFilterRegex) || - other.slurFilterRegex == slurFilterRegex) && - (identical(other.actorNameMaxLength, actorNameMaxLength) || - other.actorNameMaxLength == actorNameMaxLength) && - (identical(other.federationEnabled, federationEnabled) || - other.federationEnabled == federationEnabled) && - (identical(other.federationWorkerCount, federationWorkerCount) || - other.federationWorkerCount == federationWorkerCount) && - (identical(other.captchaEnabled, captchaEnabled) || - other.captchaEnabled == captchaEnabled) && - (identical(other.captchaDifficulty, captchaDifficulty) || - other.captchaDifficulty == captchaDifficulty) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.registrationMode, registrationMode) || - other.registrationMode == registrationMode) && - (identical(other.reportsEmailAdmins, reportsEmailAdmins) || - other.reportsEmailAdmins == reportsEmailAdmins) && - (identical(other.federationSignedFetch, federationSignedFetch) || - other.federationSignedFetch == federationSignedFetch) && - (identical(other.defaultPostListingMode, defaultPostListingMode) || - other.defaultPostListingMode == defaultPostListingMode) && - (identical(other.defaultSortType, defaultSortType) || - other.defaultSortType == defaultSortType)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hashAll([ - runtimeType, - id, - siteId, - siteSetup, - enableDownvotes, - enableNsfw, - communityCreationAdminOnly, - requireEmailVerification, - applicationQuestion, - privateInstance, - defaultTheme, - defaultPostListingType, - legalInformation, - hideModlogModNames, - applicationEmailAdmins, - slurFilterRegex, - actorNameMaxLength, - federationEnabled, - federationWorkerCount, - captchaEnabled, - captchaDifficulty, - published, - updated, - registrationMode, - reportsEmailAdmins, - federationSignedFetch, - defaultPostListingMode, - defaultSortType - ]); - - /// Create a copy of LocalSite - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalSiteImplCopyWith<_$LocalSiteImpl> get copyWith => - __$$LocalSiteImplCopyWithImpl<_$LocalSiteImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LocalSiteImplToJson( - this, - ); - } -} - -abstract class _LocalSite extends LocalSite { - const factory _LocalSite( - {required final int id, - required final int siteId, - required final bool siteSetup, - required final bool enableDownvotes, - required final bool enableNsfw, - required final bool communityCreationAdminOnly, - required final bool requireEmailVerification, - final String? applicationQuestion, - required final bool privateInstance, - required final String defaultTheme, - required final ListingType defaultPostListingType, - final String? legalInformation, - required final bool hideModlogModNames, - required final bool applicationEmailAdmins, - final String? slurFilterRegex, - required final int actorNameMaxLength, - required final bool federationEnabled, - @deprecated final int? federationWorkerCount, - required final bool captchaEnabled, - required final String captchaDifficulty, - required final DateTime published, - final DateTime? updated, - required final RegistrationMode registrationMode, - required final bool reportsEmailAdmins, - final bool? federationSignedFetch, - final String? defaultPostListingMode, - final SortType? defaultSortType}) = _$LocalSiteImpl; - const _LocalSite._() : super._(); - - factory _LocalSite.fromJson(Map json) = - _$LocalSiteImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get siteId; // v0.18.0 - @override - bool get siteSetup; // v0.18.0 - @override - bool get enableDownvotes; // v0.18.0 - @override - bool get enableNsfw; // v0.18.0 - @override - bool get communityCreationAdminOnly; // v0.18.0 - @override - bool get requireEmailVerification; // v0.18.0 - @override - String? get applicationQuestion; // v0.18.0 - @override - bool get privateInstance; // v0.18.0 - @override - String get defaultTheme; // v0.18.0 - @override - ListingType get defaultPostListingType; // v0.18.0 - @override - String? get legalInformation; // v0.18.0 - @override - bool get hideModlogModNames; // v0.18.0 - @override - bool get applicationEmailAdmins; // v0.18.0 - @override - String? get slurFilterRegex; // v0.18.0 - @override - int get actorNameMaxLength; // v0.18.0 - @override - bool get federationEnabled; // v0.18.0 - @override - @deprecated - int? get federationWorkerCount; // v0.18.0 [deprecated in v0.18.1] - @override - bool get captchaEnabled; // v0.18.0 - @override - String get captchaDifficulty; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - RegistrationMode get registrationMode; // v0.18.0 - @override - bool get reportsEmailAdmins; // v0.18.0 - @override - bool? get federationSignedFetch; // v0.19.0 (required) - @override - String? get defaultPostListingMode; // v0.19.4 (required) - @override - SortType? get defaultSortType; - - /// Create a copy of LocalSite - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalSiteImplCopyWith<_$LocalSiteImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/local_site.g.dart b/lib/src/v3/models/site/local_site.g.dart deleted file mode 100644 index 950c9ef7..00000000 --- a/lib/src/v3/models/site/local_site.g.dart +++ /dev/null @@ -1,87 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_site.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalSiteImpl _$$LocalSiteImplFromJson(Map json) => - _$LocalSiteImpl( - id: (json['id'] as num).toInt(), - siteId: (json['site_id'] as num).toInt(), - siteSetup: json['site_setup'] as bool, - enableDownvotes: json['enable_downvotes'] as bool, - enableNsfw: json['enable_nsfw'] as bool, - communityCreationAdminOnly: json['community_creation_admin_only'] as bool, - requireEmailVerification: json['require_email_verification'] as bool, - applicationQuestion: json['application_question'] as String?, - privateInstance: json['private_instance'] as bool, - defaultTheme: json['default_theme'] as String, - defaultPostListingType: - ListingType.fromJson(json['default_post_listing_type']), - legalInformation: json['legal_information'] as String?, - hideModlogModNames: json['hide_modlog_mod_names'] as bool, - applicationEmailAdmins: json['application_email_admins'] as bool, - slurFilterRegex: json['slur_filter_regex'] as String?, - actorNameMaxLength: (json['actor_name_max_length'] as num).toInt(), - federationEnabled: json['federation_enabled'] as bool, - federationWorkerCount: (json['federation_worker_count'] as num?)?.toInt(), - captchaEnabled: json['captcha_enabled'] as bool, - captchaDifficulty: json['captcha_difficulty'] as String, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - registrationMode: - RegistrationMode.fromJson(json['registration_mode'] as String), - reportsEmailAdmins: json['reports_email_admins'] as bool, - federationSignedFetch: json['federation_signed_fetch'] as bool?, - defaultPostListingMode: json['default_post_listing_mode'] as String?, - defaultSortType: json['default_sort_type'] == null - ? null - : SortType.fromJson(json['default_sort_type']), - ); - -Map _$$LocalSiteImplToJson(_$LocalSiteImpl instance) => - { - 'id': instance.id, - 'site_id': instance.siteId, - 'site_setup': instance.siteSetup, - 'enable_downvotes': instance.enableDownvotes, - 'enable_nsfw': instance.enableNsfw, - 'community_creation_admin_only': instance.communityCreationAdminOnly, - 'require_email_verification': instance.requireEmailVerification, - 'application_question': instance.applicationQuestion, - 'private_instance': instance.privateInstance, - 'default_theme': instance.defaultTheme, - 'default_post_listing_type': instance.defaultPostListingType.toJson(), - 'legal_information': instance.legalInformation, - 'hide_modlog_mod_names': instance.hideModlogModNames, - 'application_email_admins': instance.applicationEmailAdmins, - 'slur_filter_regex': instance.slurFilterRegex, - 'actor_name_max_length': instance.actorNameMaxLength, - 'federation_enabled': instance.federationEnabled, - 'federation_worker_count': instance.federationWorkerCount, - 'captcha_enabled': instance.captchaEnabled, - 'captcha_difficulty': instance.captchaDifficulty, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'registration_mode': instance.registrationMode.toJson(), - 'reports_email_admins': instance.reportsEmailAdmins, - 'federation_signed_fetch': instance.federationSignedFetch, - 'default_post_listing_mode': instance.defaultPostListingMode, - 'default_sort_type': instance.defaultSortType?.toJson(), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/site/local_site_rate_limit.dart b/lib/src/v3/models/site/local_site_rate_limit.dart deleted file mode 100644 index 6d37b0d2..00000000 --- a/lib/src/v3/models/site/local_site_rate_limit.dart +++ /dev/null @@ -1,36 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'local_site_rate_limit.freezed.dart'; -part 'local_site_rate_limit.g.dart'; - -@freezed -class LocalSiteRateLimit with _$LocalSiteRateLimit { - @modelSerde - const factory LocalSiteRateLimit({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int localSiteId, // v0.18.0 - required int message, // v0.18.0 - required int messagePerSecond, // v0.18.0 - required int post, // v0.18.0 - required int postPerSecond, // v0.18.0 - required int register, // v0.18.0 - required int registerPerSecond, // v0.18.0 - required int image, // v0.18.0 - required int imagePerSecond, // v0.18.0 - required int comment, // v0.18.0 - required int commentPerSecond, // v0.18.0 - required int search, // v0.18.0 - required int searchPerSecond, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - int? importUserSettings, // v0.19.0 (required) - int? importUserSettingsPerSecond, // v0.19.0 (required) - }) = _LocalSiteRateLimit; - - const LocalSiteRateLimit._(); - factory LocalSiteRateLimit.fromJson(Map json) => - _$LocalSiteRateLimitFromJson(json); -} diff --git a/lib/src/v3/models/site/local_site_rate_limit.freezed.dart b/lib/src/v3/models/site/local_site_rate_limit.freezed.dart deleted file mode 100644 index 4969410c..00000000 --- a/lib/src/v3/models/site/local_site_rate_limit.freezed.dart +++ /dev/null @@ -1,566 +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 'local_site_rate_limit.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'); - -LocalSiteRateLimit _$LocalSiteRateLimitFromJson(Map json) { - return _LocalSiteRateLimit.fromJson(json); -} - -/// @nodoc -mixin _$LocalSiteRateLimit { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get localSiteId => throw _privateConstructorUsedError; // v0.18.0 - int get message => throw _privateConstructorUsedError; // v0.18.0 - int get messagePerSecond => throw _privateConstructorUsedError; // v0.18.0 - int get post => throw _privateConstructorUsedError; // v0.18.0 - int get postPerSecond => throw _privateConstructorUsedError; // v0.18.0 - int get register => throw _privateConstructorUsedError; // v0.18.0 - int get registerPerSecond => throw _privateConstructorUsedError; // v0.18.0 - int get image => throw _privateConstructorUsedError; // v0.18.0 - int get imagePerSecond => throw _privateConstructorUsedError; // v0.18.0 - int get comment => throw _privateConstructorUsedError; // v0.18.0 - int get commentPerSecond => throw _privateConstructorUsedError; // v0.18.0 - int get search => throw _privateConstructorUsedError; // v0.18.0 - int get searchPerSecond => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - int? get importUserSettings => - throw _privateConstructorUsedError; // v0.19.0 (required) - int? get importUserSettingsPerSecond => throw _privateConstructorUsedError; - - /// Serializes this LocalSiteRateLimit to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalSiteRateLimit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalSiteRateLimitCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalSiteRateLimitCopyWith<$Res> { - factory $LocalSiteRateLimitCopyWith( - LocalSiteRateLimit value, $Res Function(LocalSiteRateLimit) then) = - _$LocalSiteRateLimitCopyWithImpl<$Res, LocalSiteRateLimit>; - @useResult - $Res call( - {@deprecated int? id, - int localSiteId, - int message, - int messagePerSecond, - int post, - int postPerSecond, - int register, - int registerPerSecond, - int image, - int imagePerSecond, - int comment, - int commentPerSecond, - int search, - int searchPerSecond, - DateTime published, - DateTime? updated, - int? importUserSettings, - int? importUserSettingsPerSecond}); -} - -/// @nodoc -class _$LocalSiteRateLimitCopyWithImpl<$Res, $Val extends LocalSiteRateLimit> - implements $LocalSiteRateLimitCopyWith<$Res> { - _$LocalSiteRateLimitCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalSiteRateLimit - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? localSiteId = null, - Object? message = null, - Object? messagePerSecond = null, - Object? post = null, - Object? postPerSecond = null, - Object? register = null, - Object? registerPerSecond = null, - Object? image = null, - Object? imagePerSecond = null, - Object? comment = null, - Object? commentPerSecond = null, - Object? search = null, - Object? searchPerSecond = null, - Object? published = null, - Object? updated = freezed, - Object? importUserSettings = freezed, - Object? importUserSettingsPerSecond = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - localSiteId: null == localSiteId - ? _value.localSiteId - : localSiteId // ignore: cast_nullable_to_non_nullable - as int, - message: null == message - ? _value.message - : message // ignore: cast_nullable_to_non_nullable - as int, - messagePerSecond: null == messagePerSecond - ? _value.messagePerSecond - : messagePerSecond // ignore: cast_nullable_to_non_nullable - as int, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as int, - postPerSecond: null == postPerSecond - ? _value.postPerSecond - : postPerSecond // ignore: cast_nullable_to_non_nullable - as int, - register: null == register - ? _value.register - : register // ignore: cast_nullable_to_non_nullable - as int, - registerPerSecond: null == registerPerSecond - ? _value.registerPerSecond - : registerPerSecond // ignore: cast_nullable_to_non_nullable - as int, - image: null == image - ? _value.image - : image // ignore: cast_nullable_to_non_nullable - as int, - imagePerSecond: null == imagePerSecond - ? _value.imagePerSecond - : imagePerSecond // ignore: cast_nullable_to_non_nullable - as int, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as int, - commentPerSecond: null == commentPerSecond - ? _value.commentPerSecond - : commentPerSecond // ignore: cast_nullable_to_non_nullable - as int, - search: null == search - ? _value.search - : search // ignore: cast_nullable_to_non_nullable - as int, - searchPerSecond: null == searchPerSecond - ? _value.searchPerSecond - : searchPerSecond // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - importUserSettings: freezed == importUserSettings - ? _value.importUserSettings - : importUserSettings // ignore: cast_nullable_to_non_nullable - as int?, - importUserSettingsPerSecond: freezed == importUserSettingsPerSecond - ? _value.importUserSettingsPerSecond - : importUserSettingsPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LocalSiteRateLimitImplCopyWith<$Res> - implements $LocalSiteRateLimitCopyWith<$Res> { - factory _$$LocalSiteRateLimitImplCopyWith(_$LocalSiteRateLimitImpl value, - $Res Function(_$LocalSiteRateLimitImpl) then) = - __$$LocalSiteRateLimitImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? id, - int localSiteId, - int message, - int messagePerSecond, - int post, - int postPerSecond, - int register, - int registerPerSecond, - int image, - int imagePerSecond, - int comment, - int commentPerSecond, - int search, - int searchPerSecond, - DateTime published, - DateTime? updated, - int? importUserSettings, - int? importUserSettingsPerSecond}); -} - -/// @nodoc -class __$$LocalSiteRateLimitImplCopyWithImpl<$Res> - extends _$LocalSiteRateLimitCopyWithImpl<$Res, _$LocalSiteRateLimitImpl> - implements _$$LocalSiteRateLimitImplCopyWith<$Res> { - __$$LocalSiteRateLimitImplCopyWithImpl(_$LocalSiteRateLimitImpl _value, - $Res Function(_$LocalSiteRateLimitImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalSiteRateLimit - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? localSiteId = null, - Object? message = null, - Object? messagePerSecond = null, - Object? post = null, - Object? postPerSecond = null, - Object? register = null, - Object? registerPerSecond = null, - Object? image = null, - Object? imagePerSecond = null, - Object? comment = null, - Object? commentPerSecond = null, - Object? search = null, - Object? searchPerSecond = null, - Object? published = null, - Object? updated = freezed, - Object? importUserSettings = freezed, - Object? importUserSettingsPerSecond = freezed, - }) { - return _then(_$LocalSiteRateLimitImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - localSiteId: null == localSiteId - ? _value.localSiteId - : localSiteId // ignore: cast_nullable_to_non_nullable - as int, - message: null == message - ? _value.message - : message // ignore: cast_nullable_to_non_nullable - as int, - messagePerSecond: null == messagePerSecond - ? _value.messagePerSecond - : messagePerSecond // ignore: cast_nullable_to_non_nullable - as int, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as int, - postPerSecond: null == postPerSecond - ? _value.postPerSecond - : postPerSecond // ignore: cast_nullable_to_non_nullable - as int, - register: null == register - ? _value.register - : register // ignore: cast_nullable_to_non_nullable - as int, - registerPerSecond: null == registerPerSecond - ? _value.registerPerSecond - : registerPerSecond // ignore: cast_nullable_to_non_nullable - as int, - image: null == image - ? _value.image - : image // ignore: cast_nullable_to_non_nullable - as int, - imagePerSecond: null == imagePerSecond - ? _value.imagePerSecond - : imagePerSecond // ignore: cast_nullable_to_non_nullable - as int, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as int, - commentPerSecond: null == commentPerSecond - ? _value.commentPerSecond - : commentPerSecond // ignore: cast_nullable_to_non_nullable - as int, - search: null == search - ? _value.search - : search // ignore: cast_nullable_to_non_nullable - as int, - searchPerSecond: null == searchPerSecond - ? _value.searchPerSecond - : searchPerSecond // ignore: cast_nullable_to_non_nullable - as int, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - importUserSettings: freezed == importUserSettings - ? _value.importUserSettings - : importUserSettings // ignore: cast_nullable_to_non_nullable - as int?, - importUserSettingsPerSecond: freezed == importUserSettingsPerSecond - ? _value.importUserSettingsPerSecond - : importUserSettingsPerSecond // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalSiteRateLimitImpl extends _LocalSiteRateLimit { - const _$LocalSiteRateLimitImpl( - {@deprecated this.id, - required this.localSiteId, - required this.message, - required this.messagePerSecond, - required this.post, - required this.postPerSecond, - required this.register, - required this.registerPerSecond, - required this.image, - required this.imagePerSecond, - required this.comment, - required this.commentPerSecond, - required this.search, - required this.searchPerSecond, - required this.published, - this.updated, - this.importUserSettings, - this.importUserSettingsPerSecond}) - : super._(); - - factory _$LocalSiteRateLimitImpl.fromJson(Map json) => - _$$LocalSiteRateLimitImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int localSiteId; -// v0.18.0 - @override - final int message; -// v0.18.0 - @override - final int messagePerSecond; -// v0.18.0 - @override - final int post; -// v0.18.0 - @override - final int postPerSecond; -// v0.18.0 - @override - final int register; -// v0.18.0 - @override - final int registerPerSecond; -// v0.18.0 - @override - final int image; -// v0.18.0 - @override - final int imagePerSecond; -// v0.18.0 - @override - final int comment; -// v0.18.0 - @override - final int commentPerSecond; -// v0.18.0 - @override - final int search; -// v0.18.0 - @override - final int searchPerSecond; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final int? importUserSettings; -// v0.19.0 (required) - @override - final int? importUserSettingsPerSecond; - - @override - String toString() { - return 'LocalSiteRateLimit(id: $id, localSiteId: $localSiteId, message: $message, messagePerSecond: $messagePerSecond, post: $post, postPerSecond: $postPerSecond, register: $register, registerPerSecond: $registerPerSecond, image: $image, imagePerSecond: $imagePerSecond, comment: $comment, commentPerSecond: $commentPerSecond, search: $search, searchPerSecond: $searchPerSecond, published: $published, updated: $updated, importUserSettings: $importUserSettings, importUserSettingsPerSecond: $importUserSettingsPerSecond)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalSiteRateLimitImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.localSiteId, localSiteId) || - other.localSiteId == localSiteId) && - (identical(other.message, message) || other.message == message) && - (identical(other.messagePerSecond, messagePerSecond) || - other.messagePerSecond == messagePerSecond) && - (identical(other.post, post) || other.post == post) && - (identical(other.postPerSecond, postPerSecond) || - other.postPerSecond == postPerSecond) && - (identical(other.register, register) || - other.register == register) && - (identical(other.registerPerSecond, registerPerSecond) || - other.registerPerSecond == registerPerSecond) && - (identical(other.image, image) || other.image == image) && - (identical(other.imagePerSecond, imagePerSecond) || - other.imagePerSecond == imagePerSecond) && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.commentPerSecond, commentPerSecond) || - other.commentPerSecond == commentPerSecond) && - (identical(other.search, search) || other.search == search) && - (identical(other.searchPerSecond, searchPerSecond) || - other.searchPerSecond == searchPerSecond) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.importUserSettings, importUserSettings) || - other.importUserSettings == importUserSettings) && - (identical(other.importUserSettingsPerSecond, - importUserSettingsPerSecond) || - other.importUserSettingsPerSecond == - importUserSettingsPerSecond)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - localSiteId, - message, - messagePerSecond, - post, - postPerSecond, - register, - registerPerSecond, - image, - imagePerSecond, - comment, - commentPerSecond, - search, - searchPerSecond, - published, - updated, - importUserSettings, - importUserSettingsPerSecond); - - /// Create a copy of LocalSiteRateLimit - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalSiteRateLimitImplCopyWith<_$LocalSiteRateLimitImpl> get copyWith => - __$$LocalSiteRateLimitImplCopyWithImpl<_$LocalSiteRateLimitImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$LocalSiteRateLimitImplToJson( - this, - ); - } -} - -abstract class _LocalSiteRateLimit extends LocalSiteRateLimit { - const factory _LocalSiteRateLimit( - {@deprecated final int? id, - required final int localSiteId, - required final int message, - required final int messagePerSecond, - required final int post, - required final int postPerSecond, - required final int register, - required final int registerPerSecond, - required final int image, - required final int imagePerSecond, - required final int comment, - required final int commentPerSecond, - required final int search, - required final int searchPerSecond, - required final DateTime published, - final DateTime? updated, - final int? importUserSettings, - final int? importUserSettingsPerSecond}) = _$LocalSiteRateLimitImpl; - const _LocalSiteRateLimit._() : super._(); - - factory _LocalSiteRateLimit.fromJson(Map json) = - _$LocalSiteRateLimitImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get localSiteId; // v0.18.0 - @override - int get message; // v0.18.0 - @override - int get messagePerSecond; // v0.18.0 - @override - int get post; // v0.18.0 - @override - int get postPerSecond; // v0.18.0 - @override - int get register; // v0.18.0 - @override - int get registerPerSecond; // v0.18.0 - @override - int get image; // v0.18.0 - @override - int get imagePerSecond; // v0.18.0 - @override - int get comment; // v0.18.0 - @override - int get commentPerSecond; // v0.18.0 - @override - int get search; // v0.18.0 - @override - int get searchPerSecond; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - int? get importUserSettings; // v0.19.0 (required) - @override - int? get importUserSettingsPerSecond; - - /// Create a copy of LocalSiteRateLimit - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalSiteRateLimitImplCopyWith<_$LocalSiteRateLimitImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/local_site_rate_limit.g.dart b/lib/src/v3/models/site/local_site_rate_limit.g.dart deleted file mode 100644 index c8c39e35..00000000 --- a/lib/src/v3/models/site/local_site_rate_limit.g.dart +++ /dev/null @@ -1,68 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_site_rate_limit.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalSiteRateLimitImpl _$$LocalSiteRateLimitImplFromJson( - Map json) => - _$LocalSiteRateLimitImpl( - id: (json['id'] as num?)?.toInt(), - localSiteId: (json['local_site_id'] as num).toInt(), - message: (json['message'] as num).toInt(), - messagePerSecond: (json['message_per_second'] as num).toInt(), - post: (json['post'] as num).toInt(), - postPerSecond: (json['post_per_second'] as num).toInt(), - register: (json['register'] as num).toInt(), - registerPerSecond: (json['register_per_second'] as num).toInt(), - image: (json['image'] as num).toInt(), - imagePerSecond: (json['image_per_second'] as num).toInt(), - comment: (json['comment'] as num).toInt(), - commentPerSecond: (json['comment_per_second'] as num).toInt(), - search: (json['search'] as num).toInt(), - searchPerSecond: (json['search_per_second'] as num).toInt(), - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - importUserSettings: (json['import_user_settings'] as num?)?.toInt(), - importUserSettingsPerSecond: - (json['import_user_settings_per_second'] as num?)?.toInt(), - ); - -Map _$$LocalSiteRateLimitImplToJson( - _$LocalSiteRateLimitImpl instance) => - { - 'id': instance.id, - 'local_site_id': instance.localSiteId, - 'message': instance.message, - 'message_per_second': instance.messagePerSecond, - 'post': instance.post, - 'post_per_second': instance.postPerSecond, - 'register': instance.register, - 'register_per_second': instance.registerPerSecond, - 'image': instance.image, - 'image_per_second': instance.imagePerSecond, - 'comment': instance.comment, - 'comment_per_second': instance.commentPerSecond, - 'search': instance.search, - 'search_per_second': instance.searchPerSecond, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'import_user_settings': instance.importUserSettings, - 'import_user_settings_per_second': instance.importUserSettingsPerSecond, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/site/local_site_url_blocklist.dart b/lib/src/v3/models/site/local_site_url_blocklist.dart deleted file mode 100644 index 27b6a626..00000000 --- a/lib/src/v3/models/site/local_site_url_blocklist.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'local_site_url_blocklist.freezed.dart'; -part 'local_site_url_blocklist.g.dart'; - -@freezed -class LocalSiteUrlBlocklist with _$LocalSiteUrlBlocklist { - @modelSerde - const factory LocalSiteUrlBlocklist({ - int? id, // v0.19.4 (required) - String? url, // v0.19.4 (required) - DateTime? published, // v0.19.4 (required) - DateTime? updated, // v0.19.4 (optional) - }) = _LocalSiteUrlBlocklist; - - const LocalSiteUrlBlocklist._(); - factory LocalSiteUrlBlocklist.fromJson(Map json) => - _$LocalSiteUrlBlocklistFromJson(json); -} diff --git a/lib/src/v3/models/site/local_site_url_blocklist.freezed.dart b/lib/src/v3/models/site/local_site_url_blocklist.freezed.dart deleted file mode 100644 index b7407c7c..00000000 --- a/lib/src/v3/models/site/local_site_url_blocklist.freezed.dart +++ /dev/null @@ -1,230 +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 'local_site_url_blocklist.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'); - -LocalSiteUrlBlocklist _$LocalSiteUrlBlocklistFromJson( - Map json) { - return _LocalSiteUrlBlocklist.fromJson(json); -} - -/// @nodoc -mixin _$LocalSiteUrlBlocklist { - int? get id => throw _privateConstructorUsedError; // v0.19.4 (required) - String? get url => throw _privateConstructorUsedError; // v0.19.4 (required) - DateTime? get published => - throw _privateConstructorUsedError; // v0.19.4 (required) - DateTime? get updated => throw _privateConstructorUsedError; - - /// Serializes this LocalSiteUrlBlocklist to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalSiteUrlBlocklist - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalSiteUrlBlocklistCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalSiteUrlBlocklistCopyWith<$Res> { - factory $LocalSiteUrlBlocklistCopyWith(LocalSiteUrlBlocklist value, - $Res Function(LocalSiteUrlBlocklist) then) = - _$LocalSiteUrlBlocklistCopyWithImpl<$Res, LocalSiteUrlBlocklist>; - @useResult - $Res call({int? id, String? url, DateTime? published, DateTime? updated}); -} - -/// @nodoc -class _$LocalSiteUrlBlocklistCopyWithImpl<$Res, - $Val extends LocalSiteUrlBlocklist> - implements $LocalSiteUrlBlocklistCopyWith<$Res> { - _$LocalSiteUrlBlocklistCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalSiteUrlBlocklist - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? url = freezed, - Object? published = freezed, - Object? updated = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - published: freezed == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime?, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LocalSiteUrlBlocklistImplCopyWith<$Res> - implements $LocalSiteUrlBlocklistCopyWith<$Res> { - factory _$$LocalSiteUrlBlocklistImplCopyWith( - _$LocalSiteUrlBlocklistImpl value, - $Res Function(_$LocalSiteUrlBlocklistImpl) then) = - __$$LocalSiteUrlBlocklistImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? id, String? url, DateTime? published, DateTime? updated}); -} - -/// @nodoc -class __$$LocalSiteUrlBlocklistImplCopyWithImpl<$Res> - extends _$LocalSiteUrlBlocklistCopyWithImpl<$Res, - _$LocalSiteUrlBlocklistImpl> - implements _$$LocalSiteUrlBlocklistImplCopyWith<$Res> { - __$$LocalSiteUrlBlocklistImplCopyWithImpl(_$LocalSiteUrlBlocklistImpl _value, - $Res Function(_$LocalSiteUrlBlocklistImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalSiteUrlBlocklist - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? url = freezed, - Object? published = freezed, - Object? updated = freezed, - }) { - return _then(_$LocalSiteUrlBlocklistImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - published: freezed == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime?, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalSiteUrlBlocklistImpl extends _LocalSiteUrlBlocklist { - const _$LocalSiteUrlBlocklistImpl( - {this.id, this.url, this.published, this.updated}) - : super._(); - - factory _$LocalSiteUrlBlocklistImpl.fromJson(Map json) => - _$$LocalSiteUrlBlocklistImplFromJson(json); - - @override - final int? id; -// v0.19.4 (required) - @override - final String? url; -// v0.19.4 (required) - @override - final DateTime? published; -// v0.19.4 (required) - @override - final DateTime? updated; - - @override - String toString() { - return 'LocalSiteUrlBlocklist(id: $id, url: $url, published: $published, updated: $updated)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalSiteUrlBlocklistImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.url, url) || other.url == url) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, id, url, published, updated); - - /// Create a copy of LocalSiteUrlBlocklist - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalSiteUrlBlocklistImplCopyWith<_$LocalSiteUrlBlocklistImpl> - get copyWith => __$$LocalSiteUrlBlocklistImplCopyWithImpl< - _$LocalSiteUrlBlocklistImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LocalSiteUrlBlocklistImplToJson( - this, - ); - } -} - -abstract class _LocalSiteUrlBlocklist extends LocalSiteUrlBlocklist { - const factory _LocalSiteUrlBlocklist( - {final int? id, - final String? url, - final DateTime? published, - final DateTime? updated}) = _$LocalSiteUrlBlocklistImpl; - const _LocalSiteUrlBlocklist._() : super._(); - - factory _LocalSiteUrlBlocklist.fromJson(Map json) = - _$LocalSiteUrlBlocklistImpl.fromJson; - - @override - int? get id; // v0.19.4 (required) - @override - String? get url; // v0.19.4 (required) - @override - DateTime? get published; // v0.19.4 (required) - @override - DateTime? get updated; - - /// Create a copy of LocalSiteUrlBlocklist - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalSiteUrlBlocklistImplCopyWith<_$LocalSiteUrlBlocklistImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/local_site_url_blocklist.g.dart b/lib/src/v3/models/site/local_site_url_blocklist.g.dart deleted file mode 100644 index 2989671c..00000000 --- a/lib/src/v3/models/site/local_site_url_blocklist.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_site_url_blocklist.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalSiteUrlBlocklistImpl _$$LocalSiteUrlBlocklistImplFromJson( - Map json) => - _$LocalSiteUrlBlocklistImpl( - id: (json['id'] as num?)?.toInt(), - url: json['url'] as String?, - published: _$JsonConverterFromJson( - json['published'], const ForceUtcDateTime().fromJson), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - ); - -Map _$$LocalSiteUrlBlocklistImplToJson( - _$LocalSiteUrlBlocklistImpl instance) => - { - 'id': instance.id, - 'url': instance.url, - 'published': _$JsonConverterToJson( - instance.published, const ForceUtcDateTime().toJson), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/site/site.dart b/lib/src/v3/models/site/site.dart deleted file mode 100644 index 42fe3ac6..00000000 --- a/lib/src/v3/models/site/site.dart +++ /dev/null @@ -1,32 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'site.freezed.dart'; -part 'site.g.dart'; - -@freezed -class Site with _$Site { - @modelSerde - const factory Site({ - required int id, // v0.18.0 - required String name, // v0.18.0 - String? sidebar, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - String? icon, // v0.18.0 - String? banner, // v0.18.0 - String? description, // v0.18.0 - required String actorId, // v0.18.0 - required DateTime lastRefreshedAt, // v0.18.0 - required String inboxUrl, // v0.18.0 - @deprecated String? privateKey, // v0.18.0 [deprecated in v0.19.4] - @deprecated String? publicKey, // v0.18.0 [deprecated in v0.19.4] - required int instanceId, // v0.18.0 - String? contentWarning, // v0.19.4 (optional) - }) = _Site; - - const Site._(); - factory Site.fromJson(Map json) => _$SiteFromJson(json); -} diff --git a/lib/src/v3/models/site/site.freezed.dart b/lib/src/v3/models/site/site.freezed.dart deleted file mode 100644 index 7a473f80..00000000 --- a/lib/src/v3/models/site/site.freezed.dart +++ /dev/null @@ -1,492 +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 'site.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'); - -Site _$SiteFromJson(Map json) { - return _Site.fromJson(json); -} - -/// @nodoc -mixin _$Site { - int get id => throw _privateConstructorUsedError; // v0.18.0 - String get name => throw _privateConstructorUsedError; // v0.18.0 - String? get sidebar => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; // v0.18.0 - String? get icon => throw _privateConstructorUsedError; // v0.18.0 - String? get banner => throw _privateConstructorUsedError; // v0.18.0 - String? get description => throw _privateConstructorUsedError; // v0.18.0 - String get actorId => throw _privateConstructorUsedError; // v0.18.0 - DateTime get lastRefreshedAt => throw _privateConstructorUsedError; // v0.18.0 - String get inboxUrl => throw _privateConstructorUsedError; // v0.18.0 - @deprecated - String? get privateKey => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.4] - @deprecated - String? get publicKey => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.4] - int get instanceId => throw _privateConstructorUsedError; // v0.18.0 - String? get contentWarning => throw _privateConstructorUsedError; - - /// Serializes this Site to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Site - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SiteCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SiteCopyWith<$Res> { - factory $SiteCopyWith(Site value, $Res Function(Site) then) = - _$SiteCopyWithImpl<$Res, Site>; - @useResult - $Res call( - {int id, - String name, - String? sidebar, - DateTime published, - DateTime? updated, - String? icon, - String? banner, - String? description, - String actorId, - DateTime lastRefreshedAt, - String inboxUrl, - @deprecated String? privateKey, - @deprecated String? publicKey, - int instanceId, - String? contentWarning}); -} - -/// @nodoc -class _$SiteCopyWithImpl<$Res, $Val extends Site> - implements $SiteCopyWith<$Res> { - _$SiteCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Site - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? sidebar = freezed, - Object? published = null, - Object? updated = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? description = freezed, - Object? actorId = null, - Object? lastRefreshedAt = null, - Object? inboxUrl = null, - Object? privateKey = freezed, - Object? publicKey = freezed, - Object? instanceId = null, - Object? contentWarning = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - sidebar: freezed == sidebar - ? _value.sidebar - : sidebar // ignore: cast_nullable_to_non_nullable - as String?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - actorId: null == actorId - ? _value.actorId - : actorId // ignore: cast_nullable_to_non_nullable - as String, - lastRefreshedAt: null == lastRefreshedAt - ? _value.lastRefreshedAt - : lastRefreshedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - inboxUrl: null == inboxUrl - ? _value.inboxUrl - : inboxUrl // ignore: cast_nullable_to_non_nullable - as String, - privateKey: freezed == privateKey - ? _value.privateKey - : privateKey // ignore: cast_nullable_to_non_nullable - as String?, - publicKey: freezed == publicKey - ? _value.publicKey - : publicKey // ignore: cast_nullable_to_non_nullable - as String?, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - contentWarning: freezed == contentWarning - ? _value.contentWarning - : contentWarning // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SiteImplCopyWith<$Res> implements $SiteCopyWith<$Res> { - factory _$$SiteImplCopyWith( - _$SiteImpl value, $Res Function(_$SiteImpl) then) = - __$$SiteImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - String name, - String? sidebar, - DateTime published, - DateTime? updated, - String? icon, - String? banner, - String? description, - String actorId, - DateTime lastRefreshedAt, - String inboxUrl, - @deprecated String? privateKey, - @deprecated String? publicKey, - int instanceId, - String? contentWarning}); -} - -/// @nodoc -class __$$SiteImplCopyWithImpl<$Res> - extends _$SiteCopyWithImpl<$Res, _$SiteImpl> - implements _$$SiteImplCopyWith<$Res> { - __$$SiteImplCopyWithImpl(_$SiteImpl _value, $Res Function(_$SiteImpl) _then) - : super(_value, _then); - - /// Create a copy of Site - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? name = null, - Object? sidebar = freezed, - Object? published = null, - Object? updated = freezed, - Object? icon = freezed, - Object? banner = freezed, - Object? description = freezed, - Object? actorId = null, - Object? lastRefreshedAt = null, - Object? inboxUrl = null, - Object? privateKey = freezed, - Object? publicKey = freezed, - Object? instanceId = null, - Object? contentWarning = freezed, - }) { - return _then(_$SiteImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - name: null == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String, - sidebar: freezed == sidebar - ? _value.sidebar - : sidebar // ignore: cast_nullable_to_non_nullable - as String?, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - icon: freezed == icon - ? _value.icon - : icon // ignore: cast_nullable_to_non_nullable - as String?, - banner: freezed == banner - ? _value.banner - : banner // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - actorId: null == actorId - ? _value.actorId - : actorId // ignore: cast_nullable_to_non_nullable - as String, - lastRefreshedAt: null == lastRefreshedAt - ? _value.lastRefreshedAt - : lastRefreshedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - inboxUrl: null == inboxUrl - ? _value.inboxUrl - : inboxUrl // ignore: cast_nullable_to_non_nullable - as String, - privateKey: freezed == privateKey - ? _value.privateKey - : privateKey // ignore: cast_nullable_to_non_nullable - as String?, - publicKey: freezed == publicKey - ? _value.publicKey - : publicKey // ignore: cast_nullable_to_non_nullable - as String?, - instanceId: null == instanceId - ? _value.instanceId - : instanceId // ignore: cast_nullable_to_non_nullable - as int, - contentWarning: freezed == contentWarning - ? _value.contentWarning - : contentWarning // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SiteImpl extends _Site { - const _$SiteImpl( - {required this.id, - required this.name, - this.sidebar, - required this.published, - this.updated, - this.icon, - this.banner, - this.description, - required this.actorId, - required this.lastRefreshedAt, - required this.inboxUrl, - @deprecated this.privateKey, - @deprecated this.publicKey, - required this.instanceId, - this.contentWarning}) - : super._(); - - factory _$SiteImpl.fromJson(Map json) => - _$$SiteImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final String name; -// v0.18.0 - @override - final String? sidebar; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; -// v0.18.0 - @override - final String? icon; -// v0.18.0 - @override - final String? banner; -// v0.18.0 - @override - final String? description; -// v0.18.0 - @override - final String actorId; -// v0.18.0 - @override - final DateTime lastRefreshedAt; -// v0.18.0 - @override - final String inboxUrl; -// v0.18.0 - @override - @deprecated - final String? privateKey; -// v0.18.0 [deprecated in v0.19.4] - @override - @deprecated - final String? publicKey; -// v0.18.0 [deprecated in v0.19.4] - @override - final int instanceId; -// v0.18.0 - @override - final String? contentWarning; - - @override - String toString() { - return 'Site(id: $id, name: $name, sidebar: $sidebar, published: $published, updated: $updated, icon: $icon, banner: $banner, description: $description, actorId: $actorId, lastRefreshedAt: $lastRefreshedAt, inboxUrl: $inboxUrl, privateKey: $privateKey, publicKey: $publicKey, instanceId: $instanceId, contentWarning: $contentWarning)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SiteImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.sidebar, sidebar) || other.sidebar == sidebar) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated) && - (identical(other.icon, icon) || other.icon == icon) && - (identical(other.banner, banner) || other.banner == banner) && - (identical(other.description, description) || - other.description == description) && - (identical(other.actorId, actorId) || other.actorId == actorId) && - (identical(other.lastRefreshedAt, lastRefreshedAt) || - other.lastRefreshedAt == lastRefreshedAt) && - (identical(other.inboxUrl, inboxUrl) || - other.inboxUrl == inboxUrl) && - (identical(other.privateKey, privateKey) || - other.privateKey == privateKey) && - (identical(other.publicKey, publicKey) || - other.publicKey == publicKey) && - (identical(other.instanceId, instanceId) || - other.instanceId == instanceId) && - (identical(other.contentWarning, contentWarning) || - other.contentWarning == contentWarning)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - name, - sidebar, - published, - updated, - icon, - banner, - description, - actorId, - lastRefreshedAt, - inboxUrl, - privateKey, - publicKey, - instanceId, - contentWarning); - - /// Create a copy of Site - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SiteImplCopyWith<_$SiteImpl> get copyWith => - __$$SiteImplCopyWithImpl<_$SiteImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SiteImplToJson( - this, - ); - } -} - -abstract class _Site extends Site { - const factory _Site( - {required final int id, - required final String name, - final String? sidebar, - required final DateTime published, - final DateTime? updated, - final String? icon, - final String? banner, - final String? description, - required final String actorId, - required final DateTime lastRefreshedAt, - required final String inboxUrl, - @deprecated final String? privateKey, - @deprecated final String? publicKey, - required final int instanceId, - final String? contentWarning}) = _$SiteImpl; - const _Site._() : super._(); - - factory _Site.fromJson(Map json) = _$SiteImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - String get name; // v0.18.0 - @override - String? get sidebar; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; // v0.18.0 - @override - String? get icon; // v0.18.0 - @override - String? get banner; // v0.18.0 - @override - String? get description; // v0.18.0 - @override - String get actorId; // v0.18.0 - @override - DateTime get lastRefreshedAt; // v0.18.0 - @override - String get inboxUrl; // v0.18.0 - @override - @deprecated - String? get privateKey; // v0.18.0 [deprecated in v0.19.4] - @override - @deprecated - String? get publicKey; // v0.18.0 [deprecated in v0.19.4] - @override - int get instanceId; // v0.18.0 - @override - String? get contentWarning; - - /// Create a copy of Site - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SiteImplCopyWith<_$SiteImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/site.g.dart b/lib/src/v3/models/site/site.g.dart deleted file mode 100644 index 5e14c088..00000000 --- a/lib/src/v3/models/site/site.g.dart +++ /dev/null @@ -1,60 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'site.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SiteImpl _$$SiteImplFromJson(Map json) => _$SiteImpl( - id: (json['id'] as num).toInt(), - name: json['name'] as String, - sidebar: json['sidebar'] as String?, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - icon: json['icon'] as String?, - banner: json['banner'] as String?, - description: json['description'] as String?, - actorId: json['actor_id'] as String, - lastRefreshedAt: const ForceUtcDateTime() - .fromJson(json['last_refreshed_at'] as String), - inboxUrl: json['inbox_url'] as String, - privateKey: json['private_key'] as String?, - publicKey: json['public_key'] as String?, - instanceId: (json['instance_id'] as num).toInt(), - contentWarning: json['content_warning'] as String?, - ); - -Map _$$SiteImplToJson(_$SiteImpl instance) => - { - 'id': instance.id, - 'name': instance.name, - 'sidebar': instance.sidebar, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - 'icon': instance.icon, - 'banner': instance.banner, - 'description': instance.description, - 'actor_id': instance.actorId, - 'last_refreshed_at': - const ForceUtcDateTime().toJson(instance.lastRefreshedAt), - 'inbox_url': instance.inboxUrl, - 'private_key': instance.privateKey, - 'public_key': instance.publicKey, - 'instance_id': instance.instanceId, - 'content_warning': instance.contentWarning, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/site/site_aggregates.dart b/lib/src/v3/models/site/site_aggregates.dart deleted file mode 100644 index 28fb8eaa..00000000 --- a/lib/src/v3/models/site/site_aggregates.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'site_aggregates.freezed.dart'; -part 'site_aggregates.g.dart'; - -@freezed -class SiteAggregates with _$SiteAggregates { - @modelSerde - const factory SiteAggregates({ - @deprecated int? id, // v0.18.0 [deprecated in v0.19.0] - required int siteId, // v0.18.0 - required int users, // v0.18.0 - required int posts, // v0.18.0 - required int comments, // v0.18.0 - required int communities, // v0.18.0 - required int usersActiveDay, // v0.18.0 - required int usersActiveWeek, // v0.18.0 - required int usersActiveMonth, // v0.18.0 - required int usersActiveHalfYear, // v0.18.0 - }) = _SiteAggregates; - - const SiteAggregates._(); - factory SiteAggregates.fromJson(Map json) => - _$SiteAggregatesFromJson(json); -} diff --git a/lib/src/v3/models/site/site_aggregates.freezed.dart b/lib/src/v3/models/site/site_aggregates.freezed.dart deleted file mode 100644 index d284d64c..00000000 --- a/lib/src/v3/models/site/site_aggregates.freezed.dart +++ /dev/null @@ -1,382 +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 'site_aggregates.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'); - -SiteAggregates _$SiteAggregatesFromJson(Map json) { - return _SiteAggregates.fromJson(json); -} - -/// @nodoc -mixin _$SiteAggregates { - @deprecated - int? get id => - throw _privateConstructorUsedError; // v0.18.0 [deprecated in v0.19.0] - int get siteId => throw _privateConstructorUsedError; // v0.18.0 - int get users => throw _privateConstructorUsedError; // v0.18.0 - int get posts => throw _privateConstructorUsedError; // v0.18.0 - int get comments => throw _privateConstructorUsedError; // v0.18.0 - int get communities => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveDay => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveWeek => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveMonth => throw _privateConstructorUsedError; // v0.18.0 - int get usersActiveHalfYear => throw _privateConstructorUsedError; - - /// Serializes this SiteAggregates to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SiteAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SiteAggregatesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SiteAggregatesCopyWith<$Res> { - factory $SiteAggregatesCopyWith( - SiteAggregates value, $Res Function(SiteAggregates) then) = - _$SiteAggregatesCopyWithImpl<$Res, SiteAggregates>; - @useResult - $Res call( - {@deprecated int? id, - int siteId, - int users, - int posts, - int comments, - int communities, - int usersActiveDay, - int usersActiveWeek, - int usersActiveMonth, - int usersActiveHalfYear}); -} - -/// @nodoc -class _$SiteAggregatesCopyWithImpl<$Res, $Val extends SiteAggregates> - implements $SiteAggregatesCopyWith<$Res> { - _$SiteAggregatesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SiteAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? siteId = null, - Object? users = null, - Object? posts = null, - Object? comments = null, - Object? communities = null, - Object? usersActiveDay = null, - Object? usersActiveWeek = null, - Object? usersActiveMonth = null, - Object? usersActiveHalfYear = null, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - siteId: null == siteId - ? _value.siteId - : siteId // ignore: cast_nullable_to_non_nullable - as int, - users: null == users - ? _value.users - : users // ignore: cast_nullable_to_non_nullable - as int, - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as int, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as int, - communities: null == communities - ? _value.communities - : communities // ignore: cast_nullable_to_non_nullable - as int, - usersActiveDay: null == usersActiveDay - ? _value.usersActiveDay - : usersActiveDay // ignore: cast_nullable_to_non_nullable - as int, - usersActiveWeek: null == usersActiveWeek - ? _value.usersActiveWeek - : usersActiveWeek // ignore: cast_nullable_to_non_nullable - as int, - usersActiveMonth: null == usersActiveMonth - ? _value.usersActiveMonth - : usersActiveMonth // ignore: cast_nullable_to_non_nullable - as int, - usersActiveHalfYear: null == usersActiveHalfYear - ? _value.usersActiveHalfYear - : usersActiveHalfYear // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SiteAggregatesImplCopyWith<$Res> - implements $SiteAggregatesCopyWith<$Res> { - factory _$$SiteAggregatesImplCopyWith(_$SiteAggregatesImpl value, - $Res Function(_$SiteAggregatesImpl) then) = - __$$SiteAggregatesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated int? id, - int siteId, - int users, - int posts, - int comments, - int communities, - int usersActiveDay, - int usersActiveWeek, - int usersActiveMonth, - int usersActiveHalfYear}); -} - -/// @nodoc -class __$$SiteAggregatesImplCopyWithImpl<$Res> - extends _$SiteAggregatesCopyWithImpl<$Res, _$SiteAggregatesImpl> - implements _$$SiteAggregatesImplCopyWith<$Res> { - __$$SiteAggregatesImplCopyWithImpl( - _$SiteAggregatesImpl _value, $Res Function(_$SiteAggregatesImpl) _then) - : super(_value, _then); - - /// Create a copy of SiteAggregates - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? siteId = null, - Object? users = null, - Object? posts = null, - Object? comments = null, - Object? communities = null, - Object? usersActiveDay = null, - Object? usersActiveWeek = null, - Object? usersActiveMonth = null, - Object? usersActiveHalfYear = null, - }) { - return _then(_$SiteAggregatesImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - siteId: null == siteId - ? _value.siteId - : siteId // ignore: cast_nullable_to_non_nullable - as int, - users: null == users - ? _value.users - : users // ignore: cast_nullable_to_non_nullable - as int, - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as int, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as int, - communities: null == communities - ? _value.communities - : communities // ignore: cast_nullable_to_non_nullable - as int, - usersActiveDay: null == usersActiveDay - ? _value.usersActiveDay - : usersActiveDay // ignore: cast_nullable_to_non_nullable - as int, - usersActiveWeek: null == usersActiveWeek - ? _value.usersActiveWeek - : usersActiveWeek // ignore: cast_nullable_to_non_nullable - as int, - usersActiveMonth: null == usersActiveMonth - ? _value.usersActiveMonth - : usersActiveMonth // ignore: cast_nullable_to_non_nullable - as int, - usersActiveHalfYear: null == usersActiveHalfYear - ? _value.usersActiveHalfYear - : usersActiveHalfYear // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SiteAggregatesImpl extends _SiteAggregates { - const _$SiteAggregatesImpl( - {@deprecated this.id, - required this.siteId, - required this.users, - required this.posts, - required this.comments, - required this.communities, - required this.usersActiveDay, - required this.usersActiveWeek, - required this.usersActiveMonth, - required this.usersActiveHalfYear}) - : super._(); - - factory _$SiteAggregatesImpl.fromJson(Map json) => - _$$SiteAggregatesImplFromJson(json); - - @override - @deprecated - final int? id; -// v0.18.0 [deprecated in v0.19.0] - @override - final int siteId; -// v0.18.0 - @override - final int users; -// v0.18.0 - @override - final int posts; -// v0.18.0 - @override - final int comments; -// v0.18.0 - @override - final int communities; -// v0.18.0 - @override - final int usersActiveDay; -// v0.18.0 - @override - final int usersActiveWeek; -// v0.18.0 - @override - final int usersActiveMonth; -// v0.18.0 - @override - final int usersActiveHalfYear; - - @override - String toString() { - return 'SiteAggregates(id: $id, siteId: $siteId, users: $users, posts: $posts, comments: $comments, communities: $communities, usersActiveDay: $usersActiveDay, usersActiveWeek: $usersActiveWeek, usersActiveMonth: $usersActiveMonth, usersActiveHalfYear: $usersActiveHalfYear)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SiteAggregatesImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.siteId, siteId) || other.siteId == siteId) && - (identical(other.users, users) || other.users == users) && - (identical(other.posts, posts) || other.posts == posts) && - (identical(other.comments, comments) || - other.comments == comments) && - (identical(other.communities, communities) || - other.communities == communities) && - (identical(other.usersActiveDay, usersActiveDay) || - other.usersActiveDay == usersActiveDay) && - (identical(other.usersActiveWeek, usersActiveWeek) || - other.usersActiveWeek == usersActiveWeek) && - (identical(other.usersActiveMonth, usersActiveMonth) || - other.usersActiveMonth == usersActiveMonth) && - (identical(other.usersActiveHalfYear, usersActiveHalfYear) || - other.usersActiveHalfYear == usersActiveHalfYear)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - id, - siteId, - users, - posts, - comments, - communities, - usersActiveDay, - usersActiveWeek, - usersActiveMonth, - usersActiveHalfYear); - - /// Create a copy of SiteAggregates - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SiteAggregatesImplCopyWith<_$SiteAggregatesImpl> get copyWith => - __$$SiteAggregatesImplCopyWithImpl<_$SiteAggregatesImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$SiteAggregatesImplToJson( - this, - ); - } -} - -abstract class _SiteAggregates extends SiteAggregates { - const factory _SiteAggregates( - {@deprecated final int? id, - required final int siteId, - required final int users, - required final int posts, - required final int comments, - required final int communities, - required final int usersActiveDay, - required final int usersActiveWeek, - required final int usersActiveMonth, - required final int usersActiveHalfYear}) = _$SiteAggregatesImpl; - const _SiteAggregates._() : super._(); - - factory _SiteAggregates.fromJson(Map json) = - _$SiteAggregatesImpl.fromJson; - - @override - @deprecated - int? get id; // v0.18.0 [deprecated in v0.19.0] - @override - int get siteId; // v0.18.0 - @override - int get users; // v0.18.0 - @override - int get posts; // v0.18.0 - @override - int get comments; // v0.18.0 - @override - int get communities; // v0.18.0 - @override - int get usersActiveDay; // v0.18.0 - @override - int get usersActiveWeek; // v0.18.0 - @override - int get usersActiveMonth; // v0.18.0 - @override - int get usersActiveHalfYear; - - /// Create a copy of SiteAggregates - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SiteAggregatesImplCopyWith<_$SiteAggregatesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/site_aggregates.g.dart b/lib/src/v3/models/site/site_aggregates.g.dart deleted file mode 100644 index 76b94fc6..00000000 --- a/lib/src/v3/models/site/site_aggregates.g.dart +++ /dev/null @@ -1,36 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'site_aggregates.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SiteAggregatesImpl _$$SiteAggregatesImplFromJson(Map json) => - _$SiteAggregatesImpl( - id: (json['id'] as num?)?.toInt(), - siteId: (json['site_id'] as num).toInt(), - users: (json['users'] as num).toInt(), - posts: (json['posts'] as num).toInt(), - comments: (json['comments'] as num).toInt(), - communities: (json['communities'] as num).toInt(), - usersActiveDay: (json['users_active_day'] as num).toInt(), - usersActiveWeek: (json['users_active_week'] as num).toInt(), - usersActiveMonth: (json['users_active_month'] as num).toInt(), - usersActiveHalfYear: (json['users_active_half_year'] as num).toInt(), - ); - -Map _$$SiteAggregatesImplToJson( - _$SiteAggregatesImpl instance) => - { - 'id': instance.id, - 'site_id': instance.siteId, - 'users': instance.users, - 'posts': instance.posts, - 'comments': instance.comments, - 'communities': instance.communities, - 'users_active_day': instance.usersActiveDay, - 'users_active_week': instance.usersActiveWeek, - 'users_active_month': instance.usersActiveMonth, - 'users_active_half_year': instance.usersActiveHalfYear, - }; diff --git a/lib/src/v3/models/site/site_response.dart b/lib/src/v3/models/site/site_response.dart deleted file mode 100644 index 4d034daa..00000000 --- a/lib/src/v3/models/site/site_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'site_response.freezed.dart'; -part 'site_response.g.dart'; - -@freezed -class SiteResponse with _$SiteResponse { - @modelSerde - const factory SiteResponse({ - required SiteView siteView, // v0.18.0 - required List taglines, // v0.18.0 - }) = _SiteResponse; - - const SiteResponse._(); - factory SiteResponse.fromJson(Map json) => - _$SiteResponseFromJson(json); -} diff --git a/lib/src/v3/models/site/site_response.freezed.dart b/lib/src/v3/models/site/site_response.freezed.dart deleted file mode 100644 index 0acab507..00000000 --- a/lib/src/v3/models/site/site_response.freezed.dart +++ /dev/null @@ -1,211 +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 'site_response.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'); - -SiteResponse _$SiteResponseFromJson(Map json) { - return _SiteResponse.fromJson(json); -} - -/// @nodoc -mixin _$SiteResponse { - SiteView get siteView => throw _privateConstructorUsedError; // v0.18.0 - List get taglines => throw _privateConstructorUsedError; - - /// Serializes this SiteResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SiteResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SiteResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SiteResponseCopyWith<$Res> { - factory $SiteResponseCopyWith( - SiteResponse value, $Res Function(SiteResponse) then) = - _$SiteResponseCopyWithImpl<$Res, SiteResponse>; - @useResult - $Res call({SiteView siteView, List taglines}); - - $SiteViewCopyWith<$Res> get siteView; -} - -/// @nodoc -class _$SiteResponseCopyWithImpl<$Res, $Val extends SiteResponse> - implements $SiteResponseCopyWith<$Res> { - _$SiteResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SiteResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? siteView = null, - Object? taglines = null, - }) { - return _then(_value.copyWith( - siteView: null == siteView - ? _value.siteView - : siteView // ignore: cast_nullable_to_non_nullable - as SiteView, - taglines: null == taglines - ? _value.taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of SiteResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteViewCopyWith<$Res> get siteView { - return $SiteViewCopyWith<$Res>(_value.siteView, (value) { - return _then(_value.copyWith(siteView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$SiteResponseImplCopyWith<$Res> - implements $SiteResponseCopyWith<$Res> { - factory _$$SiteResponseImplCopyWith( - _$SiteResponseImpl value, $Res Function(_$SiteResponseImpl) then) = - __$$SiteResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({SiteView siteView, List taglines}); - - @override - $SiteViewCopyWith<$Res> get siteView; -} - -/// @nodoc -class __$$SiteResponseImplCopyWithImpl<$Res> - extends _$SiteResponseCopyWithImpl<$Res, _$SiteResponseImpl> - implements _$$SiteResponseImplCopyWith<$Res> { - __$$SiteResponseImplCopyWithImpl( - _$SiteResponseImpl _value, $Res Function(_$SiteResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of SiteResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? siteView = null, - Object? taglines = null, - }) { - return _then(_$SiteResponseImpl( - siteView: null == siteView - ? _value.siteView - : siteView // ignore: cast_nullable_to_non_nullable - as SiteView, - taglines: null == taglines - ? _value._taglines - : taglines // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SiteResponseImpl extends _SiteResponse { - const _$SiteResponseImpl( - {required this.siteView, required final List taglines}) - : _taglines = taglines, - super._(); - - factory _$SiteResponseImpl.fromJson(Map json) => - _$$SiteResponseImplFromJson(json); - - @override - final SiteView siteView; -// v0.18.0 - final List _taglines; -// v0.18.0 - @override - List get taglines { - if (_taglines is EqualUnmodifiableListView) return _taglines; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_taglines); - } - - @override - String toString() { - return 'SiteResponse(siteView: $siteView, taglines: $taglines)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SiteResponseImpl && - (identical(other.siteView, siteView) || - other.siteView == siteView) && - const DeepCollectionEquality().equals(other._taglines, _taglines)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, siteView, const DeepCollectionEquality().hash(_taglines)); - - /// Create a copy of SiteResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SiteResponseImplCopyWith<_$SiteResponseImpl> get copyWith => - __$$SiteResponseImplCopyWithImpl<_$SiteResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SiteResponseImplToJson( - this, - ); - } -} - -abstract class _SiteResponse extends SiteResponse { - const factory _SiteResponse( - {required final SiteView siteView, - required final List taglines}) = _$SiteResponseImpl; - const _SiteResponse._() : super._(); - - factory _SiteResponse.fromJson(Map json) = - _$SiteResponseImpl.fromJson; - - @override - SiteView get siteView; // v0.18.0 - @override - List get taglines; - - /// Create a copy of SiteResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SiteResponseImplCopyWith<_$SiteResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/site_response.g.dart b/lib/src/v3/models/site/site_response.g.dart deleted file mode 100644 index 096c0c23..00000000 --- a/lib/src/v3/models/site/site_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'site_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SiteResponseImpl _$$SiteResponseImplFromJson(Map json) => - _$SiteResponseImpl( - siteView: SiteView.fromJson(json['site_view'] as Map), - taglines: (json['taglines'] as List) - .map((e) => Tagline.fromJson(e as Map)) - .toList(), - ); - -Map _$$SiteResponseImplToJson(_$SiteResponseImpl instance) => - { - 'site_view': instance.siteView.toJson(), - 'taglines': instance.taglines.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/site/site_view.dart b/lib/src/v3/models/site/site_view.dart deleted file mode 100644 index 9af7dd1b..00000000 --- a/lib/src/v3/models/site/site_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'site_view.freezed.dart'; -part 'site_view.g.dart'; - -@freezed -class SiteView with _$SiteView { - @modelSerde - const factory SiteView({ - required Site site, // v0.18.0 - required LocalSite localSite, // v0.18.0 - required LocalSiteRateLimit localSiteRateLimit, // v0.18.0 - required SiteAggregates counts, // v0.18.0 - }) = _SiteView; - - const SiteView._(); - factory SiteView.fromJson(Map json) => - _$SiteViewFromJson(json); -} diff --git a/lib/src/v3/models/site/site_view.freezed.dart b/lib/src/v3/models/site/site_view.freezed.dart deleted file mode 100644 index fb733279..00000000 --- a/lib/src/v3/models/site/site_view.freezed.dart +++ /dev/null @@ -1,292 +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 'site_view.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'); - -SiteView _$SiteViewFromJson(Map json) { - return _SiteView.fromJson(json); -} - -/// @nodoc -mixin _$SiteView { - Site get site => throw _privateConstructorUsedError; // v0.18.0 - LocalSite get localSite => throw _privateConstructorUsedError; // v0.18.0 - LocalSiteRateLimit get localSiteRateLimit => - throw _privateConstructorUsedError; // v0.18.0 - SiteAggregates get counts => throw _privateConstructorUsedError; - - /// Serializes this SiteView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SiteViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SiteViewCopyWith<$Res> { - factory $SiteViewCopyWith(SiteView value, $Res Function(SiteView) then) = - _$SiteViewCopyWithImpl<$Res, SiteView>; - @useResult - $Res call( - {Site site, - LocalSite localSite, - LocalSiteRateLimit localSiteRateLimit, - SiteAggregates counts}); - - $SiteCopyWith<$Res> get site; - $LocalSiteCopyWith<$Res> get localSite; - $LocalSiteRateLimitCopyWith<$Res> get localSiteRateLimit; - $SiteAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$SiteViewCopyWithImpl<$Res, $Val extends SiteView> - implements $SiteViewCopyWith<$Res> { - _$SiteViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? site = null, - Object? localSite = null, - Object? localSiteRateLimit = null, - Object? counts = null, - }) { - return _then(_value.copyWith( - site: null == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site, - localSite: null == localSite - ? _value.localSite - : localSite // ignore: cast_nullable_to_non_nullable - as LocalSite, - localSiteRateLimit: null == localSiteRateLimit - ? _value.localSiteRateLimit - : localSiteRateLimit // ignore: cast_nullable_to_non_nullable - as LocalSiteRateLimit, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as SiteAggregates, - ) as $Val); - } - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteCopyWith<$Res> get site { - return $SiteCopyWith<$Res>(_value.site, (value) { - return _then(_value.copyWith(site: value) as $Val); - }); - } - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalSiteCopyWith<$Res> get localSite { - return $LocalSiteCopyWith<$Res>(_value.localSite, (value) { - return _then(_value.copyWith(localSite: value) as $Val); - }); - } - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalSiteRateLimitCopyWith<$Res> get localSiteRateLimit { - return $LocalSiteRateLimitCopyWith<$Res>(_value.localSiteRateLimit, - (value) { - return _then(_value.copyWith(localSiteRateLimit: value) as $Val); - }); - } - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteAggregatesCopyWith<$Res> get counts { - return $SiteAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$SiteViewImplCopyWith<$Res> - implements $SiteViewCopyWith<$Res> { - factory _$$SiteViewImplCopyWith( - _$SiteViewImpl value, $Res Function(_$SiteViewImpl) then) = - __$$SiteViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {Site site, - LocalSite localSite, - LocalSiteRateLimit localSiteRateLimit, - SiteAggregates counts}); - - @override - $SiteCopyWith<$Res> get site; - @override - $LocalSiteCopyWith<$Res> get localSite; - @override - $LocalSiteRateLimitCopyWith<$Res> get localSiteRateLimit; - @override - $SiteAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$SiteViewImplCopyWithImpl<$Res> - extends _$SiteViewCopyWithImpl<$Res, _$SiteViewImpl> - implements _$$SiteViewImplCopyWith<$Res> { - __$$SiteViewImplCopyWithImpl( - _$SiteViewImpl _value, $Res Function(_$SiteViewImpl) _then) - : super(_value, _then); - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? site = null, - Object? localSite = null, - Object? localSiteRateLimit = null, - Object? counts = null, - }) { - return _then(_$SiteViewImpl( - site: null == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site, - localSite: null == localSite - ? _value.localSite - : localSite // ignore: cast_nullable_to_non_nullable - as LocalSite, - localSiteRateLimit: null == localSiteRateLimit - ? _value.localSiteRateLimit - : localSiteRateLimit // ignore: cast_nullable_to_non_nullable - as LocalSiteRateLimit, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as SiteAggregates, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SiteViewImpl extends _SiteView { - const _$SiteViewImpl( - {required this.site, - required this.localSite, - required this.localSiteRateLimit, - required this.counts}) - : super._(); - - factory _$SiteViewImpl.fromJson(Map json) => - _$$SiteViewImplFromJson(json); - - @override - final Site site; -// v0.18.0 - @override - final LocalSite localSite; -// v0.18.0 - @override - final LocalSiteRateLimit localSiteRateLimit; -// v0.18.0 - @override - final SiteAggregates counts; - - @override - String toString() { - return 'SiteView(site: $site, localSite: $localSite, localSiteRateLimit: $localSiteRateLimit, counts: $counts)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SiteViewImpl && - (identical(other.site, site) || other.site == site) && - (identical(other.localSite, localSite) || - other.localSite == localSite) && - (identical(other.localSiteRateLimit, localSiteRateLimit) || - other.localSiteRateLimit == localSiteRateLimit) && - (identical(other.counts, counts) || other.counts == counts)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, site, localSite, localSiteRateLimit, counts); - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SiteViewImplCopyWith<_$SiteViewImpl> get copyWith => - __$$SiteViewImplCopyWithImpl<_$SiteViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SiteViewImplToJson( - this, - ); - } -} - -abstract class _SiteView extends SiteView { - const factory _SiteView( - {required final Site site, - required final LocalSite localSite, - required final LocalSiteRateLimit localSiteRateLimit, - required final SiteAggregates counts}) = _$SiteViewImpl; - const _SiteView._() : super._(); - - factory _SiteView.fromJson(Map json) = - _$SiteViewImpl.fromJson; - - @override - Site get site; // v0.18.0 - @override - LocalSite get localSite; // v0.18.0 - @override - LocalSiteRateLimit get localSiteRateLimit; // v0.18.0 - @override - SiteAggregates get counts; - - /// Create a copy of SiteView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SiteViewImplCopyWith<_$SiteViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/site/site_view.g.dart b/lib/src/v3/models/site/site_view.g.dart deleted file mode 100644 index 0c39ec17..00000000 --- a/lib/src/v3/models/site/site_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'site_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SiteViewImpl _$$SiteViewImplFromJson(Map json) => - _$SiteViewImpl( - site: Site.fromJson(json['site'] as Map), - localSite: LocalSite.fromJson(json['local_site'] as Map), - localSiteRateLimit: LocalSiteRateLimit.fromJson( - json['local_site_rate_limit'] as Map), - counts: SiteAggregates.fromJson(json['counts'] as Map), - ); - -Map _$$SiteViewImplToJson(_$SiteViewImpl instance) => - { - 'site': instance.site.toJson(), - 'local_site': instance.localSite.toJson(), - 'local_site_rate_limit': instance.localSiteRateLimit.toJson(), - 'counts': instance.counts.toJson(), - }; diff --git a/lib/src/v3/models/tagline/tagline.dart b/lib/src/v3/models/tagline/tagline.dart deleted file mode 100644 index d736798a..00000000 --- a/lib/src/v3/models/tagline/tagline.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/force_utc_datetime.dart'; -import '../../../utils/serde.dart'; - -part 'tagline.freezed.dart'; -part 'tagline.g.dart'; - -@freezed -class Tagline with _$Tagline { - @modelSerde - const factory Tagline({ - required int id, // v0.18.0 - required int localSiteId, // v0.18.0 - required String content, // v0.18.0 - required DateTime published, // v0.18.0 - DateTime? updated, // v0.18.0 - }) = _Tagline; - - const Tagline._(); - factory Tagline.fromJson(Map json) => - _$TaglineFromJson(json); -} diff --git a/lib/src/v3/models/tagline/tagline.freezed.dart b/lib/src/v3/models/tagline/tagline.freezed.dart deleted file mode 100644 index c4c4dcb1..00000000 --- a/lib/src/v3/models/tagline/tagline.freezed.dart +++ /dev/null @@ -1,254 +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 'tagline.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'); - -Tagline _$TaglineFromJson(Map json) { - return _Tagline.fromJson(json); -} - -/// @nodoc -mixin _$Tagline { - int get id => throw _privateConstructorUsedError; // v0.18.0 - int get localSiteId => throw _privateConstructorUsedError; // v0.18.0 - String get content => throw _privateConstructorUsedError; // v0.18.0 - DateTime get published => throw _privateConstructorUsedError; // v0.18.0 - DateTime? get updated => throw _privateConstructorUsedError; - - /// Serializes this Tagline to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of Tagline - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $TaglineCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $TaglineCopyWith<$Res> { - factory $TaglineCopyWith(Tagline value, $Res Function(Tagline) then) = - _$TaglineCopyWithImpl<$Res, Tagline>; - @useResult - $Res call( - {int id, - int localSiteId, - String content, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class _$TaglineCopyWithImpl<$Res, $Val extends Tagline> - implements $TaglineCopyWith<$Res> { - _$TaglineCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of Tagline - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? localSiteId = null, - Object? content = null, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_value.copyWith( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - localSiteId: null == localSiteId - ? _value.localSiteId - : localSiteId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$TaglineImplCopyWith<$Res> implements $TaglineCopyWith<$Res> { - factory _$$TaglineImplCopyWith( - _$TaglineImpl value, $Res Function(_$TaglineImpl) then) = - __$$TaglineImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int id, - int localSiteId, - String content, - DateTime published, - DateTime? updated}); -} - -/// @nodoc -class __$$TaglineImplCopyWithImpl<$Res> - extends _$TaglineCopyWithImpl<$Res, _$TaglineImpl> - implements _$$TaglineImplCopyWith<$Res> { - __$$TaglineImplCopyWithImpl( - _$TaglineImpl _value, $Res Function(_$TaglineImpl) _then) - : super(_value, _then); - - /// Create a copy of Tagline - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? localSiteId = null, - Object? content = null, - Object? published = null, - Object? updated = freezed, - }) { - return _then(_$TaglineImpl( - id: null == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int, - localSiteId: null == localSiteId - ? _value.localSiteId - : localSiteId // ignore: cast_nullable_to_non_nullable - as int, - content: null == content - ? _value.content - : content // ignore: cast_nullable_to_non_nullable - as String, - published: null == published - ? _value.published - : published // ignore: cast_nullable_to_non_nullable - as DateTime, - updated: freezed == updated - ? _value.updated - : updated // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$TaglineImpl extends _Tagline { - const _$TaglineImpl( - {required this.id, - required this.localSiteId, - required this.content, - required this.published, - this.updated}) - : super._(); - - factory _$TaglineImpl.fromJson(Map json) => - _$$TaglineImplFromJson(json); - - @override - final int id; -// v0.18.0 - @override - final int localSiteId; -// v0.18.0 - @override - final String content; -// v0.18.0 - @override - final DateTime published; -// v0.18.0 - @override - final DateTime? updated; - - @override - String toString() { - return 'Tagline(id: $id, localSiteId: $localSiteId, content: $content, published: $published, updated: $updated)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$TaglineImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.localSiteId, localSiteId) || - other.localSiteId == localSiteId) && - (identical(other.content, content) || other.content == content) && - (identical(other.published, published) || - other.published == published) && - (identical(other.updated, updated) || other.updated == updated)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, id, localSiteId, content, published, updated); - - /// Create a copy of Tagline - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$TaglineImplCopyWith<_$TaglineImpl> get copyWith => - __$$TaglineImplCopyWithImpl<_$TaglineImpl>(this, _$identity); - - @override - Map toJson() { - return _$$TaglineImplToJson( - this, - ); - } -} - -abstract class _Tagline extends Tagline { - const factory _Tagline( - {required final int id, - required final int localSiteId, - required final String content, - required final DateTime published, - final DateTime? updated}) = _$TaglineImpl; - const _Tagline._() : super._(); - - factory _Tagline.fromJson(Map json) = _$TaglineImpl.fromJson; - - @override - int get id; // v0.18.0 - @override - int get localSiteId; // v0.18.0 - @override - String get content; // v0.18.0 - @override - DateTime get published; // v0.18.0 - @override - DateTime? get updated; - - /// Create a copy of Tagline - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$TaglineImplCopyWith<_$TaglineImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/tagline/tagline.g.dart b/lib/src/v3/models/tagline/tagline.g.dart deleted file mode 100644 index 1d08d94d..00000000 --- a/lib/src/v3/models/tagline/tagline.g.dart +++ /dev/null @@ -1,39 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'tagline.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$TaglineImpl _$$TaglineImplFromJson(Map json) => - _$TaglineImpl( - id: (json['id'] as num).toInt(), - localSiteId: (json['local_site_id'] as num).toInt(), - content: json['content'] as String, - published: const ForceUtcDateTime().fromJson(json['published'] as String), - updated: _$JsonConverterFromJson( - json['updated'], const ForceUtcDateTime().fromJson), - ); - -Map _$$TaglineImplToJson(_$TaglineImpl instance) => - { - 'id': instance.id, - 'local_site_id': instance.localSiteId, - 'content': instance.content, - 'published': const ForceUtcDateTime().toJson(instance.published), - 'updated': _$JsonConverterToJson( - instance.updated, const ForceUtcDateTime().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/lib/src/v3/models/user/ban_person_response.dart b/lib/src/v3/models/user/ban_person_response.dart deleted file mode 100644 index f7c71d39..00000000 --- a/lib/src/v3/models/user/ban_person_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'ban_person_response.freezed.dart'; -part 'ban_person_response.g.dart'; - -@freezed -class BanPersonResponse with _$BanPersonResponse { - @modelSerde - const factory BanPersonResponse({ - required PersonView personView, // v0.18.0 - required bool banned, // v0.18.0 - }) = _BanPersonResponse; - - const BanPersonResponse._(); - factory BanPersonResponse.fromJson(Map json) => - _$BanPersonResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/ban_person_response.freezed.dart b/lib/src/v3/models/user/ban_person_response.freezed.dart deleted file mode 100644 index b181129a..00000000 --- a/lib/src/v3/models/user/ban_person_response.freezed.dart +++ /dev/null @@ -1,204 +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 'ban_person_response.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'); - -BanPersonResponse _$BanPersonResponseFromJson(Map json) { - return _BanPersonResponse.fromJson(json); -} - -/// @nodoc -mixin _$BanPersonResponse { - PersonView get personView => throw _privateConstructorUsedError; // v0.18.0 - bool get banned => throw _privateConstructorUsedError; - - /// Serializes this BanPersonResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BanPersonResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BanPersonResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BanPersonResponseCopyWith<$Res> { - factory $BanPersonResponseCopyWith( - BanPersonResponse value, $Res Function(BanPersonResponse) then) = - _$BanPersonResponseCopyWithImpl<$Res, BanPersonResponse>; - @useResult - $Res call({PersonView personView, bool banned}); - - $PersonViewCopyWith<$Res> get personView; -} - -/// @nodoc -class _$BanPersonResponseCopyWithImpl<$Res, $Val extends BanPersonResponse> - implements $BanPersonResponseCopyWith<$Res> { - _$BanPersonResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BanPersonResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? banned = null, - }) { - return _then(_value.copyWith( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } - - /// Create a copy of BanPersonResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonViewCopyWith<$Res> get personView { - return $PersonViewCopyWith<$Res>(_value.personView, (value) { - return _then(_value.copyWith(personView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$BanPersonResponseImplCopyWith<$Res> - implements $BanPersonResponseCopyWith<$Res> { - factory _$$BanPersonResponseImplCopyWith(_$BanPersonResponseImpl value, - $Res Function(_$BanPersonResponseImpl) then) = - __$$BanPersonResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PersonView personView, bool banned}); - - @override - $PersonViewCopyWith<$Res> get personView; -} - -/// @nodoc -class __$$BanPersonResponseImplCopyWithImpl<$Res> - extends _$BanPersonResponseCopyWithImpl<$Res, _$BanPersonResponseImpl> - implements _$$BanPersonResponseImplCopyWith<$Res> { - __$$BanPersonResponseImplCopyWithImpl(_$BanPersonResponseImpl _value, - $Res Function(_$BanPersonResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of BanPersonResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? banned = null, - }) { - return _then(_$BanPersonResponseImpl( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$BanPersonResponseImpl extends _BanPersonResponse { - const _$BanPersonResponseImpl( - {required this.personView, required this.banned}) - : super._(); - - factory _$BanPersonResponseImpl.fromJson(Map json) => - _$$BanPersonResponseImplFromJson(json); - - @override - final PersonView personView; -// v0.18.0 - @override - final bool banned; - - @override - String toString() { - return 'BanPersonResponse(personView: $personView, banned: $banned)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BanPersonResponseImpl && - (identical(other.personView, personView) || - other.personView == personView) && - (identical(other.banned, banned) || other.banned == banned)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personView, banned); - - /// Create a copy of BanPersonResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BanPersonResponseImplCopyWith<_$BanPersonResponseImpl> get copyWith => - __$$BanPersonResponseImplCopyWithImpl<_$BanPersonResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$BanPersonResponseImplToJson( - this, - ); - } -} - -abstract class _BanPersonResponse extends BanPersonResponse { - const factory _BanPersonResponse( - {required final PersonView personView, - required final bool banned}) = _$BanPersonResponseImpl; - const _BanPersonResponse._() : super._(); - - factory _BanPersonResponse.fromJson(Map json) = - _$BanPersonResponseImpl.fromJson; - - @override - PersonView get personView; // v0.18.0 - @override - bool get banned; - - /// Create a copy of BanPersonResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BanPersonResponseImplCopyWith<_$BanPersonResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/ban_person_response.g.dart b/lib/src/v3/models/user/ban_person_response.g.dart deleted file mode 100644 index 17d9230f..00000000 --- a/lib/src/v3/models/user/ban_person_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ban_person_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BanPersonResponseImpl _$$BanPersonResponseImplFromJson( - Map json) => - _$BanPersonResponseImpl( - personView: - PersonView.fromJson(json['person_view'] as Map), - banned: json['banned'] as bool, - ); - -Map _$$BanPersonResponseImplToJson( - _$BanPersonResponseImpl instance) => - { - 'person_view': instance.personView.toJson(), - 'banned': instance.banned, - }; diff --git a/lib/src/v3/models/user/banned_persons_response.dart b/lib/src/v3/models/user/banned_persons_response.dart deleted file mode 100644 index de04bb5f..00000000 --- a/lib/src/v3/models/user/banned_persons_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'banned_persons_response.freezed.dart'; -part 'banned_persons_response.g.dart'; - -@freezed -class BannedPersonsResponse with _$BannedPersonsResponse { - @modelSerde - const factory BannedPersonsResponse({ - required List banned, // v0.18.0 - }) = _BannedPersonsResponse; - - const BannedPersonsResponse._(); - factory BannedPersonsResponse.fromJson(Map json) => - _$BannedPersonsResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/banned_persons_response.freezed.dart b/lib/src/v3/models/user/banned_persons_response.freezed.dart deleted file mode 100644 index c2b33817..00000000 --- a/lib/src/v3/models/user/banned_persons_response.freezed.dart +++ /dev/null @@ -1,180 +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 'banned_persons_response.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'); - -BannedPersonsResponse _$BannedPersonsResponseFromJson( - Map json) { - return _BannedPersonsResponse.fromJson(json); -} - -/// @nodoc -mixin _$BannedPersonsResponse { - List get banned => throw _privateConstructorUsedError; - - /// Serializes this BannedPersonsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BannedPersonsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BannedPersonsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BannedPersonsResponseCopyWith<$Res> { - factory $BannedPersonsResponseCopyWith(BannedPersonsResponse value, - $Res Function(BannedPersonsResponse) then) = - _$BannedPersonsResponseCopyWithImpl<$Res, BannedPersonsResponse>; - @useResult - $Res call({List banned}); -} - -/// @nodoc -class _$BannedPersonsResponseCopyWithImpl<$Res, - $Val extends BannedPersonsResponse> - implements $BannedPersonsResponseCopyWith<$Res> { - _$BannedPersonsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BannedPersonsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? banned = null, - }) { - return _then(_value.copyWith( - banned: null == banned - ? _value.banned - : banned // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BannedPersonsResponseImplCopyWith<$Res> - implements $BannedPersonsResponseCopyWith<$Res> { - factory _$$BannedPersonsResponseImplCopyWith( - _$BannedPersonsResponseImpl value, - $Res Function(_$BannedPersonsResponseImpl) then) = - __$$BannedPersonsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List banned}); -} - -/// @nodoc -class __$$BannedPersonsResponseImplCopyWithImpl<$Res> - extends _$BannedPersonsResponseCopyWithImpl<$Res, - _$BannedPersonsResponseImpl> - implements _$$BannedPersonsResponseImplCopyWith<$Res> { - __$$BannedPersonsResponseImplCopyWithImpl(_$BannedPersonsResponseImpl _value, - $Res Function(_$BannedPersonsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of BannedPersonsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? banned = null, - }) { - return _then(_$BannedPersonsResponseImpl( - banned: null == banned - ? _value._banned - : banned // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$BannedPersonsResponseImpl extends _BannedPersonsResponse { - const _$BannedPersonsResponseImpl({required final List banned}) - : _banned = banned, - super._(); - - factory _$BannedPersonsResponseImpl.fromJson(Map json) => - _$$BannedPersonsResponseImplFromJson(json); - - final List _banned; - @override - List get banned { - if (_banned is EqualUnmodifiableListView) return _banned; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_banned); - } - - @override - String toString() { - return 'BannedPersonsResponse(banned: $banned)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BannedPersonsResponseImpl && - const DeepCollectionEquality().equals(other._banned, _banned)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_banned)); - - /// Create a copy of BannedPersonsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BannedPersonsResponseImplCopyWith<_$BannedPersonsResponseImpl> - get copyWith => __$$BannedPersonsResponseImplCopyWithImpl< - _$BannedPersonsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BannedPersonsResponseImplToJson( - this, - ); - } -} - -abstract class _BannedPersonsResponse extends BannedPersonsResponse { - const factory _BannedPersonsResponse( - {required final List banned}) = _$BannedPersonsResponseImpl; - const _BannedPersonsResponse._() : super._(); - - factory _BannedPersonsResponse.fromJson(Map json) = - _$BannedPersonsResponseImpl.fromJson; - - @override - List get banned; - - /// Create a copy of BannedPersonsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BannedPersonsResponseImplCopyWith<_$BannedPersonsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/banned_persons_response.g.dart b/lib/src/v3/models/user/banned_persons_response.g.dart deleted file mode 100644 index 65d10a6b..00000000 --- a/lib/src/v3/models/user/banned_persons_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'banned_persons_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BannedPersonsResponseImpl _$$BannedPersonsResponseImplFromJson( - Map json) => - _$BannedPersonsResponseImpl( - banned: (json['banned'] as List) - .map((e) => PersonView.fromJson(e as Map)) - .toList(), - ); - -Map _$$BannedPersonsResponseImplToJson( - _$BannedPersonsResponseImpl instance) => - { - 'banned': instance.banned.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/user/block_person_response.dart b/lib/src/v3/models/user/block_person_response.dart deleted file mode 100644 index 695946ef..00000000 --- a/lib/src/v3/models/user/block_person_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'block_person_response.freezed.dart'; -part 'block_person_response.g.dart'; - -@freezed -class BlockPersonResponse with _$BlockPersonResponse { - @modelSerde - const factory BlockPersonResponse({ - required PersonView personView, // v0.18.0 - required bool blocked, // v0.18.0 - }) = _BlockPersonResponse; - - const BlockPersonResponse._(); - factory BlockPersonResponse.fromJson(Map json) => - _$BlockPersonResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/block_person_response.freezed.dart b/lib/src/v3/models/user/block_person_response.freezed.dart deleted file mode 100644 index e17cf9ac..00000000 --- a/lib/src/v3/models/user/block_person_response.freezed.dart +++ /dev/null @@ -1,204 +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 'block_person_response.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'); - -BlockPersonResponse _$BlockPersonResponseFromJson(Map json) { - return _BlockPersonResponse.fromJson(json); -} - -/// @nodoc -mixin _$BlockPersonResponse { - PersonView get personView => throw _privateConstructorUsedError; // v0.18.0 - bool get blocked => throw _privateConstructorUsedError; - - /// Serializes this BlockPersonResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of BlockPersonResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $BlockPersonResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BlockPersonResponseCopyWith<$Res> { - factory $BlockPersonResponseCopyWith( - BlockPersonResponse value, $Res Function(BlockPersonResponse) then) = - _$BlockPersonResponseCopyWithImpl<$Res, BlockPersonResponse>; - @useResult - $Res call({PersonView personView, bool blocked}); - - $PersonViewCopyWith<$Res> get personView; -} - -/// @nodoc -class _$BlockPersonResponseCopyWithImpl<$Res, $Val extends BlockPersonResponse> - implements $BlockPersonResponseCopyWith<$Res> { - _$BlockPersonResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of BlockPersonResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? blocked = null, - }) { - return _then(_value.copyWith( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } - - /// Create a copy of BlockPersonResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonViewCopyWith<$Res> get personView { - return $PersonViewCopyWith<$Res>(_value.personView, (value) { - return _then(_value.copyWith(personView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$BlockPersonResponseImplCopyWith<$Res> - implements $BlockPersonResponseCopyWith<$Res> { - factory _$$BlockPersonResponseImplCopyWith(_$BlockPersonResponseImpl value, - $Res Function(_$BlockPersonResponseImpl) then) = - __$$BlockPersonResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PersonView personView, bool blocked}); - - @override - $PersonViewCopyWith<$Res> get personView; -} - -/// @nodoc -class __$$BlockPersonResponseImplCopyWithImpl<$Res> - extends _$BlockPersonResponseCopyWithImpl<$Res, _$BlockPersonResponseImpl> - implements _$$BlockPersonResponseImplCopyWith<$Res> { - __$$BlockPersonResponseImplCopyWithImpl(_$BlockPersonResponseImpl _value, - $Res Function(_$BlockPersonResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of BlockPersonResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? blocked = null, - }) { - return _then(_$BlockPersonResponseImpl( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$BlockPersonResponseImpl extends _BlockPersonResponse { - const _$BlockPersonResponseImpl( - {required this.personView, required this.blocked}) - : super._(); - - factory _$BlockPersonResponseImpl.fromJson(Map json) => - _$$BlockPersonResponseImplFromJson(json); - - @override - final PersonView personView; -// v0.18.0 - @override - final bool blocked; - - @override - String toString() { - return 'BlockPersonResponse(personView: $personView, blocked: $blocked)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BlockPersonResponseImpl && - (identical(other.personView, personView) || - other.personView == personView) && - (identical(other.blocked, blocked) || other.blocked == blocked)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personView, blocked); - - /// Create a copy of BlockPersonResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$BlockPersonResponseImplCopyWith<_$BlockPersonResponseImpl> get copyWith => - __$$BlockPersonResponseImplCopyWithImpl<_$BlockPersonResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$BlockPersonResponseImplToJson( - this, - ); - } -} - -abstract class _BlockPersonResponse extends BlockPersonResponse { - const factory _BlockPersonResponse( - {required final PersonView personView, - required final bool blocked}) = _$BlockPersonResponseImpl; - const _BlockPersonResponse._() : super._(); - - factory _BlockPersonResponse.fromJson(Map json) = - _$BlockPersonResponseImpl.fromJson; - - @override - PersonView get personView; // v0.18.0 - @override - bool get blocked; - - /// Create a copy of BlockPersonResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$BlockPersonResponseImplCopyWith<_$BlockPersonResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/block_person_response.g.dart b/lib/src/v3/models/user/block_person_response.g.dart deleted file mode 100644 index 65115b4e..00000000 --- a/lib/src/v3/models/user/block_person_response.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'block_person_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BlockPersonResponseImpl _$$BlockPersonResponseImplFromJson( - Map json) => - _$BlockPersonResponseImpl( - personView: - PersonView.fromJson(json['person_view'] as Map), - blocked: json['blocked'] as bool, - ); - -Map _$$BlockPersonResponseImplToJson( - _$BlockPersonResponseImpl instance) => - { - 'person_view': instance.personView.toJson(), - 'blocked': instance.blocked, - }; diff --git a/lib/src/v3/models/user/captcha_response.dart b/lib/src/v3/models/user/captcha_response.dart deleted file mode 100644 index 50b27aef..00000000 --- a/lib/src/v3/models/user/captcha_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'captcha_response.freezed.dart'; -part 'captcha_response.g.dart'; - -@freezed -class CaptchaResponse with _$CaptchaResponse { - @modelSerde - const factory CaptchaResponse({ - required String png, // v0.18.0 - required String wav, // v0.18.0 - required String uuid, // v0.18.0 - }) = _CaptchaResponse; - - const CaptchaResponse._(); - factory CaptchaResponse.fromJson(Map json) => - _$CaptchaResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/captcha_response.freezed.dart b/lib/src/v3/models/user/captcha_response.freezed.dart deleted file mode 100644 index 2d256822..00000000 --- a/lib/src/v3/models/user/captcha_response.freezed.dart +++ /dev/null @@ -1,206 +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 'captcha_response.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'); - -CaptchaResponse _$CaptchaResponseFromJson(Map json) { - return _CaptchaResponse.fromJson(json); -} - -/// @nodoc -mixin _$CaptchaResponse { - String get png => throw _privateConstructorUsedError; // v0.18.0 - String get wav => throw _privateConstructorUsedError; // v0.18.0 - String get uuid => throw _privateConstructorUsedError; - - /// Serializes this CaptchaResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CaptchaResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CaptchaResponseCopyWith<$Res> { - factory $CaptchaResponseCopyWith( - CaptchaResponse value, $Res Function(CaptchaResponse) then) = - _$CaptchaResponseCopyWithImpl<$Res, CaptchaResponse>; - @useResult - $Res call({String png, String wav, String uuid}); -} - -/// @nodoc -class _$CaptchaResponseCopyWithImpl<$Res, $Val extends CaptchaResponse> - implements $CaptchaResponseCopyWith<$Res> { - _$CaptchaResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? png = null, - Object? wav = null, - Object? uuid = null, - }) { - return _then(_value.copyWith( - png: null == png - ? _value.png - : png // ignore: cast_nullable_to_non_nullable - as String, - wav: null == wav - ? _value.wav - : wav // ignore: cast_nullable_to_non_nullable - as String, - uuid: null == uuid - ? _value.uuid - : uuid // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CaptchaResponseImplCopyWith<$Res> - implements $CaptchaResponseCopyWith<$Res> { - factory _$$CaptchaResponseImplCopyWith(_$CaptchaResponseImpl value, - $Res Function(_$CaptchaResponseImpl) then) = - __$$CaptchaResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String png, String wav, String uuid}); -} - -/// @nodoc -class __$$CaptchaResponseImplCopyWithImpl<$Res> - extends _$CaptchaResponseCopyWithImpl<$Res, _$CaptchaResponseImpl> - implements _$$CaptchaResponseImplCopyWith<$Res> { - __$$CaptchaResponseImplCopyWithImpl( - _$CaptchaResponseImpl _value, $Res Function(_$CaptchaResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of CaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? png = null, - Object? wav = null, - Object? uuid = null, - }) { - return _then(_$CaptchaResponseImpl( - png: null == png - ? _value.png - : png // ignore: cast_nullable_to_non_nullable - as String, - wav: null == wav - ? _value.wav - : wav // ignore: cast_nullable_to_non_nullable - as String, - uuid: null == uuid - ? _value.uuid - : uuid // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CaptchaResponseImpl extends _CaptchaResponse { - const _$CaptchaResponseImpl( - {required this.png, required this.wav, required this.uuid}) - : super._(); - - factory _$CaptchaResponseImpl.fromJson(Map json) => - _$$CaptchaResponseImplFromJson(json); - - @override - final String png; -// v0.18.0 - @override - final String wav; -// v0.18.0 - @override - final String uuid; - - @override - String toString() { - return 'CaptchaResponse(png: $png, wav: $wav, uuid: $uuid)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CaptchaResponseImpl && - (identical(other.png, png) || other.png == png) && - (identical(other.wav, wav) || other.wav == wav) && - (identical(other.uuid, uuid) || other.uuid == uuid)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, png, wav, uuid); - - /// Create a copy of CaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CaptchaResponseImplCopyWith<_$CaptchaResponseImpl> get copyWith => - __$$CaptchaResponseImplCopyWithImpl<_$CaptchaResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CaptchaResponseImplToJson( - this, - ); - } -} - -abstract class _CaptchaResponse extends CaptchaResponse { - const factory _CaptchaResponse( - {required final String png, - required final String wav, - required final String uuid}) = _$CaptchaResponseImpl; - const _CaptchaResponse._() : super._(); - - factory _CaptchaResponse.fromJson(Map json) = - _$CaptchaResponseImpl.fromJson; - - @override - String get png; // v0.18.0 - @override - String get wav; // v0.18.0 - @override - String get uuid; - - /// Create a copy of CaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CaptchaResponseImplCopyWith<_$CaptchaResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/captcha_response.g.dart b/lib/src/v3/models/user/captcha_response.g.dart deleted file mode 100644 index e86ad2a2..00000000 --- a/lib/src/v3/models/user/captcha_response.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'captcha_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CaptchaResponseImpl _$$CaptchaResponseImplFromJson( - Map json) => - _$CaptchaResponseImpl( - png: json['png'] as String, - wav: json['wav'] as String, - uuid: json['uuid'] as String, - ); - -Map _$$CaptchaResponseImplToJson( - _$CaptchaResponseImpl instance) => - { - 'png': instance.png, - 'wav': instance.wav, - 'uuid': instance.uuid, - }; diff --git a/lib/src/v3/models/user/delete_account_response.dart b/lib/src/v3/models/user/delete_account_response.dart deleted file mode 100644 index ec604c10..00000000 --- a/lib/src/v3/models/user/delete_account_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'delete_account_response.freezed.dart'; -part 'delete_account_response.g.dart'; - -@freezed -class DeleteAccountResponse with _$DeleteAccountResponse { - @modelSerde - const factory DeleteAccountResponse({ - bool? success, // v0.19.0 (required) - }) = _DeleteAccountResponse; - - const DeleteAccountResponse._(); - factory DeleteAccountResponse.fromJson(Map json) => - _$DeleteAccountResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/delete_account_response.freezed.dart b/lib/src/v3/models/user/delete_account_response.freezed.dart deleted file mode 100644 index ef765a6f..00000000 --- a/lib/src/v3/models/user/delete_account_response.freezed.dart +++ /dev/null @@ -1,172 +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 'delete_account_response.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'); - -DeleteAccountResponse _$DeleteAccountResponseFromJson( - Map json) { - return _DeleteAccountResponse.fromJson(json); -} - -/// @nodoc -mixin _$DeleteAccountResponse { - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this DeleteAccountResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of DeleteAccountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $DeleteAccountResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $DeleteAccountResponseCopyWith<$Res> { - factory $DeleteAccountResponseCopyWith(DeleteAccountResponse value, - $Res Function(DeleteAccountResponse) then) = - _$DeleteAccountResponseCopyWithImpl<$Res, DeleteAccountResponse>; - @useResult - $Res call({bool? success}); -} - -/// @nodoc -class _$DeleteAccountResponseCopyWithImpl<$Res, - $Val extends DeleteAccountResponse> - implements $DeleteAccountResponseCopyWith<$Res> { - _$DeleteAccountResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of DeleteAccountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = freezed, - }) { - return _then(_value.copyWith( - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$DeleteAccountResponseImplCopyWith<$Res> - implements $DeleteAccountResponseCopyWith<$Res> { - factory _$$DeleteAccountResponseImplCopyWith( - _$DeleteAccountResponseImpl value, - $Res Function(_$DeleteAccountResponseImpl) then) = - __$$DeleteAccountResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool? success}); -} - -/// @nodoc -class __$$DeleteAccountResponseImplCopyWithImpl<$Res> - extends _$DeleteAccountResponseCopyWithImpl<$Res, - _$DeleteAccountResponseImpl> - implements _$$DeleteAccountResponseImplCopyWith<$Res> { - __$$DeleteAccountResponseImplCopyWithImpl(_$DeleteAccountResponseImpl _value, - $Res Function(_$DeleteAccountResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of DeleteAccountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = freezed, - }) { - return _then(_$DeleteAccountResponseImpl( - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$DeleteAccountResponseImpl extends _DeleteAccountResponse { - const _$DeleteAccountResponseImpl({this.success}) : super._(); - - factory _$DeleteAccountResponseImpl.fromJson(Map json) => - _$$DeleteAccountResponseImplFromJson(json); - - @override - final bool? success; - - @override - String toString() { - return 'DeleteAccountResponse(success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$DeleteAccountResponseImpl && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, success); - - /// Create a copy of DeleteAccountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$DeleteAccountResponseImplCopyWith<_$DeleteAccountResponseImpl> - get copyWith => __$$DeleteAccountResponseImplCopyWithImpl< - _$DeleteAccountResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DeleteAccountResponseImplToJson( - this, - ); - } -} - -abstract class _DeleteAccountResponse extends DeleteAccountResponse { - const factory _DeleteAccountResponse({final bool? success}) = - _$DeleteAccountResponseImpl; - const _DeleteAccountResponse._() : super._(); - - factory _DeleteAccountResponse.fromJson(Map json) = - _$DeleteAccountResponseImpl.fromJson; - - @override - bool? get success; - - /// Create a copy of DeleteAccountResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$DeleteAccountResponseImplCopyWith<_$DeleteAccountResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/delete_account_response.g.dart b/lib/src/v3/models/user/delete_account_response.g.dart deleted file mode 100644 index 89a53604..00000000 --- a/lib/src/v3/models/user/delete_account_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'delete_account_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$DeleteAccountResponseImpl _$$DeleteAccountResponseImplFromJson( - Map json) => - _$DeleteAccountResponseImpl( - success: json['success'] as bool?, - ); - -Map _$$DeleteAccountResponseImplToJson( - _$DeleteAccountResponseImpl instance) => - { - 'success': instance.success, - }; diff --git a/lib/src/v3/models/user/generate_totp_secret_response.dart b/lib/src/v3/models/user/generate_totp_secret_response.dart deleted file mode 100644 index 15cc6133..00000000 --- a/lib/src/v3/models/user/generate_totp_secret_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'generate_totp_secret_response.freezed.dart'; -part 'generate_totp_secret_response.g.dart'; - -@freezed -class GenerateTotpSecretResponse with _$GenerateTotpSecretResponse { - @modelSerde - const factory GenerateTotpSecretResponse({ - required String totpSecretUrl, // v0.19.0 (required) - }) = _GenerateTotpSecretResponse; - - const GenerateTotpSecretResponse._(); - factory GenerateTotpSecretResponse.fromJson(Map json) => - _$GenerateTotpSecretResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/generate_totp_secret_response.freezed.dart b/lib/src/v3/models/user/generate_totp_secret_response.freezed.dart deleted file mode 100644 index 1794896b..00000000 --- a/lib/src/v3/models/user/generate_totp_secret_response.freezed.dart +++ /dev/null @@ -1,177 +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 'generate_totp_secret_response.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'); - -GenerateTotpSecretResponse _$GenerateTotpSecretResponseFromJson( - Map json) { - return _GenerateTotpSecretResponse.fromJson(json); -} - -/// @nodoc -mixin _$GenerateTotpSecretResponse { - String get totpSecretUrl => throw _privateConstructorUsedError; - - /// Serializes this GenerateTotpSecretResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GenerateTotpSecretResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GenerateTotpSecretResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GenerateTotpSecretResponseCopyWith<$Res> { - factory $GenerateTotpSecretResponseCopyWith(GenerateTotpSecretResponse value, - $Res Function(GenerateTotpSecretResponse) then) = - _$GenerateTotpSecretResponseCopyWithImpl<$Res, - GenerateTotpSecretResponse>; - @useResult - $Res call({String totpSecretUrl}); -} - -/// @nodoc -class _$GenerateTotpSecretResponseCopyWithImpl<$Res, - $Val extends GenerateTotpSecretResponse> - implements $GenerateTotpSecretResponseCopyWith<$Res> { - _$GenerateTotpSecretResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GenerateTotpSecretResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? totpSecretUrl = null, - }) { - return _then(_value.copyWith( - totpSecretUrl: null == totpSecretUrl - ? _value.totpSecretUrl - : totpSecretUrl // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GenerateTotpSecretResponseImplCopyWith<$Res> - implements $GenerateTotpSecretResponseCopyWith<$Res> { - factory _$$GenerateTotpSecretResponseImplCopyWith( - _$GenerateTotpSecretResponseImpl value, - $Res Function(_$GenerateTotpSecretResponseImpl) then) = - __$$GenerateTotpSecretResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String totpSecretUrl}); -} - -/// @nodoc -class __$$GenerateTotpSecretResponseImplCopyWithImpl<$Res> - extends _$GenerateTotpSecretResponseCopyWithImpl<$Res, - _$GenerateTotpSecretResponseImpl> - implements _$$GenerateTotpSecretResponseImplCopyWith<$Res> { - __$$GenerateTotpSecretResponseImplCopyWithImpl( - _$GenerateTotpSecretResponseImpl _value, - $Res Function(_$GenerateTotpSecretResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GenerateTotpSecretResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? totpSecretUrl = null, - }) { - return _then(_$GenerateTotpSecretResponseImpl( - totpSecretUrl: null == totpSecretUrl - ? _value.totpSecretUrl - : totpSecretUrl // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GenerateTotpSecretResponseImpl extends _GenerateTotpSecretResponse { - const _$GenerateTotpSecretResponseImpl({required this.totpSecretUrl}) - : super._(); - - factory _$GenerateTotpSecretResponseImpl.fromJson( - Map json) => - _$$GenerateTotpSecretResponseImplFromJson(json); - - @override - final String totpSecretUrl; - - @override - String toString() { - return 'GenerateTotpSecretResponse(totpSecretUrl: $totpSecretUrl)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GenerateTotpSecretResponseImpl && - (identical(other.totpSecretUrl, totpSecretUrl) || - other.totpSecretUrl == totpSecretUrl)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, totpSecretUrl); - - /// Create a copy of GenerateTotpSecretResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GenerateTotpSecretResponseImplCopyWith<_$GenerateTotpSecretResponseImpl> - get copyWith => __$$GenerateTotpSecretResponseImplCopyWithImpl< - _$GenerateTotpSecretResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GenerateTotpSecretResponseImplToJson( - this, - ); - } -} - -abstract class _GenerateTotpSecretResponse extends GenerateTotpSecretResponse { - const factory _GenerateTotpSecretResponse( - {required final String totpSecretUrl}) = _$GenerateTotpSecretResponseImpl; - const _GenerateTotpSecretResponse._() : super._(); - - factory _GenerateTotpSecretResponse.fromJson(Map json) = - _$GenerateTotpSecretResponseImpl.fromJson; - - @override - String get totpSecretUrl; - - /// Create a copy of GenerateTotpSecretResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GenerateTotpSecretResponseImplCopyWith<_$GenerateTotpSecretResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/generate_totp_secret_response.g.dart b/lib/src/v3/models/user/generate_totp_secret_response.g.dart deleted file mode 100644 index 21d7842b..00000000 --- a/lib/src/v3/models/user/generate_totp_secret_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'generate_totp_secret_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GenerateTotpSecretResponseImpl _$$GenerateTotpSecretResponseImplFromJson( - Map json) => - _$GenerateTotpSecretResponseImpl( - totpSecretUrl: json['totp_secret_url'] as String, - ); - -Map _$$GenerateTotpSecretResponseImplToJson( - _$GenerateTotpSecretResponseImpl instance) => - { - 'totp_secret_url': instance.totpSecretUrl, - }; diff --git a/lib/src/v3/models/user/get_captcha_response.dart b/lib/src/v3/models/user/get_captcha_response.dart deleted file mode 100644 index cf96744c..00000000 --- a/lib/src/v3/models/user/get_captcha_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../models.dart'; - -part 'get_captcha_response.freezed.dart'; -part 'get_captcha_response.g.dart'; - -@freezed -class GetCaptchaResponse with _$GetCaptchaResponse { - @modelSerde - const factory GetCaptchaResponse({ - CaptchaResponse? ok, // v0.18.0 - }) = _GetCaptchaResponse; - - const GetCaptchaResponse._(); - factory GetCaptchaResponse.fromJson(Map json) => - _$GetCaptchaResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/get_captcha_response.freezed.dart b/lib/src/v3/models/user/get_captcha_response.freezed.dart deleted file mode 100644 index 70922b8e..00000000 --- a/lib/src/v3/models/user/get_captcha_response.freezed.dart +++ /dev/null @@ -1,187 +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 'get_captcha_response.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'); - -GetCaptchaResponse _$GetCaptchaResponseFromJson(Map json) { - return _GetCaptchaResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetCaptchaResponse { - CaptchaResponse? get ok => throw _privateConstructorUsedError; - - /// Serializes this GetCaptchaResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetCaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetCaptchaResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetCaptchaResponseCopyWith<$Res> { - factory $GetCaptchaResponseCopyWith( - GetCaptchaResponse value, $Res Function(GetCaptchaResponse) then) = - _$GetCaptchaResponseCopyWithImpl<$Res, GetCaptchaResponse>; - @useResult - $Res call({CaptchaResponse? ok}); - - $CaptchaResponseCopyWith<$Res>? get ok; -} - -/// @nodoc -class _$GetCaptchaResponseCopyWithImpl<$Res, $Val extends GetCaptchaResponse> - implements $GetCaptchaResponseCopyWith<$Res> { - _$GetCaptchaResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetCaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? ok = freezed, - }) { - return _then(_value.copyWith( - ok: freezed == ok - ? _value.ok - : ok // ignore: cast_nullable_to_non_nullable - as CaptchaResponse?, - ) as $Val); - } - - /// Create a copy of GetCaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CaptchaResponseCopyWith<$Res>? get ok { - if (_value.ok == null) { - return null; - } - - return $CaptchaResponseCopyWith<$Res>(_value.ok!, (value) { - return _then(_value.copyWith(ok: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetCaptchaResponseImplCopyWith<$Res> - implements $GetCaptchaResponseCopyWith<$Res> { - factory _$$GetCaptchaResponseImplCopyWith(_$GetCaptchaResponseImpl value, - $Res Function(_$GetCaptchaResponseImpl) then) = - __$$GetCaptchaResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CaptchaResponse? ok}); - - @override - $CaptchaResponseCopyWith<$Res>? get ok; -} - -/// @nodoc -class __$$GetCaptchaResponseImplCopyWithImpl<$Res> - extends _$GetCaptchaResponseCopyWithImpl<$Res, _$GetCaptchaResponseImpl> - implements _$$GetCaptchaResponseImplCopyWith<$Res> { - __$$GetCaptchaResponseImplCopyWithImpl(_$GetCaptchaResponseImpl _value, - $Res Function(_$GetCaptchaResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetCaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? ok = freezed, - }) { - return _then(_$GetCaptchaResponseImpl( - ok: freezed == ok - ? _value.ok - : ok // ignore: cast_nullable_to_non_nullable - as CaptchaResponse?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetCaptchaResponseImpl extends _GetCaptchaResponse { - const _$GetCaptchaResponseImpl({this.ok}) : super._(); - - factory _$GetCaptchaResponseImpl.fromJson(Map json) => - _$$GetCaptchaResponseImplFromJson(json); - - @override - final CaptchaResponse? ok; - - @override - String toString() { - return 'GetCaptchaResponse(ok: $ok)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetCaptchaResponseImpl && - (identical(other.ok, ok) || other.ok == ok)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, ok); - - /// Create a copy of GetCaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetCaptchaResponseImplCopyWith<_$GetCaptchaResponseImpl> get copyWith => - __$$GetCaptchaResponseImplCopyWithImpl<_$GetCaptchaResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetCaptchaResponseImplToJson( - this, - ); - } -} - -abstract class _GetCaptchaResponse extends GetCaptchaResponse { - const factory _GetCaptchaResponse({final CaptchaResponse? ok}) = - _$GetCaptchaResponseImpl; - const _GetCaptchaResponse._() : super._(); - - factory _GetCaptchaResponse.fromJson(Map json) = - _$GetCaptchaResponseImpl.fromJson; - - @override - CaptchaResponse? get ok; - - /// Create a copy of GetCaptchaResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetCaptchaResponseImplCopyWith<_$GetCaptchaResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/get_captcha_response.g.dart b/lib/src/v3/models/user/get_captcha_response.g.dart deleted file mode 100644 index a9d5b4cd..00000000 --- a/lib/src/v3/models/user/get_captcha_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_captcha_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetCaptchaResponseImpl _$$GetCaptchaResponseImplFromJson( - Map json) => - _$GetCaptchaResponseImpl( - ok: json['ok'] == null - ? null - : CaptchaResponse.fromJson(json['ok'] as Map), - ); - -Map _$$GetCaptchaResponseImplToJson( - _$GetCaptchaResponseImpl instance) => - { - 'ok': instance.ok?.toJson(), - }; diff --git a/lib/src/v3/models/user/get_person_details_response.dart b/lib/src/v3/models/user/get_person_details_response.dart deleted file mode 100644 index c528d44b..00000000 --- a/lib/src/v3/models/user/get_person_details_response.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../v3.dart'; -import '../../../utils/serde.dart'; - -part 'get_person_details_response.freezed.dart'; -part 'get_person_details_response.g.dart'; - -@freezed -class GetPersonDetailsResponse with _$GetPersonDetailsResponse { - @modelSerde - const factory GetPersonDetailsResponse({ - required PersonView personView, // v0.18.0 - Site? site, // v0.19.2 (optional) - required List comments, // v0.18.0 - required List posts, // v0.18.0 - required List moderates, // v0.18.0 - }) = _GetPersonDetailsResponse; - - const GetPersonDetailsResponse._(); - factory GetPersonDetailsResponse.fromJson(Map json) => - _$GetPersonDetailsResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/get_person_details_response.freezed.dart b/lib/src/v3/models/user/get_person_details_response.freezed.dart deleted file mode 100644 index eb16e405..00000000 --- a/lib/src/v3/models/user/get_person_details_response.freezed.dart +++ /dev/null @@ -1,327 +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 'get_person_details_response.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'); - -GetPersonDetailsResponse _$GetPersonDetailsResponseFromJson( - Map json) { - return _GetPersonDetailsResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetPersonDetailsResponse { - PersonView get personView => throw _privateConstructorUsedError; // v0.18.0 - Site? get site => throw _privateConstructorUsedError; // v0.19.2 (optional) - List get comments => - throw _privateConstructorUsedError; // v0.18.0 - List get posts => throw _privateConstructorUsedError; // v0.18.0 - List get moderates => - throw _privateConstructorUsedError; - - /// Serializes this GetPersonDetailsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPersonDetailsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPersonDetailsResponseCopyWith<$Res> { - factory $GetPersonDetailsResponseCopyWith(GetPersonDetailsResponse value, - $Res Function(GetPersonDetailsResponse) then) = - _$GetPersonDetailsResponseCopyWithImpl<$Res, GetPersonDetailsResponse>; - @useResult - $Res call( - {PersonView personView, - Site? site, - List comments, - List posts, - List moderates}); - - $PersonViewCopyWith<$Res> get personView; - $SiteCopyWith<$Res>? get site; -} - -/// @nodoc -class _$GetPersonDetailsResponseCopyWithImpl<$Res, - $Val extends GetPersonDetailsResponse> - implements $GetPersonDetailsResponseCopyWith<$Res> { - _$GetPersonDetailsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? site = freezed, - Object? comments = null, - Object? posts = null, - Object? moderates = null, - }) { - return _then(_value.copyWith( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - site: freezed == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site?, - comments: null == comments - ? _value.comments - : comments // ignore: cast_nullable_to_non_nullable - as List, - posts: null == posts - ? _value.posts - : posts // ignore: cast_nullable_to_non_nullable - as List, - moderates: null == moderates - ? _value.moderates - : moderates // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonViewCopyWith<$Res> get personView { - return $PersonViewCopyWith<$Res>(_value.personView, (value) { - return _then(_value.copyWith(personView: value) as $Val); - }); - } - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteCopyWith<$Res>? get site { - if (_value.site == null) { - return null; - } - - return $SiteCopyWith<$Res>(_value.site!, (value) { - return _then(_value.copyWith(site: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$GetPersonDetailsResponseImplCopyWith<$Res> - implements $GetPersonDetailsResponseCopyWith<$Res> { - factory _$$GetPersonDetailsResponseImplCopyWith( - _$GetPersonDetailsResponseImpl value, - $Res Function(_$GetPersonDetailsResponseImpl) then) = - __$$GetPersonDetailsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {PersonView personView, - Site? site, - List comments, - List posts, - List moderates}); - - @override - $PersonViewCopyWith<$Res> get personView; - @override - $SiteCopyWith<$Res>? get site; -} - -/// @nodoc -class __$$GetPersonDetailsResponseImplCopyWithImpl<$Res> - extends _$GetPersonDetailsResponseCopyWithImpl<$Res, - _$GetPersonDetailsResponseImpl> - implements _$$GetPersonDetailsResponseImplCopyWith<$Res> { - __$$GetPersonDetailsResponseImplCopyWithImpl( - _$GetPersonDetailsResponseImpl _value, - $Res Function(_$GetPersonDetailsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personView = null, - Object? site = freezed, - Object? comments = null, - Object? posts = null, - Object? moderates = null, - }) { - return _then(_$GetPersonDetailsResponseImpl( - personView: null == personView - ? _value.personView - : personView // ignore: cast_nullable_to_non_nullable - as PersonView, - site: freezed == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site?, - comments: null == comments - ? _value._comments - : comments // ignore: cast_nullable_to_non_nullable - as List, - posts: null == posts - ? _value._posts - : posts // ignore: cast_nullable_to_non_nullable - as List, - moderates: null == moderates - ? _value._moderates - : moderates // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetPersonDetailsResponseImpl extends _GetPersonDetailsResponse { - const _$GetPersonDetailsResponseImpl( - {required this.personView, - this.site, - required final List comments, - required final List posts, - required final List moderates}) - : _comments = comments, - _posts = posts, - _moderates = moderates, - super._(); - - factory _$GetPersonDetailsResponseImpl.fromJson(Map json) => - _$$GetPersonDetailsResponseImplFromJson(json); - - @override - final PersonView personView; -// v0.18.0 - @override - final Site? site; -// v0.19.2 (optional) - final List _comments; -// v0.19.2 (optional) - @override - List get comments { - if (_comments is EqualUnmodifiableListView) return _comments; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_comments); - } - -// v0.18.0 - final List _posts; -// v0.18.0 - @override - List get posts { - if (_posts is EqualUnmodifiableListView) return _posts; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_posts); - } - -// v0.18.0 - final List _moderates; -// v0.18.0 - @override - List get moderates { - if (_moderates is EqualUnmodifiableListView) return _moderates; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_moderates); - } - - @override - String toString() { - return 'GetPersonDetailsResponse(personView: $personView, site: $site, comments: $comments, posts: $posts, moderates: $moderates)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPersonDetailsResponseImpl && - (identical(other.personView, personView) || - other.personView == personView) && - (identical(other.site, site) || other.site == site) && - const DeepCollectionEquality().equals(other._comments, _comments) && - const DeepCollectionEquality().equals(other._posts, _posts) && - const DeepCollectionEquality() - .equals(other._moderates, _moderates)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - personView, - site, - const DeepCollectionEquality().hash(_comments), - const DeepCollectionEquality().hash(_posts), - const DeepCollectionEquality().hash(_moderates)); - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPersonDetailsResponseImplCopyWith<_$GetPersonDetailsResponseImpl> - get copyWith => __$$GetPersonDetailsResponseImplCopyWithImpl< - _$GetPersonDetailsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetPersonDetailsResponseImplToJson( - this, - ); - } -} - -abstract class _GetPersonDetailsResponse extends GetPersonDetailsResponse { - const factory _GetPersonDetailsResponse( - {required final PersonView personView, - final Site? site, - required final List comments, - required final List posts, - required final List moderates}) = - _$GetPersonDetailsResponseImpl; - const _GetPersonDetailsResponse._() : super._(); - - factory _GetPersonDetailsResponse.fromJson(Map json) = - _$GetPersonDetailsResponseImpl.fromJson; - - @override - PersonView get personView; // v0.18.0 - @override - Site? get site; // v0.19.2 (optional) - @override - List get comments; // v0.18.0 - @override - List get posts; // v0.18.0 - @override - List get moderates; - - /// Create a copy of GetPersonDetailsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPersonDetailsResponseImplCopyWith<_$GetPersonDetailsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/get_person_details_response.g.dart b/lib/src/v3/models/user/get_person_details_response.g.dart deleted file mode 100644 index e03f9ea0..00000000 --- a/lib/src/v3/models/user/get_person_details_response.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_person_details_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetPersonDetailsResponseImpl _$$GetPersonDetailsResponseImplFromJson( - Map json) => - _$GetPersonDetailsResponseImpl( - personView: - PersonView.fromJson(json['person_view'] as Map), - site: json['site'] == null - ? null - : Site.fromJson(json['site'] as Map), - comments: (json['comments'] as List) - .map((e) => CommentView.fromJson(e as Map)) - .toList(), - posts: (json['posts'] as List) - .map((e) => PostView.fromJson(e as Map)) - .toList(), - moderates: (json['moderates'] as List) - .map( - (e) => CommunityModeratorView.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetPersonDetailsResponseImplToJson( - _$GetPersonDetailsResponseImpl instance) => - { - 'person_view': instance.personView.toJson(), - 'site': instance.site?.toJson(), - 'comments': instance.comments.map((e) => e.toJson()).toList(), - 'posts': instance.posts.map((e) => e.toJson()).toList(), - 'moderates': instance.moderates.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/user/get_person_mentions_response.dart b/lib/src/v3/models/user/get_person_mentions_response.dart deleted file mode 100644 index cf2f1fa7..00000000 --- a/lib/src/v3/models/user/get_person_mentions_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'get_person_mentions_response.freezed.dart'; -part 'get_person_mentions_response.g.dart'; - -@freezed -class GetPersonMentionsResponse with _$GetPersonMentionsResponse { - @modelSerde - const factory GetPersonMentionsResponse({ - required List mentions, // v0.18.0 - }) = _GetPersonMentionsResponse; - - const GetPersonMentionsResponse._(); - factory GetPersonMentionsResponse.fromJson(Map json) => - _$GetPersonMentionsResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/get_person_mentions_response.freezed.dart b/lib/src/v3/models/user/get_person_mentions_response.freezed.dart deleted file mode 100644 index 88c3598e..00000000 --- a/lib/src/v3/models/user/get_person_mentions_response.freezed.dart +++ /dev/null @@ -1,183 +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 'get_person_mentions_response.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'); - -GetPersonMentionsResponse _$GetPersonMentionsResponseFromJson( - Map json) { - return _GetPersonMentionsResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetPersonMentionsResponse { - List get mentions => throw _privateConstructorUsedError; - - /// Serializes this GetPersonMentionsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetPersonMentionsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetPersonMentionsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetPersonMentionsResponseCopyWith<$Res> { - factory $GetPersonMentionsResponseCopyWith(GetPersonMentionsResponse value, - $Res Function(GetPersonMentionsResponse) then) = - _$GetPersonMentionsResponseCopyWithImpl<$Res, GetPersonMentionsResponse>; - @useResult - $Res call({List mentions}); -} - -/// @nodoc -class _$GetPersonMentionsResponseCopyWithImpl<$Res, - $Val extends GetPersonMentionsResponse> - implements $GetPersonMentionsResponseCopyWith<$Res> { - _$GetPersonMentionsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetPersonMentionsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? mentions = null, - }) { - return _then(_value.copyWith( - mentions: null == mentions - ? _value.mentions - : mentions // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetPersonMentionsResponseImplCopyWith<$Res> - implements $GetPersonMentionsResponseCopyWith<$Res> { - factory _$$GetPersonMentionsResponseImplCopyWith( - _$GetPersonMentionsResponseImpl value, - $Res Function(_$GetPersonMentionsResponseImpl) then) = - __$$GetPersonMentionsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List mentions}); -} - -/// @nodoc -class __$$GetPersonMentionsResponseImplCopyWithImpl<$Res> - extends _$GetPersonMentionsResponseCopyWithImpl<$Res, - _$GetPersonMentionsResponseImpl> - implements _$$GetPersonMentionsResponseImplCopyWith<$Res> { - __$$GetPersonMentionsResponseImplCopyWithImpl( - _$GetPersonMentionsResponseImpl _value, - $Res Function(_$GetPersonMentionsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetPersonMentionsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? mentions = null, - }) { - return _then(_$GetPersonMentionsResponseImpl( - mentions: null == mentions - ? _value._mentions - : mentions // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetPersonMentionsResponseImpl extends _GetPersonMentionsResponse { - const _$GetPersonMentionsResponseImpl( - {required final List mentions}) - : _mentions = mentions, - super._(); - - factory _$GetPersonMentionsResponseImpl.fromJson(Map json) => - _$$GetPersonMentionsResponseImplFromJson(json); - - final List _mentions; - @override - List get mentions { - if (_mentions is EqualUnmodifiableListView) return _mentions; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_mentions); - } - - @override - String toString() { - return 'GetPersonMentionsResponse(mentions: $mentions)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetPersonMentionsResponseImpl && - const DeepCollectionEquality().equals(other._mentions, _mentions)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_mentions)); - - /// Create a copy of GetPersonMentionsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetPersonMentionsResponseImplCopyWith<_$GetPersonMentionsResponseImpl> - get copyWith => __$$GetPersonMentionsResponseImplCopyWithImpl< - _$GetPersonMentionsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetPersonMentionsResponseImplToJson( - this, - ); - } -} - -abstract class _GetPersonMentionsResponse extends GetPersonMentionsResponse { - const factory _GetPersonMentionsResponse( - {required final List mentions}) = - _$GetPersonMentionsResponseImpl; - const _GetPersonMentionsResponse._() : super._(); - - factory _GetPersonMentionsResponse.fromJson(Map json) = - _$GetPersonMentionsResponseImpl.fromJson; - - @override - List get mentions; - - /// Create a copy of GetPersonMentionsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetPersonMentionsResponseImplCopyWith<_$GetPersonMentionsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/get_person_mentions_response.g.dart b/lib/src/v3/models/user/get_person_mentions_response.g.dart deleted file mode 100644 index 0159c7b2..00000000 --- a/lib/src/v3/models/user/get_person_mentions_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_person_mentions_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetPersonMentionsResponseImpl _$$GetPersonMentionsResponseImplFromJson( - Map json) => - _$GetPersonMentionsResponseImpl( - mentions: (json['mentions'] as List) - .map((e) => PersonMentionView.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetPersonMentionsResponseImplToJson( - _$GetPersonMentionsResponseImpl instance) => - { - 'mentions': instance.mentions.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/user/get_replies_response.dart b/lib/src/v3/models/user/get_replies_response.dart deleted file mode 100644 index 8026b793..00000000 --- a/lib/src/v3/models/user/get_replies_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'get_replies_response.freezed.dart'; -part 'get_replies_response.g.dart'; - -@freezed -class GetRepliesResponse with _$GetRepliesResponse { - @modelSerde - const factory GetRepliesResponse({ - required List replies, // v0.18.0 - }) = _GetRepliesResponse; - - const GetRepliesResponse._(); - factory GetRepliesResponse.fromJson(Map json) => - _$GetRepliesResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/get_replies_response.freezed.dart b/lib/src/v3/models/user/get_replies_response.freezed.dart deleted file mode 100644 index 8fe2d10e..00000000 --- a/lib/src/v3/models/user/get_replies_response.freezed.dart +++ /dev/null @@ -1,178 +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 'get_replies_response.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'); - -GetRepliesResponse _$GetRepliesResponseFromJson(Map json) { - return _GetRepliesResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetRepliesResponse { - List get replies => throw _privateConstructorUsedError; - - /// Serializes this GetRepliesResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetRepliesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetRepliesResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetRepliesResponseCopyWith<$Res> { - factory $GetRepliesResponseCopyWith( - GetRepliesResponse value, $Res Function(GetRepliesResponse) then) = - _$GetRepliesResponseCopyWithImpl<$Res, GetRepliesResponse>; - @useResult - $Res call({List replies}); -} - -/// @nodoc -class _$GetRepliesResponseCopyWithImpl<$Res, $Val extends GetRepliesResponse> - implements $GetRepliesResponseCopyWith<$Res> { - _$GetRepliesResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetRepliesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? replies = null, - }) { - return _then(_value.copyWith( - replies: null == replies - ? _value.replies - : replies // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetRepliesResponseImplCopyWith<$Res> - implements $GetRepliesResponseCopyWith<$Res> { - factory _$$GetRepliesResponseImplCopyWith(_$GetRepliesResponseImpl value, - $Res Function(_$GetRepliesResponseImpl) then) = - __$$GetRepliesResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List replies}); -} - -/// @nodoc -class __$$GetRepliesResponseImplCopyWithImpl<$Res> - extends _$GetRepliesResponseCopyWithImpl<$Res, _$GetRepliesResponseImpl> - implements _$$GetRepliesResponseImplCopyWith<$Res> { - __$$GetRepliesResponseImplCopyWithImpl(_$GetRepliesResponseImpl _value, - $Res Function(_$GetRepliesResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetRepliesResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? replies = null, - }) { - return _then(_$GetRepliesResponseImpl( - replies: null == replies - ? _value._replies - : replies // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetRepliesResponseImpl extends _GetRepliesResponse { - const _$GetRepliesResponseImpl( - {required final List replies}) - : _replies = replies, - super._(); - - factory _$GetRepliesResponseImpl.fromJson(Map json) => - _$$GetRepliesResponseImplFromJson(json); - - final List _replies; - @override - List get replies { - if (_replies is EqualUnmodifiableListView) return _replies; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_replies); - } - - @override - String toString() { - return 'GetRepliesResponse(replies: $replies)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetRepliesResponseImpl && - const DeepCollectionEquality().equals(other._replies, _replies)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_replies)); - - /// Create a copy of GetRepliesResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetRepliesResponseImplCopyWith<_$GetRepliesResponseImpl> get copyWith => - __$$GetRepliesResponseImplCopyWithImpl<_$GetRepliesResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$GetRepliesResponseImplToJson( - this, - ); - } -} - -abstract class _GetRepliesResponse extends GetRepliesResponse { - const factory _GetRepliesResponse( - {required final List replies}) = - _$GetRepliesResponseImpl; - const _GetRepliesResponse._() : super._(); - - factory _GetRepliesResponse.fromJson(Map json) = - _$GetRepliesResponseImpl.fromJson; - - @override - List get replies; - - /// Create a copy of GetRepliesResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetRepliesResponseImplCopyWith<_$GetRepliesResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/get_replies_response.g.dart b/lib/src/v3/models/user/get_replies_response.g.dart deleted file mode 100644 index 4ffd6793..00000000 --- a/lib/src/v3/models/user/get_replies_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_replies_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetRepliesResponseImpl _$$GetRepliesResponseImplFromJson( - Map json) => - _$GetRepliesResponseImpl( - replies: (json['replies'] as List) - .map((e) => CommentReplyView.fromJson(e as Map)) - .toList(), - ); - -Map _$$GetRepliesResponseImplToJson( - _$GetRepliesResponseImpl instance) => - { - 'replies': instance.replies.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/user/get_report_count_response.dart b/lib/src/v3/models/user/get_report_count_response.dart deleted file mode 100644 index 43a2320f..00000000 --- a/lib/src/v3/models/user/get_report_count_response.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'get_report_count_response.freezed.dart'; -part 'get_report_count_response.g.dart'; - -@freezed -class GetReportCountResponse with _$GetReportCountResponse { - @modelSerde - const factory GetReportCountResponse({ - int? communityId, // v0.18.0 - required int commentReports, // v0.18.0 - required int postReports, // v0.18.0 - int? privateMessageReports, // v0.18.0 - }) = _GetReportCountResponse; - - const GetReportCountResponse._(); - factory GetReportCountResponse.fromJson(Map json) => - _$GetReportCountResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/get_report_count_response.freezed.dart b/lib/src/v3/models/user/get_report_count_response.freezed.dart deleted file mode 100644 index f4b9a7bb..00000000 --- a/lib/src/v3/models/user/get_report_count_response.freezed.dart +++ /dev/null @@ -1,245 +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 'get_report_count_response.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'); - -GetReportCountResponse _$GetReportCountResponseFromJson( - Map json) { - return _GetReportCountResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetReportCountResponse { - int? get communityId => throw _privateConstructorUsedError; // v0.18.0 - int get commentReports => throw _privateConstructorUsedError; // v0.18.0 - int get postReports => throw _privateConstructorUsedError; // v0.18.0 - int? get privateMessageReports => throw _privateConstructorUsedError; - - /// Serializes this GetReportCountResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetReportCountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetReportCountResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetReportCountResponseCopyWith<$Res> { - factory $GetReportCountResponseCopyWith(GetReportCountResponse value, - $Res Function(GetReportCountResponse) then) = - _$GetReportCountResponseCopyWithImpl<$Res, GetReportCountResponse>; - @useResult - $Res call( - {int? communityId, - int commentReports, - int postReports, - int? privateMessageReports}); -} - -/// @nodoc -class _$GetReportCountResponseCopyWithImpl<$Res, - $Val extends GetReportCountResponse> - implements $GetReportCountResponseCopyWith<$Res> { - _$GetReportCountResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetReportCountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = freezed, - Object? commentReports = null, - Object? postReports = null, - Object? privateMessageReports = freezed, - }) { - return _then(_value.copyWith( - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - commentReports: null == commentReports - ? _value.commentReports - : commentReports // ignore: cast_nullable_to_non_nullable - as int, - postReports: null == postReports - ? _value.postReports - : postReports // ignore: cast_nullable_to_non_nullable - as int, - privateMessageReports: freezed == privateMessageReports - ? _value.privateMessageReports - : privateMessageReports // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetReportCountResponseImplCopyWith<$Res> - implements $GetReportCountResponseCopyWith<$Res> { - factory _$$GetReportCountResponseImplCopyWith( - _$GetReportCountResponseImpl value, - $Res Function(_$GetReportCountResponseImpl) then) = - __$$GetReportCountResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? communityId, - int commentReports, - int postReports, - int? privateMessageReports}); -} - -/// @nodoc -class __$$GetReportCountResponseImplCopyWithImpl<$Res> - extends _$GetReportCountResponseCopyWithImpl<$Res, - _$GetReportCountResponseImpl> - implements _$$GetReportCountResponseImplCopyWith<$Res> { - __$$GetReportCountResponseImplCopyWithImpl( - _$GetReportCountResponseImpl _value, - $Res Function(_$GetReportCountResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetReportCountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? communityId = freezed, - Object? commentReports = null, - Object? postReports = null, - Object? privateMessageReports = freezed, - }) { - return _then(_$GetReportCountResponseImpl( - communityId: freezed == communityId - ? _value.communityId - : communityId // ignore: cast_nullable_to_non_nullable - as int?, - commentReports: null == commentReports - ? _value.commentReports - : commentReports // ignore: cast_nullable_to_non_nullable - as int, - postReports: null == postReports - ? _value.postReports - : postReports // ignore: cast_nullable_to_non_nullable - as int, - privateMessageReports: freezed == privateMessageReports - ? _value.privateMessageReports - : privateMessageReports // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetReportCountResponseImpl extends _GetReportCountResponse { - const _$GetReportCountResponseImpl( - {this.communityId, - required this.commentReports, - required this.postReports, - this.privateMessageReports}) - : super._(); - - factory _$GetReportCountResponseImpl.fromJson(Map json) => - _$$GetReportCountResponseImplFromJson(json); - - @override - final int? communityId; -// v0.18.0 - @override - final int commentReports; -// v0.18.0 - @override - final int postReports; -// v0.18.0 - @override - final int? privateMessageReports; - - @override - String toString() { - return 'GetReportCountResponse(communityId: $communityId, commentReports: $commentReports, postReports: $postReports, privateMessageReports: $privateMessageReports)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetReportCountResponseImpl && - (identical(other.communityId, communityId) || - other.communityId == communityId) && - (identical(other.commentReports, commentReports) || - other.commentReports == commentReports) && - (identical(other.postReports, postReports) || - other.postReports == postReports) && - (identical(other.privateMessageReports, privateMessageReports) || - other.privateMessageReports == privateMessageReports)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, communityId, commentReports, - postReports, privateMessageReports); - - /// Create a copy of GetReportCountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetReportCountResponseImplCopyWith<_$GetReportCountResponseImpl> - get copyWith => __$$GetReportCountResponseImplCopyWithImpl< - _$GetReportCountResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetReportCountResponseImplToJson( - this, - ); - } -} - -abstract class _GetReportCountResponse extends GetReportCountResponse { - const factory _GetReportCountResponse( - {final int? communityId, - required final int commentReports, - required final int postReports, - final int? privateMessageReports}) = _$GetReportCountResponseImpl; - const _GetReportCountResponse._() : super._(); - - factory _GetReportCountResponse.fromJson(Map json) = - _$GetReportCountResponseImpl.fromJson; - - @override - int? get communityId; // v0.18.0 - @override - int get commentReports; // v0.18.0 - @override - int get postReports; // v0.18.0 - @override - int? get privateMessageReports; - - /// Create a copy of GetReportCountResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetReportCountResponseImplCopyWith<_$GetReportCountResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/get_report_count_response.g.dart b/lib/src/v3/models/user/get_report_count_response.g.dart deleted file mode 100644 index eeeab9d4..00000000 --- a/lib/src/v3/models/user/get_report_count_response.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'get_report_count_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$GetReportCountResponseImpl _$$GetReportCountResponseImplFromJson( - Map json) => - _$GetReportCountResponseImpl( - communityId: (json['community_id'] as num?)?.toInt(), - commentReports: (json['comment_reports'] as num).toInt(), - postReports: (json['post_reports'] as num).toInt(), - privateMessageReports: (json['private_message_reports'] as num?)?.toInt(), - ); - -Map _$$GetReportCountResponseImplToJson( - _$GetReportCountResponseImpl instance) => - { - 'community_id': instance.communityId, - 'comment_reports': instance.commentReports, - 'post_reports': instance.postReports, - 'private_message_reports': instance.privateMessageReports, - }; diff --git a/lib/src/v3/models/user/get_unread_count_response.dart b/lib/src/v3/models/user/get_unread_count_response.dart deleted file mode 100644 index 1a67fb45..00000000 --- a/lib/src/v3/models/user/get_unread_count_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'get_unread_count_response.freezed.dart'; -part 'get_unread_count_response.g.dart'; - -@freezed -class GetUnreadCountResponse with _$GetUnreadCountResponse { - @modelSerde - const factory GetUnreadCountResponse({ - required int replies, // v0.18.0 - required int mentions, // v0.18.0 - required int privateMessages, // v0.18.0 - }) = _GetUnreadCountResponse; - - const GetUnreadCountResponse._(); - factory GetUnreadCountResponse.fromJson(Map json) => - _$GetUnreadCountResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/get_unread_count_response.freezed.dart b/lib/src/v3/models/user/get_unread_count_response.freezed.dart deleted file mode 100644 index 1b9274bb..00000000 --- a/lib/src/v3/models/user/get_unread_count_response.freezed.dart +++ /dev/null @@ -1,216 +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 'get_unread_count_response.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'); - -GetUnreadCountResponse _$GetUnreadCountResponseFromJson( - Map json) { - return _GetUnreadCountResponse.fromJson(json); -} - -/// @nodoc -mixin _$GetUnreadCountResponse { - int get replies => throw _privateConstructorUsedError; // v0.18.0 - int get mentions => throw _privateConstructorUsedError; // v0.18.0 - int get privateMessages => throw _privateConstructorUsedError; - - /// Serializes this GetUnreadCountResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of GetUnreadCountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $GetUnreadCountResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $GetUnreadCountResponseCopyWith<$Res> { - factory $GetUnreadCountResponseCopyWith(GetUnreadCountResponse value, - $Res Function(GetUnreadCountResponse) then) = - _$GetUnreadCountResponseCopyWithImpl<$Res, GetUnreadCountResponse>; - @useResult - $Res call({int replies, int mentions, int privateMessages}); -} - -/// @nodoc -class _$GetUnreadCountResponseCopyWithImpl<$Res, - $Val extends GetUnreadCountResponse> - implements $GetUnreadCountResponseCopyWith<$Res> { - _$GetUnreadCountResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of GetUnreadCountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? replies = null, - Object? mentions = null, - Object? privateMessages = null, - }) { - return _then(_value.copyWith( - replies: null == replies - ? _value.replies - : replies // ignore: cast_nullable_to_non_nullable - as int, - mentions: null == mentions - ? _value.mentions - : mentions // ignore: cast_nullable_to_non_nullable - as int, - privateMessages: null == privateMessages - ? _value.privateMessages - : privateMessages // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$GetUnreadCountResponseImplCopyWith<$Res> - implements $GetUnreadCountResponseCopyWith<$Res> { - factory _$$GetUnreadCountResponseImplCopyWith( - _$GetUnreadCountResponseImpl value, - $Res Function(_$GetUnreadCountResponseImpl) then) = - __$$GetUnreadCountResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int replies, int mentions, int privateMessages}); -} - -/// @nodoc -class __$$GetUnreadCountResponseImplCopyWithImpl<$Res> - extends _$GetUnreadCountResponseCopyWithImpl<$Res, - _$GetUnreadCountResponseImpl> - implements _$$GetUnreadCountResponseImplCopyWith<$Res> { - __$$GetUnreadCountResponseImplCopyWithImpl( - _$GetUnreadCountResponseImpl _value, - $Res Function(_$GetUnreadCountResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of GetUnreadCountResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? replies = null, - Object? mentions = null, - Object? privateMessages = null, - }) { - return _then(_$GetUnreadCountResponseImpl( - replies: null == replies - ? _value.replies - : replies // ignore: cast_nullable_to_non_nullable - as int, - mentions: null == mentions - ? _value.mentions - : mentions // ignore: cast_nullable_to_non_nullable - as int, - privateMessages: null == privateMessages - ? _value.privateMessages - : privateMessages // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$GetUnreadCountResponseImpl extends _GetUnreadCountResponse { - const _$GetUnreadCountResponseImpl( - {required this.replies, - required this.mentions, - required this.privateMessages}) - : super._(); - - factory _$GetUnreadCountResponseImpl.fromJson(Map json) => - _$$GetUnreadCountResponseImplFromJson(json); - - @override - final int replies; -// v0.18.0 - @override - final int mentions; -// v0.18.0 - @override - final int privateMessages; - - @override - String toString() { - return 'GetUnreadCountResponse(replies: $replies, mentions: $mentions, privateMessages: $privateMessages)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$GetUnreadCountResponseImpl && - (identical(other.replies, replies) || other.replies == replies) && - (identical(other.mentions, mentions) || - other.mentions == mentions) && - (identical(other.privateMessages, privateMessages) || - other.privateMessages == privateMessages)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, replies, mentions, privateMessages); - - /// Create a copy of GetUnreadCountResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$GetUnreadCountResponseImplCopyWith<_$GetUnreadCountResponseImpl> - get copyWith => __$$GetUnreadCountResponseImplCopyWithImpl< - _$GetUnreadCountResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$GetUnreadCountResponseImplToJson( - this, - ); - } -} - -abstract class _GetUnreadCountResponse extends GetUnreadCountResponse { - const factory _GetUnreadCountResponse( - {required final int replies, - required final int mentions, - required final int privateMessages}) = _$GetUnreadCountResponseImpl; - const _GetUnreadCountResponse._() : super._(); - - factory _GetUnreadCountResponse.fromJson(Map json) = - _$GetUnreadCountResponseImpl.fromJson; - - @override - int get replies; // v0.18.0 - @override - int get mentions; // v0.18.0 - @override - int get privateMessages; - - /// Create a copy of GetUnreadCountResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$GetUnreadCountResponseImplCopyWith<_$GetUnreadCountResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/list_media_response.dart b/lib/src/v3/models/user/list_media_response.dart deleted file mode 100644 index 183df612..00000000 --- a/lib/src/v3/models/user/list_media_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../image/local_image_view.dart'; - -part 'list_media_response.freezed.dart'; -part 'list_media_response.g.dart'; - -@freezed -class ListMediaResponse with _$ListMediaResponse { - @modelSerde - const factory ListMediaResponse({ - required List images, - }) = _ListMediaResponse; - - const ListMediaResponse._(); - factory ListMediaResponse.fromJson(Map json) => - _$ListMediaResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/list_media_response.freezed.dart b/lib/src/v3/models/user/list_media_response.freezed.dart deleted file mode 100644 index ad942e87..00000000 --- a/lib/src/v3/models/user/list_media_response.freezed.dart +++ /dev/null @@ -1,176 +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 'list_media_response.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'); - -ListMediaResponse _$ListMediaResponseFromJson(Map json) { - return _ListMediaResponse.fromJson(json); -} - -/// @nodoc -mixin _$ListMediaResponse { - List get images => throw _privateConstructorUsedError; - - /// Serializes this ListMediaResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ListMediaResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ListMediaResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ListMediaResponseCopyWith<$Res> { - factory $ListMediaResponseCopyWith( - ListMediaResponse value, $Res Function(ListMediaResponse) then) = - _$ListMediaResponseCopyWithImpl<$Res, ListMediaResponse>; - @useResult - $Res call({List images}); -} - -/// @nodoc -class _$ListMediaResponseCopyWithImpl<$Res, $Val extends ListMediaResponse> - implements $ListMediaResponseCopyWith<$Res> { - _$ListMediaResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ListMediaResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? images = null, - }) { - return _then(_value.copyWith( - images: null == images - ? _value.images - : images // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ListMediaResponseImplCopyWith<$Res> - implements $ListMediaResponseCopyWith<$Res> { - factory _$$ListMediaResponseImplCopyWith(_$ListMediaResponseImpl value, - $Res Function(_$ListMediaResponseImpl) then) = - __$$ListMediaResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List images}); -} - -/// @nodoc -class __$$ListMediaResponseImplCopyWithImpl<$Res> - extends _$ListMediaResponseCopyWithImpl<$Res, _$ListMediaResponseImpl> - implements _$$ListMediaResponseImplCopyWith<$Res> { - __$$ListMediaResponseImplCopyWithImpl(_$ListMediaResponseImpl _value, - $Res Function(_$ListMediaResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of ListMediaResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? images = null, - }) { - return _then(_$ListMediaResponseImpl( - images: null == images - ? _value._images - : images // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ListMediaResponseImpl extends _ListMediaResponse { - const _$ListMediaResponseImpl({required final List images}) - : _images = images, - super._(); - - factory _$ListMediaResponseImpl.fromJson(Map json) => - _$$ListMediaResponseImplFromJson(json); - - final List _images; - @override - List get images { - if (_images is EqualUnmodifiableListView) return _images; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_images); - } - - @override - String toString() { - return 'ListMediaResponse(images: $images)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListMediaResponseImpl && - const DeepCollectionEquality().equals(other._images, _images)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(_images)); - - /// Create a copy of ListMediaResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ListMediaResponseImplCopyWith<_$ListMediaResponseImpl> get copyWith => - __$$ListMediaResponseImplCopyWithImpl<_$ListMediaResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ListMediaResponseImplToJson( - this, - ); - } -} - -abstract class _ListMediaResponse extends ListMediaResponse { - const factory _ListMediaResponse( - {required final List images}) = _$ListMediaResponseImpl; - const _ListMediaResponse._() : super._(); - - factory _ListMediaResponse.fromJson(Map json) = - _$ListMediaResponseImpl.fromJson; - - @override - List get images; - - /// Create a copy of ListMediaResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ListMediaResponseImplCopyWith<_$ListMediaResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/list_media_response.g.dart b/lib/src/v3/models/user/list_media_response.g.dart deleted file mode 100644 index 6cf69477..00000000 --- a/lib/src/v3/models/user/list_media_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'list_media_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ListMediaResponseImpl _$$ListMediaResponseImplFromJson( - Map json) => - _$ListMediaResponseImpl( - images: (json['images'] as List) - .map((e) => LocalImageView.fromJson(e as Map)) - .toList(), - ); - -Map _$$ListMediaResponseImplToJson( - _$ListMediaResponseImpl instance) => - { - 'images': instance.images.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/models/user/login_response.dart b/lib/src/v3/models/user/login_response.dart deleted file mode 100644 index 4df94fe1..00000000 --- a/lib/src/v3/models/user/login_response.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'login_response.freezed.dart'; -part 'login_response.g.dart'; - -@freezed -class LoginResponse with _$LoginResponse { - @modelSerde - const factory LoginResponse({ - String? jwt, // v0.18.0 - required bool registrationCreated, // v0.18.0 - required bool verifyEmailSent, // v0.18.0 - }) = _LoginResponse; - - const LoginResponse._(); - factory LoginResponse.fromJson(Map json) => - _$LoginResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/login_response.freezed.dart b/lib/src/v3/models/user/login_response.freezed.dart deleted file mode 100644 index f4421d59..00000000 --- a/lib/src/v3/models/user/login_response.freezed.dart +++ /dev/null @@ -1,210 +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 'login_response.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'); - -LoginResponse _$LoginResponseFromJson(Map json) { - return _LoginResponse.fromJson(json); -} - -/// @nodoc -mixin _$LoginResponse { - String? get jwt => throw _privateConstructorUsedError; // v0.18.0 - bool get registrationCreated => throw _privateConstructorUsedError; // v0.18.0 - bool get verifyEmailSent => throw _privateConstructorUsedError; - - /// Serializes this LoginResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LoginResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LoginResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LoginResponseCopyWith<$Res> { - factory $LoginResponseCopyWith( - LoginResponse value, $Res Function(LoginResponse) then) = - _$LoginResponseCopyWithImpl<$Res, LoginResponse>; - @useResult - $Res call({String? jwt, bool registrationCreated, bool verifyEmailSent}); -} - -/// @nodoc -class _$LoginResponseCopyWithImpl<$Res, $Val extends LoginResponse> - implements $LoginResponseCopyWith<$Res> { - _$LoginResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LoginResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jwt = freezed, - Object? registrationCreated = null, - Object? verifyEmailSent = null, - }) { - return _then(_value.copyWith( - jwt: freezed == jwt - ? _value.jwt - : jwt // ignore: cast_nullable_to_non_nullable - as String?, - registrationCreated: null == registrationCreated - ? _value.registrationCreated - : registrationCreated // ignore: cast_nullable_to_non_nullable - as bool, - verifyEmailSent: null == verifyEmailSent - ? _value.verifyEmailSent - : verifyEmailSent // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$LoginResponseImplCopyWith<$Res> - implements $LoginResponseCopyWith<$Res> { - factory _$$LoginResponseImplCopyWith( - _$LoginResponseImpl value, $Res Function(_$LoginResponseImpl) then) = - __$$LoginResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? jwt, bool registrationCreated, bool verifyEmailSent}); -} - -/// @nodoc -class __$$LoginResponseImplCopyWithImpl<$Res> - extends _$LoginResponseCopyWithImpl<$Res, _$LoginResponseImpl> - implements _$$LoginResponseImplCopyWith<$Res> { - __$$LoginResponseImplCopyWithImpl( - _$LoginResponseImpl _value, $Res Function(_$LoginResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of LoginResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jwt = freezed, - Object? registrationCreated = null, - Object? verifyEmailSent = null, - }) { - return _then(_$LoginResponseImpl( - jwt: freezed == jwt - ? _value.jwt - : jwt // ignore: cast_nullable_to_non_nullable - as String?, - registrationCreated: null == registrationCreated - ? _value.registrationCreated - : registrationCreated // ignore: cast_nullable_to_non_nullable - as bool, - verifyEmailSent: null == verifyEmailSent - ? _value.verifyEmailSent - : verifyEmailSent // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LoginResponseImpl extends _LoginResponse { - const _$LoginResponseImpl( - {this.jwt, - required this.registrationCreated, - required this.verifyEmailSent}) - : super._(); - - factory _$LoginResponseImpl.fromJson(Map json) => - _$$LoginResponseImplFromJson(json); - - @override - final String? jwt; -// v0.18.0 - @override - final bool registrationCreated; -// v0.18.0 - @override - final bool verifyEmailSent; - - @override - String toString() { - return 'LoginResponse(jwt: $jwt, registrationCreated: $registrationCreated, verifyEmailSent: $verifyEmailSent)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LoginResponseImpl && - (identical(other.jwt, jwt) || other.jwt == jwt) && - (identical(other.registrationCreated, registrationCreated) || - other.registrationCreated == registrationCreated) && - (identical(other.verifyEmailSent, verifyEmailSent) || - other.verifyEmailSent == verifyEmailSent)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, jwt, registrationCreated, verifyEmailSent); - - /// Create a copy of LoginResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LoginResponseImplCopyWith<_$LoginResponseImpl> get copyWith => - __$$LoginResponseImplCopyWithImpl<_$LoginResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LoginResponseImplToJson( - this, - ); - } -} - -abstract class _LoginResponse extends LoginResponse { - const factory _LoginResponse( - {final String? jwt, - required final bool registrationCreated, - required final bool verifyEmailSent}) = _$LoginResponseImpl; - const _LoginResponse._() : super._(); - - factory _LoginResponse.fromJson(Map json) = - _$LoginResponseImpl.fromJson; - - @override - String? get jwt; // v0.18.0 - @override - bool get registrationCreated; // v0.18.0 - @override - bool get verifyEmailSent; - - /// Create a copy of LoginResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LoginResponseImplCopyWith<_$LoginResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/login_response.g.dart b/lib/src/v3/models/user/login_response.g.dart deleted file mode 100644 index 599bc7ec..00000000 --- a/lib/src/v3/models/user/login_response.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'login_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LoginResponseImpl _$$LoginResponseImplFromJson(Map json) => - _$LoginResponseImpl( - jwt: json['jwt'] as String?, - registrationCreated: json['registration_created'] as bool, - verifyEmailSent: json['verify_email_sent'] as bool, - ); - -Map _$$LoginResponseImplToJson(_$LoginResponseImpl instance) => - { - 'jwt': instance.jwt, - 'registration_created': instance.registrationCreated, - 'verify_email_sent': instance.verifyEmailSent, - }; diff --git a/lib/src/v3/models/user/password_change_after_reset_response.dart b/lib/src/v3/models/user/password_change_after_reset_response.dart deleted file mode 100644 index 138689b3..00000000 --- a/lib/src/v3/models/user/password_change_after_reset_response.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'password_change_after_reset_response.freezed.dart'; -part 'password_change_after_reset_response.g.dart'; - -@freezed -class PasswordChangeAfterResetResponse with _$PasswordChangeAfterResetResponse { - @modelSerde - const factory PasswordChangeAfterResetResponse({ - @deprecated String? jwt, - @deprecated bool? registrationCreated, - @deprecated bool? verifyEmailSent, - bool? success, // Only available in lemmy v0.19.0 and above - }) = _PasswordChangeAfterResetResponse; - - const PasswordChangeAfterResetResponse._(); - factory PasswordChangeAfterResetResponse.fromJson( - Map json, - ) => - _$PasswordChangeAfterResetResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/password_change_after_reset_response.freezed.dart b/lib/src/v3/models/user/password_change_after_reset_response.freezed.dart deleted file mode 100644 index 52d4da8f..00000000 --- a/lib/src/v3/models/user/password_change_after_reset_response.freezed.dart +++ /dev/null @@ -1,257 +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 'password_change_after_reset_response.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'); - -PasswordChangeAfterResetResponse _$PasswordChangeAfterResetResponseFromJson( - Map json) { - return _PasswordChangeAfterResetResponse.fromJson(json); -} - -/// @nodoc -mixin _$PasswordChangeAfterResetResponse { - @deprecated - String? get jwt => throw _privateConstructorUsedError; - @deprecated - bool? get registrationCreated => throw _privateConstructorUsedError; - @deprecated - bool? get verifyEmailSent => throw _privateConstructorUsedError; - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this PasswordChangeAfterResetResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PasswordChangeAfterResetResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PasswordChangeAfterResetResponseCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PasswordChangeAfterResetResponseCopyWith<$Res> { - factory $PasswordChangeAfterResetResponseCopyWith( - PasswordChangeAfterResetResponse value, - $Res Function(PasswordChangeAfterResetResponse) then) = - _$PasswordChangeAfterResetResponseCopyWithImpl<$Res, - PasswordChangeAfterResetResponse>; - @useResult - $Res call( - {@deprecated String? jwt, - @deprecated bool? registrationCreated, - @deprecated bool? verifyEmailSent, - bool? success}); -} - -/// @nodoc -class _$PasswordChangeAfterResetResponseCopyWithImpl<$Res, - $Val extends PasswordChangeAfterResetResponse> - implements $PasswordChangeAfterResetResponseCopyWith<$Res> { - _$PasswordChangeAfterResetResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PasswordChangeAfterResetResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jwt = freezed, - Object? registrationCreated = freezed, - Object? verifyEmailSent = freezed, - Object? success = freezed, - }) { - return _then(_value.copyWith( - jwt: freezed == jwt - ? _value.jwt - : jwt // ignore: cast_nullable_to_non_nullable - as String?, - registrationCreated: freezed == registrationCreated - ? _value.registrationCreated - : registrationCreated // ignore: cast_nullable_to_non_nullable - as bool?, - verifyEmailSent: freezed == verifyEmailSent - ? _value.verifyEmailSent - : verifyEmailSent // ignore: cast_nullable_to_non_nullable - as bool?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PasswordChangeAfterResetResponseImplCopyWith<$Res> - implements $PasswordChangeAfterResetResponseCopyWith<$Res> { - factory _$$PasswordChangeAfterResetResponseImplCopyWith( - _$PasswordChangeAfterResetResponseImpl value, - $Res Function(_$PasswordChangeAfterResetResponseImpl) then) = - __$$PasswordChangeAfterResetResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated String? jwt, - @deprecated bool? registrationCreated, - @deprecated bool? verifyEmailSent, - bool? success}); -} - -/// @nodoc -class __$$PasswordChangeAfterResetResponseImplCopyWithImpl<$Res> - extends _$PasswordChangeAfterResetResponseCopyWithImpl<$Res, - _$PasswordChangeAfterResetResponseImpl> - implements _$$PasswordChangeAfterResetResponseImplCopyWith<$Res> { - __$$PasswordChangeAfterResetResponseImplCopyWithImpl( - _$PasswordChangeAfterResetResponseImpl _value, - $Res Function(_$PasswordChangeAfterResetResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PasswordChangeAfterResetResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jwt = freezed, - Object? registrationCreated = freezed, - Object? verifyEmailSent = freezed, - Object? success = freezed, - }) { - return _then(_$PasswordChangeAfterResetResponseImpl( - jwt: freezed == jwt - ? _value.jwt - : jwt // ignore: cast_nullable_to_non_nullable - as String?, - registrationCreated: freezed == registrationCreated - ? _value.registrationCreated - : registrationCreated // ignore: cast_nullable_to_non_nullable - as bool?, - verifyEmailSent: freezed == verifyEmailSent - ? _value.verifyEmailSent - : verifyEmailSent // ignore: cast_nullable_to_non_nullable - as bool?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PasswordChangeAfterResetResponseImpl - extends _PasswordChangeAfterResetResponse { - const _$PasswordChangeAfterResetResponseImpl( - {@deprecated this.jwt, - @deprecated this.registrationCreated, - @deprecated this.verifyEmailSent, - this.success}) - : super._(); - - factory _$PasswordChangeAfterResetResponseImpl.fromJson( - Map json) => - _$$PasswordChangeAfterResetResponseImplFromJson(json); - - @override - @deprecated - final String? jwt; - @override - @deprecated - final bool? registrationCreated; - @override - @deprecated - final bool? verifyEmailSent; - @override - final bool? success; - - @override - String toString() { - return 'PasswordChangeAfterResetResponse(jwt: $jwt, registrationCreated: $registrationCreated, verifyEmailSent: $verifyEmailSent, success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PasswordChangeAfterResetResponseImpl && - (identical(other.jwt, jwt) || other.jwt == jwt) && - (identical(other.registrationCreated, registrationCreated) || - other.registrationCreated == registrationCreated) && - (identical(other.verifyEmailSent, verifyEmailSent) || - other.verifyEmailSent == verifyEmailSent) && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, jwt, registrationCreated, verifyEmailSent, success); - - /// Create a copy of PasswordChangeAfterResetResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PasswordChangeAfterResetResponseImplCopyWith< - _$PasswordChangeAfterResetResponseImpl> - get copyWith => __$$PasswordChangeAfterResetResponseImplCopyWithImpl< - _$PasswordChangeAfterResetResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PasswordChangeAfterResetResponseImplToJson( - this, - ); - } -} - -abstract class _PasswordChangeAfterResetResponse - extends PasswordChangeAfterResetResponse { - const factory _PasswordChangeAfterResetResponse( - {@deprecated final String? jwt, - @deprecated final bool? registrationCreated, - @deprecated final bool? verifyEmailSent, - final bool? success}) = _$PasswordChangeAfterResetResponseImpl; - const _PasswordChangeAfterResetResponse._() : super._(); - - factory _PasswordChangeAfterResetResponse.fromJson( - Map json) = - _$PasswordChangeAfterResetResponseImpl.fromJson; - - @override - @deprecated - String? get jwt; - @override - @deprecated - bool? get registrationCreated; - @override - @deprecated - bool? get verifyEmailSent; - @override - bool? get success; - - /// Create a copy of PasswordChangeAfterResetResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PasswordChangeAfterResetResponseImplCopyWith< - _$PasswordChangeAfterResetResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/password_change_after_reset_response.g.dart b/lib/src/v3/models/user/password_change_after_reset_response.g.dart deleted file mode 100644 index 48f3fd58..00000000 --- a/lib/src/v3/models/user/password_change_after_reset_response.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'password_change_after_reset_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PasswordChangeAfterResetResponseImpl - _$$PasswordChangeAfterResetResponseImplFromJson( - Map json) => - _$PasswordChangeAfterResetResponseImpl( - jwt: json['jwt'] as String?, - registrationCreated: json['registration_created'] as bool?, - verifyEmailSent: json['verify_email_sent'] as bool?, - success: json['success'] as bool?, - ); - -Map _$$PasswordChangeAfterResetResponseImplToJson( - _$PasswordChangeAfterResetResponseImpl instance) => - { - 'jwt': instance.jwt, - 'registration_created': instance.registrationCreated, - 'verify_email_sent': instance.verifyEmailSent, - 'success': instance.success, - }; diff --git a/lib/src/v3/models/user/password_reset_response.dart b/lib/src/v3/models/user/password_reset_response.dart deleted file mode 100644 index 3c0e3d78..00000000 --- a/lib/src/v3/models/user/password_reset_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'password_reset_response.freezed.dart'; -part 'password_reset_response.g.dart'; - -@freezed -class PasswordResetResponse with _$PasswordResetResponse { - @modelSerde - const factory PasswordResetResponse({ - bool? success, // v0.19.0 (required) - }) = _PasswordResetResponse; - - const PasswordResetResponse._(); - factory PasswordResetResponse.fromJson(Map json) => - _$PasswordResetResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/password_reset_response.freezed.dart b/lib/src/v3/models/user/password_reset_response.freezed.dart deleted file mode 100644 index 246b3efd..00000000 --- a/lib/src/v3/models/user/password_reset_response.freezed.dart +++ /dev/null @@ -1,172 +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 'password_reset_response.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'); - -PasswordResetResponse _$PasswordResetResponseFromJson( - Map json) { - return _PasswordResetResponse.fromJson(json); -} - -/// @nodoc -mixin _$PasswordResetResponse { - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this PasswordResetResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PasswordResetResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PasswordResetResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PasswordResetResponseCopyWith<$Res> { - factory $PasswordResetResponseCopyWith(PasswordResetResponse value, - $Res Function(PasswordResetResponse) then) = - _$PasswordResetResponseCopyWithImpl<$Res, PasswordResetResponse>; - @useResult - $Res call({bool? success}); -} - -/// @nodoc -class _$PasswordResetResponseCopyWithImpl<$Res, - $Val extends PasswordResetResponse> - implements $PasswordResetResponseCopyWith<$Res> { - _$PasswordResetResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PasswordResetResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = freezed, - }) { - return _then(_value.copyWith( - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$PasswordResetResponseImplCopyWith<$Res> - implements $PasswordResetResponseCopyWith<$Res> { - factory _$$PasswordResetResponseImplCopyWith( - _$PasswordResetResponseImpl value, - $Res Function(_$PasswordResetResponseImpl) then) = - __$$PasswordResetResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool? success}); -} - -/// @nodoc -class __$$PasswordResetResponseImplCopyWithImpl<$Res> - extends _$PasswordResetResponseCopyWithImpl<$Res, - _$PasswordResetResponseImpl> - implements _$$PasswordResetResponseImplCopyWith<$Res> { - __$$PasswordResetResponseImplCopyWithImpl(_$PasswordResetResponseImpl _value, - $Res Function(_$PasswordResetResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PasswordResetResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = freezed, - }) { - return _then(_$PasswordResetResponseImpl( - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PasswordResetResponseImpl extends _PasswordResetResponse { - const _$PasswordResetResponseImpl({this.success}) : super._(); - - factory _$PasswordResetResponseImpl.fromJson(Map json) => - _$$PasswordResetResponseImplFromJson(json); - - @override - final bool? success; - - @override - String toString() { - return 'PasswordResetResponse(success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PasswordResetResponseImpl && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, success); - - /// Create a copy of PasswordResetResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PasswordResetResponseImplCopyWith<_$PasswordResetResponseImpl> - get copyWith => __$$PasswordResetResponseImplCopyWithImpl< - _$PasswordResetResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PasswordResetResponseImplToJson( - this, - ); - } -} - -abstract class _PasswordResetResponse extends PasswordResetResponse { - const factory _PasswordResetResponse({final bool? success}) = - _$PasswordResetResponseImpl; - const _PasswordResetResponse._() : super._(); - - factory _PasswordResetResponse.fromJson(Map json) = - _$PasswordResetResponseImpl.fromJson; - - @override - bool? get success; - - /// Create a copy of PasswordResetResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PasswordResetResponseImplCopyWith<_$PasswordResetResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/password_reset_response.g.dart b/lib/src/v3/models/user/password_reset_response.g.dart deleted file mode 100644 index fec57987..00000000 --- a/lib/src/v3/models/user/password_reset_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'password_reset_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PasswordResetResponseImpl _$$PasswordResetResponseImplFromJson( - Map json) => - _$PasswordResetResponseImpl( - success: json['success'] as bool?, - ); - -Map _$$PasswordResetResponseImplToJson( - _$PasswordResetResponseImpl instance) => - { - 'success': instance.success, - }; diff --git a/lib/src/v3/models/user/person_mention_response.dart b/lib/src/v3/models/user/person_mention_response.dart deleted file mode 100644 index eab398f3..00000000 --- a/lib/src/v3/models/user/person_mention_response.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; -import '../../views/views.dart'; - -part 'person_mention_response.freezed.dart'; -part 'person_mention_response.g.dart'; - -@freezed -class PersonMentionResponse with _$PersonMentionResponse { - @modelSerde - const factory PersonMentionResponse({ - required PersonMentionView personMentionView, // v0.18.0 - }) = _PersonMentionResponse; - - const PersonMentionResponse._(); - factory PersonMentionResponse.fromJson(Map json) => - _$PersonMentionResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/person_mention_response.freezed.dart b/lib/src/v3/models/user/person_mention_response.freezed.dart deleted file mode 100644 index f7eb5d8d..00000000 --- a/lib/src/v3/models/user/person_mention_response.freezed.dart +++ /dev/null @@ -1,190 +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 'person_mention_response.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'); - -PersonMentionResponse _$PersonMentionResponseFromJson( - Map json) { - return _PersonMentionResponse.fromJson(json); -} - -/// @nodoc -mixin _$PersonMentionResponse { - PersonMentionView get personMentionView => throw _privateConstructorUsedError; - - /// Serializes this PersonMentionResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PersonMentionResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonMentionResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonMentionResponseCopyWith<$Res> { - factory $PersonMentionResponseCopyWith(PersonMentionResponse value, - $Res Function(PersonMentionResponse) then) = - _$PersonMentionResponseCopyWithImpl<$Res, PersonMentionResponse>; - @useResult - $Res call({PersonMentionView personMentionView}); - - $PersonMentionViewCopyWith<$Res> get personMentionView; -} - -/// @nodoc -class _$PersonMentionResponseCopyWithImpl<$Res, - $Val extends PersonMentionResponse> - implements $PersonMentionResponseCopyWith<$Res> { - _$PersonMentionResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PersonMentionResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personMentionView = null, - }) { - return _then(_value.copyWith( - personMentionView: null == personMentionView - ? _value.personMentionView - : personMentionView // ignore: cast_nullable_to_non_nullable - as PersonMentionView, - ) as $Val); - } - - /// Create a copy of PersonMentionResponse - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonMentionViewCopyWith<$Res> get personMentionView { - return $PersonMentionViewCopyWith<$Res>(_value.personMentionView, (value) { - return _then(_value.copyWith(personMentionView: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PersonMentionResponseImplCopyWith<$Res> - implements $PersonMentionResponseCopyWith<$Res> { - factory _$$PersonMentionResponseImplCopyWith( - _$PersonMentionResponseImpl value, - $Res Function(_$PersonMentionResponseImpl) then) = - __$$PersonMentionResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PersonMentionView personMentionView}); - - @override - $PersonMentionViewCopyWith<$Res> get personMentionView; -} - -/// @nodoc -class __$$PersonMentionResponseImplCopyWithImpl<$Res> - extends _$PersonMentionResponseCopyWithImpl<$Res, - _$PersonMentionResponseImpl> - implements _$$PersonMentionResponseImplCopyWith<$Res> { - __$$PersonMentionResponseImplCopyWithImpl(_$PersonMentionResponseImpl _value, - $Res Function(_$PersonMentionResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of PersonMentionResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personMentionView = null, - }) { - return _then(_$PersonMentionResponseImpl( - personMentionView: null == personMentionView - ? _value.personMentionView - : personMentionView // ignore: cast_nullable_to_non_nullable - as PersonMentionView, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonMentionResponseImpl extends _PersonMentionResponse { - const _$PersonMentionResponseImpl({required this.personMentionView}) - : super._(); - - factory _$PersonMentionResponseImpl.fromJson(Map json) => - _$$PersonMentionResponseImplFromJson(json); - - @override - final PersonMentionView personMentionView; - - @override - String toString() { - return 'PersonMentionResponse(personMentionView: $personMentionView)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonMentionResponseImpl && - (identical(other.personMentionView, personMentionView) || - other.personMentionView == personMentionView)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, personMentionView); - - /// Create a copy of PersonMentionResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonMentionResponseImplCopyWith<_$PersonMentionResponseImpl> - get copyWith => __$$PersonMentionResponseImplCopyWithImpl< - _$PersonMentionResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PersonMentionResponseImplToJson( - this, - ); - } -} - -abstract class _PersonMentionResponse extends PersonMentionResponse { - const factory _PersonMentionResponse( - {required final PersonMentionView personMentionView}) = - _$PersonMentionResponseImpl; - const _PersonMentionResponse._() : super._(); - - factory _PersonMentionResponse.fromJson(Map json) = - _$PersonMentionResponseImpl.fromJson; - - @override - PersonMentionView get personMentionView; - - /// Create a copy of PersonMentionResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonMentionResponseImplCopyWith<_$PersonMentionResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/person_mention_response.g.dart b/lib/src/v3/models/user/person_mention_response.g.dart deleted file mode 100644 index 608b921c..00000000 --- a/lib/src/v3/models/user/person_mention_response.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person_mention_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonMentionResponseImpl _$$PersonMentionResponseImplFromJson( - Map json) => - _$PersonMentionResponseImpl( - personMentionView: PersonMentionView.fromJson( - json['person_mention_view'] as Map), - ); - -Map _$$PersonMentionResponseImplToJson( - _$PersonMentionResponseImpl instance) => - { - 'person_mention_view': instance.personMentionView.toJson(), - }; diff --git a/lib/src/v3/models/user/save_user_settings_response.dart b/lib/src/v3/models/user/save_user_settings_response.dart deleted file mode 100644 index 93505e47..00000000 --- a/lib/src/v3/models/user/save_user_settings_response.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'save_user_settings_response.freezed.dart'; -part 'save_user_settings_response.g.dart'; - -@freezed -class SaveUserSettingsResponse with _$SaveUserSettingsResponse { - @modelSerde - const factory SaveUserSettingsResponse({ - @deprecated String? jwt, - @deprecated bool? registrationCreated, - @deprecated bool? verifyEmailSent, - bool? success, // Only available in lemmy v0.19.0 and above - }) = _SaveUserSettingsResponse; - - const SaveUserSettingsResponse._(); - factory SaveUserSettingsResponse.fromJson(Map json) => - _$SaveUserSettingsResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/save_user_settings_response.freezed.dart b/lib/src/v3/models/user/save_user_settings_response.freezed.dart deleted file mode 100644 index 863a2410..00000000 --- a/lib/src/v3/models/user/save_user_settings_response.freezed.dart +++ /dev/null @@ -1,249 +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 'save_user_settings_response.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'); - -SaveUserSettingsResponse _$SaveUserSettingsResponseFromJson( - Map json) { - return _SaveUserSettingsResponse.fromJson(json); -} - -/// @nodoc -mixin _$SaveUserSettingsResponse { - @deprecated - String? get jwt => throw _privateConstructorUsedError; - @deprecated - bool? get registrationCreated => throw _privateConstructorUsedError; - @deprecated - bool? get verifyEmailSent => throw _privateConstructorUsedError; - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this SaveUserSettingsResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SaveUserSettingsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SaveUserSettingsResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SaveUserSettingsResponseCopyWith<$Res> { - factory $SaveUserSettingsResponseCopyWith(SaveUserSettingsResponse value, - $Res Function(SaveUserSettingsResponse) then) = - _$SaveUserSettingsResponseCopyWithImpl<$Res, SaveUserSettingsResponse>; - @useResult - $Res call( - {@deprecated String? jwt, - @deprecated bool? registrationCreated, - @deprecated bool? verifyEmailSent, - bool? success}); -} - -/// @nodoc -class _$SaveUserSettingsResponseCopyWithImpl<$Res, - $Val extends SaveUserSettingsResponse> - implements $SaveUserSettingsResponseCopyWith<$Res> { - _$SaveUserSettingsResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SaveUserSettingsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jwt = freezed, - Object? registrationCreated = freezed, - Object? verifyEmailSent = freezed, - Object? success = freezed, - }) { - return _then(_value.copyWith( - jwt: freezed == jwt - ? _value.jwt - : jwt // ignore: cast_nullable_to_non_nullable - as String?, - registrationCreated: freezed == registrationCreated - ? _value.registrationCreated - : registrationCreated // ignore: cast_nullable_to_non_nullable - as bool?, - verifyEmailSent: freezed == verifyEmailSent - ? _value.verifyEmailSent - : verifyEmailSent // ignore: cast_nullable_to_non_nullable - as bool?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SaveUserSettingsResponseImplCopyWith<$Res> - implements $SaveUserSettingsResponseCopyWith<$Res> { - factory _$$SaveUserSettingsResponseImplCopyWith( - _$SaveUserSettingsResponseImpl value, - $Res Function(_$SaveUserSettingsResponseImpl) then) = - __$$SaveUserSettingsResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {@deprecated String? jwt, - @deprecated bool? registrationCreated, - @deprecated bool? verifyEmailSent, - bool? success}); -} - -/// @nodoc -class __$$SaveUserSettingsResponseImplCopyWithImpl<$Res> - extends _$SaveUserSettingsResponseCopyWithImpl<$Res, - _$SaveUserSettingsResponseImpl> - implements _$$SaveUserSettingsResponseImplCopyWith<$Res> { - __$$SaveUserSettingsResponseImplCopyWithImpl( - _$SaveUserSettingsResponseImpl _value, - $Res Function(_$SaveUserSettingsResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of SaveUserSettingsResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jwt = freezed, - Object? registrationCreated = freezed, - Object? verifyEmailSent = freezed, - Object? success = freezed, - }) { - return _then(_$SaveUserSettingsResponseImpl( - jwt: freezed == jwt - ? _value.jwt - : jwt // ignore: cast_nullable_to_non_nullable - as String?, - registrationCreated: freezed == registrationCreated - ? _value.registrationCreated - : registrationCreated // ignore: cast_nullable_to_non_nullable - as bool?, - verifyEmailSent: freezed == verifyEmailSent - ? _value.verifyEmailSent - : verifyEmailSent // ignore: cast_nullable_to_non_nullable - as bool?, - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SaveUserSettingsResponseImpl extends _SaveUserSettingsResponse { - const _$SaveUserSettingsResponseImpl( - {@deprecated this.jwt, - @deprecated this.registrationCreated, - @deprecated this.verifyEmailSent, - this.success}) - : super._(); - - factory _$SaveUserSettingsResponseImpl.fromJson(Map json) => - _$$SaveUserSettingsResponseImplFromJson(json); - - @override - @deprecated - final String? jwt; - @override - @deprecated - final bool? registrationCreated; - @override - @deprecated - final bool? verifyEmailSent; - @override - final bool? success; - - @override - String toString() { - return 'SaveUserSettingsResponse(jwt: $jwt, registrationCreated: $registrationCreated, verifyEmailSent: $verifyEmailSent, success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SaveUserSettingsResponseImpl && - (identical(other.jwt, jwt) || other.jwt == jwt) && - (identical(other.registrationCreated, registrationCreated) || - other.registrationCreated == registrationCreated) && - (identical(other.verifyEmailSent, verifyEmailSent) || - other.verifyEmailSent == verifyEmailSent) && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, jwt, registrationCreated, verifyEmailSent, success); - - /// Create a copy of SaveUserSettingsResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SaveUserSettingsResponseImplCopyWith<_$SaveUserSettingsResponseImpl> - get copyWith => __$$SaveUserSettingsResponseImplCopyWithImpl< - _$SaveUserSettingsResponseImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SaveUserSettingsResponseImplToJson( - this, - ); - } -} - -abstract class _SaveUserSettingsResponse extends SaveUserSettingsResponse { - const factory _SaveUserSettingsResponse( - {@deprecated final String? jwt, - @deprecated final bool? registrationCreated, - @deprecated final bool? verifyEmailSent, - final bool? success}) = _$SaveUserSettingsResponseImpl; - const _SaveUserSettingsResponse._() : super._(); - - factory _SaveUserSettingsResponse.fromJson(Map json) = - _$SaveUserSettingsResponseImpl.fromJson; - - @override - @deprecated - String? get jwt; - @override - @deprecated - bool? get registrationCreated; - @override - @deprecated - bool? get verifyEmailSent; - @override - bool? get success; - - /// Create a copy of SaveUserSettingsResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SaveUserSettingsResponseImplCopyWith<_$SaveUserSettingsResponseImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/save_user_settings_response.g.dart b/lib/src/v3/models/user/save_user_settings_response.g.dart deleted file mode 100644 index 095de2cc..00000000 --- a/lib/src/v3/models/user/save_user_settings_response.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'save_user_settings_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SaveUserSettingsResponseImpl _$$SaveUserSettingsResponseImplFromJson( - Map json) => - _$SaveUserSettingsResponseImpl( - jwt: json['jwt'] as String?, - registrationCreated: json['registration_created'] as bool?, - verifyEmailSent: json['verify_email_sent'] as bool?, - success: json['success'] as bool?, - ); - -Map _$$SaveUserSettingsResponseImplToJson( - _$SaveUserSettingsResponseImpl instance) => - { - 'jwt': instance.jwt, - 'registration_created': instance.registrationCreated, - 'verify_email_sent': instance.verifyEmailSent, - 'success': instance.success, - }; diff --git a/lib/src/v3/models/user/success_response.dart b/lib/src/v3/models/user/success_response.dart deleted file mode 100644 index 62a2d96a..00000000 --- a/lib/src/v3/models/user/success_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'success_response.freezed.dart'; -part 'success_response.g.dart'; - -@freezed -class SuccessResponse with _$SuccessResponse { - @modelSerde - const factory SuccessResponse({ - required bool success, - }) = _SuccessResponse; - - const SuccessResponse._(); - factory SuccessResponse.fromJson(Map json) => - _$SuccessResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/success_response.freezed.dart b/lib/src/v3/models/user/success_response.freezed.dart deleted file mode 100644 index 16e2ebc5..00000000 --- a/lib/src/v3/models/user/success_response.freezed.dart +++ /dev/null @@ -1,168 +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 'success_response.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'); - -SuccessResponse _$SuccessResponseFromJson(Map json) { - return _SuccessResponse.fromJson(json); -} - -/// @nodoc -mixin _$SuccessResponse { - bool get success => throw _privateConstructorUsedError; - - /// Serializes this SuccessResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of SuccessResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $SuccessResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SuccessResponseCopyWith<$Res> { - factory $SuccessResponseCopyWith( - SuccessResponse value, $Res Function(SuccessResponse) then) = - _$SuccessResponseCopyWithImpl<$Res, SuccessResponse>; - @useResult - $Res call({bool success}); -} - -/// @nodoc -class _$SuccessResponseCopyWithImpl<$Res, $Val extends SuccessResponse> - implements $SuccessResponseCopyWith<$Res> { - _$SuccessResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of SuccessResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = null, - }) { - return _then(_value.copyWith( - success: null == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SuccessResponseImplCopyWith<$Res> - implements $SuccessResponseCopyWith<$Res> { - factory _$$SuccessResponseImplCopyWith(_$SuccessResponseImpl value, - $Res Function(_$SuccessResponseImpl) then) = - __$$SuccessResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool success}); -} - -/// @nodoc -class __$$SuccessResponseImplCopyWithImpl<$Res> - extends _$SuccessResponseCopyWithImpl<$Res, _$SuccessResponseImpl> - implements _$$SuccessResponseImplCopyWith<$Res> { - __$$SuccessResponseImplCopyWithImpl( - _$SuccessResponseImpl _value, $Res Function(_$SuccessResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of SuccessResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = null, - }) { - return _then(_$SuccessResponseImpl( - success: null == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$SuccessResponseImpl extends _SuccessResponse { - const _$SuccessResponseImpl({required this.success}) : super._(); - - factory _$SuccessResponseImpl.fromJson(Map json) => - _$$SuccessResponseImplFromJson(json); - - @override - final bool success; - - @override - String toString() { - return 'SuccessResponse(success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SuccessResponseImpl && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, success); - - /// Create a copy of SuccessResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$SuccessResponseImplCopyWith<_$SuccessResponseImpl> get copyWith => - __$$SuccessResponseImplCopyWithImpl<_$SuccessResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$SuccessResponseImplToJson( - this, - ); - } -} - -abstract class _SuccessResponse extends SuccessResponse { - const factory _SuccessResponse({required final bool success}) = - _$SuccessResponseImpl; - const _SuccessResponse._() : super._(); - - factory _SuccessResponse.fromJson(Map json) = - _$SuccessResponseImpl.fromJson; - - @override - bool get success; - - /// Create a copy of SuccessResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$SuccessResponseImplCopyWith<_$SuccessResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/success_response.g.dart b/lib/src/v3/models/user/success_response.g.dart deleted file mode 100644 index 684ed6f4..00000000 --- a/lib/src/v3/models/user/success_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'success_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SuccessResponseImpl _$$SuccessResponseImplFromJson( - Map json) => - _$SuccessResponseImpl( - success: json['success'] as bool, - ); - -Map _$$SuccessResponseImplToJson( - _$SuccessResponseImpl instance) => - { - 'success': instance.success, - }; diff --git a/lib/src/v3/models/user/update_totp_response.dart b/lib/src/v3/models/user/update_totp_response.dart deleted file mode 100644 index a6261b68..00000000 --- a/lib/src/v3/models/user/update_totp_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'update_totp_response.freezed.dart'; -part 'update_totp_response.g.dart'; - -@freezed -class UpdateTotpResponse with _$UpdateTotpResponse { - @modelSerde - const factory UpdateTotpResponse({ - required bool enabled, // v0.19.0 (required) - }) = _UpdateTotpResponse; - - const UpdateTotpResponse._(); - factory UpdateTotpResponse.fromJson(Map json) => - _$UpdateTotpResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/update_totp_response.freezed.dart b/lib/src/v3/models/user/update_totp_response.freezed.dart deleted file mode 100644 index ed4c6e4f..00000000 --- a/lib/src/v3/models/user/update_totp_response.freezed.dart +++ /dev/null @@ -1,168 +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 'update_totp_response.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'); - -UpdateTotpResponse _$UpdateTotpResponseFromJson(Map json) { - return _UpdateTotpResponse.fromJson(json); -} - -/// @nodoc -mixin _$UpdateTotpResponse { - bool get enabled => throw _privateConstructorUsedError; - - /// Serializes this UpdateTotpResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of UpdateTotpResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $UpdateTotpResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $UpdateTotpResponseCopyWith<$Res> { - factory $UpdateTotpResponseCopyWith( - UpdateTotpResponse value, $Res Function(UpdateTotpResponse) then) = - _$UpdateTotpResponseCopyWithImpl<$Res, UpdateTotpResponse>; - @useResult - $Res call({bool enabled}); -} - -/// @nodoc -class _$UpdateTotpResponseCopyWithImpl<$Res, $Val extends UpdateTotpResponse> - implements $UpdateTotpResponseCopyWith<$Res> { - _$UpdateTotpResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of UpdateTotpResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? enabled = null, - }) { - return _then(_value.copyWith( - enabled: null == enabled - ? _value.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$UpdateTotpResponseImplCopyWith<$Res> - implements $UpdateTotpResponseCopyWith<$Res> { - factory _$$UpdateTotpResponseImplCopyWith(_$UpdateTotpResponseImpl value, - $Res Function(_$UpdateTotpResponseImpl) then) = - __$$UpdateTotpResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool enabled}); -} - -/// @nodoc -class __$$UpdateTotpResponseImplCopyWithImpl<$Res> - extends _$UpdateTotpResponseCopyWithImpl<$Res, _$UpdateTotpResponseImpl> - implements _$$UpdateTotpResponseImplCopyWith<$Res> { - __$$UpdateTotpResponseImplCopyWithImpl(_$UpdateTotpResponseImpl _value, - $Res Function(_$UpdateTotpResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of UpdateTotpResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? enabled = null, - }) { - return _then(_$UpdateTotpResponseImpl( - enabled: null == enabled - ? _value.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -/// @nodoc - -@modelSerde -class _$UpdateTotpResponseImpl extends _UpdateTotpResponse { - const _$UpdateTotpResponseImpl({required this.enabled}) : super._(); - - factory _$UpdateTotpResponseImpl.fromJson(Map json) => - _$$UpdateTotpResponseImplFromJson(json); - - @override - final bool enabled; - - @override - String toString() { - return 'UpdateTotpResponse(enabled: $enabled)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$UpdateTotpResponseImpl && - (identical(other.enabled, enabled) || other.enabled == enabled)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, enabled); - - /// Create a copy of UpdateTotpResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$UpdateTotpResponseImplCopyWith<_$UpdateTotpResponseImpl> get copyWith => - __$$UpdateTotpResponseImplCopyWithImpl<_$UpdateTotpResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$UpdateTotpResponseImplToJson( - this, - ); - } -} - -abstract class _UpdateTotpResponse extends UpdateTotpResponse { - const factory _UpdateTotpResponse({required final bool enabled}) = - _$UpdateTotpResponseImpl; - const _UpdateTotpResponse._() : super._(); - - factory _UpdateTotpResponse.fromJson(Map json) = - _$UpdateTotpResponseImpl.fromJson; - - @override - bool get enabled; - - /// Create a copy of UpdateTotpResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$UpdateTotpResponseImplCopyWith<_$UpdateTotpResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/update_totp_response.g.dart b/lib/src/v3/models/user/update_totp_response.g.dart deleted file mode 100644 index 446af95e..00000000 --- a/lib/src/v3/models/user/update_totp_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_totp_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$UpdateTotpResponseImpl _$$UpdateTotpResponseImplFromJson( - Map json) => - _$UpdateTotpResponseImpl( - enabled: json['enabled'] as bool, - ); - -Map _$$UpdateTotpResponseImplToJson( - _$UpdateTotpResponseImpl instance) => - { - 'enabled': instance.enabled, - }; diff --git a/lib/src/v3/models/user/verify_email_response.dart b/lib/src/v3/models/user/verify_email_response.dart deleted file mode 100644 index 9dbfc8e5..00000000 --- a/lib/src/v3/models/user/verify_email_response.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../utils/serde.dart'; - -part 'verify_email_response.freezed.dart'; -part 'verify_email_response.g.dart'; - -@freezed -class VerifyEmailResponse with _$VerifyEmailResponse { - @modelSerde - const factory VerifyEmailResponse({ - bool? success, // v0.19.0 (required) - }) = _VerifyEmailResponse; - - const VerifyEmailResponse._(); - factory VerifyEmailResponse.fromJson(Map json) => - _$VerifyEmailResponseFromJson(json); -} diff --git a/lib/src/v3/models/user/verify_email_response.freezed.dart b/lib/src/v3/models/user/verify_email_response.freezed.dart deleted file mode 100644 index ed5acb21..00000000 --- a/lib/src/v3/models/user/verify_email_response.freezed.dart +++ /dev/null @@ -1,168 +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 'verify_email_response.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'); - -VerifyEmailResponse _$VerifyEmailResponseFromJson(Map json) { - return _VerifyEmailResponse.fromJson(json); -} - -/// @nodoc -mixin _$VerifyEmailResponse { - bool? get success => throw _privateConstructorUsedError; - - /// Serializes this VerifyEmailResponse to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of VerifyEmailResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $VerifyEmailResponseCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $VerifyEmailResponseCopyWith<$Res> { - factory $VerifyEmailResponseCopyWith( - VerifyEmailResponse value, $Res Function(VerifyEmailResponse) then) = - _$VerifyEmailResponseCopyWithImpl<$Res, VerifyEmailResponse>; - @useResult - $Res call({bool? success}); -} - -/// @nodoc -class _$VerifyEmailResponseCopyWithImpl<$Res, $Val extends VerifyEmailResponse> - implements $VerifyEmailResponseCopyWith<$Res> { - _$VerifyEmailResponseCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of VerifyEmailResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = freezed, - }) { - return _then(_value.copyWith( - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$VerifyEmailResponseImplCopyWith<$Res> - implements $VerifyEmailResponseCopyWith<$Res> { - factory _$$VerifyEmailResponseImplCopyWith(_$VerifyEmailResponseImpl value, - $Res Function(_$VerifyEmailResponseImpl) then) = - __$$VerifyEmailResponseImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool? success}); -} - -/// @nodoc -class __$$VerifyEmailResponseImplCopyWithImpl<$Res> - extends _$VerifyEmailResponseCopyWithImpl<$Res, _$VerifyEmailResponseImpl> - implements _$$VerifyEmailResponseImplCopyWith<$Res> { - __$$VerifyEmailResponseImplCopyWithImpl(_$VerifyEmailResponseImpl _value, - $Res Function(_$VerifyEmailResponseImpl) _then) - : super(_value, _then); - - /// Create a copy of VerifyEmailResponse - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? success = freezed, - }) { - return _then(_$VerifyEmailResponseImpl( - success: freezed == success - ? _value.success - : success // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$VerifyEmailResponseImpl extends _VerifyEmailResponse { - const _$VerifyEmailResponseImpl({this.success}) : super._(); - - factory _$VerifyEmailResponseImpl.fromJson(Map json) => - _$$VerifyEmailResponseImplFromJson(json); - - @override - final bool? success; - - @override - String toString() { - return 'VerifyEmailResponse(success: $success)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$VerifyEmailResponseImpl && - (identical(other.success, success) || other.success == success)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, success); - - /// Create a copy of VerifyEmailResponse - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$VerifyEmailResponseImplCopyWith<_$VerifyEmailResponseImpl> get copyWith => - __$$VerifyEmailResponseImplCopyWithImpl<_$VerifyEmailResponseImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$VerifyEmailResponseImplToJson( - this, - ); - } -} - -abstract class _VerifyEmailResponse extends VerifyEmailResponse { - const factory _VerifyEmailResponse({final bool? success}) = - _$VerifyEmailResponseImpl; - const _VerifyEmailResponse._() : super._(); - - factory _VerifyEmailResponse.fromJson(Map json) = - _$VerifyEmailResponseImpl.fromJson; - - @override - bool? get success; - - /// Create a copy of VerifyEmailResponse - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$VerifyEmailResponseImplCopyWith<_$VerifyEmailResponseImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/models/user/verify_email_response.g.dart b/lib/src/v3/models/user/verify_email_response.g.dart deleted file mode 100644 index 6153c4a0..00000000 --- a/lib/src/v3/models/user/verify_email_response.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'verify_email_response.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$VerifyEmailResponseImpl _$$VerifyEmailResponseImplFromJson( - Map json) => - _$VerifyEmailResponseImpl( - success: json['success'] as bool?, - ); - -Map _$$VerifyEmailResponseImplToJson( - _$VerifyEmailResponseImpl instance) => - { - 'success': instance.success, - }; diff --git a/lib/src/v3/query.dart b/lib/src/v3/query.dart deleted file mode 100644 index df2bfb60..00000000 --- a/lib/src/v3/query.dart +++ /dev/null @@ -1,24 +0,0 @@ -enum HttpMethod { get, put, post } - -abstract class LemmyApiQuery { - abstract final String path; - abstract final HttpMethod httpMethod; - - Map toJson(); - - T responseFactory(Map json); -} - -abstract class LemmyApiAuthenticatedQuery { - String? get auth; -} - -/// Use this class when a query requires a specific parameter to be passed directly to the body, without first encoding it as a JSON string. -/// -/// This class allows you to specify a [parameter] that will be included in the query body as raw data. -/// This is only used in [HttpMethod.post] requests, where the parameter is added directly to the body, rather than as a JSON-encoded string. -/// -/// For example: the [ImportSettings] uses this class to pass the user settings as a raw string to the query. -abstract class PassthroughParameter { - String get parameter; -} diff --git a/lib/src/v3/views/admin_purge_comment_view.dart b/lib/src/v3/views/admin_purge_comment_view.dart deleted file mode 100644 index 199a75fd..00000000 --- a/lib/src/v3/views/admin_purge_comment_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'admin_purge_comment_view.freezed.dart'; -part 'admin_purge_comment_view.g.dart'; - -@freezed -class AdminPurgeCommentView with _$AdminPurgeCommentView { - @modelSerde - const factory AdminPurgeCommentView({ - required AdminPurgeComment adminPurgeComment, // v0.18.0 - Person? admin, // v0.18.0 - required Post post, // v0.18.0 - }) = _AdminPurgeCommentView; - - const AdminPurgeCommentView._(); - factory AdminPurgeCommentView.fromJson(Map json) => - _$AdminPurgeCommentViewFromJson(json); -} diff --git a/lib/src/v3/views/admin_purge_comment_view.freezed.dart b/lib/src/v3/views/admin_purge_comment_view.freezed.dart deleted file mode 100644 index 17c06fff..00000000 --- a/lib/src/v3/views/admin_purge_comment_view.freezed.dart +++ /dev/null @@ -1,257 +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 'admin_purge_comment_view.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'); - -AdminPurgeCommentView _$AdminPurgeCommentViewFromJson( - Map json) { - return _AdminPurgeCommentView.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgeCommentView { - AdminPurgeComment get adminPurgeComment => - throw _privateConstructorUsedError; // v0.18.0 - Person? get admin => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgeCommentView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgeCommentViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgeCommentViewCopyWith<$Res> { - factory $AdminPurgeCommentViewCopyWith(AdminPurgeCommentView value, - $Res Function(AdminPurgeCommentView) then) = - _$AdminPurgeCommentViewCopyWithImpl<$Res, AdminPurgeCommentView>; - @useResult - $Res call({AdminPurgeComment adminPurgeComment, Person? admin, Post post}); - - $AdminPurgeCommentCopyWith<$Res> get adminPurgeComment; - $PersonCopyWith<$Res>? get admin; - $PostCopyWith<$Res> get post; -} - -/// @nodoc -class _$AdminPurgeCommentViewCopyWithImpl<$Res, - $Val extends AdminPurgeCommentView> - implements $AdminPurgeCommentViewCopyWith<$Res> { - _$AdminPurgeCommentViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgeComment = null, - Object? admin = freezed, - Object? post = null, - }) { - return _then(_value.copyWith( - adminPurgeComment: null == adminPurgeComment - ? _value.adminPurgeComment - : adminPurgeComment // ignore: cast_nullable_to_non_nullable - as AdminPurgeComment, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - ) as $Val); - } - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $AdminPurgeCommentCopyWith<$Res> get adminPurgeComment { - return $AdminPurgeCommentCopyWith<$Res>(_value.adminPurgeComment, (value) { - return _then(_value.copyWith(adminPurgeComment: value) as $Val); - }); - } - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get admin { - if (_value.admin == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.admin!, (value) { - return _then(_value.copyWith(admin: value) as $Val); - }); - } - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$AdminPurgeCommentViewImplCopyWith<$Res> - implements $AdminPurgeCommentViewCopyWith<$Res> { - factory _$$AdminPurgeCommentViewImplCopyWith( - _$AdminPurgeCommentViewImpl value, - $Res Function(_$AdminPurgeCommentViewImpl) then) = - __$$AdminPurgeCommentViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({AdminPurgeComment adminPurgeComment, Person? admin, Post post}); - - @override - $AdminPurgeCommentCopyWith<$Res> get adminPurgeComment; - @override - $PersonCopyWith<$Res>? get admin; - @override - $PostCopyWith<$Res> get post; -} - -/// @nodoc -class __$$AdminPurgeCommentViewImplCopyWithImpl<$Res> - extends _$AdminPurgeCommentViewCopyWithImpl<$Res, - _$AdminPurgeCommentViewImpl> - implements _$$AdminPurgeCommentViewImplCopyWith<$Res> { - __$$AdminPurgeCommentViewImplCopyWithImpl(_$AdminPurgeCommentViewImpl _value, - $Res Function(_$AdminPurgeCommentViewImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgeComment = null, - Object? admin = freezed, - Object? post = null, - }) { - return _then(_$AdminPurgeCommentViewImpl( - adminPurgeComment: null == adminPurgeComment - ? _value.adminPurgeComment - : adminPurgeComment // ignore: cast_nullable_to_non_nullable - as AdminPurgeComment, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgeCommentViewImpl extends _AdminPurgeCommentView { - const _$AdminPurgeCommentViewImpl( - {required this.adminPurgeComment, this.admin, required this.post}) - : super._(); - - factory _$AdminPurgeCommentViewImpl.fromJson(Map json) => - _$$AdminPurgeCommentViewImplFromJson(json); - - @override - final AdminPurgeComment adminPurgeComment; -// v0.18.0 - @override - final Person? admin; -// v0.18.0 - @override - final Post post; - - @override - String toString() { - return 'AdminPurgeCommentView(adminPurgeComment: $adminPurgeComment, admin: $admin, post: $post)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgeCommentViewImpl && - (identical(other.adminPurgeComment, adminPurgeComment) || - other.adminPurgeComment == adminPurgeComment) && - (identical(other.admin, admin) || other.admin == admin) && - (identical(other.post, post) || other.post == post)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, adminPurgeComment, admin, post); - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgeCommentViewImplCopyWith<_$AdminPurgeCommentViewImpl> - get copyWith => __$$AdminPurgeCommentViewImplCopyWithImpl< - _$AdminPurgeCommentViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgeCommentViewImplToJson( - this, - ); - } -} - -abstract class _AdminPurgeCommentView extends AdminPurgeCommentView { - const factory _AdminPurgeCommentView( - {required final AdminPurgeComment adminPurgeComment, - final Person? admin, - required final Post post}) = _$AdminPurgeCommentViewImpl; - const _AdminPurgeCommentView._() : super._(); - - factory _AdminPurgeCommentView.fromJson(Map json) = - _$AdminPurgeCommentViewImpl.fromJson; - - @override - AdminPurgeComment get adminPurgeComment; // v0.18.0 - @override - Person? get admin; // v0.18.0 - @override - Post get post; - - /// Create a copy of AdminPurgeCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgeCommentViewImplCopyWith<_$AdminPurgeCommentViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/admin_purge_comment_view.g.dart b/lib/src/v3/views/admin_purge_comment_view.g.dart deleted file mode 100644 index aa5f8550..00000000 --- a/lib/src/v3/views/admin_purge_comment_view.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_comment_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgeCommentViewImpl _$$AdminPurgeCommentViewImplFromJson( - Map json) => - _$AdminPurgeCommentViewImpl( - adminPurgeComment: AdminPurgeComment.fromJson( - json['admin_purge_comment'] as Map), - admin: json['admin'] == null - ? null - : Person.fromJson(json['admin'] as Map), - post: Post.fromJson(json['post'] as Map), - ); - -Map _$$AdminPurgeCommentViewImplToJson( - _$AdminPurgeCommentViewImpl instance) => - { - 'admin_purge_comment': instance.adminPurgeComment.toJson(), - 'admin': instance.admin?.toJson(), - 'post': instance.post.toJson(), - }; diff --git a/lib/src/v3/views/admin_purge_community_view.dart b/lib/src/v3/views/admin_purge_community_view.dart deleted file mode 100644 index 19a8af54..00000000 --- a/lib/src/v3/views/admin_purge_community_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'admin_purge_community_view.freezed.dart'; -part 'admin_purge_community_view.g.dart'; - -@freezed -class AdminPurgeCommunityView with _$AdminPurgeCommunityView { - @modelSerde - const factory AdminPurgeCommunityView({ - required AdminPurgeCommunity adminPurgeCommunity, // v0.18.0 - Person? admin, // v0.18.0 - }) = _AdminPurgeCommunityView; - - const AdminPurgeCommunityView._(); - factory AdminPurgeCommunityView.fromJson(Map json) => - _$AdminPurgeCommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/admin_purge_community_view.freezed.dart b/lib/src/v3/views/admin_purge_community_view.freezed.dart deleted file mode 100644 index c19dffa8..00000000 --- a/lib/src/v3/views/admin_purge_community_view.freezed.dart +++ /dev/null @@ -1,228 +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 'admin_purge_community_view.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'); - -AdminPurgeCommunityView _$AdminPurgeCommunityViewFromJson( - Map json) { - return _AdminPurgeCommunityView.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgeCommunityView { - AdminPurgeCommunity get adminPurgeCommunity => - throw _privateConstructorUsedError; // v0.18.0 - Person? get admin => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgeCommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgeCommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgeCommunityViewCopyWith<$Res> { - factory $AdminPurgeCommunityViewCopyWith(AdminPurgeCommunityView value, - $Res Function(AdminPurgeCommunityView) then) = - _$AdminPurgeCommunityViewCopyWithImpl<$Res, AdminPurgeCommunityView>; - @useResult - $Res call({AdminPurgeCommunity adminPurgeCommunity, Person? admin}); - - $AdminPurgeCommunityCopyWith<$Res> get adminPurgeCommunity; - $PersonCopyWith<$Res>? get admin; -} - -/// @nodoc -class _$AdminPurgeCommunityViewCopyWithImpl<$Res, - $Val extends AdminPurgeCommunityView> - implements $AdminPurgeCommunityViewCopyWith<$Res> { - _$AdminPurgeCommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgeCommunity = null, - Object? admin = freezed, - }) { - return _then(_value.copyWith( - adminPurgeCommunity: null == adminPurgeCommunity - ? _value.adminPurgeCommunity - : adminPurgeCommunity // ignore: cast_nullable_to_non_nullable - as AdminPurgeCommunity, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - ) as $Val); - } - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $AdminPurgeCommunityCopyWith<$Res> get adminPurgeCommunity { - return $AdminPurgeCommunityCopyWith<$Res>(_value.adminPurgeCommunity, - (value) { - return _then(_value.copyWith(adminPurgeCommunity: value) as $Val); - }); - } - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get admin { - if (_value.admin == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.admin!, (value) { - return _then(_value.copyWith(admin: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$AdminPurgeCommunityViewImplCopyWith<$Res> - implements $AdminPurgeCommunityViewCopyWith<$Res> { - factory _$$AdminPurgeCommunityViewImplCopyWith( - _$AdminPurgeCommunityViewImpl value, - $Res Function(_$AdminPurgeCommunityViewImpl) then) = - __$$AdminPurgeCommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({AdminPurgeCommunity adminPurgeCommunity, Person? admin}); - - @override - $AdminPurgeCommunityCopyWith<$Res> get adminPurgeCommunity; - @override - $PersonCopyWith<$Res>? get admin; -} - -/// @nodoc -class __$$AdminPurgeCommunityViewImplCopyWithImpl<$Res> - extends _$AdminPurgeCommunityViewCopyWithImpl<$Res, - _$AdminPurgeCommunityViewImpl> - implements _$$AdminPurgeCommunityViewImplCopyWith<$Res> { - __$$AdminPurgeCommunityViewImplCopyWithImpl( - _$AdminPurgeCommunityViewImpl _value, - $Res Function(_$AdminPurgeCommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgeCommunity = null, - Object? admin = freezed, - }) { - return _then(_$AdminPurgeCommunityViewImpl( - adminPurgeCommunity: null == adminPurgeCommunity - ? _value.adminPurgeCommunity - : adminPurgeCommunity // ignore: cast_nullable_to_non_nullable - as AdminPurgeCommunity, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgeCommunityViewImpl extends _AdminPurgeCommunityView { - const _$AdminPurgeCommunityViewImpl( - {required this.adminPurgeCommunity, this.admin}) - : super._(); - - factory _$AdminPurgeCommunityViewImpl.fromJson(Map json) => - _$$AdminPurgeCommunityViewImplFromJson(json); - - @override - final AdminPurgeCommunity adminPurgeCommunity; -// v0.18.0 - @override - final Person? admin; - - @override - String toString() { - return 'AdminPurgeCommunityView(adminPurgeCommunity: $adminPurgeCommunity, admin: $admin)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgeCommunityViewImpl && - (identical(other.adminPurgeCommunity, adminPurgeCommunity) || - other.adminPurgeCommunity == adminPurgeCommunity) && - (identical(other.admin, admin) || other.admin == admin)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, adminPurgeCommunity, admin); - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgeCommunityViewImplCopyWith<_$AdminPurgeCommunityViewImpl> - get copyWith => __$$AdminPurgeCommunityViewImplCopyWithImpl< - _$AdminPurgeCommunityViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgeCommunityViewImplToJson( - this, - ); - } -} - -abstract class _AdminPurgeCommunityView extends AdminPurgeCommunityView { - const factory _AdminPurgeCommunityView( - {required final AdminPurgeCommunity adminPurgeCommunity, - final Person? admin}) = _$AdminPurgeCommunityViewImpl; - const _AdminPurgeCommunityView._() : super._(); - - factory _AdminPurgeCommunityView.fromJson(Map json) = - _$AdminPurgeCommunityViewImpl.fromJson; - - @override - AdminPurgeCommunity get adminPurgeCommunity; // v0.18.0 - @override - Person? get admin; - - /// Create a copy of AdminPurgeCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgeCommunityViewImplCopyWith<_$AdminPurgeCommunityViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/admin_purge_community_view.g.dart b/lib/src/v3/views/admin_purge_community_view.g.dart deleted file mode 100644 index 9ab595c1..00000000 --- a/lib/src/v3/views/admin_purge_community_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgeCommunityViewImpl _$$AdminPurgeCommunityViewImplFromJson( - Map json) => - _$AdminPurgeCommunityViewImpl( - adminPurgeCommunity: AdminPurgeCommunity.fromJson( - json['admin_purge_community'] as Map), - admin: json['admin'] == null - ? null - : Person.fromJson(json['admin'] as Map), - ); - -Map _$$AdminPurgeCommunityViewImplToJson( - _$AdminPurgeCommunityViewImpl instance) => - { - 'admin_purge_community': instance.adminPurgeCommunity.toJson(), - 'admin': instance.admin?.toJson(), - }; diff --git a/lib/src/v3/views/admin_purge_person_view.dart b/lib/src/v3/views/admin_purge_person_view.dart deleted file mode 100644 index e3d61842..00000000 --- a/lib/src/v3/views/admin_purge_person_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'admin_purge_person_view.freezed.dart'; -part 'admin_purge_person_view.g.dart'; - -@freezed -class AdminPurgePersonView with _$AdminPurgePersonView { - @modelSerde - const factory AdminPurgePersonView({ - required AdminPurgePerson adminPurgePerson, // v0.18.0 - Person? admin, // v0.18.0 - }) = _AdminPurgePersonView; - - const AdminPurgePersonView._(); - factory AdminPurgePersonView.fromJson(Map json) => - _$AdminPurgePersonViewFromJson(json); -} diff --git a/lib/src/v3/views/admin_purge_person_view.freezed.dart b/lib/src/v3/views/admin_purge_person_view.freezed.dart deleted file mode 100644 index 73f34c21..00000000 --- a/lib/src/v3/views/admin_purge_person_view.freezed.dart +++ /dev/null @@ -1,223 +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 'admin_purge_person_view.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'); - -AdminPurgePersonView _$AdminPurgePersonViewFromJson(Map json) { - return _AdminPurgePersonView.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgePersonView { - AdminPurgePerson get adminPurgePerson => - throw _privateConstructorUsedError; // v0.18.0 - Person? get admin => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgePersonView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgePersonViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgePersonViewCopyWith<$Res> { - factory $AdminPurgePersonViewCopyWith(AdminPurgePersonView value, - $Res Function(AdminPurgePersonView) then) = - _$AdminPurgePersonViewCopyWithImpl<$Res, AdminPurgePersonView>; - @useResult - $Res call({AdminPurgePerson adminPurgePerson, Person? admin}); - - $AdminPurgePersonCopyWith<$Res> get adminPurgePerson; - $PersonCopyWith<$Res>? get admin; -} - -/// @nodoc -class _$AdminPurgePersonViewCopyWithImpl<$Res, - $Val extends AdminPurgePersonView> - implements $AdminPurgePersonViewCopyWith<$Res> { - _$AdminPurgePersonViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgePerson = null, - Object? admin = freezed, - }) { - return _then(_value.copyWith( - adminPurgePerson: null == adminPurgePerson - ? _value.adminPurgePerson - : adminPurgePerson // ignore: cast_nullable_to_non_nullable - as AdminPurgePerson, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - ) as $Val); - } - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $AdminPurgePersonCopyWith<$Res> get adminPurgePerson { - return $AdminPurgePersonCopyWith<$Res>(_value.adminPurgePerson, (value) { - return _then(_value.copyWith(adminPurgePerson: value) as $Val); - }); - } - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get admin { - if (_value.admin == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.admin!, (value) { - return _then(_value.copyWith(admin: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$AdminPurgePersonViewImplCopyWith<$Res> - implements $AdminPurgePersonViewCopyWith<$Res> { - factory _$$AdminPurgePersonViewImplCopyWith(_$AdminPurgePersonViewImpl value, - $Res Function(_$AdminPurgePersonViewImpl) then) = - __$$AdminPurgePersonViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({AdminPurgePerson adminPurgePerson, Person? admin}); - - @override - $AdminPurgePersonCopyWith<$Res> get adminPurgePerson; - @override - $PersonCopyWith<$Res>? get admin; -} - -/// @nodoc -class __$$AdminPurgePersonViewImplCopyWithImpl<$Res> - extends _$AdminPurgePersonViewCopyWithImpl<$Res, _$AdminPurgePersonViewImpl> - implements _$$AdminPurgePersonViewImplCopyWith<$Res> { - __$$AdminPurgePersonViewImplCopyWithImpl(_$AdminPurgePersonViewImpl _value, - $Res Function(_$AdminPurgePersonViewImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgePerson = null, - Object? admin = freezed, - }) { - return _then(_$AdminPurgePersonViewImpl( - adminPurgePerson: null == adminPurgePerson - ? _value.adminPurgePerson - : adminPurgePerson // ignore: cast_nullable_to_non_nullable - as AdminPurgePerson, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgePersonViewImpl extends _AdminPurgePersonView { - const _$AdminPurgePersonViewImpl({required this.adminPurgePerson, this.admin}) - : super._(); - - factory _$AdminPurgePersonViewImpl.fromJson(Map json) => - _$$AdminPurgePersonViewImplFromJson(json); - - @override - final AdminPurgePerson adminPurgePerson; -// v0.18.0 - @override - final Person? admin; - - @override - String toString() { - return 'AdminPurgePersonView(adminPurgePerson: $adminPurgePerson, admin: $admin)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgePersonViewImpl && - (identical(other.adminPurgePerson, adminPurgePerson) || - other.adminPurgePerson == adminPurgePerson) && - (identical(other.admin, admin) || other.admin == admin)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, adminPurgePerson, admin); - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgePersonViewImplCopyWith<_$AdminPurgePersonViewImpl> - get copyWith => - __$$AdminPurgePersonViewImplCopyWithImpl<_$AdminPurgePersonViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgePersonViewImplToJson( - this, - ); - } -} - -abstract class _AdminPurgePersonView extends AdminPurgePersonView { - const factory _AdminPurgePersonView( - {required final AdminPurgePerson adminPurgePerson, - final Person? admin}) = _$AdminPurgePersonViewImpl; - const _AdminPurgePersonView._() : super._(); - - factory _AdminPurgePersonView.fromJson(Map json) = - _$AdminPurgePersonViewImpl.fromJson; - - @override - AdminPurgePerson get adminPurgePerson; // v0.18.0 - @override - Person? get admin; - - /// Create a copy of AdminPurgePersonView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgePersonViewImplCopyWith<_$AdminPurgePersonViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/admin_purge_person_view.g.dart b/lib/src/v3/views/admin_purge_person_view.g.dart deleted file mode 100644 index b0f6e6ea..00000000 --- a/lib/src/v3/views/admin_purge_person_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_person_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgePersonViewImpl _$$AdminPurgePersonViewImplFromJson( - Map json) => - _$AdminPurgePersonViewImpl( - adminPurgePerson: AdminPurgePerson.fromJson( - json['admin_purge_person'] as Map), - admin: json['admin'] == null - ? null - : Person.fromJson(json['admin'] as Map), - ); - -Map _$$AdminPurgePersonViewImplToJson( - _$AdminPurgePersonViewImpl instance) => - { - 'admin_purge_person': instance.adminPurgePerson.toJson(), - 'admin': instance.admin?.toJson(), - }; diff --git a/lib/src/v3/views/admin_purge_post_view.dart b/lib/src/v3/views/admin_purge_post_view.dart deleted file mode 100644 index cb575a5e..00000000 --- a/lib/src/v3/views/admin_purge_post_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'admin_purge_post_view.freezed.dart'; -part 'admin_purge_post_view.g.dart'; - -@freezed -class AdminPurgePostView with _$AdminPurgePostView { - @modelSerde - const factory AdminPurgePostView({ - required AdminPurgePost adminPurgePost, // v0.18.0 - Person? admin, // v0.18.0 - required Community community, // v0.18.0 - }) = _AdminPurgePostView; - - const AdminPurgePostView._(); - factory AdminPurgePostView.fromJson(Map json) => - _$AdminPurgePostViewFromJson(json); -} diff --git a/lib/src/v3/views/admin_purge_post_view.freezed.dart b/lib/src/v3/views/admin_purge_post_view.freezed.dart deleted file mode 100644 index c60d0189..00000000 --- a/lib/src/v3/views/admin_purge_post_view.freezed.dart +++ /dev/null @@ -1,257 +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 'admin_purge_post_view.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'); - -AdminPurgePostView _$AdminPurgePostViewFromJson(Map json) { - return _AdminPurgePostView.fromJson(json); -} - -/// @nodoc -mixin _$AdminPurgePostView { - AdminPurgePost get adminPurgePost => - throw _privateConstructorUsedError; // v0.18.0 - Person? get admin => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this AdminPurgePostView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $AdminPurgePostViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AdminPurgePostViewCopyWith<$Res> { - factory $AdminPurgePostViewCopyWith( - AdminPurgePostView value, $Res Function(AdminPurgePostView) then) = - _$AdminPurgePostViewCopyWithImpl<$Res, AdminPurgePostView>; - @useResult - $Res call( - {AdminPurgePost adminPurgePost, Person? admin, Community community}); - - $AdminPurgePostCopyWith<$Res> get adminPurgePost; - $PersonCopyWith<$Res>? get admin; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$AdminPurgePostViewCopyWithImpl<$Res, $Val extends AdminPurgePostView> - implements $AdminPurgePostViewCopyWith<$Res> { - _$AdminPurgePostViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgePost = null, - Object? admin = freezed, - Object? community = null, - }) { - return _then(_value.copyWith( - adminPurgePost: null == adminPurgePost - ? _value.adminPurgePost - : adminPurgePost // ignore: cast_nullable_to_non_nullable - as AdminPurgePost, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $AdminPurgePostCopyWith<$Res> get adminPurgePost { - return $AdminPurgePostCopyWith<$Res>(_value.adminPurgePost, (value) { - return _then(_value.copyWith(adminPurgePost: value) as $Val); - }); - } - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get admin { - if (_value.admin == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.admin!, (value) { - return _then(_value.copyWith(admin: value) as $Val); - }); - } - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$AdminPurgePostViewImplCopyWith<$Res> - implements $AdminPurgePostViewCopyWith<$Res> { - factory _$$AdminPurgePostViewImplCopyWith(_$AdminPurgePostViewImpl value, - $Res Function(_$AdminPurgePostViewImpl) then) = - __$$AdminPurgePostViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {AdminPurgePost adminPurgePost, Person? admin, Community community}); - - @override - $AdminPurgePostCopyWith<$Res> get adminPurgePost; - @override - $PersonCopyWith<$Res>? get admin; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$AdminPurgePostViewImplCopyWithImpl<$Res> - extends _$AdminPurgePostViewCopyWithImpl<$Res, _$AdminPurgePostViewImpl> - implements _$$AdminPurgePostViewImplCopyWith<$Res> { - __$$AdminPurgePostViewImplCopyWithImpl(_$AdminPurgePostViewImpl _value, - $Res Function(_$AdminPurgePostViewImpl) _then) - : super(_value, _then); - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? adminPurgePost = null, - Object? admin = freezed, - Object? community = null, - }) { - return _then(_$AdminPurgePostViewImpl( - adminPurgePost: null == adminPurgePost - ? _value.adminPurgePost - : adminPurgePost // ignore: cast_nullable_to_non_nullable - as AdminPurgePost, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$AdminPurgePostViewImpl extends _AdminPurgePostView { - const _$AdminPurgePostViewImpl( - {required this.adminPurgePost, this.admin, required this.community}) - : super._(); - - factory _$AdminPurgePostViewImpl.fromJson(Map json) => - _$$AdminPurgePostViewImplFromJson(json); - - @override - final AdminPurgePost adminPurgePost; -// v0.18.0 - @override - final Person? admin; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'AdminPurgePostView(adminPurgePost: $adminPurgePost, admin: $admin, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AdminPurgePostViewImpl && - (identical(other.adminPurgePost, adminPurgePost) || - other.adminPurgePost == adminPurgePost) && - (identical(other.admin, admin) || other.admin == admin) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, adminPurgePost, admin, community); - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$AdminPurgePostViewImplCopyWith<_$AdminPurgePostViewImpl> get copyWith => - __$$AdminPurgePostViewImplCopyWithImpl<_$AdminPurgePostViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$AdminPurgePostViewImplToJson( - this, - ); - } -} - -abstract class _AdminPurgePostView extends AdminPurgePostView { - const factory _AdminPurgePostView( - {required final AdminPurgePost adminPurgePost, - final Person? admin, - required final Community community}) = _$AdminPurgePostViewImpl; - const _AdminPurgePostView._() : super._(); - - factory _AdminPurgePostView.fromJson(Map json) = - _$AdminPurgePostViewImpl.fromJson; - - @override - AdminPurgePost get adminPurgePost; // v0.18.0 - @override - Person? get admin; // v0.18.0 - @override - Community get community; - - /// Create a copy of AdminPurgePostView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$AdminPurgePostViewImplCopyWith<_$AdminPurgePostViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/admin_purge_post_view.g.dart b/lib/src/v3/views/admin_purge_post_view.g.dart deleted file mode 100644 index 9560bf80..00000000 --- a/lib/src/v3/views/admin_purge_post_view.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'admin_purge_post_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AdminPurgePostViewImpl _$$AdminPurgePostViewImplFromJson( - Map json) => - _$AdminPurgePostViewImpl( - adminPurgePost: AdminPurgePost.fromJson( - json['admin_purge_post'] as Map), - admin: json['admin'] == null - ? null - : Person.fromJson(json['admin'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$AdminPurgePostViewImplToJson( - _$AdminPurgePostViewImpl instance) => - { - 'admin_purge_post': instance.adminPurgePost.toJson(), - 'admin': instance.admin?.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/comment_reply_view.dart b/lib/src/v3/views/comment_reply_view.dart deleted file mode 100644 index a2a82e88..00000000 --- a/lib/src/v3/views/comment_reply_view.dart +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../enums/enums.dart'; -import '../models/models.dart'; - -part 'comment_reply_view.freezed.dart'; -part 'comment_reply_view.g.dart'; - -@freezed -class CommentReplyView with _$CommentReplyView { - @modelSerde - const factory CommentReplyView({ - required CommentReply commentReply, // v0.18.0 - required Comment comment, // v0.18.0 - required Person creator, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - required Person recipient, // v0.18.0 - required CommentAggregates counts, // v0.18.0 - required bool creatorBannedFromCommunity, // v0.18.0 - bool? bannedFromCommunity, // v0.19.4 (required) - bool? creatorIsModerator, // v0.19.0 (required) - bool? creatorIsAdmin, // v0.19.0 (required) - required SubscribedType subscribed, // v0.18.0 - required bool saved, // v0.18.0 - required bool creatorBlocked, // v0.18.0 - num? myVote, // v0.18.0 - }) = _CommentReplyView; - - const CommentReplyView._(); - factory CommentReplyView.fromJson(Map json) => - _$CommentReplyViewFromJson(json); -} diff --git a/lib/src/v3/views/comment_reply_view.freezed.dart b/lib/src/v3/views/comment_reply_view.freezed.dart deleted file mode 100644 index 4ced0e2e..00000000 --- a/lib/src/v3/views/comment_reply_view.freezed.dart +++ /dev/null @@ -1,592 +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 'comment_reply_view.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'); - -CommentReplyView _$CommentReplyViewFromJson(Map json) { - return _CommentReplyView.fromJson(json); -} - -/// @nodoc -mixin _$CommentReplyView { - CommentReply get commentReply => - throw _privateConstructorUsedError; // v0.18.0 - Comment get comment => throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get recipient => throw _privateConstructorUsedError; // v0.18.0 - CommentAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - bool? get bannedFromCommunity => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorIsModerator => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get creatorIsAdmin => - throw _privateConstructorUsedError; // v0.19.0 (required) - SubscribedType get subscribed => - throw _privateConstructorUsedError; // v0.18.0 - bool get saved => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBlocked => throw _privateConstructorUsedError; // v0.18.0 - num? get myVote => throw _privateConstructorUsedError; - - /// Serializes this CommentReplyView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentReplyViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentReplyViewCopyWith<$Res> { - factory $CommentReplyViewCopyWith( - CommentReplyView value, $Res Function(CommentReplyView) then) = - _$CommentReplyViewCopyWithImpl<$Res, CommentReplyView>; - @useResult - $Res call( - {CommentReply commentReply, - Comment comment, - Person creator, - Post post, - Community community, - Person recipient, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType subscribed, - bool saved, - bool creatorBlocked, - num? myVote}); - - $CommentReplyCopyWith<$Res> get commentReply; - $CommentCopyWith<$Res> get comment; - $PersonCopyWith<$Res> get creator; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get recipient; - $CommentAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$CommentReplyViewCopyWithImpl<$Res, $Val extends CommentReplyView> - implements $CommentReplyViewCopyWith<$Res> { - _$CommentReplyViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReply = null, - Object? comment = null, - Object? creator = null, - Object? post = null, - Object? community = null, - Object? recipient = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = null, - Object? saved = null, - Object? creatorBlocked = null, - Object? myVote = freezed, - }) { - return _then(_value.copyWith( - commentReply: null == commentReply - ? _value.commentReply - : commentReply // ignore: cast_nullable_to_non_nullable - as CommentReply, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - recipient: null == recipient - ? _value.recipient - : recipient // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as num?, - ) as $Val); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentReplyCopyWith<$Res> get commentReply { - return $CommentReplyCopyWith<$Res>(_value.commentReply, (value) { - return _then(_value.copyWith(commentReply: value) as $Val); - }); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentCopyWith<$Res> get comment { - return $CommentCopyWith<$Res>(_value.comment, (value) { - return _then(_value.copyWith(comment: value) as $Val); - }); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get recipient { - return $PersonCopyWith<$Res>(_value.recipient, (value) { - return _then(_value.copyWith(recipient: value) as $Val); - }); - } - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentAggregatesCopyWith<$Res> get counts { - return $CommentAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommentReplyViewImplCopyWith<$Res> - implements $CommentReplyViewCopyWith<$Res> { - factory _$$CommentReplyViewImplCopyWith(_$CommentReplyViewImpl value, - $Res Function(_$CommentReplyViewImpl) then) = - __$$CommentReplyViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommentReply commentReply, - Comment comment, - Person creator, - Post post, - Community community, - Person recipient, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType subscribed, - bool saved, - bool creatorBlocked, - num? myVote}); - - @override - $CommentReplyCopyWith<$Res> get commentReply; - @override - $CommentCopyWith<$Res> get comment; - @override - $PersonCopyWith<$Res> get creator; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get recipient; - @override - $CommentAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$CommentReplyViewImplCopyWithImpl<$Res> - extends _$CommentReplyViewCopyWithImpl<$Res, _$CommentReplyViewImpl> - implements _$$CommentReplyViewImplCopyWith<$Res> { - __$$CommentReplyViewImplCopyWithImpl(_$CommentReplyViewImpl _value, - $Res Function(_$CommentReplyViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReply = null, - Object? comment = null, - Object? creator = null, - Object? post = null, - Object? community = null, - Object? recipient = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = null, - Object? saved = null, - Object? creatorBlocked = null, - Object? myVote = freezed, - }) { - return _then(_$CommentReplyViewImpl( - commentReply: null == commentReply - ? _value.commentReply - : commentReply // ignore: cast_nullable_to_non_nullable - as CommentReply, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - recipient: null == recipient - ? _value.recipient - : recipient // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as num?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentReplyViewImpl extends _CommentReplyView { - const _$CommentReplyViewImpl( - {required this.commentReply, - required this.comment, - required this.creator, - required this.post, - required this.community, - required this.recipient, - required this.counts, - required this.creatorBannedFromCommunity, - this.bannedFromCommunity, - this.creatorIsModerator, - this.creatorIsAdmin, - required this.subscribed, - required this.saved, - required this.creatorBlocked, - this.myVote}) - : super._(); - - factory _$CommentReplyViewImpl.fromJson(Map json) => - _$$CommentReplyViewImplFromJson(json); - - @override - final CommentReply commentReply; -// v0.18.0 - @override - final Comment comment; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person recipient; -// v0.18.0 - @override - final CommentAggregates counts; -// v0.18.0 - @override - final bool creatorBannedFromCommunity; -// v0.18.0 - @override - final bool? bannedFromCommunity; -// v0.19.4 (required) - @override - final bool? creatorIsModerator; -// v0.19.0 (required) - @override - final bool? creatorIsAdmin; -// v0.19.0 (required) - @override - final SubscribedType subscribed; -// v0.18.0 - @override - final bool saved; -// v0.18.0 - @override - final bool creatorBlocked; -// v0.18.0 - @override - final num? myVote; - - @override - String toString() { - return 'CommentReplyView(commentReply: $commentReply, comment: $comment, creator: $creator, post: $post, community: $community, recipient: $recipient, counts: $counts, creatorBannedFromCommunity: $creatorBannedFromCommunity, bannedFromCommunity: $bannedFromCommunity, creatorIsModerator: $creatorIsModerator, creatorIsAdmin: $creatorIsAdmin, subscribed: $subscribed, saved: $saved, creatorBlocked: $creatorBlocked, myVote: $myVote)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentReplyViewImpl && - (identical(other.commentReply, commentReply) || - other.commentReply == commentReply) && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community) && - (identical(other.recipient, recipient) || - other.recipient == recipient) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.bannedFromCommunity, bannedFromCommunity) || - other.bannedFromCommunity == bannedFromCommunity) && - (identical(other.creatorIsModerator, creatorIsModerator) || - other.creatorIsModerator == creatorIsModerator) && - (identical(other.creatorIsAdmin, creatorIsAdmin) || - other.creatorIsAdmin == creatorIsAdmin) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.saved, saved) || other.saved == saved) && - (identical(other.creatorBlocked, creatorBlocked) || - other.creatorBlocked == creatorBlocked) && - (identical(other.myVote, myVote) || other.myVote == myVote)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - commentReply, - comment, - creator, - post, - community, - recipient, - counts, - creatorBannedFromCommunity, - bannedFromCommunity, - creatorIsModerator, - creatorIsAdmin, - subscribed, - saved, - creatorBlocked, - myVote); - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentReplyViewImplCopyWith<_$CommentReplyViewImpl> get copyWith => - __$$CommentReplyViewImplCopyWithImpl<_$CommentReplyViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommentReplyViewImplToJson( - this, - ); - } -} - -abstract class _CommentReplyView extends CommentReplyView { - const factory _CommentReplyView( - {required final CommentReply commentReply, - required final Comment comment, - required final Person creator, - required final Post post, - required final Community community, - required final Person recipient, - required final CommentAggregates counts, - required final bool creatorBannedFromCommunity, - final bool? bannedFromCommunity, - final bool? creatorIsModerator, - final bool? creatorIsAdmin, - required final SubscribedType subscribed, - required final bool saved, - required final bool creatorBlocked, - final num? myVote}) = _$CommentReplyViewImpl; - const _CommentReplyView._() : super._(); - - factory _CommentReplyView.fromJson(Map json) = - _$CommentReplyViewImpl.fromJson; - - @override - CommentReply get commentReply; // v0.18.0 - @override - Comment get comment; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get recipient; // v0.18.0 - @override - CommentAggregates get counts; // v0.18.0 - @override - bool get creatorBannedFromCommunity; // v0.18.0 - @override - bool? get bannedFromCommunity; // v0.19.4 (required) - @override - bool? get creatorIsModerator; // v0.19.0 (required) - @override - bool? get creatorIsAdmin; // v0.19.0 (required) - @override - SubscribedType get subscribed; // v0.18.0 - @override - bool get saved; // v0.18.0 - @override - bool get creatorBlocked; // v0.18.0 - @override - num? get myVote; - - /// Create a copy of CommentReplyView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentReplyViewImplCopyWith<_$CommentReplyViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/comment_reply_view.g.dart b/lib/src/v3/views/comment_reply_view.g.dart deleted file mode 100644 index 9bb02967..00000000 --- a/lib/src/v3/views/comment_reply_view.g.dart +++ /dev/null @@ -1,49 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_reply_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentReplyViewImpl _$$CommentReplyViewImplFromJson( - Map json) => - _$CommentReplyViewImpl( - commentReply: - CommentReply.fromJson(json['comment_reply'] as Map), - comment: Comment.fromJson(json['comment'] as Map), - creator: Person.fromJson(json['creator'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - recipient: Person.fromJson(json['recipient'] as Map), - counts: - CommentAggregates.fromJson(json['counts'] as Map), - creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, - bannedFromCommunity: json['banned_from_community'] as bool?, - creatorIsModerator: json['creator_is_moderator'] as bool?, - creatorIsAdmin: json['creator_is_admin'] as bool?, - subscribed: SubscribedType.fromJson(json['subscribed'] as String), - saved: json['saved'] as bool, - creatorBlocked: json['creator_blocked'] as bool, - myVote: json['my_vote'] as num?, - ); - -Map _$$CommentReplyViewImplToJson( - _$CommentReplyViewImpl instance) => - { - 'comment_reply': instance.commentReply.toJson(), - 'comment': instance.comment.toJson(), - 'creator': instance.creator.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - 'recipient': instance.recipient.toJson(), - 'counts': instance.counts.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'banned_from_community': instance.bannedFromCommunity, - 'creator_is_moderator': instance.creatorIsModerator, - 'creator_is_admin': instance.creatorIsAdmin, - 'subscribed': instance.subscribed.toJson(), - 'saved': instance.saved, - 'creator_blocked': instance.creatorBlocked, - 'my_vote': instance.myVote, - }; diff --git a/lib/src/v3/views/comment_report_view.dart b/lib/src/v3/views/comment_report_view.dart deleted file mode 100644 index b88a42ec..00000000 --- a/lib/src/v3/views/comment_report_view.dart +++ /dev/null @@ -1,33 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../v3.dart'; -import '../../utils/serde.dart'; - -part 'comment_report_view.freezed.dart'; -part 'comment_report_view.g.dart'; - -@freezed -class CommentReportView with _$CommentReportView { - @modelSerde - const factory CommentReportView({ - required CommentReport commentReport, // v0.18.0 - required Comment comment, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - required Person creator, // v0.18.0 - required Person commentCreator, // v0.18.0 - required CommentAggregates counts, // v0.18.0 - required bool creatorBannedFromCommunity, // v0.18.0 - bool? creatorIsModerator, // v0.19.4 (required) - bool? creatorIsAdmin, // v0.19.4 (required) - bool? creatorBlocked, // v0.19.4 (required) - SubscribedType? subscribed, // v0.19.4 (required) - bool? saved, // v0.19.4 (required) - num? myVote, // v0.18.0 - Person? resolver, // v0.18.0 - }) = _CommentReportView; - - const CommentReportView._(); - factory CommentReportView.fromJson(Map json) => - _$CommentReportViewFromJson(json); -} diff --git a/lib/src/v3/views/comment_report_view.freezed.dart b/lib/src/v3/views/comment_report_view.freezed.dart deleted file mode 100644 index f05cc994..00000000 --- a/lib/src/v3/views/comment_report_view.freezed.dart +++ /dev/null @@ -1,609 +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 'comment_report_view.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'); - -CommentReportView _$CommentReportViewFromJson(Map json) { - return _CommentReportView.fromJson(json); -} - -/// @nodoc -mixin _$CommentReportView { - CommentReport get commentReport => - throw _privateConstructorUsedError; // v0.18.0 - Comment get comment => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Person get commentCreator => throw _privateConstructorUsedError; // v0.18.0 - CommentAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - bool? get creatorIsModerator => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorIsAdmin => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorBlocked => - throw _privateConstructorUsedError; // v0.19.4 (required) - SubscribedType? get subscribed => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get saved => throw _privateConstructorUsedError; // v0.19.4 (required) - num? get myVote => throw _privateConstructorUsedError; // v0.18.0 - Person? get resolver => throw _privateConstructorUsedError; - - /// Serializes this CommentReportView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentReportViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentReportViewCopyWith<$Res> { - factory $CommentReportViewCopyWith( - CommentReportView value, $Res Function(CommentReportView) then) = - _$CommentReportViewCopyWithImpl<$Res, CommentReportView>; - @useResult - $Res call( - {CommentReport commentReport, - Comment comment, - Post post, - Community community, - Person creator, - Person commentCreator, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - bool? creatorBlocked, - SubscribedType? subscribed, - bool? saved, - num? myVote, - Person? resolver}); - - $CommentReportCopyWith<$Res> get commentReport; - $CommentCopyWith<$Res> get comment; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get creator; - $PersonCopyWith<$Res> get commentCreator; - $CommentAggregatesCopyWith<$Res> get counts; - $PersonCopyWith<$Res>? get resolver; -} - -/// @nodoc -class _$CommentReportViewCopyWithImpl<$Res, $Val extends CommentReportView> - implements $CommentReportViewCopyWith<$Res> { - _$CommentReportViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReport = null, - Object? comment = null, - Object? post = null, - Object? community = null, - Object? creator = null, - Object? commentCreator = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? creatorBlocked = freezed, - Object? subscribed = freezed, - Object? saved = freezed, - Object? myVote = freezed, - Object? resolver = freezed, - }) { - return _then(_value.copyWith( - commentReport: null == commentReport - ? _value.commentReport - : commentReport // ignore: cast_nullable_to_non_nullable - as CommentReport, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - commentCreator: null == commentCreator - ? _value.commentCreator - : commentCreator // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - creatorBlocked: freezed == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: freezed == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType?, - saved: freezed == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool?, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as num?, - resolver: freezed == resolver - ? _value.resolver - : resolver // ignore: cast_nullable_to_non_nullable - as Person?, - ) as $Val); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentReportCopyWith<$Res> get commentReport { - return $CommentReportCopyWith<$Res>(_value.commentReport, (value) { - return _then(_value.copyWith(commentReport: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentCopyWith<$Res> get comment { - return $CommentCopyWith<$Res>(_value.comment, (value) { - return _then(_value.copyWith(comment: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get commentCreator { - return $PersonCopyWith<$Res>(_value.commentCreator, (value) { - return _then(_value.copyWith(commentCreator: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentAggregatesCopyWith<$Res> get counts { - return $CommentAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get resolver { - if (_value.resolver == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.resolver!, (value) { - return _then(_value.copyWith(resolver: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommentReportViewImplCopyWith<$Res> - implements $CommentReportViewCopyWith<$Res> { - factory _$$CommentReportViewImplCopyWith(_$CommentReportViewImpl value, - $Res Function(_$CommentReportViewImpl) then) = - __$$CommentReportViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {CommentReport commentReport, - Comment comment, - Post post, - Community community, - Person creator, - Person commentCreator, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - bool? creatorBlocked, - SubscribedType? subscribed, - bool? saved, - num? myVote, - Person? resolver}); - - @override - $CommentReportCopyWith<$Res> get commentReport; - @override - $CommentCopyWith<$Res> get comment; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get creator; - @override - $PersonCopyWith<$Res> get commentCreator; - @override - $CommentAggregatesCopyWith<$Res> get counts; - @override - $PersonCopyWith<$Res>? get resolver; -} - -/// @nodoc -class __$$CommentReportViewImplCopyWithImpl<$Res> - extends _$CommentReportViewCopyWithImpl<$Res, _$CommentReportViewImpl> - implements _$$CommentReportViewImplCopyWith<$Res> { - __$$CommentReportViewImplCopyWithImpl(_$CommentReportViewImpl _value, - $Res Function(_$CommentReportViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? commentReport = null, - Object? comment = null, - Object? post = null, - Object? community = null, - Object? creator = null, - Object? commentCreator = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? creatorBlocked = freezed, - Object? subscribed = freezed, - Object? saved = freezed, - Object? myVote = freezed, - Object? resolver = freezed, - }) { - return _then(_$CommentReportViewImpl( - commentReport: null == commentReport - ? _value.commentReport - : commentReport // ignore: cast_nullable_to_non_nullable - as CommentReport, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - commentCreator: null == commentCreator - ? _value.commentCreator - : commentCreator // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - creatorBlocked: freezed == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: freezed == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType?, - saved: freezed == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool?, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as num?, - resolver: freezed == resolver - ? _value.resolver - : resolver // ignore: cast_nullable_to_non_nullable - as Person?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentReportViewImpl extends _CommentReportView { - const _$CommentReportViewImpl( - {required this.commentReport, - required this.comment, - required this.post, - required this.community, - required this.creator, - required this.commentCreator, - required this.counts, - required this.creatorBannedFromCommunity, - this.creatorIsModerator, - this.creatorIsAdmin, - this.creatorBlocked, - this.subscribed, - this.saved, - this.myVote, - this.resolver}) - : super._(); - - factory _$CommentReportViewImpl.fromJson(Map json) => - _$$CommentReportViewImplFromJson(json); - - @override - final CommentReport commentReport; -// v0.18.0 - @override - final Comment comment; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Person commentCreator; -// v0.18.0 - @override - final CommentAggregates counts; -// v0.18.0 - @override - final bool creatorBannedFromCommunity; -// v0.18.0 - @override - final bool? creatorIsModerator; -// v0.19.4 (required) - @override - final bool? creatorIsAdmin; -// v0.19.4 (required) - @override - final bool? creatorBlocked; -// v0.19.4 (required) - @override - final SubscribedType? subscribed; -// v0.19.4 (required) - @override - final bool? saved; -// v0.19.4 (required) - @override - final num? myVote; -// v0.18.0 - @override - final Person? resolver; - - @override - String toString() { - return 'CommentReportView(commentReport: $commentReport, comment: $comment, post: $post, community: $community, creator: $creator, commentCreator: $commentCreator, counts: $counts, creatorBannedFromCommunity: $creatorBannedFromCommunity, creatorIsModerator: $creatorIsModerator, creatorIsAdmin: $creatorIsAdmin, creatorBlocked: $creatorBlocked, subscribed: $subscribed, saved: $saved, myVote: $myVote, resolver: $resolver)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentReportViewImpl && - (identical(other.commentReport, commentReport) || - other.commentReport == commentReport) && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.commentCreator, commentCreator) || - other.commentCreator == commentCreator) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.creatorIsModerator, creatorIsModerator) || - other.creatorIsModerator == creatorIsModerator) && - (identical(other.creatorIsAdmin, creatorIsAdmin) || - other.creatorIsAdmin == creatorIsAdmin) && - (identical(other.creatorBlocked, creatorBlocked) || - other.creatorBlocked == creatorBlocked) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.saved, saved) || other.saved == saved) && - (identical(other.myVote, myVote) || other.myVote == myVote) && - (identical(other.resolver, resolver) || - other.resolver == resolver)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - commentReport, - comment, - post, - community, - creator, - commentCreator, - counts, - creatorBannedFromCommunity, - creatorIsModerator, - creatorIsAdmin, - creatorBlocked, - subscribed, - saved, - myVote, - resolver); - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentReportViewImplCopyWith<_$CommentReportViewImpl> get copyWith => - __$$CommentReportViewImplCopyWithImpl<_$CommentReportViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommentReportViewImplToJson( - this, - ); - } -} - -abstract class _CommentReportView extends CommentReportView { - const factory _CommentReportView( - {required final CommentReport commentReport, - required final Comment comment, - required final Post post, - required final Community community, - required final Person creator, - required final Person commentCreator, - required final CommentAggregates counts, - required final bool creatorBannedFromCommunity, - final bool? creatorIsModerator, - final bool? creatorIsAdmin, - final bool? creatorBlocked, - final SubscribedType? subscribed, - final bool? saved, - final num? myVote, - final Person? resolver}) = _$CommentReportViewImpl; - const _CommentReportView._() : super._(); - - factory _CommentReportView.fromJson(Map json) = - _$CommentReportViewImpl.fromJson; - - @override - CommentReport get commentReport; // v0.18.0 - @override - Comment get comment; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Person get commentCreator; // v0.18.0 - @override - CommentAggregates get counts; // v0.18.0 - @override - bool get creatorBannedFromCommunity; // v0.18.0 - @override - bool? get creatorIsModerator; // v0.19.4 (required) - @override - bool? get creatorIsAdmin; // v0.19.4 (required) - @override - bool? get creatorBlocked; // v0.19.4 (required) - @override - SubscribedType? get subscribed; // v0.19.4 (required) - @override - bool? get saved; // v0.19.4 (required) - @override - num? get myVote; // v0.18.0 - @override - Person? get resolver; - - /// Create a copy of CommentReportView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentReportViewImplCopyWith<_$CommentReportViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/comment_report_view.g.dart b/lib/src/v3/views/comment_report_view.g.dart deleted file mode 100644 index d7aa2095..00000000 --- a/lib/src/v3/views/comment_report_view.g.dart +++ /dev/null @@ -1,54 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_report_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentReportViewImpl _$$CommentReportViewImplFromJson( - Map json) => - _$CommentReportViewImpl( - commentReport: CommentReport.fromJson( - json['comment_report'] as Map), - comment: Comment.fromJson(json['comment'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - creator: Person.fromJson(json['creator'] as Map), - commentCreator: - Person.fromJson(json['comment_creator'] as Map), - counts: - CommentAggregates.fromJson(json['counts'] as Map), - creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, - creatorIsModerator: json['creator_is_moderator'] as bool?, - creatorIsAdmin: json['creator_is_admin'] as bool?, - creatorBlocked: json['creator_blocked'] as bool?, - subscribed: json['subscribed'] == null - ? null - : SubscribedType.fromJson(json['subscribed'] as String), - saved: json['saved'] as bool?, - myVote: json['my_vote'] as num?, - resolver: json['resolver'] == null - ? null - : Person.fromJson(json['resolver'] as Map), - ); - -Map _$$CommentReportViewImplToJson( - _$CommentReportViewImpl instance) => - { - 'comment_report': instance.commentReport.toJson(), - 'comment': instance.comment.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - 'creator': instance.creator.toJson(), - 'comment_creator': instance.commentCreator.toJson(), - 'counts': instance.counts.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'creator_is_moderator': instance.creatorIsModerator, - 'creator_is_admin': instance.creatorIsAdmin, - 'creator_blocked': instance.creatorBlocked, - 'subscribed': instance.subscribed?.toJson(), - 'saved': instance.saved, - 'my_vote': instance.myVote, - 'resolver': instance.resolver?.toJson(), - }; diff --git a/lib/src/v3/views/comment_view.dart b/lib/src/v3/views/comment_view.dart deleted file mode 100644 index 44dcb599..00000000 --- a/lib/src/v3/views/comment_view.dart +++ /dev/null @@ -1,32 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../enums/enums.dart'; -import '../models/models.dart'; - -part 'comment_view.freezed.dart'; -part 'comment_view.g.dart'; - -@freezed -class CommentView with _$CommentView { - @modelSerde - const factory CommentView({ - required Comment comment, // v0.18.0 - required Person creator, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - required CommentAggregates counts, // v0.18.0 - required bool creatorBannedFromCommunity, // v0.18.0 - bool? bannedFromCommunity, // v0.19.4 (required) - bool? creatorIsModerator, // v0.19.0 (required) - bool? creatorIsAdmin, // v0.19.0 (required) - required SubscribedType subscribed, // v0.18.0 - required bool saved, // v0.18.0 - required bool creatorBlocked, // v0.18.0 - int? myVote, // v0.18.0 - }) = _CommentView; - - const CommentView._(); - factory CommentView.fromJson(Map json) => - _$CommentViewFromJson(json); -} diff --git a/lib/src/v3/views/comment_view.freezed.dart b/lib/src/v3/views/comment_view.freezed.dart deleted file mode 100644 index b1963a57..00000000 --- a/lib/src/v3/views/comment_view.freezed.dart +++ /dev/null @@ -1,518 +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 'comment_view.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'); - -CommentView _$CommentViewFromJson(Map json) { - return _CommentView.fromJson(json); -} - -/// @nodoc -mixin _$CommentView { - Comment get comment => throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - CommentAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - bool? get bannedFromCommunity => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorIsModerator => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get creatorIsAdmin => - throw _privateConstructorUsedError; // v0.19.0 (required) - SubscribedType get subscribed => - throw _privateConstructorUsedError; // v0.18.0 - bool get saved => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBlocked => throw _privateConstructorUsedError; // v0.18.0 - int? get myVote => throw _privateConstructorUsedError; - - /// Serializes this CommentView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommentViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommentViewCopyWith<$Res> { - factory $CommentViewCopyWith( - CommentView value, $Res Function(CommentView) then) = - _$CommentViewCopyWithImpl<$Res, CommentView>; - @useResult - $Res call( - {Comment comment, - Person creator, - Post post, - Community community, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType subscribed, - bool saved, - bool creatorBlocked, - int? myVote}); - - $CommentCopyWith<$Res> get comment; - $PersonCopyWith<$Res> get creator; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; - $CommentAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$CommentViewCopyWithImpl<$Res, $Val extends CommentView> - implements $CommentViewCopyWith<$Res> { - _$CommentViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? comment = null, - Object? creator = null, - Object? post = null, - Object? community = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = null, - Object? saved = null, - Object? creatorBlocked = null, - Object? myVote = freezed, - }) { - return _then(_value.copyWith( - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentCopyWith<$Res> get comment { - return $CommentCopyWith<$Res>(_value.comment, (value) { - return _then(_value.copyWith(comment: value) as $Val); - }); - } - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentAggregatesCopyWith<$Res> get counts { - return $CommentAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommentViewImplCopyWith<$Res> - implements $CommentViewCopyWith<$Res> { - factory _$$CommentViewImplCopyWith( - _$CommentViewImpl value, $Res Function(_$CommentViewImpl) then) = - __$$CommentViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {Comment comment, - Person creator, - Post post, - Community community, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType subscribed, - bool saved, - bool creatorBlocked, - int? myVote}); - - @override - $CommentCopyWith<$Res> get comment; - @override - $PersonCopyWith<$Res> get creator; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; - @override - $CommentAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$CommentViewImplCopyWithImpl<$Res> - extends _$CommentViewCopyWithImpl<$Res, _$CommentViewImpl> - implements _$$CommentViewImplCopyWith<$Res> { - __$$CommentViewImplCopyWithImpl( - _$CommentViewImpl _value, $Res Function(_$CommentViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? comment = null, - Object? creator = null, - Object? post = null, - Object? community = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = null, - Object? saved = null, - Object? creatorBlocked = null, - Object? myVote = freezed, - }) { - return _then(_$CommentViewImpl( - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommentViewImpl extends _CommentView { - const _$CommentViewImpl( - {required this.comment, - required this.creator, - required this.post, - required this.community, - required this.counts, - required this.creatorBannedFromCommunity, - this.bannedFromCommunity, - this.creatorIsModerator, - this.creatorIsAdmin, - required this.subscribed, - required this.saved, - required this.creatorBlocked, - this.myVote}) - : super._(); - - factory _$CommentViewImpl.fromJson(Map json) => - _$$CommentViewImplFromJson(json); - - @override - final Comment comment; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final CommentAggregates counts; -// v0.18.0 - @override - final bool creatorBannedFromCommunity; -// v0.18.0 - @override - final bool? bannedFromCommunity; -// v0.19.4 (required) - @override - final bool? creatorIsModerator; -// v0.19.0 (required) - @override - final bool? creatorIsAdmin; -// v0.19.0 (required) - @override - final SubscribedType subscribed; -// v0.18.0 - @override - final bool saved; -// v0.18.0 - @override - final bool creatorBlocked; -// v0.18.0 - @override - final int? myVote; - - @override - String toString() { - return 'CommentView(comment: $comment, creator: $creator, post: $post, community: $community, counts: $counts, creatorBannedFromCommunity: $creatorBannedFromCommunity, bannedFromCommunity: $bannedFromCommunity, creatorIsModerator: $creatorIsModerator, creatorIsAdmin: $creatorIsAdmin, subscribed: $subscribed, saved: $saved, creatorBlocked: $creatorBlocked, myVote: $myVote)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommentViewImpl && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.bannedFromCommunity, bannedFromCommunity) || - other.bannedFromCommunity == bannedFromCommunity) && - (identical(other.creatorIsModerator, creatorIsModerator) || - other.creatorIsModerator == creatorIsModerator) && - (identical(other.creatorIsAdmin, creatorIsAdmin) || - other.creatorIsAdmin == creatorIsAdmin) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.saved, saved) || other.saved == saved) && - (identical(other.creatorBlocked, creatorBlocked) || - other.creatorBlocked == creatorBlocked) && - (identical(other.myVote, myVote) || other.myVote == myVote)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - comment, - creator, - post, - community, - counts, - creatorBannedFromCommunity, - bannedFromCommunity, - creatorIsModerator, - creatorIsAdmin, - subscribed, - saved, - creatorBlocked, - myVote); - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommentViewImplCopyWith<_$CommentViewImpl> get copyWith => - __$$CommentViewImplCopyWithImpl<_$CommentViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommentViewImplToJson( - this, - ); - } -} - -abstract class _CommentView extends CommentView { - const factory _CommentView( - {required final Comment comment, - required final Person creator, - required final Post post, - required final Community community, - required final CommentAggregates counts, - required final bool creatorBannedFromCommunity, - final bool? bannedFromCommunity, - final bool? creatorIsModerator, - final bool? creatorIsAdmin, - required final SubscribedType subscribed, - required final bool saved, - required final bool creatorBlocked, - final int? myVote}) = _$CommentViewImpl; - const _CommentView._() : super._(); - - factory _CommentView.fromJson(Map json) = - _$CommentViewImpl.fromJson; - - @override - Comment get comment; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - CommentAggregates get counts; // v0.18.0 - @override - bool get creatorBannedFromCommunity; // v0.18.0 - @override - bool? get bannedFromCommunity; // v0.19.4 (required) - @override - bool? get creatorIsModerator; // v0.19.0 (required) - @override - bool? get creatorIsAdmin; // v0.19.0 (required) - @override - SubscribedType get subscribed; // v0.18.0 - @override - bool get saved; // v0.18.0 - @override - bool get creatorBlocked; // v0.18.0 - @override - int? get myVote; - - /// Create a copy of CommentView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommentViewImplCopyWith<_$CommentViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/comment_view.g.dart b/lib/src/v3/views/comment_view.g.dart deleted file mode 100644 index b81c60d5..00000000 --- a/lib/src/v3/views/comment_view.g.dart +++ /dev/null @@ -1,42 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'comment_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommentViewImpl _$$CommentViewImplFromJson(Map json) => - _$CommentViewImpl( - comment: Comment.fromJson(json['comment'] as Map), - creator: Person.fromJson(json['creator'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - counts: - CommentAggregates.fromJson(json['counts'] as Map), - creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, - bannedFromCommunity: json['banned_from_community'] as bool?, - creatorIsModerator: json['creator_is_moderator'] as bool?, - creatorIsAdmin: json['creator_is_admin'] as bool?, - subscribed: SubscribedType.fromJson(json['subscribed'] as String), - saved: json['saved'] as bool, - creatorBlocked: json['creator_blocked'] as bool, - myVote: (json['my_vote'] as num?)?.toInt(), - ); - -Map _$$CommentViewImplToJson(_$CommentViewImpl instance) => - { - 'comment': instance.comment.toJson(), - 'creator': instance.creator.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - 'counts': instance.counts.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'banned_from_community': instance.bannedFromCommunity, - 'creator_is_moderator': instance.creatorIsModerator, - 'creator_is_admin': instance.creatorIsAdmin, - 'subscribed': instance.subscribed.toJson(), - 'saved': instance.saved, - 'creator_blocked': instance.creatorBlocked, - 'my_vote': instance.myVote, - }; diff --git a/lib/src/v3/views/community_block_view.dart b/lib/src/v3/views/community_block_view.dart deleted file mode 100644 index 893bfc7e..00000000 --- a/lib/src/v3/views/community_block_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'community_block_view.freezed.dart'; -part 'community_block_view.g.dart'; - -@freezed -class CommunityBlockView with _$CommunityBlockView { - @modelSerde - const factory CommunityBlockView({ - required Person person, // v0.18.0 - required Community community, // v0.18.0 - }) = _CommunityBlockView; - - const CommunityBlockView._(); - factory CommunityBlockView.fromJson(Map json) => - _$CommunityBlockViewFromJson(json); -} diff --git a/lib/src/v3/views/community_block_view.freezed.dart b/lib/src/v3/views/community_block_view.freezed.dart deleted file mode 100644 index 02cdff33..00000000 --- a/lib/src/v3/views/community_block_view.freezed.dart +++ /dev/null @@ -1,217 +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 'community_block_view.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'); - -CommunityBlockView _$CommunityBlockViewFromJson(Map json) { - return _CommunityBlockView.fromJson(json); -} - -/// @nodoc -mixin _$CommunityBlockView { - Person get person => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this CommunityBlockView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityBlockViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityBlockViewCopyWith<$Res> { - factory $CommunityBlockViewCopyWith( - CommunityBlockView value, $Res Function(CommunityBlockView) then) = - _$CommunityBlockViewCopyWithImpl<$Res, CommunityBlockView>; - @useResult - $Res call({Person person, Community community}); - - $PersonCopyWith<$Res> get person; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$CommunityBlockViewCopyWithImpl<$Res, $Val extends CommunityBlockView> - implements $CommunityBlockViewCopyWith<$Res> { - _$CommunityBlockViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? community = null, - }) { - return _then(_value.copyWith( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get person { - return $PersonCopyWith<$Res>(_value.person, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommunityBlockViewImplCopyWith<$Res> - implements $CommunityBlockViewCopyWith<$Res> { - factory _$$CommunityBlockViewImplCopyWith(_$CommunityBlockViewImpl value, - $Res Function(_$CommunityBlockViewImpl) then) = - __$$CommunityBlockViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Person person, Community community}); - - @override - $PersonCopyWith<$Res> get person; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$CommunityBlockViewImplCopyWithImpl<$Res> - extends _$CommunityBlockViewCopyWithImpl<$Res, _$CommunityBlockViewImpl> - implements _$$CommunityBlockViewImplCopyWith<$Res> { - __$$CommunityBlockViewImplCopyWithImpl(_$CommunityBlockViewImpl _value, - $Res Function(_$CommunityBlockViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? community = null, - }) { - return _then(_$CommunityBlockViewImpl( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityBlockViewImpl extends _CommunityBlockView { - const _$CommunityBlockViewImpl( - {required this.person, required this.community}) - : super._(); - - factory _$CommunityBlockViewImpl.fromJson(Map json) => - _$$CommunityBlockViewImplFromJson(json); - - @override - final Person person; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'CommunityBlockView(person: $person, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityBlockViewImpl && - (identical(other.person, person) || other.person == person) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, person, community); - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityBlockViewImplCopyWith<_$CommunityBlockViewImpl> get copyWith => - __$$CommunityBlockViewImplCopyWithImpl<_$CommunityBlockViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CommunityBlockViewImplToJson( - this, - ); - } -} - -abstract class _CommunityBlockView extends CommunityBlockView { - const factory _CommunityBlockView( - {required final Person person, - required final Community community}) = _$CommunityBlockViewImpl; - const _CommunityBlockView._() : super._(); - - factory _CommunityBlockView.fromJson(Map json) = - _$CommunityBlockViewImpl.fromJson; - - @override - Person get person; // v0.18.0 - @override - Community get community; - - /// Create a copy of CommunityBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityBlockViewImplCopyWith<_$CommunityBlockViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/community_block_view.g.dart b/lib/src/v3/views/community_block_view.g.dart deleted file mode 100644 index 32bd3859..00000000 --- a/lib/src/v3/views/community_block_view.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community_block_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityBlockViewImpl _$$CommunityBlockViewImplFromJson( - Map json) => - _$CommunityBlockViewImpl( - person: Person.fromJson(json['person'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$CommunityBlockViewImplToJson( - _$CommunityBlockViewImpl instance) => - { - 'person': instance.person.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/community_follower_view.dart b/lib/src/v3/views/community_follower_view.dart deleted file mode 100644 index 0d81b429..00000000 --- a/lib/src/v3/views/community_follower_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'community_follower_view.freezed.dart'; -part 'community_follower_view.g.dart'; - -@freezed -class CommunityFollowerView with _$CommunityFollowerView { - @modelSerde - const factory CommunityFollowerView({ - required Community community, // v0.18.0 - required Person follower, // v0.18.0 - }) = _CommunityFollowerView; - - const CommunityFollowerView._(); - factory CommunityFollowerView.fromJson(Map json) => - _$CommunityFollowerViewFromJson(json); -} diff --git a/lib/src/v3/views/community_follower_view.freezed.dart b/lib/src/v3/views/community_follower_view.freezed.dart deleted file mode 100644 index d6df94ae..00000000 --- a/lib/src/v3/views/community_follower_view.freezed.dart +++ /dev/null @@ -1,222 +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 'community_follower_view.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'); - -CommunityFollowerView _$CommunityFollowerViewFromJson( - Map json) { - return _CommunityFollowerView.fromJson(json); -} - -/// @nodoc -mixin _$CommunityFollowerView { - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get follower => throw _privateConstructorUsedError; - - /// Serializes this CommunityFollowerView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityFollowerViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityFollowerViewCopyWith<$Res> { - factory $CommunityFollowerViewCopyWith(CommunityFollowerView value, - $Res Function(CommunityFollowerView) then) = - _$CommunityFollowerViewCopyWithImpl<$Res, CommunityFollowerView>; - @useResult - $Res call({Community community, Person follower}); - - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get follower; -} - -/// @nodoc -class _$CommunityFollowerViewCopyWithImpl<$Res, - $Val extends CommunityFollowerView> - implements $CommunityFollowerViewCopyWith<$Res> { - _$CommunityFollowerViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? community = null, - Object? follower = null, - }) { - return _then(_value.copyWith( - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - follower: null == follower - ? _value.follower - : follower // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get follower { - return $PersonCopyWith<$Res>(_value.follower, (value) { - return _then(_value.copyWith(follower: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommunityFollowerViewImplCopyWith<$Res> - implements $CommunityFollowerViewCopyWith<$Res> { - factory _$$CommunityFollowerViewImplCopyWith( - _$CommunityFollowerViewImpl value, - $Res Function(_$CommunityFollowerViewImpl) then) = - __$$CommunityFollowerViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Community community, Person follower}); - - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get follower; -} - -/// @nodoc -class __$$CommunityFollowerViewImplCopyWithImpl<$Res> - extends _$CommunityFollowerViewCopyWithImpl<$Res, - _$CommunityFollowerViewImpl> - implements _$$CommunityFollowerViewImplCopyWith<$Res> { - __$$CommunityFollowerViewImplCopyWithImpl(_$CommunityFollowerViewImpl _value, - $Res Function(_$CommunityFollowerViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? community = null, - Object? follower = null, - }) { - return _then(_$CommunityFollowerViewImpl( - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - follower: null == follower - ? _value.follower - : follower // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityFollowerViewImpl extends _CommunityFollowerView { - const _$CommunityFollowerViewImpl( - {required this.community, required this.follower}) - : super._(); - - factory _$CommunityFollowerViewImpl.fromJson(Map json) => - _$$CommunityFollowerViewImplFromJson(json); - - @override - final Community community; -// v0.18.0 - @override - final Person follower; - - @override - String toString() { - return 'CommunityFollowerView(community: $community, follower: $follower)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityFollowerViewImpl && - (identical(other.community, community) || - other.community == community) && - (identical(other.follower, follower) || - other.follower == follower)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, community, follower); - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityFollowerViewImplCopyWith<_$CommunityFollowerViewImpl> - get copyWith => __$$CommunityFollowerViewImplCopyWithImpl< - _$CommunityFollowerViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommunityFollowerViewImplToJson( - this, - ); - } -} - -abstract class _CommunityFollowerView extends CommunityFollowerView { - const factory _CommunityFollowerView( - {required final Community community, - required final Person follower}) = _$CommunityFollowerViewImpl; - const _CommunityFollowerView._() : super._(); - - factory _CommunityFollowerView.fromJson(Map json) = - _$CommunityFollowerViewImpl.fromJson; - - @override - Community get community; // v0.18.0 - @override - Person get follower; - - /// Create a copy of CommunityFollowerView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityFollowerViewImplCopyWith<_$CommunityFollowerViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/community_follower_view.g.dart b/lib/src/v3/views/community_follower_view.g.dart deleted file mode 100644 index 23d5a4f6..00000000 --- a/lib/src/v3/views/community_follower_view.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community_follower_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityFollowerViewImpl _$$CommunityFollowerViewImplFromJson( - Map json) => - _$CommunityFollowerViewImpl( - community: Community.fromJson(json['community'] as Map), - follower: Person.fromJson(json['follower'] as Map), - ); - -Map _$$CommunityFollowerViewImplToJson( - _$CommunityFollowerViewImpl instance) => - { - 'community': instance.community.toJson(), - 'follower': instance.follower.toJson(), - }; diff --git a/lib/src/v3/views/community_moderator_view.dart b/lib/src/v3/views/community_moderator_view.dart deleted file mode 100644 index 299d0515..00000000 --- a/lib/src/v3/views/community_moderator_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'community_moderator_view.freezed.dart'; -part 'community_moderator_view.g.dart'; - -@freezed -class CommunityModeratorView with _$CommunityModeratorView { - @modelSerde - const factory CommunityModeratorView({ - required Community community, // v0.18.0 - required Person moderator, // v0.18.0 - }) = _CommunityModeratorView; - - const CommunityModeratorView._(); - factory CommunityModeratorView.fromJson(Map json) => - _$CommunityModeratorViewFromJson(json); -} diff --git a/lib/src/v3/views/community_moderator_view.freezed.dart b/lib/src/v3/views/community_moderator_view.freezed.dart deleted file mode 100644 index a651e01c..00000000 --- a/lib/src/v3/views/community_moderator_view.freezed.dart +++ /dev/null @@ -1,223 +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 'community_moderator_view.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'); - -CommunityModeratorView _$CommunityModeratorViewFromJson( - Map json) { - return _CommunityModeratorView.fromJson(json); -} - -/// @nodoc -mixin _$CommunityModeratorView { - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get moderator => throw _privateConstructorUsedError; - - /// Serializes this CommunityModeratorView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityModeratorViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityModeratorViewCopyWith<$Res> { - factory $CommunityModeratorViewCopyWith(CommunityModeratorView value, - $Res Function(CommunityModeratorView) then) = - _$CommunityModeratorViewCopyWithImpl<$Res, CommunityModeratorView>; - @useResult - $Res call({Community community, Person moderator}); - - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get moderator; -} - -/// @nodoc -class _$CommunityModeratorViewCopyWithImpl<$Res, - $Val extends CommunityModeratorView> - implements $CommunityModeratorViewCopyWith<$Res> { - _$CommunityModeratorViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? community = null, - Object? moderator = null, - }) { - return _then(_value.copyWith( - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - moderator: null == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get moderator { - return $PersonCopyWith<$Res>(_value.moderator, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommunityModeratorViewImplCopyWith<$Res> - implements $CommunityModeratorViewCopyWith<$Res> { - factory _$$CommunityModeratorViewImplCopyWith( - _$CommunityModeratorViewImpl value, - $Res Function(_$CommunityModeratorViewImpl) then) = - __$$CommunityModeratorViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Community community, Person moderator}); - - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get moderator; -} - -/// @nodoc -class __$$CommunityModeratorViewImplCopyWithImpl<$Res> - extends _$CommunityModeratorViewCopyWithImpl<$Res, - _$CommunityModeratorViewImpl> - implements _$$CommunityModeratorViewImplCopyWith<$Res> { - __$$CommunityModeratorViewImplCopyWithImpl( - _$CommunityModeratorViewImpl _value, - $Res Function(_$CommunityModeratorViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? community = null, - Object? moderator = null, - }) { - return _then(_$CommunityModeratorViewImpl( - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - moderator: null == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityModeratorViewImpl extends _CommunityModeratorView { - const _$CommunityModeratorViewImpl( - {required this.community, required this.moderator}) - : super._(); - - factory _$CommunityModeratorViewImpl.fromJson(Map json) => - _$$CommunityModeratorViewImplFromJson(json); - - @override - final Community community; -// v0.18.0 - @override - final Person moderator; - - @override - String toString() { - return 'CommunityModeratorView(community: $community, moderator: $moderator)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityModeratorViewImpl && - (identical(other.community, community) || - other.community == community) && - (identical(other.moderator, moderator) || - other.moderator == moderator)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, community, moderator); - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityModeratorViewImplCopyWith<_$CommunityModeratorViewImpl> - get copyWith => __$$CommunityModeratorViewImplCopyWithImpl< - _$CommunityModeratorViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommunityModeratorViewImplToJson( - this, - ); - } -} - -abstract class _CommunityModeratorView extends CommunityModeratorView { - const factory _CommunityModeratorView( - {required final Community community, - required final Person moderator}) = _$CommunityModeratorViewImpl; - const _CommunityModeratorView._() : super._(); - - factory _CommunityModeratorView.fromJson(Map json) = - _$CommunityModeratorViewImpl.fromJson; - - @override - Community get community; // v0.18.0 - @override - Person get moderator; - - /// Create a copy of CommunityModeratorView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityModeratorViewImplCopyWith<_$CommunityModeratorViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/community_moderator_view.g.dart b/lib/src/v3/views/community_moderator_view.g.dart deleted file mode 100644 index 040b0db9..00000000 --- a/lib/src/v3/views/community_moderator_view.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community_moderator_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityModeratorViewImpl _$$CommunityModeratorViewImplFromJson( - Map json) => - _$CommunityModeratorViewImpl( - community: Community.fromJson(json['community'] as Map), - moderator: Person.fromJson(json['moderator'] as Map), - ); - -Map _$$CommunityModeratorViewImplToJson( - _$CommunityModeratorViewImpl instance) => - { - 'community': instance.community.toJson(), - 'moderator': instance.moderator.toJson(), - }; diff --git a/lib/src/v3/views/community_view.dart b/lib/src/v3/views/community_view.dart deleted file mode 100644 index cf81a935..00000000 --- a/lib/src/v3/views/community_view.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../enums/enums.dart'; -import '../models/models.dart'; - -part 'community_view.freezed.dart'; -part 'community_view.g.dart'; - -@freezed -class CommunityView with _$CommunityView { - @modelSerde - const factory CommunityView({ - required Community community, // v0.18.0 - required SubscribedType subscribed, // v0.18.0 - required bool blocked, // v0.18.0 - required CommunityAggregates counts, // v0.18.0 - bool? bannedFromCommunity, // v0.19.4 (required) - }) = _CommunityView; - - const CommunityView._(); - factory CommunityView.fromJson(Map json) => - _$CommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/community_view.freezed.dart b/lib/src/v3/views/community_view.freezed.dart deleted file mode 100644 index f8a0df81..00000000 --- a/lib/src/v3/views/community_view.freezed.dart +++ /dev/null @@ -1,289 +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 'community_view.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'); - -CommunityView _$CommunityViewFromJson(Map json) { - return _CommunityView.fromJson(json); -} - -/// @nodoc -mixin _$CommunityView { - Community get community => throw _privateConstructorUsedError; // v0.18.0 - SubscribedType get subscribed => - throw _privateConstructorUsedError; // v0.18.0 - bool get blocked => throw _privateConstructorUsedError; // v0.18.0 - CommunityAggregates get counts => - throw _privateConstructorUsedError; // v0.18.0 - bool? get bannedFromCommunity => throw _privateConstructorUsedError; - - /// Serializes this CommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CommunityViewCopyWith<$Res> { - factory $CommunityViewCopyWith( - CommunityView value, $Res Function(CommunityView) then) = - _$CommunityViewCopyWithImpl<$Res, CommunityView>; - @useResult - $Res call( - {Community community, - SubscribedType subscribed, - bool blocked, - CommunityAggregates counts, - bool? bannedFromCommunity}); - - $CommunityCopyWith<$Res> get community; - $CommunityAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$CommunityViewCopyWithImpl<$Res, $Val extends CommunityView> - implements $CommunityViewCopyWith<$Res> { - _$CommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? community = null, - Object? subscribed = null, - Object? blocked = null, - Object? counts = null, - Object? bannedFromCommunity = freezed, - }) { - return _then(_value.copyWith( - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommunityAggregates, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityAggregatesCopyWith<$Res> get counts { - return $CommunityAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CommunityViewImplCopyWith<$Res> - implements $CommunityViewCopyWith<$Res> { - factory _$$CommunityViewImplCopyWith( - _$CommunityViewImpl value, $Res Function(_$CommunityViewImpl) then) = - __$$CommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {Community community, - SubscribedType subscribed, - bool blocked, - CommunityAggregates counts, - bool? bannedFromCommunity}); - - @override - $CommunityCopyWith<$Res> get community; - @override - $CommunityAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$CommunityViewImplCopyWithImpl<$Res> - extends _$CommunityViewCopyWithImpl<$Res, _$CommunityViewImpl> - implements _$$CommunityViewImplCopyWith<$Res> { - __$$CommunityViewImplCopyWithImpl( - _$CommunityViewImpl _value, $Res Function(_$CommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? community = null, - Object? subscribed = null, - Object? blocked = null, - Object? counts = null, - Object? bannedFromCommunity = freezed, - }) { - return _then(_$CommunityViewImpl( - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - blocked: null == blocked - ? _value.blocked - : blocked // ignore: cast_nullable_to_non_nullable - as bool, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommunityAggregates, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CommunityViewImpl extends _CommunityView { - const _$CommunityViewImpl( - {required this.community, - required this.subscribed, - required this.blocked, - required this.counts, - this.bannedFromCommunity}) - : super._(); - - factory _$CommunityViewImpl.fromJson(Map json) => - _$$CommunityViewImplFromJson(json); - - @override - final Community community; -// v0.18.0 - @override - final SubscribedType subscribed; -// v0.18.0 - @override - final bool blocked; -// v0.18.0 - @override - final CommunityAggregates counts; -// v0.18.0 - @override - final bool? bannedFromCommunity; - - @override - String toString() { - return 'CommunityView(community: $community, subscribed: $subscribed, blocked: $blocked, counts: $counts, bannedFromCommunity: $bannedFromCommunity)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CommunityViewImpl && - (identical(other.community, community) || - other.community == community) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.blocked, blocked) || other.blocked == blocked) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.bannedFromCommunity, bannedFromCommunity) || - other.bannedFromCommunity == bannedFromCommunity)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, community, subscribed, blocked, counts, bannedFromCommunity); - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CommunityViewImplCopyWith<_$CommunityViewImpl> get copyWith => - __$$CommunityViewImplCopyWithImpl<_$CommunityViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CommunityViewImplToJson( - this, - ); - } -} - -abstract class _CommunityView extends CommunityView { - const factory _CommunityView( - {required final Community community, - required final SubscribedType subscribed, - required final bool blocked, - required final CommunityAggregates counts, - final bool? bannedFromCommunity}) = _$CommunityViewImpl; - const _CommunityView._() : super._(); - - factory _CommunityView.fromJson(Map json) = - _$CommunityViewImpl.fromJson; - - @override - Community get community; // v0.18.0 - @override - SubscribedType get subscribed; // v0.18.0 - @override - bool get blocked; // v0.18.0 - @override - CommunityAggregates get counts; // v0.18.0 - @override - bool? get bannedFromCommunity; - - /// Create a copy of CommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CommunityViewImplCopyWith<_$CommunityViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/community_view.g.dart b/lib/src/v3/views/community_view.g.dart deleted file mode 100644 index 2663ddd2..00000000 --- a/lib/src/v3/views/community_view.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CommunityViewImpl _$$CommunityViewImplFromJson(Map json) => - _$CommunityViewImpl( - community: Community.fromJson(json['community'] as Map), - subscribed: SubscribedType.fromJson(json['subscribed'] as String), - blocked: json['blocked'] as bool, - counts: - CommunityAggregates.fromJson(json['counts'] as Map), - bannedFromCommunity: json['banned_from_community'] as bool?, - ); - -Map _$$CommunityViewImplToJson(_$CommunityViewImpl instance) => - { - 'community': instance.community.toJson(), - 'subscribed': instance.subscribed.toJson(), - 'blocked': instance.blocked, - 'counts': instance.counts.toJson(), - 'banned_from_community': instance.bannedFromCommunity, - }; diff --git a/lib/src/v3/views/custom_emoji_view.dart b/lib/src/v3/views/custom_emoji_view.dart deleted file mode 100644 index 7a8243c6..00000000 --- a/lib/src/v3/views/custom_emoji_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'custom_emoji_view.freezed.dart'; -part 'custom_emoji_view.g.dart'; - -@freezed -class CustomEmojiView with _$CustomEmojiView { - @modelSerde - const factory CustomEmojiView({ - required CustomEmoji customEmoji, // v0.18.0 - required List keywords, // v0.18.0 - }) = _CustomEmojiView; - - const CustomEmojiView._(); - factory CustomEmojiView.fromJson(Map json) => - _$CustomEmojiViewFromJson(json); -} diff --git a/lib/src/v3/views/custom_emoji_view.freezed.dart b/lib/src/v3/views/custom_emoji_view.freezed.dart deleted file mode 100644 index 0882a089..00000000 --- a/lib/src/v3/views/custom_emoji_view.freezed.dart +++ /dev/null @@ -1,214 +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 'custom_emoji_view.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'); - -CustomEmojiView _$CustomEmojiViewFromJson(Map json) { - return _CustomEmojiView.fromJson(json); -} - -/// @nodoc -mixin _$CustomEmojiView { - CustomEmoji get customEmoji => throw _privateConstructorUsedError; // v0.18.0 - List get keywords => throw _privateConstructorUsedError; - - /// Serializes this CustomEmojiView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of CustomEmojiView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $CustomEmojiViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CustomEmojiViewCopyWith<$Res> { - factory $CustomEmojiViewCopyWith( - CustomEmojiView value, $Res Function(CustomEmojiView) then) = - _$CustomEmojiViewCopyWithImpl<$Res, CustomEmojiView>; - @useResult - $Res call({CustomEmoji customEmoji, List keywords}); - - $CustomEmojiCopyWith<$Res> get customEmoji; -} - -/// @nodoc -class _$CustomEmojiViewCopyWithImpl<$Res, $Val extends CustomEmojiView> - implements $CustomEmojiViewCopyWith<$Res> { - _$CustomEmojiViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of CustomEmojiView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? customEmoji = null, - Object? keywords = null, - }) { - return _then(_value.copyWith( - customEmoji: null == customEmoji - ? _value.customEmoji - : customEmoji // ignore: cast_nullable_to_non_nullable - as CustomEmoji, - keywords: null == keywords - ? _value.keywords - : keywords // ignore: cast_nullable_to_non_nullable - as List, - ) as $Val); - } - - /// Create a copy of CustomEmojiView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CustomEmojiCopyWith<$Res> get customEmoji { - return $CustomEmojiCopyWith<$Res>(_value.customEmoji, (value) { - return _then(_value.copyWith(customEmoji: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$CustomEmojiViewImplCopyWith<$Res> - implements $CustomEmojiViewCopyWith<$Res> { - factory _$$CustomEmojiViewImplCopyWith(_$CustomEmojiViewImpl value, - $Res Function(_$CustomEmojiViewImpl) then) = - __$$CustomEmojiViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({CustomEmoji customEmoji, List keywords}); - - @override - $CustomEmojiCopyWith<$Res> get customEmoji; -} - -/// @nodoc -class __$$CustomEmojiViewImplCopyWithImpl<$Res> - extends _$CustomEmojiViewCopyWithImpl<$Res, _$CustomEmojiViewImpl> - implements _$$CustomEmojiViewImplCopyWith<$Res> { - __$$CustomEmojiViewImplCopyWithImpl( - _$CustomEmojiViewImpl _value, $Res Function(_$CustomEmojiViewImpl) _then) - : super(_value, _then); - - /// Create a copy of CustomEmojiView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? customEmoji = null, - Object? keywords = null, - }) { - return _then(_$CustomEmojiViewImpl( - customEmoji: null == customEmoji - ? _value.customEmoji - : customEmoji // ignore: cast_nullable_to_non_nullable - as CustomEmoji, - keywords: null == keywords - ? _value._keywords - : keywords // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -/// @nodoc - -@modelSerde -class _$CustomEmojiViewImpl extends _CustomEmojiView { - const _$CustomEmojiViewImpl( - {required this.customEmoji, - required final List keywords}) - : _keywords = keywords, - super._(); - - factory _$CustomEmojiViewImpl.fromJson(Map json) => - _$$CustomEmojiViewImplFromJson(json); - - @override - final CustomEmoji customEmoji; -// v0.18.0 - final List _keywords; -// v0.18.0 - @override - List get keywords { - if (_keywords is EqualUnmodifiableListView) return _keywords; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(_keywords); - } - - @override - String toString() { - return 'CustomEmojiView(customEmoji: $customEmoji, keywords: $keywords)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CustomEmojiViewImpl && - (identical(other.customEmoji, customEmoji) || - other.customEmoji == customEmoji) && - const DeepCollectionEquality().equals(other._keywords, _keywords)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, customEmoji, const DeepCollectionEquality().hash(_keywords)); - - /// Create a copy of CustomEmojiView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$CustomEmojiViewImplCopyWith<_$CustomEmojiViewImpl> get copyWith => - __$$CustomEmojiViewImplCopyWithImpl<_$CustomEmojiViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$CustomEmojiViewImplToJson( - this, - ); - } -} - -abstract class _CustomEmojiView extends CustomEmojiView { - const factory _CustomEmojiView( - {required final CustomEmoji customEmoji, - required final List keywords}) = - _$CustomEmojiViewImpl; - const _CustomEmojiView._() : super._(); - - factory _CustomEmojiView.fromJson(Map json) = - _$CustomEmojiViewImpl.fromJson; - - @override - CustomEmoji get customEmoji; // v0.18.0 - @override - List get keywords; - - /// Create a copy of CustomEmojiView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$CustomEmojiViewImplCopyWith<_$CustomEmojiViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/custom_emoji_view.g.dart b/lib/src/v3/views/custom_emoji_view.g.dart deleted file mode 100644 index 0d18ab32..00000000 --- a/lib/src/v3/views/custom_emoji_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'custom_emoji_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CustomEmojiViewImpl _$$CustomEmojiViewImplFromJson( - Map json) => - _$CustomEmojiViewImpl( - customEmoji: - CustomEmoji.fromJson(json['custom_emoji'] as Map), - keywords: (json['keywords'] as List) - .map((e) => CustomEmojiKeyword.fromJson(e as Map)) - .toList(), - ); - -Map _$$CustomEmojiViewImplToJson( - _$CustomEmojiViewImpl instance) => - { - 'custom_emoji': instance.customEmoji.toJson(), - 'keywords': instance.keywords.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/v3/views/instance_block_view.dart b/lib/src/v3/views/instance_block_view.dart deleted file mode 100644 index cf50cadb..00000000 --- a/lib/src/v3/views/instance_block_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'instance_block_view.freezed.dart'; -part 'instance_block_view.g.dart'; - -@freezed -class InstanceBlockView with _$InstanceBlockView { - @modelSerde - const factory InstanceBlockView({ - required Person person, // v0.19.0 (required) - required Instance instance, // v0.19.0 (required) - Site? site, // v0.19.0 (optional) - }) = _InstanceBlockView; - - const InstanceBlockView._(); - factory InstanceBlockView.fromJson(Map json) => - _$InstanceBlockViewFromJson(json); -} diff --git a/lib/src/v3/views/instance_block_view.freezed.dart b/lib/src/v3/views/instance_block_view.freezed.dart deleted file mode 100644 index f1b43319..00000000 --- a/lib/src/v3/views/instance_block_view.freezed.dart +++ /dev/null @@ -1,253 +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 'instance_block_view.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'); - -InstanceBlockView _$InstanceBlockViewFromJson(Map json) { - return _InstanceBlockView.fromJson(json); -} - -/// @nodoc -mixin _$InstanceBlockView { - Person get person => throw _privateConstructorUsedError; // v0.19.0 (required) - Instance get instance => - throw _privateConstructorUsedError; // v0.19.0 (required) - Site? get site => throw _privateConstructorUsedError; - - /// Serializes this InstanceBlockView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $InstanceBlockViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $InstanceBlockViewCopyWith<$Res> { - factory $InstanceBlockViewCopyWith( - InstanceBlockView value, $Res Function(InstanceBlockView) then) = - _$InstanceBlockViewCopyWithImpl<$Res, InstanceBlockView>; - @useResult - $Res call({Person person, Instance instance, Site? site}); - - $PersonCopyWith<$Res> get person; - $InstanceCopyWith<$Res> get instance; - $SiteCopyWith<$Res>? get site; -} - -/// @nodoc -class _$InstanceBlockViewCopyWithImpl<$Res, $Val extends InstanceBlockView> - implements $InstanceBlockViewCopyWith<$Res> { - _$InstanceBlockViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? instance = null, - Object? site = freezed, - }) { - return _then(_value.copyWith( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - instance: null == instance - ? _value.instance - : instance // ignore: cast_nullable_to_non_nullable - as Instance, - site: freezed == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site?, - ) as $Val); - } - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get person { - return $PersonCopyWith<$Res>(_value.person, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $InstanceCopyWith<$Res> get instance { - return $InstanceCopyWith<$Res>(_value.instance, (value) { - return _then(_value.copyWith(instance: value) as $Val); - }); - } - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $SiteCopyWith<$Res>? get site { - if (_value.site == null) { - return null; - } - - return $SiteCopyWith<$Res>(_value.site!, (value) { - return _then(_value.copyWith(site: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$InstanceBlockViewImplCopyWith<$Res> - implements $InstanceBlockViewCopyWith<$Res> { - factory _$$InstanceBlockViewImplCopyWith(_$InstanceBlockViewImpl value, - $Res Function(_$InstanceBlockViewImpl) then) = - __$$InstanceBlockViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Person person, Instance instance, Site? site}); - - @override - $PersonCopyWith<$Res> get person; - @override - $InstanceCopyWith<$Res> get instance; - @override - $SiteCopyWith<$Res>? get site; -} - -/// @nodoc -class __$$InstanceBlockViewImplCopyWithImpl<$Res> - extends _$InstanceBlockViewCopyWithImpl<$Res, _$InstanceBlockViewImpl> - implements _$$InstanceBlockViewImplCopyWith<$Res> { - __$$InstanceBlockViewImplCopyWithImpl(_$InstanceBlockViewImpl _value, - $Res Function(_$InstanceBlockViewImpl) _then) - : super(_value, _then); - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? instance = null, - Object? site = freezed, - }) { - return _then(_$InstanceBlockViewImpl( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - instance: null == instance - ? _value.instance - : instance // ignore: cast_nullable_to_non_nullable - as Instance, - site: freezed == site - ? _value.site - : site // ignore: cast_nullable_to_non_nullable - as Site?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$InstanceBlockViewImpl extends _InstanceBlockView { - const _$InstanceBlockViewImpl( - {required this.person, required this.instance, this.site}) - : super._(); - - factory _$InstanceBlockViewImpl.fromJson(Map json) => - _$$InstanceBlockViewImplFromJson(json); - - @override - final Person person; -// v0.19.0 (required) - @override - final Instance instance; -// v0.19.0 (required) - @override - final Site? site; - - @override - String toString() { - return 'InstanceBlockView(person: $person, instance: $instance, site: $site)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InstanceBlockViewImpl && - (identical(other.person, person) || other.person == person) && - (identical(other.instance, instance) || - other.instance == instance) && - (identical(other.site, site) || other.site == site)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, person, instance, site); - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$InstanceBlockViewImplCopyWith<_$InstanceBlockViewImpl> get copyWith => - __$$InstanceBlockViewImplCopyWithImpl<_$InstanceBlockViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$InstanceBlockViewImplToJson( - this, - ); - } -} - -abstract class _InstanceBlockView extends InstanceBlockView { - const factory _InstanceBlockView( - {required final Person person, - required final Instance instance, - final Site? site}) = _$InstanceBlockViewImpl; - const _InstanceBlockView._() : super._(); - - factory _InstanceBlockView.fromJson(Map json) = - _$InstanceBlockViewImpl.fromJson; - - @override - Person get person; // v0.19.0 (required) - @override - Instance get instance; // v0.19.0 (required) - @override - Site? get site; - - /// Create a copy of InstanceBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$InstanceBlockViewImplCopyWith<_$InstanceBlockViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/instance_block_view.g.dart b/lib/src/v3/views/instance_block_view.g.dart deleted file mode 100644 index f10d5002..00000000 --- a/lib/src/v3/views/instance_block_view.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'instance_block_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$InstanceBlockViewImpl _$$InstanceBlockViewImplFromJson( - Map json) => - _$InstanceBlockViewImpl( - person: Person.fromJson(json['person'] as Map), - instance: Instance.fromJson(json['instance'] as Map), - site: json['site'] == null - ? null - : Site.fromJson(json['site'] as Map), - ); - -Map _$$InstanceBlockViewImplToJson( - _$InstanceBlockViewImpl instance) => - { - 'person': instance.person.toJson(), - 'instance': instance.instance.toJson(), - 'site': instance.site?.toJson(), - }; diff --git a/lib/src/v3/views/local_user_view.dart b/lib/src/v3/views/local_user_view.dart deleted file mode 100644 index 2d8c0eee..00000000 --- a/lib/src/v3/views/local_user_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'local_user_view.freezed.dart'; -part 'local_user_view.g.dart'; - -@freezed -class LocalUserView with _$LocalUserView { - @modelSerde - const factory LocalUserView({ - required LocalUser localUser, // v0.18.0 - LocalUserVoteDisplayMode? localUserVoteDisplayMode, // v0.19.4 (required) - required Person person, // v0.18.0 - required PersonAggregates counts, // v0.18.0 - }) = _LocalUserView; - - const LocalUserView._(); - factory LocalUserView.fromJson(Map json) => - _$LocalUserViewFromJson(json); -} diff --git a/lib/src/v3/views/local_user_view.freezed.dart b/lib/src/v3/views/local_user_view.freezed.dart deleted file mode 100644 index 762515b9..00000000 --- a/lib/src/v3/views/local_user_view.freezed.dart +++ /dev/null @@ -1,298 +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 'local_user_view.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'); - -LocalUserView _$LocalUserViewFromJson(Map json) { - return _LocalUserView.fromJson(json); -} - -/// @nodoc -mixin _$LocalUserView { - LocalUser get localUser => throw _privateConstructorUsedError; // v0.18.0 - LocalUserVoteDisplayMode? get localUserVoteDisplayMode => - throw _privateConstructorUsedError; // v0.19.4 (required) - Person get person => throw _privateConstructorUsedError; // v0.18.0 - PersonAggregates get counts => throw _privateConstructorUsedError; - - /// Serializes this LocalUserView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $LocalUserViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $LocalUserViewCopyWith<$Res> { - factory $LocalUserViewCopyWith( - LocalUserView value, $Res Function(LocalUserView) then) = - _$LocalUserViewCopyWithImpl<$Res, LocalUserView>; - @useResult - $Res call( - {LocalUser localUser, - LocalUserVoteDisplayMode? localUserVoteDisplayMode, - Person person, - PersonAggregates counts}); - - $LocalUserCopyWith<$Res> get localUser; - $LocalUserVoteDisplayModeCopyWith<$Res>? get localUserVoteDisplayMode; - $PersonCopyWith<$Res> get person; - $PersonAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$LocalUserViewCopyWithImpl<$Res, $Val extends LocalUserView> - implements $LocalUserViewCopyWith<$Res> { - _$LocalUserViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUser = null, - Object? localUserVoteDisplayMode = freezed, - Object? person = null, - Object? counts = null, - }) { - return _then(_value.copyWith( - localUser: null == localUser - ? _value.localUser - : localUser // ignore: cast_nullable_to_non_nullable - as LocalUser, - localUserVoteDisplayMode: freezed == localUserVoteDisplayMode - ? _value.localUserVoteDisplayMode - : localUserVoteDisplayMode // ignore: cast_nullable_to_non_nullable - as LocalUserVoteDisplayMode?, - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PersonAggregates, - ) as $Val); - } - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalUserCopyWith<$Res> get localUser { - return $LocalUserCopyWith<$Res>(_value.localUser, (value) { - return _then(_value.copyWith(localUser: value) as $Val); - }); - } - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalUserVoteDisplayModeCopyWith<$Res>? get localUserVoteDisplayMode { - if (_value.localUserVoteDisplayMode == null) { - return null; - } - - return $LocalUserVoteDisplayModeCopyWith<$Res>( - _value.localUserVoteDisplayMode!, (value) { - return _then(_value.copyWith(localUserVoteDisplayMode: value) as $Val); - }); - } - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get person { - return $PersonCopyWith<$Res>(_value.person, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonAggregatesCopyWith<$Res> get counts { - return $PersonAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$LocalUserViewImplCopyWith<$Res> - implements $LocalUserViewCopyWith<$Res> { - factory _$$LocalUserViewImplCopyWith( - _$LocalUserViewImpl value, $Res Function(_$LocalUserViewImpl) then) = - __$$LocalUserViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {LocalUser localUser, - LocalUserVoteDisplayMode? localUserVoteDisplayMode, - Person person, - PersonAggregates counts}); - - @override - $LocalUserCopyWith<$Res> get localUser; - @override - $LocalUserVoteDisplayModeCopyWith<$Res>? get localUserVoteDisplayMode; - @override - $PersonCopyWith<$Res> get person; - @override - $PersonAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$LocalUserViewImplCopyWithImpl<$Res> - extends _$LocalUserViewCopyWithImpl<$Res, _$LocalUserViewImpl> - implements _$$LocalUserViewImplCopyWith<$Res> { - __$$LocalUserViewImplCopyWithImpl( - _$LocalUserViewImpl _value, $Res Function(_$LocalUserViewImpl) _then) - : super(_value, _then); - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? localUser = null, - Object? localUserVoteDisplayMode = freezed, - Object? person = null, - Object? counts = null, - }) { - return _then(_$LocalUserViewImpl( - localUser: null == localUser - ? _value.localUser - : localUser // ignore: cast_nullable_to_non_nullable - as LocalUser, - localUserVoteDisplayMode: freezed == localUserVoteDisplayMode - ? _value.localUserVoteDisplayMode - : localUserVoteDisplayMode // ignore: cast_nullable_to_non_nullable - as LocalUserVoteDisplayMode?, - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PersonAggregates, - )); - } -} - -/// @nodoc - -@modelSerde -class _$LocalUserViewImpl extends _LocalUserView { - const _$LocalUserViewImpl( - {required this.localUser, - this.localUserVoteDisplayMode, - required this.person, - required this.counts}) - : super._(); - - factory _$LocalUserViewImpl.fromJson(Map json) => - _$$LocalUserViewImplFromJson(json); - - @override - final LocalUser localUser; -// v0.18.0 - @override - final LocalUserVoteDisplayMode? localUserVoteDisplayMode; -// v0.19.4 (required) - @override - final Person person; -// v0.18.0 - @override - final PersonAggregates counts; - - @override - String toString() { - return 'LocalUserView(localUser: $localUser, localUserVoteDisplayMode: $localUserVoteDisplayMode, person: $person, counts: $counts)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LocalUserViewImpl && - (identical(other.localUser, localUser) || - other.localUser == localUser) && - (identical( - other.localUserVoteDisplayMode, localUserVoteDisplayMode) || - other.localUserVoteDisplayMode == localUserVoteDisplayMode) && - (identical(other.person, person) || other.person == person) && - (identical(other.counts, counts) || other.counts == counts)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, localUser, localUserVoteDisplayMode, person, counts); - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$LocalUserViewImplCopyWith<_$LocalUserViewImpl> get copyWith => - __$$LocalUserViewImplCopyWithImpl<_$LocalUserViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$LocalUserViewImplToJson( - this, - ); - } -} - -abstract class _LocalUserView extends LocalUserView { - const factory _LocalUserView( - {required final LocalUser localUser, - final LocalUserVoteDisplayMode? localUserVoteDisplayMode, - required final Person person, - required final PersonAggregates counts}) = _$LocalUserViewImpl; - const _LocalUserView._() : super._(); - - factory _LocalUserView.fromJson(Map json) = - _$LocalUserViewImpl.fromJson; - - @override - LocalUser get localUser; // v0.18.0 - @override - LocalUserVoteDisplayMode? get localUserVoteDisplayMode; // v0.19.4 (required) - @override - Person get person; // v0.18.0 - @override - PersonAggregates get counts; - - /// Create a copy of LocalUserView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$LocalUserViewImplCopyWith<_$LocalUserViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/local_user_view.g.dart b/lib/src/v3/views/local_user_view.g.dart deleted file mode 100644 index a4082699..00000000 --- a/lib/src/v3/views/local_user_view.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'local_user_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$LocalUserViewImpl _$$LocalUserViewImplFromJson(Map json) => - _$LocalUserViewImpl( - localUser: LocalUser.fromJson(json['local_user'] as Map), - localUserVoteDisplayMode: json['local_user_vote_display_mode'] == null - ? null - : LocalUserVoteDisplayMode.fromJson( - json['local_user_vote_display_mode'] as Map), - person: Person.fromJson(json['person'] as Map), - counts: PersonAggregates.fromJson(json['counts'] as Map), - ); - -Map _$$LocalUserViewImplToJson(_$LocalUserViewImpl instance) => - { - 'local_user': instance.localUser.toJson(), - 'local_user_vote_display_mode': - instance.localUserVoteDisplayMode?.toJson(), - 'person': instance.person.toJson(), - 'counts': instance.counts.toJson(), - }; diff --git a/lib/src/v3/views/mod_add_community_view.dart b/lib/src/v3/views/mod_add_community_view.dart deleted file mode 100644 index 9011cbe4..00000000 --- a/lib/src/v3/views/mod_add_community_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_add_community_view.freezed.dart'; -part 'mod_add_community_view.g.dart'; - -@freezed -class ModAddCommunityView with _$ModAddCommunityView { - @modelSerde - const factory ModAddCommunityView({ - required ModAddCommunity modAddCommunity, // v0.18.0 - Person? moderator, // v0.18.0 - required Community community, // v0.18.0 - required Person moddedPerson, // v0.18.0 - }) = _ModAddCommunityView; - - const ModAddCommunityView._(); - factory ModAddCommunityView.fromJson(Map json) => - _$ModAddCommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_add_community_view.freezed.dart b/lib/src/v3/views/mod_add_community_view.freezed.dart deleted file mode 100644 index 122d9091..00000000 --- a/lib/src/v3/views/mod_add_community_view.freezed.dart +++ /dev/null @@ -1,299 +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 'mod_add_community_view.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'); - -ModAddCommunityView _$ModAddCommunityViewFromJson(Map json) { - return _ModAddCommunityView.fromJson(json); -} - -/// @nodoc -mixin _$ModAddCommunityView { - ModAddCommunity get modAddCommunity => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get moddedPerson => throw _privateConstructorUsedError; - - /// Serializes this ModAddCommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModAddCommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModAddCommunityViewCopyWith<$Res> { - factory $ModAddCommunityViewCopyWith( - ModAddCommunityView value, $Res Function(ModAddCommunityView) then) = - _$ModAddCommunityViewCopyWithImpl<$Res, ModAddCommunityView>; - @useResult - $Res call( - {ModAddCommunity modAddCommunity, - Person? moderator, - Community community, - Person moddedPerson}); - - $ModAddCommunityCopyWith<$Res> get modAddCommunity; - $PersonCopyWith<$Res>? get moderator; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get moddedPerson; -} - -/// @nodoc -class _$ModAddCommunityViewCopyWithImpl<$Res, $Val extends ModAddCommunityView> - implements $ModAddCommunityViewCopyWith<$Res> { - _$ModAddCommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modAddCommunity = null, - Object? moderator = freezed, - Object? community = null, - Object? moddedPerson = null, - }) { - return _then(_value.copyWith( - modAddCommunity: null == modAddCommunity - ? _value.modAddCommunity - : modAddCommunity // ignore: cast_nullable_to_non_nullable - as ModAddCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - moddedPerson: null == moddedPerson - ? _value.moddedPerson - : moddedPerson // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModAddCommunityCopyWith<$Res> get modAddCommunity { - return $ModAddCommunityCopyWith<$Res>(_value.modAddCommunity, (value) { - return _then(_value.copyWith(modAddCommunity: value) as $Val); - }); - } - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get moddedPerson { - return $PersonCopyWith<$Res>(_value.moddedPerson, (value) { - return _then(_value.copyWith(moddedPerson: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModAddCommunityViewImplCopyWith<$Res> - implements $ModAddCommunityViewCopyWith<$Res> { - factory _$$ModAddCommunityViewImplCopyWith(_$ModAddCommunityViewImpl value, - $Res Function(_$ModAddCommunityViewImpl) then) = - __$$ModAddCommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModAddCommunity modAddCommunity, - Person? moderator, - Community community, - Person moddedPerson}); - - @override - $ModAddCommunityCopyWith<$Res> get modAddCommunity; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get moddedPerson; -} - -/// @nodoc -class __$$ModAddCommunityViewImplCopyWithImpl<$Res> - extends _$ModAddCommunityViewCopyWithImpl<$Res, _$ModAddCommunityViewImpl> - implements _$$ModAddCommunityViewImplCopyWith<$Res> { - __$$ModAddCommunityViewImplCopyWithImpl(_$ModAddCommunityViewImpl _value, - $Res Function(_$ModAddCommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modAddCommunity = null, - Object? moderator = freezed, - Object? community = null, - Object? moddedPerson = null, - }) { - return _then(_$ModAddCommunityViewImpl( - modAddCommunity: null == modAddCommunity - ? _value.modAddCommunity - : modAddCommunity // ignore: cast_nullable_to_non_nullable - as ModAddCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - moddedPerson: null == moddedPerson - ? _value.moddedPerson - : moddedPerson // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModAddCommunityViewImpl extends _ModAddCommunityView { - const _$ModAddCommunityViewImpl( - {required this.modAddCommunity, - this.moderator, - required this.community, - required this.moddedPerson}) - : super._(); - - factory _$ModAddCommunityViewImpl.fromJson(Map json) => - _$$ModAddCommunityViewImplFromJson(json); - - @override - final ModAddCommunity modAddCommunity; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person moddedPerson; - - @override - String toString() { - return 'ModAddCommunityView(modAddCommunity: $modAddCommunity, moderator: $moderator, community: $community, moddedPerson: $moddedPerson)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModAddCommunityViewImpl && - (identical(other.modAddCommunity, modAddCommunity) || - other.modAddCommunity == modAddCommunity) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.community, community) || - other.community == community) && - (identical(other.moddedPerson, moddedPerson) || - other.moddedPerson == moddedPerson)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, modAddCommunity, moderator, community, moddedPerson); - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModAddCommunityViewImplCopyWith<_$ModAddCommunityViewImpl> get copyWith => - __$$ModAddCommunityViewImplCopyWithImpl<_$ModAddCommunityViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModAddCommunityViewImplToJson( - this, - ); - } -} - -abstract class _ModAddCommunityView extends ModAddCommunityView { - const factory _ModAddCommunityView( - {required final ModAddCommunity modAddCommunity, - final Person? moderator, - required final Community community, - required final Person moddedPerson}) = _$ModAddCommunityViewImpl; - const _ModAddCommunityView._() : super._(); - - factory _ModAddCommunityView.fromJson(Map json) = - _$ModAddCommunityViewImpl.fromJson; - - @override - ModAddCommunity get modAddCommunity; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get moddedPerson; - - /// Create a copy of ModAddCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModAddCommunityViewImplCopyWith<_$ModAddCommunityViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_add_community_view.g.dart b/lib/src/v3/views/mod_add_community_view.g.dart deleted file mode 100644 index 343abf45..00000000 --- a/lib/src/v3/views/mod_add_community_view.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_add_community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModAddCommunityViewImpl _$$ModAddCommunityViewImplFromJson( - Map json) => - _$ModAddCommunityViewImpl( - modAddCommunity: ModAddCommunity.fromJson( - json['mod_add_community'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - community: Community.fromJson(json['community'] as Map), - moddedPerson: - Person.fromJson(json['modded_person'] as Map), - ); - -Map _$$ModAddCommunityViewImplToJson( - _$ModAddCommunityViewImpl instance) => - { - 'mod_add_community': instance.modAddCommunity.toJson(), - 'moderator': instance.moderator?.toJson(), - 'community': instance.community.toJson(), - 'modded_person': instance.moddedPerson.toJson(), - }; diff --git a/lib/src/v3/views/mod_add_view.dart b/lib/src/v3/views/mod_add_view.dart deleted file mode 100644 index 6bd1d555..00000000 --- a/lib/src/v3/views/mod_add_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_add_view.freezed.dart'; -part 'mod_add_view.g.dart'; - -@freezed -class ModAddView with _$ModAddView { - @modelSerde - const factory ModAddView({ - required ModAdd modAdd, // v0.18.0 - Person? moderator, // v0.18.0 - required Person moddedPerson, // v0.18.0 - }) = _ModAddView; - - const ModAddView._(); - factory ModAddView.fromJson(Map json) => - _$ModAddViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_add_view.freezed.dart b/lib/src/v3/views/mod_add_view.freezed.dart deleted file mode 100644 index 68f60202..00000000 --- a/lib/src/v3/views/mod_add_view.freezed.dart +++ /dev/null @@ -1,252 +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 'mod_add_view.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'); - -ModAddView _$ModAddViewFromJson(Map json) { - return _ModAddView.fromJson(json); -} - -/// @nodoc -mixin _$ModAddView { - ModAdd get modAdd => throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Person get moddedPerson => throw _privateConstructorUsedError; - - /// Serializes this ModAddView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModAddViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModAddViewCopyWith<$Res> { - factory $ModAddViewCopyWith( - ModAddView value, $Res Function(ModAddView) then) = - _$ModAddViewCopyWithImpl<$Res, ModAddView>; - @useResult - $Res call({ModAdd modAdd, Person? moderator, Person moddedPerson}); - - $ModAddCopyWith<$Res> get modAdd; - $PersonCopyWith<$Res>? get moderator; - $PersonCopyWith<$Res> get moddedPerson; -} - -/// @nodoc -class _$ModAddViewCopyWithImpl<$Res, $Val extends ModAddView> - implements $ModAddViewCopyWith<$Res> { - _$ModAddViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modAdd = null, - Object? moderator = freezed, - Object? moddedPerson = null, - }) { - return _then(_value.copyWith( - modAdd: null == modAdd - ? _value.modAdd - : modAdd // ignore: cast_nullable_to_non_nullable - as ModAdd, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - moddedPerson: null == moddedPerson - ? _value.moddedPerson - : moddedPerson // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModAddCopyWith<$Res> get modAdd { - return $ModAddCopyWith<$Res>(_value.modAdd, (value) { - return _then(_value.copyWith(modAdd: value) as $Val); - }); - } - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get moddedPerson { - return $PersonCopyWith<$Res>(_value.moddedPerson, (value) { - return _then(_value.copyWith(moddedPerson: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModAddViewImplCopyWith<$Res> - implements $ModAddViewCopyWith<$Res> { - factory _$$ModAddViewImplCopyWith( - _$ModAddViewImpl value, $Res Function(_$ModAddViewImpl) then) = - __$$ModAddViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({ModAdd modAdd, Person? moderator, Person moddedPerson}); - - @override - $ModAddCopyWith<$Res> get modAdd; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $PersonCopyWith<$Res> get moddedPerson; -} - -/// @nodoc -class __$$ModAddViewImplCopyWithImpl<$Res> - extends _$ModAddViewCopyWithImpl<$Res, _$ModAddViewImpl> - implements _$$ModAddViewImplCopyWith<$Res> { - __$$ModAddViewImplCopyWithImpl( - _$ModAddViewImpl _value, $Res Function(_$ModAddViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modAdd = null, - Object? moderator = freezed, - Object? moddedPerson = null, - }) { - return _then(_$ModAddViewImpl( - modAdd: null == modAdd - ? _value.modAdd - : modAdd // ignore: cast_nullable_to_non_nullable - as ModAdd, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - moddedPerson: null == moddedPerson - ? _value.moddedPerson - : moddedPerson // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModAddViewImpl extends _ModAddView { - const _$ModAddViewImpl( - {required this.modAdd, this.moderator, required this.moddedPerson}) - : super._(); - - factory _$ModAddViewImpl.fromJson(Map json) => - _$$ModAddViewImplFromJson(json); - - @override - final ModAdd modAdd; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Person moddedPerson; - - @override - String toString() { - return 'ModAddView(modAdd: $modAdd, moderator: $moderator, moddedPerson: $moddedPerson)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModAddViewImpl && - (identical(other.modAdd, modAdd) || other.modAdd == modAdd) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.moddedPerson, moddedPerson) || - other.moddedPerson == moddedPerson)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, modAdd, moderator, moddedPerson); - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModAddViewImplCopyWith<_$ModAddViewImpl> get copyWith => - __$$ModAddViewImplCopyWithImpl<_$ModAddViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModAddViewImplToJson( - this, - ); - } -} - -abstract class _ModAddView extends ModAddView { - const factory _ModAddView( - {required final ModAdd modAdd, - final Person? moderator, - required final Person moddedPerson}) = _$ModAddViewImpl; - const _ModAddView._() : super._(); - - factory _ModAddView.fromJson(Map json) = - _$ModAddViewImpl.fromJson; - - @override - ModAdd get modAdd; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Person get moddedPerson; - - /// Create a copy of ModAddView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModAddViewImplCopyWith<_$ModAddViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_add_view.g.dart b/lib/src/v3/views/mod_add_view.g.dart deleted file mode 100644 index aba6bd2d..00000000 --- a/lib/src/v3/views/mod_add_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_add_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModAddViewImpl _$$ModAddViewImplFromJson(Map json) => - _$ModAddViewImpl( - modAdd: ModAdd.fromJson(json['mod_add'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - moddedPerson: - Person.fromJson(json['modded_person'] as Map), - ); - -Map _$$ModAddViewImplToJson(_$ModAddViewImpl instance) => - { - 'mod_add': instance.modAdd.toJson(), - 'moderator': instance.moderator?.toJson(), - 'modded_person': instance.moddedPerson.toJson(), - }; diff --git a/lib/src/v3/views/mod_ban_from_community_view.dart b/lib/src/v3/views/mod_ban_from_community_view.dart deleted file mode 100644 index bb0bd904..00000000 --- a/lib/src/v3/views/mod_ban_from_community_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_ban_from_community_view.freezed.dart'; -part 'mod_ban_from_community_view.g.dart'; - -@freezed -class ModBanFromCommunityView with _$ModBanFromCommunityView { - @modelSerde - const factory ModBanFromCommunityView({ - required ModBanFromCommunity modBanFromCommunity, // v0.18.0 - Person? moderator, // v0.18.0 - required Community community, // v0.18.0 - required Person bannedPerson, // v0.18.0 - }) = _ModBanFromCommunityView; - - const ModBanFromCommunityView._(); - factory ModBanFromCommunityView.fromJson(Map json) => - _$ModBanFromCommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_ban_from_community_view.freezed.dart b/lib/src/v3/views/mod_ban_from_community_view.freezed.dart deleted file mode 100644 index 014d500f..00000000 --- a/lib/src/v3/views/mod_ban_from_community_view.freezed.dart +++ /dev/null @@ -1,305 +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 'mod_ban_from_community_view.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'); - -ModBanFromCommunityView _$ModBanFromCommunityViewFromJson( - Map json) { - return _ModBanFromCommunityView.fromJson(json); -} - -/// @nodoc -mixin _$ModBanFromCommunityView { - ModBanFromCommunity get modBanFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get bannedPerson => throw _privateConstructorUsedError; - - /// Serializes this ModBanFromCommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModBanFromCommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModBanFromCommunityViewCopyWith<$Res> { - factory $ModBanFromCommunityViewCopyWith(ModBanFromCommunityView value, - $Res Function(ModBanFromCommunityView) then) = - _$ModBanFromCommunityViewCopyWithImpl<$Res, ModBanFromCommunityView>; - @useResult - $Res call( - {ModBanFromCommunity modBanFromCommunity, - Person? moderator, - Community community, - Person bannedPerson}); - - $ModBanFromCommunityCopyWith<$Res> get modBanFromCommunity; - $PersonCopyWith<$Res>? get moderator; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get bannedPerson; -} - -/// @nodoc -class _$ModBanFromCommunityViewCopyWithImpl<$Res, - $Val extends ModBanFromCommunityView> - implements $ModBanFromCommunityViewCopyWith<$Res> { - _$ModBanFromCommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modBanFromCommunity = null, - Object? moderator = freezed, - Object? community = null, - Object? bannedPerson = null, - }) { - return _then(_value.copyWith( - modBanFromCommunity: null == modBanFromCommunity - ? _value.modBanFromCommunity - : modBanFromCommunity // ignore: cast_nullable_to_non_nullable - as ModBanFromCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - bannedPerson: null == bannedPerson - ? _value.bannedPerson - : bannedPerson // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModBanFromCommunityCopyWith<$Res> get modBanFromCommunity { - return $ModBanFromCommunityCopyWith<$Res>(_value.modBanFromCommunity, - (value) { - return _then(_value.copyWith(modBanFromCommunity: value) as $Val); - }); - } - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get bannedPerson { - return $PersonCopyWith<$Res>(_value.bannedPerson, (value) { - return _then(_value.copyWith(bannedPerson: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModBanFromCommunityViewImplCopyWith<$Res> - implements $ModBanFromCommunityViewCopyWith<$Res> { - factory _$$ModBanFromCommunityViewImplCopyWith( - _$ModBanFromCommunityViewImpl value, - $Res Function(_$ModBanFromCommunityViewImpl) then) = - __$$ModBanFromCommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModBanFromCommunity modBanFromCommunity, - Person? moderator, - Community community, - Person bannedPerson}); - - @override - $ModBanFromCommunityCopyWith<$Res> get modBanFromCommunity; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get bannedPerson; -} - -/// @nodoc -class __$$ModBanFromCommunityViewImplCopyWithImpl<$Res> - extends _$ModBanFromCommunityViewCopyWithImpl<$Res, - _$ModBanFromCommunityViewImpl> - implements _$$ModBanFromCommunityViewImplCopyWith<$Res> { - __$$ModBanFromCommunityViewImplCopyWithImpl( - _$ModBanFromCommunityViewImpl _value, - $Res Function(_$ModBanFromCommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modBanFromCommunity = null, - Object? moderator = freezed, - Object? community = null, - Object? bannedPerson = null, - }) { - return _then(_$ModBanFromCommunityViewImpl( - modBanFromCommunity: null == modBanFromCommunity - ? _value.modBanFromCommunity - : modBanFromCommunity // ignore: cast_nullable_to_non_nullable - as ModBanFromCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - bannedPerson: null == bannedPerson - ? _value.bannedPerson - : bannedPerson // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModBanFromCommunityViewImpl extends _ModBanFromCommunityView { - const _$ModBanFromCommunityViewImpl( - {required this.modBanFromCommunity, - this.moderator, - required this.community, - required this.bannedPerson}) - : super._(); - - factory _$ModBanFromCommunityViewImpl.fromJson(Map json) => - _$$ModBanFromCommunityViewImplFromJson(json); - - @override - final ModBanFromCommunity modBanFromCommunity; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person bannedPerson; - - @override - String toString() { - return 'ModBanFromCommunityView(modBanFromCommunity: $modBanFromCommunity, moderator: $moderator, community: $community, bannedPerson: $bannedPerson)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModBanFromCommunityViewImpl && - (identical(other.modBanFromCommunity, modBanFromCommunity) || - other.modBanFromCommunity == modBanFromCommunity) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.community, community) || - other.community == community) && - (identical(other.bannedPerson, bannedPerson) || - other.bannedPerson == bannedPerson)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, modBanFromCommunity, moderator, community, bannedPerson); - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModBanFromCommunityViewImplCopyWith<_$ModBanFromCommunityViewImpl> - get copyWith => __$$ModBanFromCommunityViewImplCopyWithImpl< - _$ModBanFromCommunityViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModBanFromCommunityViewImplToJson( - this, - ); - } -} - -abstract class _ModBanFromCommunityView extends ModBanFromCommunityView { - const factory _ModBanFromCommunityView( - {required final ModBanFromCommunity modBanFromCommunity, - final Person? moderator, - required final Community community, - required final Person bannedPerson}) = _$ModBanFromCommunityViewImpl; - const _ModBanFromCommunityView._() : super._(); - - factory _ModBanFromCommunityView.fromJson(Map json) = - _$ModBanFromCommunityViewImpl.fromJson; - - @override - ModBanFromCommunity get modBanFromCommunity; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get bannedPerson; - - /// Create a copy of ModBanFromCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModBanFromCommunityViewImplCopyWith<_$ModBanFromCommunityViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_ban_from_community_view.g.dart b/lib/src/v3/views/mod_ban_from_community_view.g.dart deleted file mode 100644 index df04acf8..00000000 --- a/lib/src/v3/views/mod_ban_from_community_view.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_ban_from_community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModBanFromCommunityViewImpl _$$ModBanFromCommunityViewImplFromJson( - Map json) => - _$ModBanFromCommunityViewImpl( - modBanFromCommunity: ModBanFromCommunity.fromJson( - json['mod_ban_from_community'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - community: Community.fromJson(json['community'] as Map), - bannedPerson: - Person.fromJson(json['banned_person'] as Map), - ); - -Map _$$ModBanFromCommunityViewImplToJson( - _$ModBanFromCommunityViewImpl instance) => - { - 'mod_ban_from_community': instance.modBanFromCommunity.toJson(), - 'moderator': instance.moderator?.toJson(), - 'community': instance.community.toJson(), - 'banned_person': instance.bannedPerson.toJson(), - }; diff --git a/lib/src/v3/views/mod_ban_view.dart b/lib/src/v3/views/mod_ban_view.dart deleted file mode 100644 index 0ae77d24..00000000 --- a/lib/src/v3/views/mod_ban_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_ban_view.freezed.dart'; -part 'mod_ban_view.g.dart'; - -@freezed -class ModBanView with _$ModBanView { - @modelSerde - const factory ModBanView({ - required ModBan modBan, // v0.18.0 - Person? moderator, // v0.18.0 - required Person bannedPerson, // v0.18.0 - }) = _ModBanView; - - const ModBanView._(); - factory ModBanView.fromJson(Map json) => - _$ModBanViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_ban_view.freezed.dart b/lib/src/v3/views/mod_ban_view.freezed.dart deleted file mode 100644 index 9a5aa97c..00000000 --- a/lib/src/v3/views/mod_ban_view.freezed.dart +++ /dev/null @@ -1,252 +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 'mod_ban_view.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'); - -ModBanView _$ModBanViewFromJson(Map json) { - return _ModBanView.fromJson(json); -} - -/// @nodoc -mixin _$ModBanView { - ModBan get modBan => throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Person get bannedPerson => throw _privateConstructorUsedError; - - /// Serializes this ModBanView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModBanViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModBanViewCopyWith<$Res> { - factory $ModBanViewCopyWith( - ModBanView value, $Res Function(ModBanView) then) = - _$ModBanViewCopyWithImpl<$Res, ModBanView>; - @useResult - $Res call({ModBan modBan, Person? moderator, Person bannedPerson}); - - $ModBanCopyWith<$Res> get modBan; - $PersonCopyWith<$Res>? get moderator; - $PersonCopyWith<$Res> get bannedPerson; -} - -/// @nodoc -class _$ModBanViewCopyWithImpl<$Res, $Val extends ModBanView> - implements $ModBanViewCopyWith<$Res> { - _$ModBanViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modBan = null, - Object? moderator = freezed, - Object? bannedPerson = null, - }) { - return _then(_value.copyWith( - modBan: null == modBan - ? _value.modBan - : modBan // ignore: cast_nullable_to_non_nullable - as ModBan, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - bannedPerson: null == bannedPerson - ? _value.bannedPerson - : bannedPerson // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModBanCopyWith<$Res> get modBan { - return $ModBanCopyWith<$Res>(_value.modBan, (value) { - return _then(_value.copyWith(modBan: value) as $Val); - }); - } - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get bannedPerson { - return $PersonCopyWith<$Res>(_value.bannedPerson, (value) { - return _then(_value.copyWith(bannedPerson: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModBanViewImplCopyWith<$Res> - implements $ModBanViewCopyWith<$Res> { - factory _$$ModBanViewImplCopyWith( - _$ModBanViewImpl value, $Res Function(_$ModBanViewImpl) then) = - __$$ModBanViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({ModBan modBan, Person? moderator, Person bannedPerson}); - - @override - $ModBanCopyWith<$Res> get modBan; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $PersonCopyWith<$Res> get bannedPerson; -} - -/// @nodoc -class __$$ModBanViewImplCopyWithImpl<$Res> - extends _$ModBanViewCopyWithImpl<$Res, _$ModBanViewImpl> - implements _$$ModBanViewImplCopyWith<$Res> { - __$$ModBanViewImplCopyWithImpl( - _$ModBanViewImpl _value, $Res Function(_$ModBanViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modBan = null, - Object? moderator = freezed, - Object? bannedPerson = null, - }) { - return _then(_$ModBanViewImpl( - modBan: null == modBan - ? _value.modBan - : modBan // ignore: cast_nullable_to_non_nullable - as ModBan, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - bannedPerson: null == bannedPerson - ? _value.bannedPerson - : bannedPerson // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModBanViewImpl extends _ModBanView { - const _$ModBanViewImpl( - {required this.modBan, this.moderator, required this.bannedPerson}) - : super._(); - - factory _$ModBanViewImpl.fromJson(Map json) => - _$$ModBanViewImplFromJson(json); - - @override - final ModBan modBan; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Person bannedPerson; - - @override - String toString() { - return 'ModBanView(modBan: $modBan, moderator: $moderator, bannedPerson: $bannedPerson)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModBanViewImpl && - (identical(other.modBan, modBan) || other.modBan == modBan) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.bannedPerson, bannedPerson) || - other.bannedPerson == bannedPerson)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, modBan, moderator, bannedPerson); - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModBanViewImplCopyWith<_$ModBanViewImpl> get copyWith => - __$$ModBanViewImplCopyWithImpl<_$ModBanViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModBanViewImplToJson( - this, - ); - } -} - -abstract class _ModBanView extends ModBanView { - const factory _ModBanView( - {required final ModBan modBan, - final Person? moderator, - required final Person bannedPerson}) = _$ModBanViewImpl; - const _ModBanView._() : super._(); - - factory _ModBanView.fromJson(Map json) = - _$ModBanViewImpl.fromJson; - - @override - ModBan get modBan; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Person get bannedPerson; - - /// Create a copy of ModBanView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModBanViewImplCopyWith<_$ModBanViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_ban_view.g.dart b/lib/src/v3/views/mod_ban_view.g.dart deleted file mode 100644 index fe955712..00000000 --- a/lib/src/v3/views/mod_ban_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_ban_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModBanViewImpl _$$ModBanViewImplFromJson(Map json) => - _$ModBanViewImpl( - modBan: ModBan.fromJson(json['mod_ban'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - bannedPerson: - Person.fromJson(json['banned_person'] as Map), - ); - -Map _$$ModBanViewImplToJson(_$ModBanViewImpl instance) => - { - 'mod_ban': instance.modBan.toJson(), - 'moderator': instance.moderator?.toJson(), - 'banned_person': instance.bannedPerson.toJson(), - }; diff --git a/lib/src/v3/views/mod_feature_post_view.dart b/lib/src/v3/views/mod_feature_post_view.dart deleted file mode 100644 index 3189a292..00000000 --- a/lib/src/v3/views/mod_feature_post_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_feature_post_view.freezed.dart'; -part 'mod_feature_post_view.g.dart'; - -@freezed -class ModFeaturePostView with _$ModFeaturePostView { - @modelSerde - const factory ModFeaturePostView({ - required ModFeaturePost modFeaturePost, // v0.18.0 - Person? moderator, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - }) = _ModFeaturePostView; - - const ModFeaturePostView._(); - factory ModFeaturePostView.fromJson(Map json) => - _$ModFeaturePostViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_feature_post_view.freezed.dart b/lib/src/v3/views/mod_feature_post_view.freezed.dart deleted file mode 100644 index f6edef89..00000000 --- a/lib/src/v3/views/mod_feature_post_view.freezed.dart +++ /dev/null @@ -1,298 +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 'mod_feature_post_view.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'); - -ModFeaturePostView _$ModFeaturePostViewFromJson(Map json) { - return _ModFeaturePostView.fromJson(json); -} - -/// @nodoc -mixin _$ModFeaturePostView { - ModFeaturePost get modFeaturePost => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this ModFeaturePostView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModFeaturePostViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModFeaturePostViewCopyWith<$Res> { - factory $ModFeaturePostViewCopyWith( - ModFeaturePostView value, $Res Function(ModFeaturePostView) then) = - _$ModFeaturePostViewCopyWithImpl<$Res, ModFeaturePostView>; - @useResult - $Res call( - {ModFeaturePost modFeaturePost, - Person? moderator, - Post post, - Community community}); - - $ModFeaturePostCopyWith<$Res> get modFeaturePost; - $PersonCopyWith<$Res>? get moderator; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$ModFeaturePostViewCopyWithImpl<$Res, $Val extends ModFeaturePostView> - implements $ModFeaturePostViewCopyWith<$Res> { - _$ModFeaturePostViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modFeaturePost = null, - Object? moderator = freezed, - Object? post = null, - Object? community = null, - }) { - return _then(_value.copyWith( - modFeaturePost: null == modFeaturePost - ? _value.modFeaturePost - : modFeaturePost // ignore: cast_nullable_to_non_nullable - as ModFeaturePost, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModFeaturePostCopyWith<$Res> get modFeaturePost { - return $ModFeaturePostCopyWith<$Res>(_value.modFeaturePost, (value) { - return _then(_value.copyWith(modFeaturePost: value) as $Val); - }); - } - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModFeaturePostViewImplCopyWith<$Res> - implements $ModFeaturePostViewCopyWith<$Res> { - factory _$$ModFeaturePostViewImplCopyWith(_$ModFeaturePostViewImpl value, - $Res Function(_$ModFeaturePostViewImpl) then) = - __$$ModFeaturePostViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModFeaturePost modFeaturePost, - Person? moderator, - Post post, - Community community}); - - @override - $ModFeaturePostCopyWith<$Res> get modFeaturePost; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$ModFeaturePostViewImplCopyWithImpl<$Res> - extends _$ModFeaturePostViewCopyWithImpl<$Res, _$ModFeaturePostViewImpl> - implements _$$ModFeaturePostViewImplCopyWith<$Res> { - __$$ModFeaturePostViewImplCopyWithImpl(_$ModFeaturePostViewImpl _value, - $Res Function(_$ModFeaturePostViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modFeaturePost = null, - Object? moderator = freezed, - Object? post = null, - Object? community = null, - }) { - return _then(_$ModFeaturePostViewImpl( - modFeaturePost: null == modFeaturePost - ? _value.modFeaturePost - : modFeaturePost // ignore: cast_nullable_to_non_nullable - as ModFeaturePost, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModFeaturePostViewImpl extends _ModFeaturePostView { - const _$ModFeaturePostViewImpl( - {required this.modFeaturePost, - this.moderator, - required this.post, - required this.community}) - : super._(); - - factory _$ModFeaturePostViewImpl.fromJson(Map json) => - _$$ModFeaturePostViewImplFromJson(json); - - @override - final ModFeaturePost modFeaturePost; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'ModFeaturePostView(modFeaturePost: $modFeaturePost, moderator: $moderator, post: $post, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModFeaturePostViewImpl && - (identical(other.modFeaturePost, modFeaturePost) || - other.modFeaturePost == modFeaturePost) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, modFeaturePost, moderator, post, community); - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModFeaturePostViewImplCopyWith<_$ModFeaturePostViewImpl> get copyWith => - __$$ModFeaturePostViewImplCopyWithImpl<_$ModFeaturePostViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModFeaturePostViewImplToJson( - this, - ); - } -} - -abstract class _ModFeaturePostView extends ModFeaturePostView { - const factory _ModFeaturePostView( - {required final ModFeaturePost modFeaturePost, - final Person? moderator, - required final Post post, - required final Community community}) = _$ModFeaturePostViewImpl; - const _ModFeaturePostView._() : super._(); - - factory _ModFeaturePostView.fromJson(Map json) = - _$ModFeaturePostViewImpl.fromJson; - - @override - ModFeaturePost get modFeaturePost; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; - - /// Create a copy of ModFeaturePostView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModFeaturePostViewImplCopyWith<_$ModFeaturePostViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_feature_post_view.g.dart b/lib/src/v3/views/mod_feature_post_view.g.dart deleted file mode 100644 index 471d5bdd..00000000 --- a/lib/src/v3/views/mod_feature_post_view.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_feature_post_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModFeaturePostViewImpl _$$ModFeaturePostViewImplFromJson( - Map json) => - _$ModFeaturePostViewImpl( - modFeaturePost: ModFeaturePost.fromJson( - json['mod_feature_post'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$ModFeaturePostViewImplToJson( - _$ModFeaturePostViewImpl instance) => - { - 'mod_feature_post': instance.modFeaturePost.toJson(), - 'moderator': instance.moderator?.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/mod_hide_community_view.dart b/lib/src/v3/views/mod_hide_community_view.dart deleted file mode 100644 index 0c809521..00000000 --- a/lib/src/v3/views/mod_hide_community_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_hide_community_view.freezed.dart'; -part 'mod_hide_community_view.g.dart'; - -@freezed -class ModHideCommunityView with _$ModHideCommunityView { - @modelSerde - const factory ModHideCommunityView({ - required ModHideCommunity modHideCommunity, // v0.18.0 - Person? admin, // v0.18.0 - required Community community, // v0.18.0 - }) = _ModHideCommunityView; - - const ModHideCommunityView._(); - factory ModHideCommunityView.fromJson(Map json) => - _$ModHideCommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_hide_community_view.freezed.dart b/lib/src/v3/views/mod_hide_community_view.freezed.dart deleted file mode 100644 index afaa025b..00000000 --- a/lib/src/v3/views/mod_hide_community_view.freezed.dart +++ /dev/null @@ -1,259 +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 'mod_hide_community_view.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'); - -ModHideCommunityView _$ModHideCommunityViewFromJson(Map json) { - return _ModHideCommunityView.fromJson(json); -} - -/// @nodoc -mixin _$ModHideCommunityView { - ModHideCommunity get modHideCommunity => - throw _privateConstructorUsedError; // v0.18.0 - Person? get admin => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this ModHideCommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModHideCommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModHideCommunityViewCopyWith<$Res> { - factory $ModHideCommunityViewCopyWith(ModHideCommunityView value, - $Res Function(ModHideCommunityView) then) = - _$ModHideCommunityViewCopyWithImpl<$Res, ModHideCommunityView>; - @useResult - $Res call( - {ModHideCommunity modHideCommunity, Person? admin, Community community}); - - $ModHideCommunityCopyWith<$Res> get modHideCommunity; - $PersonCopyWith<$Res>? get admin; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$ModHideCommunityViewCopyWithImpl<$Res, - $Val extends ModHideCommunityView> - implements $ModHideCommunityViewCopyWith<$Res> { - _$ModHideCommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modHideCommunity = null, - Object? admin = freezed, - Object? community = null, - }) { - return _then(_value.copyWith( - modHideCommunity: null == modHideCommunity - ? _value.modHideCommunity - : modHideCommunity // ignore: cast_nullable_to_non_nullable - as ModHideCommunity, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModHideCommunityCopyWith<$Res> get modHideCommunity { - return $ModHideCommunityCopyWith<$Res>(_value.modHideCommunity, (value) { - return _then(_value.copyWith(modHideCommunity: value) as $Val); - }); - } - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get admin { - if (_value.admin == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.admin!, (value) { - return _then(_value.copyWith(admin: value) as $Val); - }); - } - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModHideCommunityViewImplCopyWith<$Res> - implements $ModHideCommunityViewCopyWith<$Res> { - factory _$$ModHideCommunityViewImplCopyWith(_$ModHideCommunityViewImpl value, - $Res Function(_$ModHideCommunityViewImpl) then) = - __$$ModHideCommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModHideCommunity modHideCommunity, Person? admin, Community community}); - - @override - $ModHideCommunityCopyWith<$Res> get modHideCommunity; - @override - $PersonCopyWith<$Res>? get admin; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$ModHideCommunityViewImplCopyWithImpl<$Res> - extends _$ModHideCommunityViewCopyWithImpl<$Res, _$ModHideCommunityViewImpl> - implements _$$ModHideCommunityViewImplCopyWith<$Res> { - __$$ModHideCommunityViewImplCopyWithImpl(_$ModHideCommunityViewImpl _value, - $Res Function(_$ModHideCommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modHideCommunity = null, - Object? admin = freezed, - Object? community = null, - }) { - return _then(_$ModHideCommunityViewImpl( - modHideCommunity: null == modHideCommunity - ? _value.modHideCommunity - : modHideCommunity // ignore: cast_nullable_to_non_nullable - as ModHideCommunity, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModHideCommunityViewImpl extends _ModHideCommunityView { - const _$ModHideCommunityViewImpl( - {required this.modHideCommunity, this.admin, required this.community}) - : super._(); - - factory _$ModHideCommunityViewImpl.fromJson(Map json) => - _$$ModHideCommunityViewImplFromJson(json); - - @override - final ModHideCommunity modHideCommunity; -// v0.18.0 - @override - final Person? admin; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'ModHideCommunityView(modHideCommunity: $modHideCommunity, admin: $admin, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModHideCommunityViewImpl && - (identical(other.modHideCommunity, modHideCommunity) || - other.modHideCommunity == modHideCommunity) && - (identical(other.admin, admin) || other.admin == admin) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, modHideCommunity, admin, community); - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModHideCommunityViewImplCopyWith<_$ModHideCommunityViewImpl> - get copyWith => - __$$ModHideCommunityViewImplCopyWithImpl<_$ModHideCommunityViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModHideCommunityViewImplToJson( - this, - ); - } -} - -abstract class _ModHideCommunityView extends ModHideCommunityView { - const factory _ModHideCommunityView( - {required final ModHideCommunity modHideCommunity, - final Person? admin, - required final Community community}) = _$ModHideCommunityViewImpl; - const _ModHideCommunityView._() : super._(); - - factory _ModHideCommunityView.fromJson(Map json) = - _$ModHideCommunityViewImpl.fromJson; - - @override - ModHideCommunity get modHideCommunity; // v0.18.0 - @override - Person? get admin; // v0.18.0 - @override - Community get community; - - /// Create a copy of ModHideCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModHideCommunityViewImplCopyWith<_$ModHideCommunityViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_hide_community_view.g.dart b/lib/src/v3/views/mod_hide_community_view.g.dart deleted file mode 100644 index e3a04be3..00000000 --- a/lib/src/v3/views/mod_hide_community_view.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_hide_community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModHideCommunityViewImpl _$$ModHideCommunityViewImplFromJson( - Map json) => - _$ModHideCommunityViewImpl( - modHideCommunity: ModHideCommunity.fromJson( - json['mod_hide_community'] as Map), - admin: json['admin'] == null - ? null - : Person.fromJson(json['admin'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$ModHideCommunityViewImplToJson( - _$ModHideCommunityViewImpl instance) => - { - 'mod_hide_community': instance.modHideCommunity.toJson(), - 'admin': instance.admin?.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/mod_lock_post_view.dart b/lib/src/v3/views/mod_lock_post_view.dart deleted file mode 100644 index f94fc582..00000000 --- a/lib/src/v3/views/mod_lock_post_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_lock_post_view.freezed.dart'; -part 'mod_lock_post_view.g.dart'; - -@freezed -class ModLockPostView with _$ModLockPostView { - @modelSerde - const factory ModLockPostView({ - required ModLockPost modLockPost, // v0.18.0 - Person? moderator, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - }) = _ModLockPostView; - - const ModLockPostView._(); - factory ModLockPostView.fromJson(Map json) => - _$ModLockPostViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_lock_post_view.freezed.dart b/lib/src/v3/views/mod_lock_post_view.freezed.dart deleted file mode 100644 index 69ac7d61..00000000 --- a/lib/src/v3/views/mod_lock_post_view.freezed.dart +++ /dev/null @@ -1,297 +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 'mod_lock_post_view.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'); - -ModLockPostView _$ModLockPostViewFromJson(Map json) { - return _ModLockPostView.fromJson(json); -} - -/// @nodoc -mixin _$ModLockPostView { - ModLockPost get modLockPost => throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this ModLockPostView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModLockPostViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModLockPostViewCopyWith<$Res> { - factory $ModLockPostViewCopyWith( - ModLockPostView value, $Res Function(ModLockPostView) then) = - _$ModLockPostViewCopyWithImpl<$Res, ModLockPostView>; - @useResult - $Res call( - {ModLockPost modLockPost, - Person? moderator, - Post post, - Community community}); - - $ModLockPostCopyWith<$Res> get modLockPost; - $PersonCopyWith<$Res>? get moderator; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$ModLockPostViewCopyWithImpl<$Res, $Val extends ModLockPostView> - implements $ModLockPostViewCopyWith<$Res> { - _$ModLockPostViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modLockPost = null, - Object? moderator = freezed, - Object? post = null, - Object? community = null, - }) { - return _then(_value.copyWith( - modLockPost: null == modLockPost - ? _value.modLockPost - : modLockPost // ignore: cast_nullable_to_non_nullable - as ModLockPost, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModLockPostCopyWith<$Res> get modLockPost { - return $ModLockPostCopyWith<$Res>(_value.modLockPost, (value) { - return _then(_value.copyWith(modLockPost: value) as $Val); - }); - } - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModLockPostViewImplCopyWith<$Res> - implements $ModLockPostViewCopyWith<$Res> { - factory _$$ModLockPostViewImplCopyWith(_$ModLockPostViewImpl value, - $Res Function(_$ModLockPostViewImpl) then) = - __$$ModLockPostViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModLockPost modLockPost, - Person? moderator, - Post post, - Community community}); - - @override - $ModLockPostCopyWith<$Res> get modLockPost; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$ModLockPostViewImplCopyWithImpl<$Res> - extends _$ModLockPostViewCopyWithImpl<$Res, _$ModLockPostViewImpl> - implements _$$ModLockPostViewImplCopyWith<$Res> { - __$$ModLockPostViewImplCopyWithImpl( - _$ModLockPostViewImpl _value, $Res Function(_$ModLockPostViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modLockPost = null, - Object? moderator = freezed, - Object? post = null, - Object? community = null, - }) { - return _then(_$ModLockPostViewImpl( - modLockPost: null == modLockPost - ? _value.modLockPost - : modLockPost // ignore: cast_nullable_to_non_nullable - as ModLockPost, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModLockPostViewImpl extends _ModLockPostView { - const _$ModLockPostViewImpl( - {required this.modLockPost, - this.moderator, - required this.post, - required this.community}) - : super._(); - - factory _$ModLockPostViewImpl.fromJson(Map json) => - _$$ModLockPostViewImplFromJson(json); - - @override - final ModLockPost modLockPost; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'ModLockPostView(modLockPost: $modLockPost, moderator: $moderator, post: $post, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModLockPostViewImpl && - (identical(other.modLockPost, modLockPost) || - other.modLockPost == modLockPost) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, modLockPost, moderator, post, community); - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModLockPostViewImplCopyWith<_$ModLockPostViewImpl> get copyWith => - __$$ModLockPostViewImplCopyWithImpl<_$ModLockPostViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModLockPostViewImplToJson( - this, - ); - } -} - -abstract class _ModLockPostView extends ModLockPostView { - const factory _ModLockPostView( - {required final ModLockPost modLockPost, - final Person? moderator, - required final Post post, - required final Community community}) = _$ModLockPostViewImpl; - const _ModLockPostView._() : super._(); - - factory _ModLockPostView.fromJson(Map json) = - _$ModLockPostViewImpl.fromJson; - - @override - ModLockPost get modLockPost; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; - - /// Create a copy of ModLockPostView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModLockPostViewImplCopyWith<_$ModLockPostViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_lock_post_view.g.dart b/lib/src/v3/views/mod_lock_post_view.g.dart deleted file mode 100644 index 518ba8dc..00000000 --- a/lib/src/v3/views/mod_lock_post_view.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_lock_post_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModLockPostViewImpl _$$ModLockPostViewImplFromJson( - Map json) => - _$ModLockPostViewImpl( - modLockPost: - ModLockPost.fromJson(json['mod_lock_post'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$ModLockPostViewImplToJson( - _$ModLockPostViewImpl instance) => - { - 'mod_lock_post': instance.modLockPost.toJson(), - 'moderator': instance.moderator?.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/mod_remove_comment_view.dart b/lib/src/v3/views/mod_remove_comment_view.dart deleted file mode 100644 index 78839dfa..00000000 --- a/lib/src/v3/views/mod_remove_comment_view.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_remove_comment_view.freezed.dart'; -part 'mod_remove_comment_view.g.dart'; - -@freezed -class ModRemoveCommentView with _$ModRemoveCommentView { - @modelSerde - const factory ModRemoveCommentView({ - required ModRemoveComment modRemoveComment, // v0.18.0 - Person? moderator, // v0.18.0 - required Comment comment, // v0.18.0 - required Person commenter, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - }) = _ModRemoveCommentView; - - const ModRemoveCommentView._(); - factory ModRemoveCommentView.fromJson(Map json) => - _$ModRemoveCommentViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_remove_comment_view.freezed.dart b/lib/src/v3/views/mod_remove_comment_view.freezed.dart deleted file mode 100644 index 00f9af20..00000000 --- a/lib/src/v3/views/mod_remove_comment_view.freezed.dart +++ /dev/null @@ -1,369 +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 'mod_remove_comment_view.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'); - -ModRemoveCommentView _$ModRemoveCommentViewFromJson(Map json) { - return _ModRemoveCommentView.fromJson(json); -} - -/// @nodoc -mixin _$ModRemoveCommentView { - ModRemoveComment get modRemoveComment => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Comment get comment => throw _privateConstructorUsedError; // v0.18.0 - Person get commenter => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this ModRemoveCommentView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModRemoveCommentViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModRemoveCommentViewCopyWith<$Res> { - factory $ModRemoveCommentViewCopyWith(ModRemoveCommentView value, - $Res Function(ModRemoveCommentView) then) = - _$ModRemoveCommentViewCopyWithImpl<$Res, ModRemoveCommentView>; - @useResult - $Res call( - {ModRemoveComment modRemoveComment, - Person? moderator, - Comment comment, - Person commenter, - Post post, - Community community}); - - $ModRemoveCommentCopyWith<$Res> get modRemoveComment; - $PersonCopyWith<$Res>? get moderator; - $CommentCopyWith<$Res> get comment; - $PersonCopyWith<$Res> get commenter; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$ModRemoveCommentViewCopyWithImpl<$Res, - $Val extends ModRemoveCommentView> - implements $ModRemoveCommentViewCopyWith<$Res> { - _$ModRemoveCommentViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modRemoveComment = null, - Object? moderator = freezed, - Object? comment = null, - Object? commenter = null, - Object? post = null, - Object? community = null, - }) { - return _then(_value.copyWith( - modRemoveComment: null == modRemoveComment - ? _value.modRemoveComment - : modRemoveComment // ignore: cast_nullable_to_non_nullable - as ModRemoveComment, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - commenter: null == commenter - ? _value.commenter - : commenter // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModRemoveCommentCopyWith<$Res> get modRemoveComment { - return $ModRemoveCommentCopyWith<$Res>(_value.modRemoveComment, (value) { - return _then(_value.copyWith(modRemoveComment: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentCopyWith<$Res> get comment { - return $CommentCopyWith<$Res>(_value.comment, (value) { - return _then(_value.copyWith(comment: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get commenter { - return $PersonCopyWith<$Res>(_value.commenter, (value) { - return _then(_value.copyWith(commenter: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModRemoveCommentViewImplCopyWith<$Res> - implements $ModRemoveCommentViewCopyWith<$Res> { - factory _$$ModRemoveCommentViewImplCopyWith(_$ModRemoveCommentViewImpl value, - $Res Function(_$ModRemoveCommentViewImpl) then) = - __$$ModRemoveCommentViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModRemoveComment modRemoveComment, - Person? moderator, - Comment comment, - Person commenter, - Post post, - Community community}); - - @override - $ModRemoveCommentCopyWith<$Res> get modRemoveComment; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $CommentCopyWith<$Res> get comment; - @override - $PersonCopyWith<$Res> get commenter; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$ModRemoveCommentViewImplCopyWithImpl<$Res> - extends _$ModRemoveCommentViewCopyWithImpl<$Res, _$ModRemoveCommentViewImpl> - implements _$$ModRemoveCommentViewImplCopyWith<$Res> { - __$$ModRemoveCommentViewImplCopyWithImpl(_$ModRemoveCommentViewImpl _value, - $Res Function(_$ModRemoveCommentViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modRemoveComment = null, - Object? moderator = freezed, - Object? comment = null, - Object? commenter = null, - Object? post = null, - Object? community = null, - }) { - return _then(_$ModRemoveCommentViewImpl( - modRemoveComment: null == modRemoveComment - ? _value.modRemoveComment - : modRemoveComment // ignore: cast_nullable_to_non_nullable - as ModRemoveComment, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - commenter: null == commenter - ? _value.commenter - : commenter // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModRemoveCommentViewImpl extends _ModRemoveCommentView { - const _$ModRemoveCommentViewImpl( - {required this.modRemoveComment, - this.moderator, - required this.comment, - required this.commenter, - required this.post, - required this.community}) - : super._(); - - factory _$ModRemoveCommentViewImpl.fromJson(Map json) => - _$$ModRemoveCommentViewImplFromJson(json); - - @override - final ModRemoveComment modRemoveComment; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Comment comment; -// v0.18.0 - @override - final Person commenter; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'ModRemoveCommentView(modRemoveComment: $modRemoveComment, moderator: $moderator, comment: $comment, commenter: $commenter, post: $post, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModRemoveCommentViewImpl && - (identical(other.modRemoveComment, modRemoveComment) || - other.modRemoveComment == modRemoveComment) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.commenter, commenter) || - other.commenter == commenter) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, modRemoveComment, moderator, - comment, commenter, post, community); - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModRemoveCommentViewImplCopyWith<_$ModRemoveCommentViewImpl> - get copyWith => - __$$ModRemoveCommentViewImplCopyWithImpl<_$ModRemoveCommentViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModRemoveCommentViewImplToJson( - this, - ); - } -} - -abstract class _ModRemoveCommentView extends ModRemoveCommentView { - const factory _ModRemoveCommentView( - {required final ModRemoveComment modRemoveComment, - final Person? moderator, - required final Comment comment, - required final Person commenter, - required final Post post, - required final Community community}) = _$ModRemoveCommentViewImpl; - const _ModRemoveCommentView._() : super._(); - - factory _ModRemoveCommentView.fromJson(Map json) = - _$ModRemoveCommentViewImpl.fromJson; - - @override - ModRemoveComment get modRemoveComment; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Comment get comment; // v0.18.0 - @override - Person get commenter; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; - - /// Create a copy of ModRemoveCommentView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModRemoveCommentViewImplCopyWith<_$ModRemoveCommentViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_remove_comment_view.g.dart b/lib/src/v3/views/mod_remove_comment_view.g.dart deleted file mode 100644 index a11b0219..00000000 --- a/lib/src/v3/views/mod_remove_comment_view.g.dart +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_remove_comment_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModRemoveCommentViewImpl _$$ModRemoveCommentViewImplFromJson( - Map json) => - _$ModRemoveCommentViewImpl( - modRemoveComment: ModRemoveComment.fromJson( - json['mod_remove_comment'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - comment: Comment.fromJson(json['comment'] as Map), - commenter: Person.fromJson(json['commenter'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$ModRemoveCommentViewImplToJson( - _$ModRemoveCommentViewImpl instance) => - { - 'mod_remove_comment': instance.modRemoveComment.toJson(), - 'moderator': instance.moderator?.toJson(), - 'comment': instance.comment.toJson(), - 'commenter': instance.commenter.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/mod_remove_community_view.dart b/lib/src/v3/views/mod_remove_community_view.dart deleted file mode 100644 index 04149c0d..00000000 --- a/lib/src/v3/views/mod_remove_community_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_remove_community_view.freezed.dart'; -part 'mod_remove_community_view.g.dart'; - -@freezed -class ModRemoveCommunityView with _$ModRemoveCommunityView { - @modelSerde - const factory ModRemoveCommunityView({ - required ModRemoveCommunity modRemoveCommunity, // v0.18.0 - Person? moderator, // v0.18.0 - required Community community, // v0.18.0 - }) = _ModRemoveCommunityView; - - const ModRemoveCommunityView._(); - factory ModRemoveCommunityView.fromJson(Map json) => - _$ModRemoveCommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_remove_community_view.freezed.dart b/lib/src/v3/views/mod_remove_community_view.freezed.dart deleted file mode 100644 index aba8457a..00000000 --- a/lib/src/v3/views/mod_remove_community_view.freezed.dart +++ /dev/null @@ -1,270 +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 'mod_remove_community_view.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'); - -ModRemoveCommunityView _$ModRemoveCommunityViewFromJson( - Map json) { - return _ModRemoveCommunityView.fromJson(json); -} - -/// @nodoc -mixin _$ModRemoveCommunityView { - ModRemoveCommunity get modRemoveCommunity => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this ModRemoveCommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModRemoveCommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModRemoveCommunityViewCopyWith<$Res> { - factory $ModRemoveCommunityViewCopyWith(ModRemoveCommunityView value, - $Res Function(ModRemoveCommunityView) then) = - _$ModRemoveCommunityViewCopyWithImpl<$Res, ModRemoveCommunityView>; - @useResult - $Res call( - {ModRemoveCommunity modRemoveCommunity, - Person? moderator, - Community community}); - - $ModRemoveCommunityCopyWith<$Res> get modRemoveCommunity; - $PersonCopyWith<$Res>? get moderator; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$ModRemoveCommunityViewCopyWithImpl<$Res, - $Val extends ModRemoveCommunityView> - implements $ModRemoveCommunityViewCopyWith<$Res> { - _$ModRemoveCommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modRemoveCommunity = null, - Object? moderator = freezed, - Object? community = null, - }) { - return _then(_value.copyWith( - modRemoveCommunity: null == modRemoveCommunity - ? _value.modRemoveCommunity - : modRemoveCommunity // ignore: cast_nullable_to_non_nullable - as ModRemoveCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModRemoveCommunityCopyWith<$Res> get modRemoveCommunity { - return $ModRemoveCommunityCopyWith<$Res>(_value.modRemoveCommunity, - (value) { - return _then(_value.copyWith(modRemoveCommunity: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModRemoveCommunityViewImplCopyWith<$Res> - implements $ModRemoveCommunityViewCopyWith<$Res> { - factory _$$ModRemoveCommunityViewImplCopyWith( - _$ModRemoveCommunityViewImpl value, - $Res Function(_$ModRemoveCommunityViewImpl) then) = - __$$ModRemoveCommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModRemoveCommunity modRemoveCommunity, - Person? moderator, - Community community}); - - @override - $ModRemoveCommunityCopyWith<$Res> get modRemoveCommunity; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$ModRemoveCommunityViewImplCopyWithImpl<$Res> - extends _$ModRemoveCommunityViewCopyWithImpl<$Res, - _$ModRemoveCommunityViewImpl> - implements _$$ModRemoveCommunityViewImplCopyWith<$Res> { - __$$ModRemoveCommunityViewImplCopyWithImpl( - _$ModRemoveCommunityViewImpl _value, - $Res Function(_$ModRemoveCommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modRemoveCommunity = null, - Object? moderator = freezed, - Object? community = null, - }) { - return _then(_$ModRemoveCommunityViewImpl( - modRemoveCommunity: null == modRemoveCommunity - ? _value.modRemoveCommunity - : modRemoveCommunity // ignore: cast_nullable_to_non_nullable - as ModRemoveCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModRemoveCommunityViewImpl extends _ModRemoveCommunityView { - const _$ModRemoveCommunityViewImpl( - {required this.modRemoveCommunity, - this.moderator, - required this.community}) - : super._(); - - factory _$ModRemoveCommunityViewImpl.fromJson(Map json) => - _$$ModRemoveCommunityViewImplFromJson(json); - - @override - final ModRemoveCommunity modRemoveCommunity; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'ModRemoveCommunityView(modRemoveCommunity: $modRemoveCommunity, moderator: $moderator, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModRemoveCommunityViewImpl && - (identical(other.modRemoveCommunity, modRemoveCommunity) || - other.modRemoveCommunity == modRemoveCommunity) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, modRemoveCommunity, moderator, community); - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModRemoveCommunityViewImplCopyWith<_$ModRemoveCommunityViewImpl> - get copyWith => __$$ModRemoveCommunityViewImplCopyWithImpl< - _$ModRemoveCommunityViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModRemoveCommunityViewImplToJson( - this, - ); - } -} - -abstract class _ModRemoveCommunityView extends ModRemoveCommunityView { - const factory _ModRemoveCommunityView( - {required final ModRemoveCommunity modRemoveCommunity, - final Person? moderator, - required final Community community}) = _$ModRemoveCommunityViewImpl; - const _ModRemoveCommunityView._() : super._(); - - factory _ModRemoveCommunityView.fromJson(Map json) = - _$ModRemoveCommunityViewImpl.fromJson; - - @override - ModRemoveCommunity get modRemoveCommunity; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Community get community; - - /// Create a copy of ModRemoveCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModRemoveCommunityViewImplCopyWith<_$ModRemoveCommunityViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_remove_community_view.g.dart b/lib/src/v3/views/mod_remove_community_view.g.dart deleted file mode 100644 index 6119ced4..00000000 --- a/lib/src/v3/views/mod_remove_community_view.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_remove_community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModRemoveCommunityViewImpl _$$ModRemoveCommunityViewImplFromJson( - Map json) => - _$ModRemoveCommunityViewImpl( - modRemoveCommunity: ModRemoveCommunity.fromJson( - json['mod_remove_community'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$ModRemoveCommunityViewImplToJson( - _$ModRemoveCommunityViewImpl instance) => - { - 'mod_remove_community': instance.modRemoveCommunity.toJson(), - 'moderator': instance.moderator?.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/mod_remove_post_view.dart b/lib/src/v3/views/mod_remove_post_view.dart deleted file mode 100644 index 45f92804..00000000 --- a/lib/src/v3/views/mod_remove_post_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_remove_post_view.freezed.dart'; -part 'mod_remove_post_view.g.dart'; - -@freezed -class ModRemovePostView with _$ModRemovePostView { - @modelSerde - const factory ModRemovePostView({ - required ModRemovePost modRemovePost, // v0.18.0 - Person? moderator, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - }) = _ModRemovePostView; - - const ModRemovePostView._(); - factory ModRemovePostView.fromJson(Map json) => - _$ModRemovePostViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_remove_post_view.freezed.dart b/lib/src/v3/views/mod_remove_post_view.freezed.dart deleted file mode 100644 index b3941409..00000000 --- a/lib/src/v3/views/mod_remove_post_view.freezed.dart +++ /dev/null @@ -1,298 +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 'mod_remove_post_view.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'); - -ModRemovePostView _$ModRemovePostViewFromJson(Map json) { - return _ModRemovePostView.fromJson(json); -} - -/// @nodoc -mixin _$ModRemovePostView { - ModRemovePost get modRemovePost => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; - - /// Serializes this ModRemovePostView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModRemovePostViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModRemovePostViewCopyWith<$Res> { - factory $ModRemovePostViewCopyWith( - ModRemovePostView value, $Res Function(ModRemovePostView) then) = - _$ModRemovePostViewCopyWithImpl<$Res, ModRemovePostView>; - @useResult - $Res call( - {ModRemovePost modRemovePost, - Person? moderator, - Post post, - Community community}); - - $ModRemovePostCopyWith<$Res> get modRemovePost; - $PersonCopyWith<$Res>? get moderator; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class _$ModRemovePostViewCopyWithImpl<$Res, $Val extends ModRemovePostView> - implements $ModRemovePostViewCopyWith<$Res> { - _$ModRemovePostViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modRemovePost = null, - Object? moderator = freezed, - Object? post = null, - Object? community = null, - }) { - return _then(_value.copyWith( - modRemovePost: null == modRemovePost - ? _value.modRemovePost - : modRemovePost // ignore: cast_nullable_to_non_nullable - as ModRemovePost, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - ) as $Val); - } - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModRemovePostCopyWith<$Res> get modRemovePost { - return $ModRemovePostCopyWith<$Res>(_value.modRemovePost, (value) { - return _then(_value.copyWith(modRemovePost: value) as $Val); - }); - } - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModRemovePostViewImplCopyWith<$Res> - implements $ModRemovePostViewCopyWith<$Res> { - factory _$$ModRemovePostViewImplCopyWith(_$ModRemovePostViewImpl value, - $Res Function(_$ModRemovePostViewImpl) then) = - __$$ModRemovePostViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModRemovePost modRemovePost, - Person? moderator, - Post post, - Community community}); - - @override - $ModRemovePostCopyWith<$Res> get modRemovePost; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; -} - -/// @nodoc -class __$$ModRemovePostViewImplCopyWithImpl<$Res> - extends _$ModRemovePostViewCopyWithImpl<$Res, _$ModRemovePostViewImpl> - implements _$$ModRemovePostViewImplCopyWith<$Res> { - __$$ModRemovePostViewImplCopyWithImpl(_$ModRemovePostViewImpl _value, - $Res Function(_$ModRemovePostViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modRemovePost = null, - Object? moderator = freezed, - Object? post = null, - Object? community = null, - }) { - return _then(_$ModRemovePostViewImpl( - modRemovePost: null == modRemovePost - ? _value.modRemovePost - : modRemovePost // ignore: cast_nullable_to_non_nullable - as ModRemovePost, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModRemovePostViewImpl extends _ModRemovePostView { - const _$ModRemovePostViewImpl( - {required this.modRemovePost, - this.moderator, - required this.post, - required this.community}) - : super._(); - - factory _$ModRemovePostViewImpl.fromJson(Map json) => - _$$ModRemovePostViewImplFromJson(json); - - @override - final ModRemovePost modRemovePost; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; - - @override - String toString() { - return 'ModRemovePostView(modRemovePost: $modRemovePost, moderator: $moderator, post: $post, community: $community)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModRemovePostViewImpl && - (identical(other.modRemovePost, modRemovePost) || - other.modRemovePost == modRemovePost) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, modRemovePost, moderator, post, community); - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModRemovePostViewImplCopyWith<_$ModRemovePostViewImpl> get copyWith => - __$$ModRemovePostViewImplCopyWithImpl<_$ModRemovePostViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$ModRemovePostViewImplToJson( - this, - ); - } -} - -abstract class _ModRemovePostView extends ModRemovePostView { - const factory _ModRemovePostView( - {required final ModRemovePost modRemovePost, - final Person? moderator, - required final Post post, - required final Community community}) = _$ModRemovePostViewImpl; - const _ModRemovePostView._() : super._(); - - factory _ModRemovePostView.fromJson(Map json) = - _$ModRemovePostViewImpl.fromJson; - - @override - ModRemovePost get modRemovePost; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; - - /// Create a copy of ModRemovePostView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModRemovePostViewImplCopyWith<_$ModRemovePostViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_remove_post_view.g.dart b/lib/src/v3/views/mod_remove_post_view.g.dart deleted file mode 100644 index 0f271f7a..00000000 --- a/lib/src/v3/views/mod_remove_post_view.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_remove_post_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModRemovePostViewImpl _$$ModRemovePostViewImplFromJson( - Map json) => - _$ModRemovePostViewImpl( - modRemovePost: ModRemovePost.fromJson( - json['mod_remove_post'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - ); - -Map _$$ModRemovePostViewImplToJson( - _$ModRemovePostViewImpl instance) => - { - 'mod_remove_post': instance.modRemovePost.toJson(), - 'moderator': instance.moderator?.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - }; diff --git a/lib/src/v3/views/mod_transfer_community_view.dart b/lib/src/v3/views/mod_transfer_community_view.dart deleted file mode 100644 index 2c78ec2b..00000000 --- a/lib/src/v3/views/mod_transfer_community_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'mod_transfer_community_view.freezed.dart'; -part 'mod_transfer_community_view.g.dart'; - -@freezed -class ModTransferCommunityView with _$ModTransferCommunityView { - @modelSerde - const factory ModTransferCommunityView({ - required ModTransferCommunity modTransferCommunity, // v0.18.0 - Person? moderator, // v0.18.0 - required Community community, // v0.18.0 - required Person moddedPerson, // v0.18.0 - }) = _ModTransferCommunityView; - - const ModTransferCommunityView._(); - factory ModTransferCommunityView.fromJson(Map json) => - _$ModTransferCommunityViewFromJson(json); -} diff --git a/lib/src/v3/views/mod_transfer_community_view.freezed.dart b/lib/src/v3/views/mod_transfer_community_view.freezed.dart deleted file mode 100644 index 861810c5..00000000 --- a/lib/src/v3/views/mod_transfer_community_view.freezed.dart +++ /dev/null @@ -1,305 +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 'mod_transfer_community_view.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'); - -ModTransferCommunityView _$ModTransferCommunityViewFromJson( - Map json) { - return _ModTransferCommunityView.fromJson(json); -} - -/// @nodoc -mixin _$ModTransferCommunityView { - ModTransferCommunity get modTransferCommunity => - throw _privateConstructorUsedError; // v0.18.0 - Person? get moderator => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get moddedPerson => throw _privateConstructorUsedError; - - /// Serializes this ModTransferCommunityView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $ModTransferCommunityViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ModTransferCommunityViewCopyWith<$Res> { - factory $ModTransferCommunityViewCopyWith(ModTransferCommunityView value, - $Res Function(ModTransferCommunityView) then) = - _$ModTransferCommunityViewCopyWithImpl<$Res, ModTransferCommunityView>; - @useResult - $Res call( - {ModTransferCommunity modTransferCommunity, - Person? moderator, - Community community, - Person moddedPerson}); - - $ModTransferCommunityCopyWith<$Res> get modTransferCommunity; - $PersonCopyWith<$Res>? get moderator; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get moddedPerson; -} - -/// @nodoc -class _$ModTransferCommunityViewCopyWithImpl<$Res, - $Val extends ModTransferCommunityView> - implements $ModTransferCommunityViewCopyWith<$Res> { - _$ModTransferCommunityViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modTransferCommunity = null, - Object? moderator = freezed, - Object? community = null, - Object? moddedPerson = null, - }) { - return _then(_value.copyWith( - modTransferCommunity: null == modTransferCommunity - ? _value.modTransferCommunity - : modTransferCommunity // ignore: cast_nullable_to_non_nullable - as ModTransferCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - moddedPerson: null == moddedPerson - ? _value.moddedPerson - : moddedPerson // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ModTransferCommunityCopyWith<$Res> get modTransferCommunity { - return $ModTransferCommunityCopyWith<$Res>(_value.modTransferCommunity, - (value) { - return _then(_value.copyWith(modTransferCommunity: value) as $Val); - }); - } - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get moderator { - if (_value.moderator == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.moderator!, (value) { - return _then(_value.copyWith(moderator: value) as $Val); - }); - } - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get moddedPerson { - return $PersonCopyWith<$Res>(_value.moddedPerson, (value) { - return _then(_value.copyWith(moddedPerson: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ModTransferCommunityViewImplCopyWith<$Res> - implements $ModTransferCommunityViewCopyWith<$Res> { - factory _$$ModTransferCommunityViewImplCopyWith( - _$ModTransferCommunityViewImpl value, - $Res Function(_$ModTransferCommunityViewImpl) then) = - __$$ModTransferCommunityViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {ModTransferCommunity modTransferCommunity, - Person? moderator, - Community community, - Person moddedPerson}); - - @override - $ModTransferCommunityCopyWith<$Res> get modTransferCommunity; - @override - $PersonCopyWith<$Res>? get moderator; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get moddedPerson; -} - -/// @nodoc -class __$$ModTransferCommunityViewImplCopyWithImpl<$Res> - extends _$ModTransferCommunityViewCopyWithImpl<$Res, - _$ModTransferCommunityViewImpl> - implements _$$ModTransferCommunityViewImplCopyWith<$Res> { - __$$ModTransferCommunityViewImplCopyWithImpl( - _$ModTransferCommunityViewImpl _value, - $Res Function(_$ModTransferCommunityViewImpl) _then) - : super(_value, _then); - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? modTransferCommunity = null, - Object? moderator = freezed, - Object? community = null, - Object? moddedPerson = null, - }) { - return _then(_$ModTransferCommunityViewImpl( - modTransferCommunity: null == modTransferCommunity - ? _value.modTransferCommunity - : modTransferCommunity // ignore: cast_nullable_to_non_nullable - as ModTransferCommunity, - moderator: freezed == moderator - ? _value.moderator - : moderator // ignore: cast_nullable_to_non_nullable - as Person?, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - moddedPerson: null == moddedPerson - ? _value.moddedPerson - : moddedPerson // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$ModTransferCommunityViewImpl extends _ModTransferCommunityView { - const _$ModTransferCommunityViewImpl( - {required this.modTransferCommunity, - this.moderator, - required this.community, - required this.moddedPerson}) - : super._(); - - factory _$ModTransferCommunityViewImpl.fromJson(Map json) => - _$$ModTransferCommunityViewImplFromJson(json); - - @override - final ModTransferCommunity modTransferCommunity; -// v0.18.0 - @override - final Person? moderator; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person moddedPerson; - - @override - String toString() { - return 'ModTransferCommunityView(modTransferCommunity: $modTransferCommunity, moderator: $moderator, community: $community, moddedPerson: $moddedPerson)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ModTransferCommunityViewImpl && - (identical(other.modTransferCommunity, modTransferCommunity) || - other.modTransferCommunity == modTransferCommunity) && - (identical(other.moderator, moderator) || - other.moderator == moderator) && - (identical(other.community, community) || - other.community == community) && - (identical(other.moddedPerson, moddedPerson) || - other.moddedPerson == moddedPerson)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, modTransferCommunity, moderator, community, moddedPerson); - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$ModTransferCommunityViewImplCopyWith<_$ModTransferCommunityViewImpl> - get copyWith => __$$ModTransferCommunityViewImplCopyWithImpl< - _$ModTransferCommunityViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ModTransferCommunityViewImplToJson( - this, - ); - } -} - -abstract class _ModTransferCommunityView extends ModTransferCommunityView { - const factory _ModTransferCommunityView( - {required final ModTransferCommunity modTransferCommunity, - final Person? moderator, - required final Community community, - required final Person moddedPerson}) = _$ModTransferCommunityViewImpl; - const _ModTransferCommunityView._() : super._(); - - factory _ModTransferCommunityView.fromJson(Map json) = - _$ModTransferCommunityViewImpl.fromJson; - - @override - ModTransferCommunity get modTransferCommunity; // v0.18.0 - @override - Person? get moderator; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get moddedPerson; - - /// Create a copy of ModTransferCommunityView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$ModTransferCommunityViewImplCopyWith<_$ModTransferCommunityViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/mod_transfer_community_view.g.dart b/lib/src/v3/views/mod_transfer_community_view.g.dart deleted file mode 100644 index c86302c8..00000000 --- a/lib/src/v3/views/mod_transfer_community_view.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'mod_transfer_community_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ModTransferCommunityViewImpl _$$ModTransferCommunityViewImplFromJson( - Map json) => - _$ModTransferCommunityViewImpl( - modTransferCommunity: ModTransferCommunity.fromJson( - json['mod_transfer_community'] as Map), - moderator: json['moderator'] == null - ? null - : Person.fromJson(json['moderator'] as Map), - community: Community.fromJson(json['community'] as Map), - moddedPerson: - Person.fromJson(json['modded_person'] as Map), - ); - -Map _$$ModTransferCommunityViewImplToJson( - _$ModTransferCommunityViewImpl instance) => - { - 'mod_transfer_community': instance.modTransferCommunity.toJson(), - 'moderator': instance.moderator?.toJson(), - 'community': instance.community.toJson(), - 'modded_person': instance.moddedPerson.toJson(), - }; diff --git a/lib/src/v3/views/person_block_view.dart b/lib/src/v3/views/person_block_view.dart deleted file mode 100644 index d53b25cf..00000000 --- a/lib/src/v3/views/person_block_view.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'person_block_view.freezed.dart'; -part 'person_block_view.g.dart'; - -@freezed -class PersonBlockView with _$PersonBlockView { - @modelSerde - const factory PersonBlockView({ - required Person person, // v0.18.0 - required Person target, // v0.18.0 - }) = _PersonBlockView; - - const PersonBlockView._(); - factory PersonBlockView.fromJson(Map json) => - _$PersonBlockViewFromJson(json); -} diff --git a/lib/src/v3/views/person_block_view.freezed.dart b/lib/src/v3/views/person_block_view.freezed.dart deleted file mode 100644 index d4857147..00000000 --- a/lib/src/v3/views/person_block_view.freezed.dart +++ /dev/null @@ -1,215 +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 'person_block_view.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'); - -PersonBlockView _$PersonBlockViewFromJson(Map json) { - return _PersonBlockView.fromJson(json); -} - -/// @nodoc -mixin _$PersonBlockView { - Person get person => throw _privateConstructorUsedError; // v0.18.0 - Person get target => throw _privateConstructorUsedError; - - /// Serializes this PersonBlockView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonBlockViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonBlockViewCopyWith<$Res> { - factory $PersonBlockViewCopyWith( - PersonBlockView value, $Res Function(PersonBlockView) then) = - _$PersonBlockViewCopyWithImpl<$Res, PersonBlockView>; - @useResult - $Res call({Person person, Person target}); - - $PersonCopyWith<$Res> get person; - $PersonCopyWith<$Res> get target; -} - -/// @nodoc -class _$PersonBlockViewCopyWithImpl<$Res, $Val extends PersonBlockView> - implements $PersonBlockViewCopyWith<$Res> { - _$PersonBlockViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? target = null, - }) { - return _then(_value.copyWith( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - target: null == target - ? _value.target - : target // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get person { - return $PersonCopyWith<$Res>(_value.person, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get target { - return $PersonCopyWith<$Res>(_value.target, (value) { - return _then(_value.copyWith(target: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PersonBlockViewImplCopyWith<$Res> - implements $PersonBlockViewCopyWith<$Res> { - factory _$$PersonBlockViewImplCopyWith(_$PersonBlockViewImpl value, - $Res Function(_$PersonBlockViewImpl) then) = - __$$PersonBlockViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Person person, Person target}); - - @override - $PersonCopyWith<$Res> get person; - @override - $PersonCopyWith<$Res> get target; -} - -/// @nodoc -class __$$PersonBlockViewImplCopyWithImpl<$Res> - extends _$PersonBlockViewCopyWithImpl<$Res, _$PersonBlockViewImpl> - implements _$$PersonBlockViewImplCopyWith<$Res> { - __$$PersonBlockViewImplCopyWithImpl( - _$PersonBlockViewImpl _value, $Res Function(_$PersonBlockViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? target = null, - }) { - return _then(_$PersonBlockViewImpl( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - target: null == target - ? _value.target - : target // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonBlockViewImpl extends _PersonBlockView { - const _$PersonBlockViewImpl({required this.person, required this.target}) - : super._(); - - factory _$PersonBlockViewImpl.fromJson(Map json) => - _$$PersonBlockViewImplFromJson(json); - - @override - final Person person; -// v0.18.0 - @override - final Person target; - - @override - String toString() { - return 'PersonBlockView(person: $person, target: $target)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonBlockViewImpl && - (identical(other.person, person) || other.person == person) && - (identical(other.target, target) || other.target == target)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, person, target); - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonBlockViewImplCopyWith<_$PersonBlockViewImpl> get copyWith => - __$$PersonBlockViewImplCopyWithImpl<_$PersonBlockViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PersonBlockViewImplToJson( - this, - ); - } -} - -abstract class _PersonBlockView extends PersonBlockView { - const factory _PersonBlockView( - {required final Person person, - required final Person target}) = _$PersonBlockViewImpl; - const _PersonBlockView._() : super._(); - - factory _PersonBlockView.fromJson(Map json) = - _$PersonBlockViewImpl.fromJson; - - @override - Person get person; // v0.18.0 - @override - Person get target; - - /// Create a copy of PersonBlockView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonBlockViewImplCopyWith<_$PersonBlockViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/person_block_view.g.dart b/lib/src/v3/views/person_block_view.g.dart deleted file mode 100644 index 732dd431..00000000 --- a/lib/src/v3/views/person_block_view.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person_block_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonBlockViewImpl _$$PersonBlockViewImplFromJson( - Map json) => - _$PersonBlockViewImpl( - person: Person.fromJson(json['person'] as Map), - target: Person.fromJson(json['target'] as Map), - ); - -Map _$$PersonBlockViewImplToJson( - _$PersonBlockViewImpl instance) => - { - 'person': instance.person.toJson(), - 'target': instance.target.toJson(), - }; diff --git a/lib/src/v3/views/person_mention_view.dart b/lib/src/v3/views/person_mention_view.dart deleted file mode 100644 index 3b96a61a..00000000 --- a/lib/src/v3/views/person_mention_view.dart +++ /dev/null @@ -1,34 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../enums/enums.dart'; -import '../models/models.dart'; - -part 'person_mention_view.freezed.dart'; -part 'person_mention_view.g.dart'; - -@freezed -class PersonMentionView with _$PersonMentionView { - @modelSerde - const factory PersonMentionView({ - required PersonMention personMention, // v0.18.0 - required Comment comment, // v0.18.0 - required Person creator, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - required Person recipient, // v0.18.0 - required CommentAggregates counts, // v0.18.0 - required bool creatorBannedFromCommunity, // v0.18.0 - bool? bannedFromCommunity, // v0.19.4 (required) - bool? creatorIsModerator, // v0.19.0 (required) - bool? creatorIsAdmin, // v0.19.0 (required) - required SubscribedType subscribed, // v0.18.0 - required bool saved, // v0.18.0 - required bool creatorBlocked, // v0.18.0 - int? myVote, // v0.18.0 - }) = _PersonMentionView; - - const PersonMentionView._(); - factory PersonMentionView.fromJson(Map json) => - _$PersonMentionViewFromJson(json); -} diff --git a/lib/src/v3/views/person_mention_view.freezed.dart b/lib/src/v3/views/person_mention_view.freezed.dart deleted file mode 100644 index 32557f6b..00000000 --- a/lib/src/v3/views/person_mention_view.freezed.dart +++ /dev/null @@ -1,592 +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 'person_mention_view.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'); - -PersonMentionView _$PersonMentionViewFromJson(Map json) { - return _PersonMentionView.fromJson(json); -} - -/// @nodoc -mixin _$PersonMentionView { - PersonMention get personMention => - throw _privateConstructorUsedError; // v0.18.0 - Comment get comment => throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get recipient => throw _privateConstructorUsedError; // v0.18.0 - CommentAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - bool? get bannedFromCommunity => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorIsModerator => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get creatorIsAdmin => - throw _privateConstructorUsedError; // v0.19.0 (required) - SubscribedType get subscribed => - throw _privateConstructorUsedError; // v0.18.0 - bool get saved => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBlocked => throw _privateConstructorUsedError; // v0.18.0 - int? get myVote => throw _privateConstructorUsedError; - - /// Serializes this PersonMentionView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonMentionViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonMentionViewCopyWith<$Res> { - factory $PersonMentionViewCopyWith( - PersonMentionView value, $Res Function(PersonMentionView) then) = - _$PersonMentionViewCopyWithImpl<$Res, PersonMentionView>; - @useResult - $Res call( - {PersonMention personMention, - Comment comment, - Person creator, - Post post, - Community community, - Person recipient, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType subscribed, - bool saved, - bool creatorBlocked, - int? myVote}); - - $PersonMentionCopyWith<$Res> get personMention; - $CommentCopyWith<$Res> get comment; - $PersonCopyWith<$Res> get creator; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get recipient; - $CommentAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$PersonMentionViewCopyWithImpl<$Res, $Val extends PersonMentionView> - implements $PersonMentionViewCopyWith<$Res> { - _$PersonMentionViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personMention = null, - Object? comment = null, - Object? creator = null, - Object? post = null, - Object? community = null, - Object? recipient = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = null, - Object? saved = null, - Object? creatorBlocked = null, - Object? myVote = freezed, - }) { - return _then(_value.copyWith( - personMention: null == personMention - ? _value.personMention - : personMention // ignore: cast_nullable_to_non_nullable - as PersonMention, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - recipient: null == recipient - ? _value.recipient - : recipient // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonMentionCopyWith<$Res> get personMention { - return $PersonMentionCopyWith<$Res>(_value.personMention, (value) { - return _then(_value.copyWith(personMention: value) as $Val); - }); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentCopyWith<$Res> get comment { - return $CommentCopyWith<$Res>(_value.comment, (value) { - return _then(_value.copyWith(comment: value) as $Val); - }); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get recipient { - return $PersonCopyWith<$Res>(_value.recipient, (value) { - return _then(_value.copyWith(recipient: value) as $Val); - }); - } - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommentAggregatesCopyWith<$Res> get counts { - return $CommentAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PersonMentionViewImplCopyWith<$Res> - implements $PersonMentionViewCopyWith<$Res> { - factory _$$PersonMentionViewImplCopyWith(_$PersonMentionViewImpl value, - $Res Function(_$PersonMentionViewImpl) then) = - __$$PersonMentionViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {PersonMention personMention, - Comment comment, - Person creator, - Post post, - Community community, - Person recipient, - CommentAggregates counts, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType subscribed, - bool saved, - bool creatorBlocked, - int? myVote}); - - @override - $PersonMentionCopyWith<$Res> get personMention; - @override - $CommentCopyWith<$Res> get comment; - @override - $PersonCopyWith<$Res> get creator; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get recipient; - @override - $CommentAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$PersonMentionViewImplCopyWithImpl<$Res> - extends _$PersonMentionViewCopyWithImpl<$Res, _$PersonMentionViewImpl> - implements _$$PersonMentionViewImplCopyWith<$Res> { - __$$PersonMentionViewImplCopyWithImpl(_$PersonMentionViewImpl _value, - $Res Function(_$PersonMentionViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? personMention = null, - Object? comment = null, - Object? creator = null, - Object? post = null, - Object? community = null, - Object? recipient = null, - Object? counts = null, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = null, - Object? saved = null, - Object? creatorBlocked = null, - Object? myVote = freezed, - }) { - return _then(_$PersonMentionViewImpl( - personMention: null == personMention - ? _value.personMention - : personMention // ignore: cast_nullable_to_non_nullable - as PersonMention, - comment: null == comment - ? _value.comment - : comment // ignore: cast_nullable_to_non_nullable - as Comment, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - recipient: null == recipient - ? _value.recipient - : recipient // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as CommentAggregates, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonMentionViewImpl extends _PersonMentionView { - const _$PersonMentionViewImpl( - {required this.personMention, - required this.comment, - required this.creator, - required this.post, - required this.community, - required this.recipient, - required this.counts, - required this.creatorBannedFromCommunity, - this.bannedFromCommunity, - this.creatorIsModerator, - this.creatorIsAdmin, - required this.subscribed, - required this.saved, - required this.creatorBlocked, - this.myVote}) - : super._(); - - factory _$PersonMentionViewImpl.fromJson(Map json) => - _$$PersonMentionViewImplFromJson(json); - - @override - final PersonMention personMention; -// v0.18.0 - @override - final Comment comment; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person recipient; -// v0.18.0 - @override - final CommentAggregates counts; -// v0.18.0 - @override - final bool creatorBannedFromCommunity; -// v0.18.0 - @override - final bool? bannedFromCommunity; -// v0.19.4 (required) - @override - final bool? creatorIsModerator; -// v0.19.0 (required) - @override - final bool? creatorIsAdmin; -// v0.19.0 (required) - @override - final SubscribedType subscribed; -// v0.18.0 - @override - final bool saved; -// v0.18.0 - @override - final bool creatorBlocked; -// v0.18.0 - @override - final int? myVote; - - @override - String toString() { - return 'PersonMentionView(personMention: $personMention, comment: $comment, creator: $creator, post: $post, community: $community, recipient: $recipient, counts: $counts, creatorBannedFromCommunity: $creatorBannedFromCommunity, bannedFromCommunity: $bannedFromCommunity, creatorIsModerator: $creatorIsModerator, creatorIsAdmin: $creatorIsAdmin, subscribed: $subscribed, saved: $saved, creatorBlocked: $creatorBlocked, myVote: $myVote)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonMentionViewImpl && - (identical(other.personMention, personMention) || - other.personMention == personMention) && - (identical(other.comment, comment) || other.comment == comment) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community) && - (identical(other.recipient, recipient) || - other.recipient == recipient) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.bannedFromCommunity, bannedFromCommunity) || - other.bannedFromCommunity == bannedFromCommunity) && - (identical(other.creatorIsModerator, creatorIsModerator) || - other.creatorIsModerator == creatorIsModerator) && - (identical(other.creatorIsAdmin, creatorIsAdmin) || - other.creatorIsAdmin == creatorIsAdmin) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.saved, saved) || other.saved == saved) && - (identical(other.creatorBlocked, creatorBlocked) || - other.creatorBlocked == creatorBlocked) && - (identical(other.myVote, myVote) || other.myVote == myVote)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - personMention, - comment, - creator, - post, - community, - recipient, - counts, - creatorBannedFromCommunity, - bannedFromCommunity, - creatorIsModerator, - creatorIsAdmin, - subscribed, - saved, - creatorBlocked, - myVote); - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonMentionViewImplCopyWith<_$PersonMentionViewImpl> get copyWith => - __$$PersonMentionViewImplCopyWithImpl<_$PersonMentionViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PersonMentionViewImplToJson( - this, - ); - } -} - -abstract class _PersonMentionView extends PersonMentionView { - const factory _PersonMentionView( - {required final PersonMention personMention, - required final Comment comment, - required final Person creator, - required final Post post, - required final Community community, - required final Person recipient, - required final CommentAggregates counts, - required final bool creatorBannedFromCommunity, - final bool? bannedFromCommunity, - final bool? creatorIsModerator, - final bool? creatorIsAdmin, - required final SubscribedType subscribed, - required final bool saved, - required final bool creatorBlocked, - final int? myVote}) = _$PersonMentionViewImpl; - const _PersonMentionView._() : super._(); - - factory _PersonMentionView.fromJson(Map json) = - _$PersonMentionViewImpl.fromJson; - - @override - PersonMention get personMention; // v0.18.0 - @override - Comment get comment; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get recipient; // v0.18.0 - @override - CommentAggregates get counts; // v0.18.0 - @override - bool get creatorBannedFromCommunity; // v0.18.0 - @override - bool? get bannedFromCommunity; // v0.19.4 (required) - @override - bool? get creatorIsModerator; // v0.19.0 (required) - @override - bool? get creatorIsAdmin; // v0.19.0 (required) - @override - SubscribedType get subscribed; // v0.18.0 - @override - bool get saved; // v0.18.0 - @override - bool get creatorBlocked; // v0.18.0 - @override - int? get myVote; - - /// Create a copy of PersonMentionView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonMentionViewImplCopyWith<_$PersonMentionViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/person_mention_view.g.dart b/lib/src/v3/views/person_mention_view.g.dart deleted file mode 100644 index 634b3315..00000000 --- a/lib/src/v3/views/person_mention_view.g.dart +++ /dev/null @@ -1,49 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person_mention_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonMentionViewImpl _$$PersonMentionViewImplFromJson( - Map json) => - _$PersonMentionViewImpl( - personMention: PersonMention.fromJson( - json['person_mention'] as Map), - comment: Comment.fromJson(json['comment'] as Map), - creator: Person.fromJson(json['creator'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - recipient: Person.fromJson(json['recipient'] as Map), - counts: - CommentAggregates.fromJson(json['counts'] as Map), - creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, - bannedFromCommunity: json['banned_from_community'] as bool?, - creatorIsModerator: json['creator_is_moderator'] as bool?, - creatorIsAdmin: json['creator_is_admin'] as bool?, - subscribed: SubscribedType.fromJson(json['subscribed'] as String), - saved: json['saved'] as bool, - creatorBlocked: json['creator_blocked'] as bool, - myVote: (json['my_vote'] as num?)?.toInt(), - ); - -Map _$$PersonMentionViewImplToJson( - _$PersonMentionViewImpl instance) => - { - 'person_mention': instance.personMention.toJson(), - 'comment': instance.comment.toJson(), - 'creator': instance.creator.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - 'recipient': instance.recipient.toJson(), - 'counts': instance.counts.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'banned_from_community': instance.bannedFromCommunity, - 'creator_is_moderator': instance.creatorIsModerator, - 'creator_is_admin': instance.creatorIsAdmin, - 'subscribed': instance.subscribed.toJson(), - 'saved': instance.saved, - 'creator_blocked': instance.creatorBlocked, - 'my_vote': instance.myVote, - }; diff --git a/lib/src/v3/views/person_view.dart b/lib/src/v3/views/person_view.dart deleted file mode 100644 index 84ce42af..00000000 --- a/lib/src/v3/views/person_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'person_view.freezed.dart'; -part 'person_view.g.dart'; - -@freezed -class PersonView with _$PersonView { - @modelSerde - const factory PersonView({ - required Person person, // v0.18.0 - required PersonAggregates counts, // v0.18.0 - bool? isAdmin, // v0.19.0 (required) - }) = _PersonView; - - const PersonView._(); - factory PersonView.fromJson(Map json) => - _$PersonViewFromJson(json); -} diff --git a/lib/src/v3/views/person_view.freezed.dart b/lib/src/v3/views/person_view.freezed.dart deleted file mode 100644 index 3b8de476..00000000 --- a/lib/src/v3/views/person_view.freezed.dart +++ /dev/null @@ -1,233 +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 'person_view.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'); - -PersonView _$PersonViewFromJson(Map json) { - return _PersonView.fromJson(json); -} - -/// @nodoc -mixin _$PersonView { - Person get person => throw _privateConstructorUsedError; // v0.18.0 - PersonAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - bool? get isAdmin => throw _privateConstructorUsedError; - - /// Serializes this PersonView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PersonViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PersonViewCopyWith<$Res> { - factory $PersonViewCopyWith( - PersonView value, $Res Function(PersonView) then) = - _$PersonViewCopyWithImpl<$Res, PersonView>; - @useResult - $Res call({Person person, PersonAggregates counts, bool? isAdmin}); - - $PersonCopyWith<$Res> get person; - $PersonAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$PersonViewCopyWithImpl<$Res, $Val extends PersonView> - implements $PersonViewCopyWith<$Res> { - _$PersonViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? counts = null, - Object? isAdmin = freezed, - }) { - return _then(_value.copyWith( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PersonAggregates, - isAdmin: freezed == isAdmin - ? _value.isAdmin - : isAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get person { - return $PersonCopyWith<$Res>(_value.person, (value) { - return _then(_value.copyWith(person: value) as $Val); - }); - } - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonAggregatesCopyWith<$Res> get counts { - return $PersonAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PersonViewImplCopyWith<$Res> - implements $PersonViewCopyWith<$Res> { - factory _$$PersonViewImplCopyWith( - _$PersonViewImpl value, $Res Function(_$PersonViewImpl) then) = - __$$PersonViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Person person, PersonAggregates counts, bool? isAdmin}); - - @override - $PersonCopyWith<$Res> get person; - @override - $PersonAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$PersonViewImplCopyWithImpl<$Res> - extends _$PersonViewCopyWithImpl<$Res, _$PersonViewImpl> - implements _$$PersonViewImplCopyWith<$Res> { - __$$PersonViewImplCopyWithImpl( - _$PersonViewImpl _value, $Res Function(_$PersonViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? person = null, - Object? counts = null, - Object? isAdmin = freezed, - }) { - return _then(_$PersonViewImpl( - person: null == person - ? _value.person - : person // ignore: cast_nullable_to_non_nullable - as Person, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PersonAggregates, - isAdmin: freezed == isAdmin - ? _value.isAdmin - : isAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PersonViewImpl extends _PersonView { - const _$PersonViewImpl( - {required this.person, required this.counts, this.isAdmin}) - : super._(); - - factory _$PersonViewImpl.fromJson(Map json) => - _$$PersonViewImplFromJson(json); - - @override - final Person person; -// v0.18.0 - @override - final PersonAggregates counts; -// v0.18.0 - @override - final bool? isAdmin; - - @override - String toString() { - return 'PersonView(person: $person, counts: $counts, isAdmin: $isAdmin)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PersonViewImpl && - (identical(other.person, person) || other.person == person) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.isAdmin, isAdmin) || other.isAdmin == isAdmin)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, person, counts, isAdmin); - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PersonViewImplCopyWith<_$PersonViewImpl> get copyWith => - __$$PersonViewImplCopyWithImpl<_$PersonViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PersonViewImplToJson( - this, - ); - } -} - -abstract class _PersonView extends PersonView { - const factory _PersonView( - {required final Person person, - required final PersonAggregates counts, - final bool? isAdmin}) = _$PersonViewImpl; - const _PersonView._() : super._(); - - factory _PersonView.fromJson(Map json) = - _$PersonViewImpl.fromJson; - - @override - Person get person; // v0.18.0 - @override - PersonAggregates get counts; // v0.18.0 - @override - bool? get isAdmin; - - /// Create a copy of PersonView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PersonViewImplCopyWith<_$PersonViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/person_view.g.dart b/lib/src/v3/views/person_view.g.dart deleted file mode 100644 index cb30a7fe..00000000 --- a/lib/src/v3/views/person_view.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'person_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PersonViewImpl _$$PersonViewImplFromJson(Map json) => - _$PersonViewImpl( - person: Person.fromJson(json['person'] as Map), - counts: PersonAggregates.fromJson(json['counts'] as Map), - isAdmin: json['is_admin'] as bool?, - ); - -Map _$$PersonViewImplToJson(_$PersonViewImpl instance) => - { - 'person': instance.person.toJson(), - 'counts': instance.counts.toJson(), - 'is_admin': instance.isAdmin, - }; diff --git a/lib/src/v3/views/post_report_view.dart b/lib/src/v3/views/post_report_view.dart deleted file mode 100644 index 693983e8..00000000 --- a/lib/src/v3/views/post_report_view.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../v3.dart'; -import '../../utils/serde.dart'; - -part 'post_report_view.freezed.dart'; -part 'post_report_view.g.dart'; - -@freezed -class PostReportView with _$PostReportView { - @modelSerde - const factory PostReportView({ - required PostReport postReport, // v0.18.0 - required Post post, // v0.18.0 - required Community community, // v0.18.0 - required Person creator, // v0.18.0 - required Person postCreator, // v0.18.0 - required bool creatorBannedFromCommunity, // v0.18.0 - bool? creatorIsModerator, // v0.19.4 (required) - bool? creatorIsAdmin, // v0.19.4 (required) - SubscribedType? subscribed, // v0.19.4 (required) - bool? saved, // v0.19.4 (required) - bool? read, // v0.19.4 (required) - bool? hidden, // v0.19.4 (required) - bool? creatorBlocked, // v0.19.4 (required) - num? myVote, // v0.18.0 - int? unreadComments, // v0.19.4 (required) - required PostAggregates counts, // v0.18.0 - Person? resolver, // v0.18.0 - }) = _PostReportView; - - const PostReportView._(); - factory PostReportView.fromJson(Map json) => - _$PostReportViewFromJson(json); -} diff --git a/lib/src/v3/views/post_report_view.freezed.dart b/lib/src/v3/views/post_report_view.freezed.dart deleted file mode 100644 index ea92182c..00000000 --- a/lib/src/v3/views/post_report_view.freezed.dart +++ /dev/null @@ -1,641 +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 'post_report_view.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'); - -PostReportView _$PostReportViewFromJson(Map json) { - return _PostReportView.fromJson(json); -} - -/// @nodoc -mixin _$PostReportView { - PostReport get postReport => throw _privateConstructorUsedError; // v0.18.0 - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Person get postCreator => throw _privateConstructorUsedError; // v0.18.0 - bool get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - bool? get creatorIsModerator => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorIsAdmin => - throw _privateConstructorUsedError; // v0.19.4 (required) - SubscribedType? get subscribed => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get saved => throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get read => throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get hidden => throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorBlocked => - throw _privateConstructorUsedError; // v0.19.4 (required) - num? get myVote => throw _privateConstructorUsedError; // v0.18.0 - int? get unreadComments => - throw _privateConstructorUsedError; // v0.19.4 (required) - PostAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - Person? get resolver => throw _privateConstructorUsedError; - - /// Serializes this PostReportView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostReportViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostReportViewCopyWith<$Res> { - factory $PostReportViewCopyWith( - PostReportView value, $Res Function(PostReportView) then) = - _$PostReportViewCopyWithImpl<$Res, PostReportView>; - @useResult - $Res call( - {PostReport postReport, - Post post, - Community community, - Person creator, - Person postCreator, - bool creatorBannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType? subscribed, - bool? saved, - bool? read, - bool? hidden, - bool? creatorBlocked, - num? myVote, - int? unreadComments, - PostAggregates counts, - Person? resolver}); - - $PostReportCopyWith<$Res> get postReport; - $PostCopyWith<$Res> get post; - $CommunityCopyWith<$Res> get community; - $PersonCopyWith<$Res> get creator; - $PersonCopyWith<$Res> get postCreator; - $PostAggregatesCopyWith<$Res> get counts; - $PersonCopyWith<$Res>? get resolver; -} - -/// @nodoc -class _$PostReportViewCopyWithImpl<$Res, $Val extends PostReportView> - implements $PostReportViewCopyWith<$Res> { - _$PostReportViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postReport = null, - Object? post = null, - Object? community = null, - Object? creator = null, - Object? postCreator = null, - Object? creatorBannedFromCommunity = null, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = freezed, - Object? saved = freezed, - Object? read = freezed, - Object? hidden = freezed, - Object? creatorBlocked = freezed, - Object? myVote = freezed, - Object? unreadComments = freezed, - Object? counts = null, - Object? resolver = freezed, - }) { - return _then(_value.copyWith( - postReport: null == postReport - ? _value.postReport - : postReport // ignore: cast_nullable_to_non_nullable - as PostReport, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - postCreator: null == postCreator - ? _value.postCreator - : postCreator // ignore: cast_nullable_to_non_nullable - as Person, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: freezed == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType?, - saved: freezed == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool?, - read: freezed == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool?, - hidden: freezed == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool?, - creatorBlocked: freezed == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool?, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as num?, - unreadComments: freezed == unreadComments - ? _value.unreadComments - : unreadComments // ignore: cast_nullable_to_non_nullable - as int?, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PostAggregates, - resolver: freezed == resolver - ? _value.resolver - : resolver // ignore: cast_nullable_to_non_nullable - as Person?, - ) as $Val); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostReportCopyWith<$Res> get postReport { - return $PostReportCopyWith<$Res>(_value.postReport, (value) { - return _then(_value.copyWith(postReport: value) as $Val); - }); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get postCreator { - return $PersonCopyWith<$Res>(_value.postCreator, (value) { - return _then(_value.copyWith(postCreator: value) as $Val); - }); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostAggregatesCopyWith<$Res> get counts { - return $PostAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get resolver { - if (_value.resolver == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.resolver!, (value) { - return _then(_value.copyWith(resolver: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PostReportViewImplCopyWith<$Res> - implements $PostReportViewCopyWith<$Res> { - factory _$$PostReportViewImplCopyWith(_$PostReportViewImpl value, - $Res Function(_$PostReportViewImpl) then) = - __$$PostReportViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {PostReport postReport, - Post post, - Community community, - Person creator, - Person postCreator, - bool creatorBannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - SubscribedType? subscribed, - bool? saved, - bool? read, - bool? hidden, - bool? creatorBlocked, - num? myVote, - int? unreadComments, - PostAggregates counts, - Person? resolver}); - - @override - $PostReportCopyWith<$Res> get postReport; - @override - $PostCopyWith<$Res> get post; - @override - $CommunityCopyWith<$Res> get community; - @override - $PersonCopyWith<$Res> get creator; - @override - $PersonCopyWith<$Res> get postCreator; - @override - $PostAggregatesCopyWith<$Res> get counts; - @override - $PersonCopyWith<$Res>? get resolver; -} - -/// @nodoc -class __$$PostReportViewImplCopyWithImpl<$Res> - extends _$PostReportViewCopyWithImpl<$Res, _$PostReportViewImpl> - implements _$$PostReportViewImplCopyWith<$Res> { - __$$PostReportViewImplCopyWithImpl( - _$PostReportViewImpl _value, $Res Function(_$PostReportViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? postReport = null, - Object? post = null, - Object? community = null, - Object? creator = null, - Object? postCreator = null, - Object? creatorBannedFromCommunity = null, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? subscribed = freezed, - Object? saved = freezed, - Object? read = freezed, - Object? hidden = freezed, - Object? creatorBlocked = freezed, - Object? myVote = freezed, - Object? unreadComments = freezed, - Object? counts = null, - Object? resolver = freezed, - }) { - return _then(_$PostReportViewImpl( - postReport: null == postReport - ? _value.postReport - : postReport // ignore: cast_nullable_to_non_nullable - as PostReport, - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - postCreator: null == postCreator - ? _value.postCreator - : postCreator // ignore: cast_nullable_to_non_nullable - as Person, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - subscribed: freezed == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType?, - saved: freezed == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool?, - read: freezed == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool?, - hidden: freezed == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool?, - creatorBlocked: freezed == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool?, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as num?, - unreadComments: freezed == unreadComments - ? _value.unreadComments - : unreadComments // ignore: cast_nullable_to_non_nullable - as int?, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PostAggregates, - resolver: freezed == resolver - ? _value.resolver - : resolver // ignore: cast_nullable_to_non_nullable - as Person?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostReportViewImpl extends _PostReportView { - const _$PostReportViewImpl( - {required this.postReport, - required this.post, - required this.community, - required this.creator, - required this.postCreator, - required this.creatorBannedFromCommunity, - this.creatorIsModerator, - this.creatorIsAdmin, - this.subscribed, - this.saved, - this.read, - this.hidden, - this.creatorBlocked, - this.myVote, - this.unreadComments, - required this.counts, - this.resolver}) - : super._(); - - factory _$PostReportViewImpl.fromJson(Map json) => - _$$PostReportViewImplFromJson(json); - - @override - final PostReport postReport; -// v0.18.0 - @override - final Post post; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Person postCreator; -// v0.18.0 - @override - final bool creatorBannedFromCommunity; -// v0.18.0 - @override - final bool? creatorIsModerator; -// v0.19.4 (required) - @override - final bool? creatorIsAdmin; -// v0.19.4 (required) - @override - final SubscribedType? subscribed; -// v0.19.4 (required) - @override - final bool? saved; -// v0.19.4 (required) - @override - final bool? read; -// v0.19.4 (required) - @override - final bool? hidden; -// v0.19.4 (required) - @override - final bool? creatorBlocked; -// v0.19.4 (required) - @override - final num? myVote; -// v0.18.0 - @override - final int? unreadComments; -// v0.19.4 (required) - @override - final PostAggregates counts; -// v0.18.0 - @override - final Person? resolver; - - @override - String toString() { - return 'PostReportView(postReport: $postReport, post: $post, community: $community, creator: $creator, postCreator: $postCreator, creatorBannedFromCommunity: $creatorBannedFromCommunity, creatorIsModerator: $creatorIsModerator, creatorIsAdmin: $creatorIsAdmin, subscribed: $subscribed, saved: $saved, read: $read, hidden: $hidden, creatorBlocked: $creatorBlocked, myVote: $myVote, unreadComments: $unreadComments, counts: $counts, resolver: $resolver)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostReportViewImpl && - (identical(other.postReport, postReport) || - other.postReport == postReport) && - (identical(other.post, post) || other.post == post) && - (identical(other.community, community) || - other.community == community) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.postCreator, postCreator) || - other.postCreator == postCreator) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.creatorIsModerator, creatorIsModerator) || - other.creatorIsModerator == creatorIsModerator) && - (identical(other.creatorIsAdmin, creatorIsAdmin) || - other.creatorIsAdmin == creatorIsAdmin) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.saved, saved) || other.saved == saved) && - (identical(other.read, read) || other.read == read) && - (identical(other.hidden, hidden) || other.hidden == hidden) && - (identical(other.creatorBlocked, creatorBlocked) || - other.creatorBlocked == creatorBlocked) && - (identical(other.myVote, myVote) || other.myVote == myVote) && - (identical(other.unreadComments, unreadComments) || - other.unreadComments == unreadComments) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.resolver, resolver) || - other.resolver == resolver)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - postReport, - post, - community, - creator, - postCreator, - creatorBannedFromCommunity, - creatorIsModerator, - creatorIsAdmin, - subscribed, - saved, - read, - hidden, - creatorBlocked, - myVote, - unreadComments, - counts, - resolver); - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostReportViewImplCopyWith<_$PostReportViewImpl> get copyWith => - __$$PostReportViewImplCopyWithImpl<_$PostReportViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PostReportViewImplToJson( - this, - ); - } -} - -abstract class _PostReportView extends PostReportView { - const factory _PostReportView( - {required final PostReport postReport, - required final Post post, - required final Community community, - required final Person creator, - required final Person postCreator, - required final bool creatorBannedFromCommunity, - final bool? creatorIsModerator, - final bool? creatorIsAdmin, - final SubscribedType? subscribed, - final bool? saved, - final bool? read, - final bool? hidden, - final bool? creatorBlocked, - final num? myVote, - final int? unreadComments, - required final PostAggregates counts, - final Person? resolver}) = _$PostReportViewImpl; - const _PostReportView._() : super._(); - - factory _PostReportView.fromJson(Map json) = - _$PostReportViewImpl.fromJson; - - @override - PostReport get postReport; // v0.18.0 - @override - Post get post; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Person get postCreator; // v0.18.0 - @override - bool get creatorBannedFromCommunity; // v0.18.0 - @override - bool? get creatorIsModerator; // v0.19.4 (required) - @override - bool? get creatorIsAdmin; // v0.19.4 (required) - @override - SubscribedType? get subscribed; // v0.19.4 (required) - @override - bool? get saved; // v0.19.4 (required) - @override - bool? get read; // v0.19.4 (required) - @override - bool? get hidden; // v0.19.4 (required) - @override - bool? get creatorBlocked; // v0.19.4 (required) - @override - num? get myVote; // v0.18.0 - @override - int? get unreadComments; // v0.19.4 (required) - @override - PostAggregates get counts; // v0.18.0 - @override - Person? get resolver; - - /// Create a copy of PostReportView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostReportViewImplCopyWith<_$PostReportViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/post_report_view.g.dart b/lib/src/v3/views/post_report_view.g.dart deleted file mode 100644 index e5e51e6a..00000000 --- a/lib/src/v3/views/post_report_view.g.dart +++ /dev/null @@ -1,56 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post_report_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostReportViewImpl _$$PostReportViewImplFromJson(Map json) => - _$PostReportViewImpl( - postReport: - PostReport.fromJson(json['post_report'] as Map), - post: Post.fromJson(json['post'] as Map), - community: Community.fromJson(json['community'] as Map), - creator: Person.fromJson(json['creator'] as Map), - postCreator: - Person.fromJson(json['post_creator'] as Map), - creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, - creatorIsModerator: json['creator_is_moderator'] as bool?, - creatorIsAdmin: json['creator_is_admin'] as bool?, - subscribed: json['subscribed'] == null - ? null - : SubscribedType.fromJson(json['subscribed'] as String), - saved: json['saved'] as bool?, - read: json['read'] as bool?, - hidden: json['hidden'] as bool?, - creatorBlocked: json['creator_blocked'] as bool?, - myVote: json['my_vote'] as num?, - unreadComments: (json['unread_comments'] as num?)?.toInt(), - counts: PostAggregates.fromJson(json['counts'] as Map), - resolver: json['resolver'] == null - ? null - : Person.fromJson(json['resolver'] as Map), - ); - -Map _$$PostReportViewImplToJson( - _$PostReportViewImpl instance) => - { - 'post_report': instance.postReport.toJson(), - 'post': instance.post.toJson(), - 'community': instance.community.toJson(), - 'creator': instance.creator.toJson(), - 'post_creator': instance.postCreator.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'creator_is_moderator': instance.creatorIsModerator, - 'creator_is_admin': instance.creatorIsAdmin, - 'subscribed': instance.subscribed?.toJson(), - 'saved': instance.saved, - 'read': instance.read, - 'hidden': instance.hidden, - 'creator_blocked': instance.creatorBlocked, - 'my_vote': instance.myVote, - 'unread_comments': instance.unreadComments, - 'counts': instance.counts.toJson(), - 'resolver': instance.resolver?.toJson(), - }; diff --git a/lib/src/v3/views/post_view.dart b/lib/src/v3/views/post_view.dart deleted file mode 100644 index 52cad2ad..00000000 --- a/lib/src/v3/views/post_view.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../enums/enums.dart'; -import '../models/models.dart'; - -part 'post_view.freezed.dart'; -part 'post_view.g.dart'; - -@freezed -class PostView with _$PostView { - @modelSerde - const factory PostView({ - required Post post, // v0.18.0 - required Person creator, // v0.18.0 - required Community community, // v0.18.0 - ImageDetails? imageDetails, // v0.19.6 (optional) - required bool creatorBannedFromCommunity, // v0.18.0 - bool? bannedFromCommunity, // v0.19.4 (required) - bool? creatorIsModerator, // v0.19.0 (required) - bool? creatorIsAdmin, // v0.19.0 (required) - required PostAggregates counts, // v0.18.0 - required SubscribedType subscribed, // v0.18.0 - required bool saved, // v0.18.0 - required bool read, // v0.18.0 - bool? hidden, // v0.19.4 (required) - required bool creatorBlocked, // v0.18.0 - int? myVote, // v0.18.0 - required int unreadComments, // v0.18.0 - }) = _PostView; - - const PostView._(); - factory PostView.fromJson(Map json) => - _$PostViewFromJson(json); -} diff --git a/lib/src/v3/views/post_view.freezed.dart b/lib/src/v3/views/post_view.freezed.dart deleted file mode 100644 index 6263bba4..00000000 --- a/lib/src/v3/views/post_view.freezed.dart +++ /dev/null @@ -1,590 +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 'post_view.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'); - -PostView _$PostViewFromJson(Map json) { - return _PostView.fromJson(json); -} - -/// @nodoc -mixin _$PostView { - Post get post => throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Community get community => throw _privateConstructorUsedError; // v0.18.0 - ImageDetails? get imageDetails => - throw _privateConstructorUsedError; // v0.19.6 (optional) - bool get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.18.0 - bool? get bannedFromCommunity => - throw _privateConstructorUsedError; // v0.19.4 (required) - bool? get creatorIsModerator => - throw _privateConstructorUsedError; // v0.19.0 (required) - bool? get creatorIsAdmin => - throw _privateConstructorUsedError; // v0.19.0 (required) - PostAggregates get counts => throw _privateConstructorUsedError; // v0.18.0 - SubscribedType get subscribed => - throw _privateConstructorUsedError; // v0.18.0 - bool get saved => throw _privateConstructorUsedError; // v0.18.0 - bool get read => throw _privateConstructorUsedError; // v0.18.0 - bool? get hidden => throw _privateConstructorUsedError; // v0.19.4 (required) - bool get creatorBlocked => throw _privateConstructorUsedError; // v0.18.0 - int? get myVote => throw _privateConstructorUsedError; // v0.18.0 - int get unreadComments => throw _privateConstructorUsedError; - - /// Serializes this PostView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PostViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PostViewCopyWith<$Res> { - factory $PostViewCopyWith(PostView value, $Res Function(PostView) then) = - _$PostViewCopyWithImpl<$Res, PostView>; - @useResult - $Res call( - {Post post, - Person creator, - Community community, - ImageDetails? imageDetails, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - PostAggregates counts, - SubscribedType subscribed, - bool saved, - bool read, - bool? hidden, - bool creatorBlocked, - int? myVote, - int unreadComments}); - - $PostCopyWith<$Res> get post; - $PersonCopyWith<$Res> get creator; - $CommunityCopyWith<$Res> get community; - $ImageDetailsCopyWith<$Res>? get imageDetails; - $PostAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class _$PostViewCopyWithImpl<$Res, $Val extends PostView> - implements $PostViewCopyWith<$Res> { - _$PostViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? post = null, - Object? creator = null, - Object? community = null, - Object? imageDetails = freezed, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? counts = null, - Object? subscribed = null, - Object? saved = null, - Object? read = null, - Object? hidden = freezed, - Object? creatorBlocked = null, - Object? myVote = freezed, - Object? unreadComments = null, - }) { - return _then(_value.copyWith( - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - imageDetails: freezed == imageDetails - ? _value.imageDetails - : imageDetails // ignore: cast_nullable_to_non_nullable - as ImageDetails?, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PostAggregates, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - hidden: freezed == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool?, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as int?, - unreadComments: null == unreadComments - ? _value.unreadComments - : unreadComments // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostCopyWith<$Res> get post { - return $PostCopyWith<$Res>(_value.post, (value) { - return _then(_value.copyWith(post: value) as $Val); - }); - } - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $CommunityCopyWith<$Res> get community { - return $CommunityCopyWith<$Res>(_value.community, (value) { - return _then(_value.copyWith(community: value) as $Val); - }); - } - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $ImageDetailsCopyWith<$Res>? get imageDetails { - if (_value.imageDetails == null) { - return null; - } - - return $ImageDetailsCopyWith<$Res>(_value.imageDetails!, (value) { - return _then(_value.copyWith(imageDetails: value) as $Val); - }); - } - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PostAggregatesCopyWith<$Res> get counts { - return $PostAggregatesCopyWith<$Res>(_value.counts, (value) { - return _then(_value.copyWith(counts: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PostViewImplCopyWith<$Res> - implements $PostViewCopyWith<$Res> { - factory _$$PostViewImplCopyWith( - _$PostViewImpl value, $Res Function(_$PostViewImpl) then) = - __$$PostViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {Post post, - Person creator, - Community community, - ImageDetails? imageDetails, - bool creatorBannedFromCommunity, - bool? bannedFromCommunity, - bool? creatorIsModerator, - bool? creatorIsAdmin, - PostAggregates counts, - SubscribedType subscribed, - bool saved, - bool read, - bool? hidden, - bool creatorBlocked, - int? myVote, - int unreadComments}); - - @override - $PostCopyWith<$Res> get post; - @override - $PersonCopyWith<$Res> get creator; - @override - $CommunityCopyWith<$Res> get community; - @override - $ImageDetailsCopyWith<$Res>? get imageDetails; - @override - $PostAggregatesCopyWith<$Res> get counts; -} - -/// @nodoc -class __$$PostViewImplCopyWithImpl<$Res> - extends _$PostViewCopyWithImpl<$Res, _$PostViewImpl> - implements _$$PostViewImplCopyWith<$Res> { - __$$PostViewImplCopyWithImpl( - _$PostViewImpl _value, $Res Function(_$PostViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? post = null, - Object? creator = null, - Object? community = null, - Object? imageDetails = freezed, - Object? creatorBannedFromCommunity = null, - Object? bannedFromCommunity = freezed, - Object? creatorIsModerator = freezed, - Object? creatorIsAdmin = freezed, - Object? counts = null, - Object? subscribed = null, - Object? saved = null, - Object? read = null, - Object? hidden = freezed, - Object? creatorBlocked = null, - Object? myVote = freezed, - Object? unreadComments = null, - }) { - return _then(_$PostViewImpl( - post: null == post - ? _value.post - : post // ignore: cast_nullable_to_non_nullable - as Post, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - community: null == community - ? _value.community - : community // ignore: cast_nullable_to_non_nullable - as Community, - imageDetails: freezed == imageDetails - ? _value.imageDetails - : imageDetails // ignore: cast_nullable_to_non_nullable - as ImageDetails?, - creatorBannedFromCommunity: null == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool, - bannedFromCommunity: freezed == bannedFromCommunity - ? _value.bannedFromCommunity - : bannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsModerator: freezed == creatorIsModerator - ? _value.creatorIsModerator - : creatorIsModerator // ignore: cast_nullable_to_non_nullable - as bool?, - creatorIsAdmin: freezed == creatorIsAdmin - ? _value.creatorIsAdmin - : creatorIsAdmin // ignore: cast_nullable_to_non_nullable - as bool?, - counts: null == counts - ? _value.counts - : counts // ignore: cast_nullable_to_non_nullable - as PostAggregates, - subscribed: null == subscribed - ? _value.subscribed - : subscribed // ignore: cast_nullable_to_non_nullable - as SubscribedType, - saved: null == saved - ? _value.saved - : saved // ignore: cast_nullable_to_non_nullable - as bool, - read: null == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool, - hidden: freezed == hidden - ? _value.hidden - : hidden // ignore: cast_nullable_to_non_nullable - as bool?, - creatorBlocked: null == creatorBlocked - ? _value.creatorBlocked - : creatorBlocked // ignore: cast_nullable_to_non_nullable - as bool, - myVote: freezed == myVote - ? _value.myVote - : myVote // ignore: cast_nullable_to_non_nullable - as int?, - unreadComments: null == unreadComments - ? _value.unreadComments - : unreadComments // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PostViewImpl extends _PostView { - const _$PostViewImpl( - {required this.post, - required this.creator, - required this.community, - this.imageDetails, - required this.creatorBannedFromCommunity, - this.bannedFromCommunity, - this.creatorIsModerator, - this.creatorIsAdmin, - required this.counts, - required this.subscribed, - required this.saved, - required this.read, - this.hidden, - required this.creatorBlocked, - this.myVote, - required this.unreadComments}) - : super._(); - - factory _$PostViewImpl.fromJson(Map json) => - _$$PostViewImplFromJson(json); - - @override - final Post post; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Community community; -// v0.18.0 - @override - final ImageDetails? imageDetails; -// v0.19.6 (optional) - @override - final bool creatorBannedFromCommunity; -// v0.18.0 - @override - final bool? bannedFromCommunity; -// v0.19.4 (required) - @override - final bool? creatorIsModerator; -// v0.19.0 (required) - @override - final bool? creatorIsAdmin; -// v0.19.0 (required) - @override - final PostAggregates counts; -// v0.18.0 - @override - final SubscribedType subscribed; -// v0.18.0 - @override - final bool saved; -// v0.18.0 - @override - final bool read; -// v0.18.0 - @override - final bool? hidden; -// v0.19.4 (required) - @override - final bool creatorBlocked; -// v0.18.0 - @override - final int? myVote; -// v0.18.0 - @override - final int unreadComments; - - @override - String toString() { - return 'PostView(post: $post, creator: $creator, community: $community, imageDetails: $imageDetails, creatorBannedFromCommunity: $creatorBannedFromCommunity, bannedFromCommunity: $bannedFromCommunity, creatorIsModerator: $creatorIsModerator, creatorIsAdmin: $creatorIsAdmin, counts: $counts, subscribed: $subscribed, saved: $saved, read: $read, hidden: $hidden, creatorBlocked: $creatorBlocked, myVote: $myVote, unreadComments: $unreadComments)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PostViewImpl && - (identical(other.post, post) || other.post == post) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.community, community) || - other.community == community) && - (identical(other.imageDetails, imageDetails) || - other.imageDetails == imageDetails) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.bannedFromCommunity, bannedFromCommunity) || - other.bannedFromCommunity == bannedFromCommunity) && - (identical(other.creatorIsModerator, creatorIsModerator) || - other.creatorIsModerator == creatorIsModerator) && - (identical(other.creatorIsAdmin, creatorIsAdmin) || - other.creatorIsAdmin == creatorIsAdmin) && - (identical(other.counts, counts) || other.counts == counts) && - (identical(other.subscribed, subscribed) || - other.subscribed == subscribed) && - (identical(other.saved, saved) || other.saved == saved) && - (identical(other.read, read) || other.read == read) && - (identical(other.hidden, hidden) || other.hidden == hidden) && - (identical(other.creatorBlocked, creatorBlocked) || - other.creatorBlocked == creatorBlocked) && - (identical(other.myVote, myVote) || other.myVote == myVote) && - (identical(other.unreadComments, unreadComments) || - other.unreadComments == unreadComments)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, - post, - creator, - community, - imageDetails, - creatorBannedFromCommunity, - bannedFromCommunity, - creatorIsModerator, - creatorIsAdmin, - counts, - subscribed, - saved, - read, - hidden, - creatorBlocked, - myVote, - unreadComments); - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PostViewImplCopyWith<_$PostViewImpl> get copyWith => - __$$PostViewImplCopyWithImpl<_$PostViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PostViewImplToJson( - this, - ); - } -} - -abstract class _PostView extends PostView { - const factory _PostView( - {required final Post post, - required final Person creator, - required final Community community, - final ImageDetails? imageDetails, - required final bool creatorBannedFromCommunity, - final bool? bannedFromCommunity, - final bool? creatorIsModerator, - final bool? creatorIsAdmin, - required final PostAggregates counts, - required final SubscribedType subscribed, - required final bool saved, - required final bool read, - final bool? hidden, - required final bool creatorBlocked, - final int? myVote, - required final int unreadComments}) = _$PostViewImpl; - const _PostView._() : super._(); - - factory _PostView.fromJson(Map json) = - _$PostViewImpl.fromJson; - - @override - Post get post; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Community get community; // v0.18.0 - @override - ImageDetails? get imageDetails; // v0.19.6 (optional) - @override - bool get creatorBannedFromCommunity; // v0.18.0 - @override - bool? get bannedFromCommunity; // v0.19.4 (required) - @override - bool? get creatorIsModerator; // v0.19.0 (required) - @override - bool? get creatorIsAdmin; // v0.19.0 (required) - @override - PostAggregates get counts; // v0.18.0 - @override - SubscribedType get subscribed; // v0.18.0 - @override - bool get saved; // v0.18.0 - @override - bool get read; // v0.18.0 - @override - bool? get hidden; // v0.19.4 (required) - @override - bool get creatorBlocked; // v0.18.0 - @override - int? get myVote; // v0.18.0 - @override - int get unreadComments; - - /// Create a copy of PostView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PostViewImplCopyWith<_$PostViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/post_view.g.dart b/lib/src/v3/views/post_view.g.dart deleted file mode 100644 index d95e8271..00000000 --- a/lib/src/v3/views/post_view.g.dart +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'post_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PostViewImpl _$$PostViewImplFromJson(Map json) => - _$PostViewImpl( - post: Post.fromJson(json['post'] as Map), - creator: Person.fromJson(json['creator'] as Map), - community: Community.fromJson(json['community'] as Map), - imageDetails: json['image_details'] == null - ? null - : ImageDetails.fromJson( - json['image_details'] as Map), - creatorBannedFromCommunity: json['creator_banned_from_community'] as bool, - bannedFromCommunity: json['banned_from_community'] as bool?, - creatorIsModerator: json['creator_is_moderator'] as bool?, - creatorIsAdmin: json['creator_is_admin'] as bool?, - counts: PostAggregates.fromJson(json['counts'] as Map), - subscribed: SubscribedType.fromJson(json['subscribed'] as String), - saved: json['saved'] as bool, - read: json['read'] as bool, - hidden: json['hidden'] as bool?, - creatorBlocked: json['creator_blocked'] as bool, - myVote: (json['my_vote'] as num?)?.toInt(), - unreadComments: (json['unread_comments'] as num).toInt(), - ); - -Map _$$PostViewImplToJson(_$PostViewImpl instance) => - { - 'post': instance.post.toJson(), - 'creator': instance.creator.toJson(), - 'community': instance.community.toJson(), - 'image_details': instance.imageDetails?.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'banned_from_community': instance.bannedFromCommunity, - 'creator_is_moderator': instance.creatorIsModerator, - 'creator_is_admin': instance.creatorIsAdmin, - 'counts': instance.counts.toJson(), - 'subscribed': instance.subscribed.toJson(), - 'saved': instance.saved, - 'read': instance.read, - 'hidden': instance.hidden, - 'creator_blocked': instance.creatorBlocked, - 'my_vote': instance.myVote, - 'unread_comments': instance.unreadComments, - }; diff --git a/lib/src/v3/views/private_message_report_view.dart b/lib/src/v3/views/private_message_report_view.dart deleted file mode 100644 index 7af624de..00000000 --- a/lib/src/v3/views/private_message_report_view.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'private_message_report_view.freezed.dart'; -part 'private_message_report_view.g.dart'; - -@freezed -class PrivateMessageReportView with _$PrivateMessageReportView { - @modelSerde - const factory PrivateMessageReportView({ - required PrivateMessageReport privateMessageReport, // v0.18.0 - required PrivateMessage privateMessage, // v0.18.0 - required Person privateMessageCreator, // v0.18.0 - required Person creator, // v0.18.0 - Person? resolver, // v0.18.0 - }) = _PrivateMessageReportView; - - const PrivateMessageReportView._(); - factory PrivateMessageReportView.fromJson(Map json) => - _$PrivateMessageReportViewFromJson(json); -} diff --git a/lib/src/v3/views/private_message_report_view.freezed.dart b/lib/src/v3/views/private_message_report_view.freezed.dart deleted file mode 100644 index f8bade92..00000000 --- a/lib/src/v3/views/private_message_report_view.freezed.dart +++ /dev/null @@ -1,341 +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 'private_message_report_view.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'); - -PrivateMessageReportView _$PrivateMessageReportViewFromJson( - Map json) { - return _PrivateMessageReportView.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessageReportView { - PrivateMessageReport get privateMessageReport => - throw _privateConstructorUsedError; // v0.18.0 - PrivateMessage get privateMessage => - throw _privateConstructorUsedError; // v0.18.0 - Person get privateMessageCreator => - throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Person? get resolver => throw _privateConstructorUsedError; - - /// Serializes this PrivateMessageReportView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessageReportViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessageReportViewCopyWith<$Res> { - factory $PrivateMessageReportViewCopyWith(PrivateMessageReportView value, - $Res Function(PrivateMessageReportView) then) = - _$PrivateMessageReportViewCopyWithImpl<$Res, PrivateMessageReportView>; - @useResult - $Res call( - {PrivateMessageReport privateMessageReport, - PrivateMessage privateMessage, - Person privateMessageCreator, - Person creator, - Person? resolver}); - - $PrivateMessageReportCopyWith<$Res> get privateMessageReport; - $PrivateMessageCopyWith<$Res> get privateMessage; - $PersonCopyWith<$Res> get privateMessageCreator; - $PersonCopyWith<$Res> get creator; - $PersonCopyWith<$Res>? get resolver; -} - -/// @nodoc -class _$PrivateMessageReportViewCopyWithImpl<$Res, - $Val extends PrivateMessageReportView> - implements $PrivateMessageReportViewCopyWith<$Res> { - _$PrivateMessageReportViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageReport = null, - Object? privateMessage = null, - Object? privateMessageCreator = null, - Object? creator = null, - Object? resolver = freezed, - }) { - return _then(_value.copyWith( - privateMessageReport: null == privateMessageReport - ? _value.privateMessageReport - : privateMessageReport // ignore: cast_nullable_to_non_nullable - as PrivateMessageReport, - privateMessage: null == privateMessage - ? _value.privateMessage - : privateMessage // ignore: cast_nullable_to_non_nullable - as PrivateMessage, - privateMessageCreator: null == privateMessageCreator - ? _value.privateMessageCreator - : privateMessageCreator // ignore: cast_nullable_to_non_nullable - as Person, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - resolver: freezed == resolver - ? _value.resolver - : resolver // ignore: cast_nullable_to_non_nullable - as Person?, - ) as $Val); - } - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PrivateMessageReportCopyWith<$Res> get privateMessageReport { - return $PrivateMessageReportCopyWith<$Res>(_value.privateMessageReport, - (value) { - return _then(_value.copyWith(privateMessageReport: value) as $Val); - }); - } - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PrivateMessageCopyWith<$Res> get privateMessage { - return $PrivateMessageCopyWith<$Res>(_value.privateMessage, (value) { - return _then(_value.copyWith(privateMessage: value) as $Val); - }); - } - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get privateMessageCreator { - return $PersonCopyWith<$Res>(_value.privateMessageCreator, (value) { - return _then(_value.copyWith(privateMessageCreator: value) as $Val); - }); - } - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get resolver { - if (_value.resolver == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.resolver!, (value) { - return _then(_value.copyWith(resolver: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PrivateMessageReportViewImplCopyWith<$Res> - implements $PrivateMessageReportViewCopyWith<$Res> { - factory _$$PrivateMessageReportViewImplCopyWith( - _$PrivateMessageReportViewImpl value, - $Res Function(_$PrivateMessageReportViewImpl) then) = - __$$PrivateMessageReportViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {PrivateMessageReport privateMessageReport, - PrivateMessage privateMessage, - Person privateMessageCreator, - Person creator, - Person? resolver}); - - @override - $PrivateMessageReportCopyWith<$Res> get privateMessageReport; - @override - $PrivateMessageCopyWith<$Res> get privateMessage; - @override - $PersonCopyWith<$Res> get privateMessageCreator; - @override - $PersonCopyWith<$Res> get creator; - @override - $PersonCopyWith<$Res>? get resolver; -} - -/// @nodoc -class __$$PrivateMessageReportViewImplCopyWithImpl<$Res> - extends _$PrivateMessageReportViewCopyWithImpl<$Res, - _$PrivateMessageReportViewImpl> - implements _$$PrivateMessageReportViewImplCopyWith<$Res> { - __$$PrivateMessageReportViewImplCopyWithImpl( - _$PrivateMessageReportViewImpl _value, - $Res Function(_$PrivateMessageReportViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessageReport = null, - Object? privateMessage = null, - Object? privateMessageCreator = null, - Object? creator = null, - Object? resolver = freezed, - }) { - return _then(_$PrivateMessageReportViewImpl( - privateMessageReport: null == privateMessageReport - ? _value.privateMessageReport - : privateMessageReport // ignore: cast_nullable_to_non_nullable - as PrivateMessageReport, - privateMessage: null == privateMessage - ? _value.privateMessage - : privateMessage // ignore: cast_nullable_to_non_nullable - as PrivateMessage, - privateMessageCreator: null == privateMessageCreator - ? _value.privateMessageCreator - : privateMessageCreator // ignore: cast_nullable_to_non_nullable - as Person, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - resolver: freezed == resolver - ? _value.resolver - : resolver // ignore: cast_nullable_to_non_nullable - as Person?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessageReportViewImpl extends _PrivateMessageReportView { - const _$PrivateMessageReportViewImpl( - {required this.privateMessageReport, - required this.privateMessage, - required this.privateMessageCreator, - required this.creator, - this.resolver}) - : super._(); - - factory _$PrivateMessageReportViewImpl.fromJson(Map json) => - _$$PrivateMessageReportViewImplFromJson(json); - - @override - final PrivateMessageReport privateMessageReport; -// v0.18.0 - @override - final PrivateMessage privateMessage; -// v0.18.0 - @override - final Person privateMessageCreator; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Person? resolver; - - @override - String toString() { - return 'PrivateMessageReportView(privateMessageReport: $privateMessageReport, privateMessage: $privateMessage, privateMessageCreator: $privateMessageCreator, creator: $creator, resolver: $resolver)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessageReportViewImpl && - (identical(other.privateMessageReport, privateMessageReport) || - other.privateMessageReport == privateMessageReport) && - (identical(other.privateMessage, privateMessage) || - other.privateMessage == privateMessage) && - (identical(other.privateMessageCreator, privateMessageCreator) || - other.privateMessageCreator == privateMessageCreator) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.resolver, resolver) || - other.resolver == resolver)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash(runtimeType, privateMessageReport, - privateMessage, privateMessageCreator, creator, resolver); - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessageReportViewImplCopyWith<_$PrivateMessageReportViewImpl> - get copyWith => __$$PrivateMessageReportViewImplCopyWithImpl< - _$PrivateMessageReportViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessageReportViewImplToJson( - this, - ); - } -} - -abstract class _PrivateMessageReportView extends PrivateMessageReportView { - const factory _PrivateMessageReportView( - {required final PrivateMessageReport privateMessageReport, - required final PrivateMessage privateMessage, - required final Person privateMessageCreator, - required final Person creator, - final Person? resolver}) = _$PrivateMessageReportViewImpl; - const _PrivateMessageReportView._() : super._(); - - factory _PrivateMessageReportView.fromJson(Map json) = - _$PrivateMessageReportViewImpl.fromJson; - - @override - PrivateMessageReport get privateMessageReport; // v0.18.0 - @override - PrivateMessage get privateMessage; // v0.18.0 - @override - Person get privateMessageCreator; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Person? get resolver; - - /// Create a copy of PrivateMessageReportView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessageReportViewImplCopyWith<_$PrivateMessageReportViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/private_message_report_view.g.dart b/lib/src/v3/views/private_message_report_view.g.dart deleted file mode 100644 index b3beb407..00000000 --- a/lib/src/v3/views/private_message_report_view.g.dart +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message_report_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessageReportViewImpl _$$PrivateMessageReportViewImplFromJson( - Map json) => - _$PrivateMessageReportViewImpl( - privateMessageReport: PrivateMessageReport.fromJson( - json['private_message_report'] as Map), - privateMessage: PrivateMessage.fromJson( - json['private_message'] as Map), - privateMessageCreator: Person.fromJson( - json['private_message_creator'] as Map), - creator: Person.fromJson(json['creator'] as Map), - resolver: json['resolver'] == null - ? null - : Person.fromJson(json['resolver'] as Map), - ); - -Map _$$PrivateMessageReportViewImplToJson( - _$PrivateMessageReportViewImpl instance) => - { - 'private_message_report': instance.privateMessageReport.toJson(), - 'private_message': instance.privateMessage.toJson(), - 'private_message_creator': instance.privateMessageCreator.toJson(), - 'creator': instance.creator.toJson(), - 'resolver': instance.resolver?.toJson(), - }; diff --git a/lib/src/v3/views/private_message_view.dart b/lib/src/v3/views/private_message_view.dart deleted file mode 100644 index 269753b3..00000000 --- a/lib/src/v3/views/private_message_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'private_message_view.freezed.dart'; -part 'private_message_view.g.dart'; - -@freezed -class PrivateMessageView with _$PrivateMessageView { - @modelSerde - const factory PrivateMessageView({ - required PrivateMessage privateMessage, // v0.18.0 - required Person creator, // v0.18.0 - required Person recipient, // v0.18.0 - }) = _PrivateMessageView; - - const PrivateMessageView._(); - factory PrivateMessageView.fromJson(Map json) => - _$PrivateMessageViewFromJson(json); -} diff --git a/lib/src/v3/views/private_message_view.freezed.dart b/lib/src/v3/views/private_message_view.freezed.dart deleted file mode 100644 index db94b0fd..00000000 --- a/lib/src/v3/views/private_message_view.freezed.dart +++ /dev/null @@ -1,253 +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 'private_message_view.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'); - -PrivateMessageView _$PrivateMessageViewFromJson(Map json) { - return _PrivateMessageView.fromJson(json); -} - -/// @nodoc -mixin _$PrivateMessageView { - PrivateMessage get privateMessage => - throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Person get recipient => throw _privateConstructorUsedError; - - /// Serializes this PrivateMessageView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $PrivateMessageViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $PrivateMessageViewCopyWith<$Res> { - factory $PrivateMessageViewCopyWith( - PrivateMessageView value, $Res Function(PrivateMessageView) then) = - _$PrivateMessageViewCopyWithImpl<$Res, PrivateMessageView>; - @useResult - $Res call({PrivateMessage privateMessage, Person creator, Person recipient}); - - $PrivateMessageCopyWith<$Res> get privateMessage; - $PersonCopyWith<$Res> get creator; - $PersonCopyWith<$Res> get recipient; -} - -/// @nodoc -class _$PrivateMessageViewCopyWithImpl<$Res, $Val extends PrivateMessageView> - implements $PrivateMessageViewCopyWith<$Res> { - _$PrivateMessageViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessage = null, - Object? creator = null, - Object? recipient = null, - }) { - return _then(_value.copyWith( - privateMessage: null == privateMessage - ? _value.privateMessage - : privateMessage // ignore: cast_nullable_to_non_nullable - as PrivateMessage, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - recipient: null == recipient - ? _value.recipient - : recipient // ignore: cast_nullable_to_non_nullable - as Person, - ) as $Val); - } - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PrivateMessageCopyWith<$Res> get privateMessage { - return $PrivateMessageCopyWith<$Res>(_value.privateMessage, (value) { - return _then(_value.copyWith(privateMessage: value) as $Val); - }); - } - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get recipient { - return $PersonCopyWith<$Res>(_value.recipient, (value) { - return _then(_value.copyWith(recipient: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$PrivateMessageViewImplCopyWith<$Res> - implements $PrivateMessageViewCopyWith<$Res> { - factory _$$PrivateMessageViewImplCopyWith(_$PrivateMessageViewImpl value, - $Res Function(_$PrivateMessageViewImpl) then) = - __$$PrivateMessageViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({PrivateMessage privateMessage, Person creator, Person recipient}); - - @override - $PrivateMessageCopyWith<$Res> get privateMessage; - @override - $PersonCopyWith<$Res> get creator; - @override - $PersonCopyWith<$Res> get recipient; -} - -/// @nodoc -class __$$PrivateMessageViewImplCopyWithImpl<$Res> - extends _$PrivateMessageViewCopyWithImpl<$Res, _$PrivateMessageViewImpl> - implements _$$PrivateMessageViewImplCopyWith<$Res> { - __$$PrivateMessageViewImplCopyWithImpl(_$PrivateMessageViewImpl _value, - $Res Function(_$PrivateMessageViewImpl) _then) - : super(_value, _then); - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? privateMessage = null, - Object? creator = null, - Object? recipient = null, - }) { - return _then(_$PrivateMessageViewImpl( - privateMessage: null == privateMessage - ? _value.privateMessage - : privateMessage // ignore: cast_nullable_to_non_nullable - as PrivateMessage, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - recipient: null == recipient - ? _value.recipient - : recipient // ignore: cast_nullable_to_non_nullable - as Person, - )); - } -} - -/// @nodoc - -@modelSerde -class _$PrivateMessageViewImpl extends _PrivateMessageView { - const _$PrivateMessageViewImpl( - {required this.privateMessage, - required this.creator, - required this.recipient}) - : super._(); - - factory _$PrivateMessageViewImpl.fromJson(Map json) => - _$$PrivateMessageViewImplFromJson(json); - - @override - final PrivateMessage privateMessage; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Person recipient; - - @override - String toString() { - return 'PrivateMessageView(privateMessage: $privateMessage, creator: $creator, recipient: $recipient)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$PrivateMessageViewImpl && - (identical(other.privateMessage, privateMessage) || - other.privateMessage == privateMessage) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.recipient, recipient) || - other.recipient == recipient)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, privateMessage, creator, recipient); - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$PrivateMessageViewImplCopyWith<_$PrivateMessageViewImpl> get copyWith => - __$$PrivateMessageViewImplCopyWithImpl<_$PrivateMessageViewImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$PrivateMessageViewImplToJson( - this, - ); - } -} - -abstract class _PrivateMessageView extends PrivateMessageView { - const factory _PrivateMessageView( - {required final PrivateMessage privateMessage, - required final Person creator, - required final Person recipient}) = _$PrivateMessageViewImpl; - const _PrivateMessageView._() : super._(); - - factory _PrivateMessageView.fromJson(Map json) = - _$PrivateMessageViewImpl.fromJson; - - @override - PrivateMessage get privateMessage; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Person get recipient; - - /// Create a copy of PrivateMessageView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$PrivateMessageViewImplCopyWith<_$PrivateMessageViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/private_message_view.g.dart b/lib/src/v3/views/private_message_view.g.dart deleted file mode 100644 index 9e28e3cc..00000000 --- a/lib/src/v3/views/private_message_view.g.dart +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'private_message_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$PrivateMessageViewImpl _$$PrivateMessageViewImplFromJson( - Map json) => - _$PrivateMessageViewImpl( - privateMessage: PrivateMessage.fromJson( - json['private_message'] as Map), - creator: Person.fromJson(json['creator'] as Map), - recipient: Person.fromJson(json['recipient'] as Map), - ); - -Map _$$PrivateMessageViewImplToJson( - _$PrivateMessageViewImpl instance) => - { - 'private_message': instance.privateMessage.toJson(), - 'creator': instance.creator.toJson(), - 'recipient': instance.recipient.toJson(), - }; diff --git a/lib/src/v3/views/registration_application_view.dart b/lib/src/v3/views/registration_application_view.dart deleted file mode 100644 index 45b99498..00000000 --- a/lib/src/v3/views/registration_application_view.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'registration_application_view.freezed.dart'; -part 'registration_application_view.g.dart'; - -@freezed -class RegistrationApplicationView with _$RegistrationApplicationView { - @modelSerde - const factory RegistrationApplicationView({ - required RegistrationApplication registrationApplication, // v0.18.0 - required LocalUser creatorLocalUser, // v0.18.0 - required Person creator, // v0.18.0 - Person? admin, // v0.18.0 - }) = _RegistrationApplicationView; - - const RegistrationApplicationView._(); - factory RegistrationApplicationView.fromJson(Map json) => - _$RegistrationApplicationViewFromJson(json); -} diff --git a/lib/src/v3/views/registration_application_view.freezed.dart b/lib/src/v3/views/registration_application_view.freezed.dart deleted file mode 100644 index 4f0816ee..00000000 --- a/lib/src/v3/views/registration_application_view.freezed.dart +++ /dev/null @@ -1,309 +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 'registration_application_view.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'); - -RegistrationApplicationView _$RegistrationApplicationViewFromJson( - Map json) { - return _RegistrationApplicationView.fromJson(json); -} - -/// @nodoc -mixin _$RegistrationApplicationView { - RegistrationApplication get registrationApplication => - throw _privateConstructorUsedError; // v0.18.0 - LocalUser get creatorLocalUser => - throw _privateConstructorUsedError; // v0.18.0 - Person get creator => throw _privateConstructorUsedError; // v0.18.0 - Person? get admin => throw _privateConstructorUsedError; - - /// Serializes this RegistrationApplicationView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $RegistrationApplicationViewCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RegistrationApplicationViewCopyWith<$Res> { - factory $RegistrationApplicationViewCopyWith( - RegistrationApplicationView value, - $Res Function(RegistrationApplicationView) then) = - _$RegistrationApplicationViewCopyWithImpl<$Res, - RegistrationApplicationView>; - @useResult - $Res call( - {RegistrationApplication registrationApplication, - LocalUser creatorLocalUser, - Person creator, - Person? admin}); - - $RegistrationApplicationCopyWith<$Res> get registrationApplication; - $LocalUserCopyWith<$Res> get creatorLocalUser; - $PersonCopyWith<$Res> get creator; - $PersonCopyWith<$Res>? get admin; -} - -/// @nodoc -class _$RegistrationApplicationViewCopyWithImpl<$Res, - $Val extends RegistrationApplicationView> - implements $RegistrationApplicationViewCopyWith<$Res> { - _$RegistrationApplicationViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplication = null, - Object? creatorLocalUser = null, - Object? creator = null, - Object? admin = freezed, - }) { - return _then(_value.copyWith( - registrationApplication: null == registrationApplication - ? _value.registrationApplication - : registrationApplication // ignore: cast_nullable_to_non_nullable - as RegistrationApplication, - creatorLocalUser: null == creatorLocalUser - ? _value.creatorLocalUser - : creatorLocalUser // ignore: cast_nullable_to_non_nullable - as LocalUser, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - ) as $Val); - } - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $RegistrationApplicationCopyWith<$Res> get registrationApplication { - return $RegistrationApplicationCopyWith<$Res>( - _value.registrationApplication, (value) { - return _then(_value.copyWith(registrationApplication: value) as $Val); - }); - } - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $LocalUserCopyWith<$Res> get creatorLocalUser { - return $LocalUserCopyWith<$Res>(_value.creatorLocalUser, (value) { - return _then(_value.copyWith(creatorLocalUser: value) as $Val); - }); - } - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res>? get admin { - if (_value.admin == null) { - return null; - } - - return $PersonCopyWith<$Res>(_value.admin!, (value) { - return _then(_value.copyWith(admin: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$RegistrationApplicationViewImplCopyWith<$Res> - implements $RegistrationApplicationViewCopyWith<$Res> { - factory _$$RegistrationApplicationViewImplCopyWith( - _$RegistrationApplicationViewImpl value, - $Res Function(_$RegistrationApplicationViewImpl) then) = - __$$RegistrationApplicationViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {RegistrationApplication registrationApplication, - LocalUser creatorLocalUser, - Person creator, - Person? admin}); - - @override - $RegistrationApplicationCopyWith<$Res> get registrationApplication; - @override - $LocalUserCopyWith<$Res> get creatorLocalUser; - @override - $PersonCopyWith<$Res> get creator; - @override - $PersonCopyWith<$Res>? get admin; -} - -/// @nodoc -class __$$RegistrationApplicationViewImplCopyWithImpl<$Res> - extends _$RegistrationApplicationViewCopyWithImpl<$Res, - _$RegistrationApplicationViewImpl> - implements _$$RegistrationApplicationViewImplCopyWith<$Res> { - __$$RegistrationApplicationViewImplCopyWithImpl( - _$RegistrationApplicationViewImpl _value, - $Res Function(_$RegistrationApplicationViewImpl) _then) - : super(_value, _then); - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? registrationApplication = null, - Object? creatorLocalUser = null, - Object? creator = null, - Object? admin = freezed, - }) { - return _then(_$RegistrationApplicationViewImpl( - registrationApplication: null == registrationApplication - ? _value.registrationApplication - : registrationApplication // ignore: cast_nullable_to_non_nullable - as RegistrationApplication, - creatorLocalUser: null == creatorLocalUser - ? _value.creatorLocalUser - : creatorLocalUser // ignore: cast_nullable_to_non_nullable - as LocalUser, - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - admin: freezed == admin - ? _value.admin - : admin // ignore: cast_nullable_to_non_nullable - as Person?, - )); - } -} - -/// @nodoc - -@modelSerde -class _$RegistrationApplicationViewImpl extends _RegistrationApplicationView { - const _$RegistrationApplicationViewImpl( - {required this.registrationApplication, - required this.creatorLocalUser, - required this.creator, - this.admin}) - : super._(); - - factory _$RegistrationApplicationViewImpl.fromJson( - Map json) => - _$$RegistrationApplicationViewImplFromJson(json); - - @override - final RegistrationApplication registrationApplication; -// v0.18.0 - @override - final LocalUser creatorLocalUser; -// v0.18.0 - @override - final Person creator; -// v0.18.0 - @override - final Person? admin; - - @override - String toString() { - return 'RegistrationApplicationView(registrationApplication: $registrationApplication, creatorLocalUser: $creatorLocalUser, creator: $creator, admin: $admin)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RegistrationApplicationViewImpl && - (identical( - other.registrationApplication, registrationApplication) || - other.registrationApplication == registrationApplication) && - (identical(other.creatorLocalUser, creatorLocalUser) || - other.creatorLocalUser == creatorLocalUser) && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.admin, admin) || other.admin == admin)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => Object.hash( - runtimeType, registrationApplication, creatorLocalUser, creator, admin); - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$RegistrationApplicationViewImplCopyWith<_$RegistrationApplicationViewImpl> - get copyWith => __$$RegistrationApplicationViewImplCopyWithImpl< - _$RegistrationApplicationViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RegistrationApplicationViewImplToJson( - this, - ); - } -} - -abstract class _RegistrationApplicationView - extends RegistrationApplicationView { - const factory _RegistrationApplicationView( - {required final RegistrationApplication registrationApplication, - required final LocalUser creatorLocalUser, - required final Person creator, - final Person? admin}) = _$RegistrationApplicationViewImpl; - const _RegistrationApplicationView._() : super._(); - - factory _RegistrationApplicationView.fromJson(Map json) = - _$RegistrationApplicationViewImpl.fromJson; - - @override - RegistrationApplication get registrationApplication; // v0.18.0 - @override - LocalUser get creatorLocalUser; // v0.18.0 - @override - Person get creator; // v0.18.0 - @override - Person? get admin; - - /// Create a copy of RegistrationApplicationView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$RegistrationApplicationViewImplCopyWith<_$RegistrationApplicationViewImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/registration_application_view.g.dart b/lib/src/v3/views/registration_application_view.g.dart deleted file mode 100644 index a64a526c..00000000 --- a/lib/src/v3/views/registration_application_view.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'registration_application_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$RegistrationApplicationViewImpl _$$RegistrationApplicationViewImplFromJson( - Map json) => - _$RegistrationApplicationViewImpl( - registrationApplication: RegistrationApplication.fromJson( - json['registration_application'] as Map), - creatorLocalUser: LocalUser.fromJson( - json['creator_local_user'] as Map), - creator: Person.fromJson(json['creator'] as Map), - admin: json['admin'] == null - ? null - : Person.fromJson(json['admin'] as Map), - ); - -Map _$$RegistrationApplicationViewImplToJson( - _$RegistrationApplicationViewImpl instance) => - { - 'registration_application': instance.registrationApplication.toJson(), - 'creator_local_user': instance.creatorLocalUser.toJson(), - 'creator': instance.creator.toJson(), - 'admin': instance.admin?.toJson(), - }; diff --git a/lib/src/v3/views/vote_view.dart b/lib/src/v3/views/vote_view.dart deleted file mode 100644 index 99b253b6..00000000 --- a/lib/src/v3/views/vote_view.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../utils/serde.dart'; -import '../models/models.dart'; - -part 'vote_view.freezed.dart'; -part 'vote_view.g.dart'; - -@freezed -class VoteView with _$VoteView { - @modelSerde - const factory VoteView({ - required Person creator, // v0.19.2 (required) - bool? creatorBannedFromCommunity, // v0.19.4 (required) - required int score, // v0.19.2 (required) - }) = _VoteView; - - const VoteView._(); - factory VoteView.fromJson(Map json) => - _$VoteViewFromJson(json); -} diff --git a/lib/src/v3/views/vote_view.freezed.dart b/lib/src/v3/views/vote_view.freezed.dart deleted file mode 100644 index 3dffdf21..00000000 --- a/lib/src/v3/views/vote_view.freezed.dart +++ /dev/null @@ -1,227 +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 'vote_view.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'); - -VoteView _$VoteViewFromJson(Map json) { - return _VoteView.fromJson(json); -} - -/// @nodoc -mixin _$VoteView { - Person get creator => - throw _privateConstructorUsedError; // v0.19.2 (required) - bool? get creatorBannedFromCommunity => - throw _privateConstructorUsedError; // v0.19.4 (required) - int get score => throw _privateConstructorUsedError; - - /// Serializes this VoteView to a JSON map. - Map toJson() => throw _privateConstructorUsedError; - - /// Create a copy of VoteView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - $VoteViewCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $VoteViewCopyWith<$Res> { - factory $VoteViewCopyWith(VoteView value, $Res Function(VoteView) then) = - _$VoteViewCopyWithImpl<$Res, VoteView>; - @useResult - $Res call({Person creator, bool? creatorBannedFromCommunity, int score}); - - $PersonCopyWith<$Res> get creator; -} - -/// @nodoc -class _$VoteViewCopyWithImpl<$Res, $Val extends VoteView> - implements $VoteViewCopyWith<$Res> { - _$VoteViewCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - /// Create a copy of VoteView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? creator = null, - Object? creatorBannedFromCommunity = freezed, - Object? score = null, - }) { - return _then(_value.copyWith( - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - creatorBannedFromCommunity: freezed == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } - - /// Create a copy of VoteView - /// with the given fields replaced by the non-null parameter values. - @override - @pragma('vm:prefer-inline') - $PersonCopyWith<$Res> get creator { - return $PersonCopyWith<$Res>(_value.creator, (value) { - return _then(_value.copyWith(creator: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$VoteViewImplCopyWith<$Res> - implements $VoteViewCopyWith<$Res> { - factory _$$VoteViewImplCopyWith( - _$VoteViewImpl value, $Res Function(_$VoteViewImpl) then) = - __$$VoteViewImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({Person creator, bool? creatorBannedFromCommunity, int score}); - - @override - $PersonCopyWith<$Res> get creator; -} - -/// @nodoc -class __$$VoteViewImplCopyWithImpl<$Res> - extends _$VoteViewCopyWithImpl<$Res, _$VoteViewImpl> - implements _$$VoteViewImplCopyWith<$Res> { - __$$VoteViewImplCopyWithImpl( - _$VoteViewImpl _value, $Res Function(_$VoteViewImpl) _then) - : super(_value, _then); - - /// Create a copy of VoteView - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? creator = null, - Object? creatorBannedFromCommunity = freezed, - Object? score = null, - }) { - return _then(_$VoteViewImpl( - creator: null == creator - ? _value.creator - : creator // ignore: cast_nullable_to_non_nullable - as Person, - creatorBannedFromCommunity: freezed == creatorBannedFromCommunity - ? _value.creatorBannedFromCommunity - : creatorBannedFromCommunity // ignore: cast_nullable_to_non_nullable - as bool?, - score: null == score - ? _value.score - : score // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -/// @nodoc - -@modelSerde -class _$VoteViewImpl extends _VoteView { - const _$VoteViewImpl( - {required this.creator, - this.creatorBannedFromCommunity, - required this.score}) - : super._(); - - factory _$VoteViewImpl.fromJson(Map json) => - _$$VoteViewImplFromJson(json); - - @override - final Person creator; -// v0.19.2 (required) - @override - final bool? creatorBannedFromCommunity; -// v0.19.4 (required) - @override - final int score; - - @override - String toString() { - return 'VoteView(creator: $creator, creatorBannedFromCommunity: $creatorBannedFromCommunity, score: $score)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$VoteViewImpl && - (identical(other.creator, creator) || other.creator == creator) && - (identical(other.creatorBannedFromCommunity, - creatorBannedFromCommunity) || - other.creatorBannedFromCommunity == - creatorBannedFromCommunity) && - (identical(other.score, score) || other.score == score)); - } - - @JsonKey(includeFromJson: false, includeToJson: false) - @override - int get hashCode => - Object.hash(runtimeType, creator, creatorBannedFromCommunity, score); - - /// Create a copy of VoteView - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @override - @pragma('vm:prefer-inline') - _$$VoteViewImplCopyWith<_$VoteViewImpl> get copyWith => - __$$VoteViewImplCopyWithImpl<_$VoteViewImpl>(this, _$identity); - - @override - Map toJson() { - return _$$VoteViewImplToJson( - this, - ); - } -} - -abstract class _VoteView extends VoteView { - const factory _VoteView( - {required final Person creator, - final bool? creatorBannedFromCommunity, - required final int score}) = _$VoteViewImpl; - const _VoteView._() : super._(); - - factory _VoteView.fromJson(Map json) = - _$VoteViewImpl.fromJson; - - @override - Person get creator; // v0.19.2 (required) - @override - bool? get creatorBannedFromCommunity; // v0.19.4 (required) - @override - int get score; - - /// Create a copy of VoteView - /// with the given fields replaced by the non-null parameter values. - @override - @JsonKey(includeFromJson: false, includeToJson: false) - _$$VoteViewImplCopyWith<_$VoteViewImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/v3/views/vote_view.g.dart b/lib/src/v3/views/vote_view.g.dart deleted file mode 100644 index fb9b1761..00000000 --- a/lib/src/v3/views/vote_view.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'vote_view.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$VoteViewImpl _$$VoteViewImplFromJson(Map json) => - _$VoteViewImpl( - creator: Person.fromJson(json['creator'] as Map), - creatorBannedFromCommunity: - json['creator_banned_from_community'] as bool?, - score: (json['score'] as num).toInt(), - ); - -Map _$$VoteViewImplToJson(_$VoteViewImpl instance) => - { - 'creator': instance.creator.toJson(), - 'creator_banned_from_community': instance.creatorBannedFromCommunity, - 'score': instance.score, - }; diff --git a/lib/v3.dart b/lib/v3.dart deleted file mode 100644 index 1b443a5d..00000000 --- a/lib/v3.dart +++ /dev/null @@ -1,7 +0,0 @@ -export 'src/exceptions.dart'; -export 'src/v3/api/api.dart'; -export 'src/v3/enums/enums.dart'; -export 'src/v3/main.dart'; -export 'src/v3/models/models.dart'; -export 'src/v3/query.dart'; -export 'src/v3/views/views.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 0cfd9ace..eb51061c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,19 +1,17 @@ name: lemmy_api_client -version: 0.21.0 -homepage: https://github.com/LemmurOrg/lemmy_api_client description: Future-based http client for the Lemmy API. Provides an easy interface and statically typed responses. +version: 1.0.0 +repository: https://github.com/thunder-app/lemmy_api_client environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ^3.6.0 dependencies: - json_annotation: ^4.6.0 - http: ^1.0.0 - freezed_annotation: ^2.4.4 - web_socket_channel: ^2.0.0 + json_annotation: ^4.9.0 + http: ^1.2.2 dev_dependencies: - build_runner: ^2.4.6 - freezed: ^2.4.2 - json_serializable: ^6.7.1 - test: ^1.24.6 + lints: ^5.0.0 + test: ^1.25.13 + build_runner: ^2.4.14 + json_serializable: ^6.9.2 diff --git a/scripts/release.dart b/scripts/release.dart deleted file mode 100755 index c1673f71..00000000 --- a/scripts/release.dart +++ /dev/null @@ -1,139 +0,0 @@ -import 'dart:io'; - -Future main(List args) async { - await assertNoStagedGit(); - - if (args.isEmpty || !{'patch', 'minor', 'major'}.contains(args[0])) { - print('Unknown version bump type'); - exit(1); - } - - final version = await bumpedVersion(args[0]); - - await updatePubspec(version); - - await updateChangelog(version); - - await runGitCommands(version); - - print( - 'Before pushing review the changes with `git show`. ' - 'Once reviewed and pushed, push the new tag with `git push --tags`', - ); -} - -Future assertNoStagedGit() async { - final res = - await Process.run('git', ['diff-index', '--cached', '--quiet', 'HEAD']); - - if (res.exitCode != 0) { - print('You have staged files, commit or unstage them.'); - exit(1); - } -} - -class Version { - final int major, minor, patch; - const Version(this.major, this.minor, this.patch); - String toString() => '$major.$minor.$patch'; -} - -Future bumpedVersion(String versionBumpType) async { - final pubspecFile = File('pubspec.yaml'); - final pubspecContents = await pubspecFile.readAsString(); - - final versionMatch = - RegExp(r'version: (\d+)\.(\d+)\.(\d+)').firstMatch(pubspecContents); - - if (versionMatch == null) throw Exception('Failed to find pubspec version'); - - var major = int.parse(versionMatch.group(1)!); - var minor = int.parse(versionMatch.group(2)!); - var patch = int.parse(versionMatch.group(3)!); - - switch (versionBumpType) { - case 'patch': - patch++; - break; - case 'minor': - patch = 0; - minor++; - break; - case 'major': - patch = 0; - minor = 0; - major++; - break; - } - - return Version(major, minor, patch); -} - -Future updatePubspec(Version version) async { - final pubspecFile = File('pubspec.yaml'); - final pubspecContents = await pubspecFile.readAsString(); - - confirm('Version looks good? $version'); - - final updatedPubspec = - pubspecContents.replaceFirst(RegExp('version: .+'), 'version: $version'); - await pubspecFile.writeAsString(updatedPubspec); -} - -Future updateChangelog(Version version) async { - final changelogFile = File('CHANGELOG.md'); - final changelogContents = await changelogFile.readAsString(); - - var currentChangelog = - RegExp(r'^## Unreleased$.+?^##[^#]', multiLine: true, dotAll: true) - .stringMatch(changelogContents); - if (currentChangelog == null) { - throw Exception('Failed to find changelog'); - } - - currentChangelog = currentChangelog.substring(0, currentChangelog.length - 4); - - final date = DateTime.now(); - final dateString = '${date.year}-${date.month.toString().padLeft(2, '0')}' - '-${date.day.toString().padLeft(2, '0')}'; - - currentChangelog = - currentChangelog.replaceFirst('Unreleased', 'v$version - $dateString'); - - confirm('Changelog looks good?\n$currentChangelog\n'); - - await changelogFile.writeAsString( - changelogContents.replaceFirst('Unreleased', 'v$version - $dateString'), - ); -} - -Future runGitCommands(Version version) async { - stdout.write('Running git add... '); - await Process.run('git', [ - 'add', - 'CHANGELOG.md', - 'pubspec.yaml', - ]); - print('done'); - - stdout.write('Running git commit... '); - await Process.run('git', ['commit', '-m', 'Release v$version']); - print('done'); - - stdout.write('Running git tag... '); - await Process.run('git', ['tag', 'v$version']); - print('done'); -} - -void confirm(String message) { - stdout.write('$message [y/n] '); - - switch (stdin.readLineSync()) { - case 'y': - case 'yes': - break; - default: - print('Exiting'); - exit(1); - } -} diff --git a/test/account/account_test.dart b/test/account/account_test.dart new file mode 100644 index 00000000..c4518413 --- /dev/null +++ b/test/account/account_test.dart @@ -0,0 +1,75 @@ +import 'dart:math'; + +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:test/test.dart'; + +String generateRandomString(int length) { + const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; + Random random = Random(); + + return List.generate(length, (index) { + return characters[random.nextInt(characters.length)]; + }).join(); +} + +void main() { + late LemmyClient client; + + setUpAll(() async { + client = await LemmyClient.initialize(); + }); + + group('Account Auth', () { + test('should properly login given username and password', () async { + final result = await client.account.login(username: 'lemmy', password: 'lemmylemmy'); + + expect(result, isNotNull); + expect(result.jwt, isNotNull); + }); + + test('should properly logout the current user', () async { + final loginResult = await client.account.login(username: 'lemmy', password: 'lemmylemmy'); + + expect(loginResult, isNotNull); + expect(loginResult.jwt, isNotNull); + + final logoutResult = await client.account.logout(); + expect(logoutResult, isNotNull); + }); + }); + + group('Account Registration & Deletion', () { + late String username; + late String password; + + setUpAll(() async { + username = generateRandomString(10); + password = 'testing123'; + + print('Username: $username'); + }); + + test('should properly register a new account with a username and password', () async { + final result = await client.account.register(username: username, password: password); + + expect(result, isNotNull); + expect(result.jwt, isNotNull); + expect(client.auth, result.jwt); + }); + + test('should fail to register a new account with an existing username', () async { + expect( + () async => await client.account.register(username: username, password: password), + throwsA(isA()), + ); + }); + + test('should properly delete as account given their password', () async { + await client.account.login(username: username, password: password); + final result = await client.account.delete(password: password); + + expect(result, isNotNull); + expect(result.success, isTrue); + }); + }); +} diff --git a/test/community/community_test.dart b/test/community/community_test.dart new file mode 100644 index 00000000..520af099 --- /dev/null +++ b/test/community/community_test.dart @@ -0,0 +1,41 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:test/test.dart'; + +void main() { + late LemmyClient client; + + setUpAll(() async { + client = await LemmyClient.initialize(); + }); + + group('Community', () { + test('should throw exception when attempting to create a community without being logged in', () async { + final result = await client.community.create( + name: 'test_community', + title: 'Test Community', + ); + + expect(result.communityView.community.name, equals('test_community')); + expect(result.communityView.community.title, equals('Test Community')); + }); + + test('should properly create a community', () async { + await client.account.login(username: 'lemmy', password: 'lemmylemmy'); + + final result = await client.community.create( + name: 'test_community', + title: 'Test Community', + ); + + expect(result.communityView.community.name, equals('test_community')); + expect(result.communityView.community.title, equals('Test Community')); + }); + + test('should properly fetch a community', () async { + final result = await client.community(id: 2).details(); + + expect(result.communityView.community.name, equals('test_community')); + expect(result.communityView.community.title, equals('Test Community')); + }); + }); +} diff --git a/test/feed/feed_test.dart b/test/feed/feed_test.dart new file mode 100644 index 00000000..0decc1e8 --- /dev/null +++ b/test/feed/feed_test.dart @@ -0,0 +1,31 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/client/enums/enums.dart'; +import 'package:test/test.dart'; + +void main() { + late LemmyClient client; + + setUpAll(() async { + client = await LemmyClient.initialize( + // instance: 'lemmy.ml', + // scheme: 'https', + ); + }); + + group('Feed', () { + test('should properly fetch feed listings from all', () async { + final result = await client.feed(listingType: ListingType.all).posts(); + expect(result, isNotNull); + }); + + test('should properly fetch feed listings from local', () async { + final result = await client.feed(listingType: ListingType.local).posts(); + expect(result, isNotNull); + }); + + test('should properly fetch feed listings given a sort type', () async { + final result = await client.feed(listingType: ListingType.local).posts(sort: PostSortType.active); + expect(result, isNotNull); + }); + }); +} diff --git a/test/initialization/initialization_test.dart b/test/initialization/initialization_test.dart new file mode 100644 index 00000000..37184bb4 --- /dev/null +++ b/test/initialization/initialization_test.dart @@ -0,0 +1,36 @@ +import 'package:http/http.dart'; +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:test/test.dart'; + +void main() { + group('Client', () { + test('should fetch the proper site information when initialized', () async { + final client = await LemmyClient.initialize(); + + expect(client, isNotNull); + expect(client.site, isNotNull); + }); + + test('should fail when an invalid instance is given', () async { + expect( + () async => await LemmyClient.initialize(instance: 'invalid'), + throwsA(isA()), + ); + }); + + test('should fetch the proper account information when initialized', () async { + final client = + await LemmyClient.initialize(auth: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiaXNzIjoibG9jYWxob3N0IiwiaWF0IjoxNzM0NjQ5NDI3fQ.hhBapQA3aVE8509g30Zf8-mPHIok8ShNeo1t3IAQNnw'); + + expect(client, isNotNull); + // expect(client.accountInformation, isNotNull); + }); + + test('should not have account information if no auth is passed in', () async { + final client = await LemmyClient.initialize(auth: 'invalid'); + + expect(client, isNotNull); + // expect(client.accountInformation, isNull); + }); + }); +} diff --git a/test/site/site_test.dart b/test/site/site_test.dart new file mode 100644 index 00000000..9a4bbc8a --- /dev/null +++ b/test/site/site_test.dart @@ -0,0 +1,22 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:test/test.dart'; + +void main() { + late LemmyClient client; + + setUpAll(() async { + client = await LemmyClient.initialize(); + }); + + group('Site Details', () { + test('should fetch the current instance details', () async { + final result = client.site.info; + expect(result, isNotNull); + }); + + test('should fetch the updated current instance details', () async { + final result = client.site.refresh(); + expect(result, isNotNull); + }); + }); +} diff --git a/test/user/user_test.dart b/test/user/user_test.dart new file mode 100644 index 00000000..eb23eb1f --- /dev/null +++ b/test/user/user_test.dart @@ -0,0 +1,237 @@ +import 'package:lemmy_api_client/src/client/client.dart'; +import 'package:lemmy_api_client/src/models/v4/models.dart'; +import 'package:test/test.dart'; + +void main() { + group('v3', () { + late LemmyClient client; + + setUpAll(() async { + client = await LemmyClient.initialize( + instance: 'lemmy.thunderapp.dev', + version: 'v3', + scheme: 'https', + ); + }); + + group('User Details', () { + test('should fetch user details properly using user id', () async { + final result = await client.user(id: 2).details(); + expect(result.personView.person.id, equals(2)); + }); + + test('should throw exception when fetching user with invalid user id', () async { + expect(() async { + await client.user(id: -1).details(); + }, throwsA(isA())); + }); + + test('should fetch user details properly using username', () async { + final result = await client.user(username: '').details(); + expect(result.personView.person.name, equals('')); + }); + + test('should throw exception when fetching user that does not exist', () async { + expect(() async { + await client.user(username: 'non_existent_user').details(); + }, throwsA(isA())); + }); + }); + + group('User Actions', () { + test('should throw exception when blocking a user when not logged in', () async { + expect(() async { + await client.user(username: '').block(); + }, throwsA(isA())); + }); + + test('should throw exception when blocking an admin', () async { + await client.account.login(username: '', password: ''); + + expect(() async { + await client.user(username: '').block(); + }, throwsA(isA())); + }); + + test('should throw exception when blocking self', () async { + await client.account.login(username: '', password: ''); + + expect(() async { + await client.user(username: '').block(); + }, throwsA(isA())); + }); + + test('should be able to bloc and unblock a given user by id', () async { + await client.account.login(username: '', password: ''); + + final blockResult = await client.user(id: 4).block(); + expect(blockResult.blocked, isTrue); + + final unblockResult = await client.user(id: 4).unblock(); + expect(unblockResult.blocked, isFalse); + }); + + // test('should throw exception when messaging the user when not logged in', () async { + // final result = await client.user(id: 2).details(); + // expect(result, isNotNull); + // }); + + // test('should be able to message the user if logged in', () async { + // final result = await client.user(id: 2).details(); + // expect(result, isNotNull); + // }); + }); + + group('User Posts', () { + test('should fetch user posts properly without any parameters', () async { + final result = await client.user(id: 2).posts(); + expect(result.length, greaterThan(0)); + }); + + test('should fetch the correct number of posts based on the limit', () async { + final result = await client.user(id: 2).posts(limit: 1); + expect(result.length, equals(1)); + }); + + test('should fetch no user posts for a large page number', () async { + final result = await client.user(id: 2).posts(page: 1000000); + expect(result.length, equals(0)); + }); + + test('should fetch saved user posts', () async { + final result = await client.user(id: 2).posts(savedOnly: true); + expect(result.length, equals(0)); + }); + + test('should fetch user posts for a given community', () async { + List result = await client.user(id: 2).posts(communityId: 1); + expect(result.length, equals(0)); + + result = await client.user(id: 2).posts(communityId: 2); + expect(result.length, greaterThan(0)); + }); + }); + + group('User Comments', () { + test('should fetch user comments properly without any parameters', () async { + final result = await client.user(id: 2).comments(); + expect(result.length, greaterThan(0)); + }); + + test('should fetch the correct number of comments based on the limit', () async { + final result = await client.user(id: 2).comments(limit: 1); + expect(result.length, equals(1)); + }); + + test('should fetch no user comments for a large page number', () async { + final result = await client.user(id: 2).comments(page: 1000000); + expect(result.length, equals(0)); + }); + + test('should fetch saved user comments', () async { + final result = await client.user(id: 2).comments(savedOnly: true); + expect(result.length, equals(0)); + }); + + test('should fetch user comments for a given community', () async { + List result = await client.user(id: 2).comments(communityId: 1); + expect(result.length, equals(0)); + + result = await client.user(id: 2).comments(communityId: 2); + expect(result.length, greaterThan(0)); + }); + }); + }); + + group('v4', () { + late LemmyClient client; + + setUpAll(() async { + client = await LemmyClient.initialize(); + }); + + group('User Details', () { + test('should fetch user details properly using user id', () async { + final result = await client.user(id: 2).details(); + expect(result.personView.person.id, equals(2)); + }); + + test('should throw exception when fetching user with invalid user id', () async { + expect(() async { + await client.user(id: -1).details(); + }, throwsA(isA())); + }); + + test('should fetch user details properly using username', () async { + final result = await client.user(username: 'lemmy').details(); + expect(result.personView.person.name, equals('lemmy')); + }); + + test('should throw exception when fetching user that does not exist', () async { + expect(() async { + await client.user(username: 'non_existent_user').details(); + }, throwsA(isA())); + }); + }); + + group('User Posts', () { + test('should fetch user posts properly without any parameters', () async { + final result = await client.user(id: 2).posts(); + expect(result.length, greaterThan(0)); + }); + + test('should fetch the correct number of posts based on the limit', () async { + final result = await client.user(id: 2).posts(limit: 1); + expect(result.length, equals(1)); + }); + + test('should fetch no user posts for a large page number', () async { + final result = await client.user(id: 2).posts(page: 1000000); + expect(result.length, equals(0)); + }); + + test('should fetch saved user posts', () async { + final result = await client.user(id: 2).posts(savedOnly: true); + expect(result.length, equals(0)); + }); + + test('should fetch user posts for a given community', () async { + List result = await client.user(id: 2).posts(communityId: 1); + expect(result.length, equals(0)); + + result = await client.user(id: 2).posts(communityId: 2); + expect(result.length, greaterThan(0)); + }); + }); + + group('User Comments', () { + test('should fetch user comments properly without any parameters', () async { + final result = await client.user(id: 2).comments(); + expect(result.length, greaterThan(0)); + }); + + test('should fetch the correct number of comments based on the limit', () async { + final result = await client.user(id: 2).comments(limit: 1); + expect(result.length, equals(1)); + }); + + test('should fetch no user comments for a large page number', () async { + final result = await client.user(id: 2).comments(page: 1000000); + expect(result.length, equals(0)); + }); + + test('should fetch saved user comments', () async { + final result = await client.user(id: 2).comments(savedOnly: true); + expect(result.length, equals(0)); + }); + + test('should fetch user comments for a given community', () async { + List result = await client.user(id: 2).comments(communityId: 1); + expect(result.length, equals(0)); + + result = await client.user(id: 2).comments(communityId: 2); + expect(result.length, greaterThan(0)); + }); + }); + }); +}