From 064ffcd2c1738bd801fd2669e0ec4143110734dc Mon Sep 17 00:00:00 2001 From: Wlad Meixner Date: Sun, 5 Nov 2023 21:14:39 +0100 Subject: [PATCH] fix: resolved type conversion --- README.md | 1217 ++++++++--------- .../notification_model_details_inner.dart | 74 +- .../notification_model_embedded_resource.dart | 152 +- lib/model/role_model.dart | 65 +- lib/model/root_model.dart | 67 +- lib/model/schema_model.dart | 63 +- lib/model/status_model.dart | 88 +- lib/model/storage_file_model.dart | 99 +- lib/model/storage_file_upload_link_model.dart | 58 +- lib/model/storage_files_model.dart | 73 +- lib/model/storage_files_model_parent.dart | 102 +- lib/model/storage_read_model.dart | 86 +- lib/model/time_entry_activity_model.dart | 87 +- lib/model/user_model.dart | 111 +- lib/model/values_property_model.dart | 70 +- .../week_day_collection_write_model.dart | 64 +- lib/model/week_day_model.dart | 69 +- lib/model/week_day_write_model.dart | 54 +- lib/model/work_package_model.dart | 141 +- 19 files changed, 1530 insertions(+), 1210 deletions(-) diff --git a/README.md b/README.md index 383c324..360a840 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # openapi + You're looking at the current **stable** documentation of the OpenProject APIv3. If you're interested in the current development version, please go to [github.com/opf](https://github.com/opf/openproject/tree/dev/docs/api/apiv3). @@ -74,7 +75,7 @@ curl -u apikey:$API_KEY https://community.openproject.com/api/v3/users/42 ### OAuth2.0 authentication -OpenProject allows authentication and authorization with OAuth2 with *Authorization code flow*, as well as *Client credentials* operation modes. +OpenProject allows authentication and authorization with OAuth2 with _Authorization code flow_, as well as _Client credentials_ operation modes. To get started, you first need to register an application in the OpenProject OAuth administration section of your installation. This will save an entry for your application with a client unique identifier (`client_id`) and an accompanying secret key (`client_secret`). @@ -94,15 +95,15 @@ However, OpenProject already has supported API keys in the past for the API v2, Using **username and password** directly would have some advantages: -* It is intuitive for the user who then just has to provide those just as they would when logging into OpenProject. +- It is intuitive for the user who then just has to provide those just as they would when logging into OpenProject. -* No extra logic for token management necessary. +- No extra logic for token management necessary. On the other hand using **API keys** has some advantages too, which is why we went for that: -* If compromised while saved on an insecure client the user only has to regenerate the API key instead of changing their password, too. +- If compromised while saved on an insecure client the user only has to regenerate the API key instead of changing their password, too. -* They are naturally long and random which makes them invulnerable to dictionary attacks and harder to crack in general. +- They are naturally long and random which makes them invulnerable to dictionary attacks and harder to crack in general. Most importantly users may not actually have a password to begin with. Specifically when they have registered through an OpenID Connect provider. @@ -143,7 +144,9 @@ Dart 2.12 or later ## Installation & Usage ### Github + If this Dart package is published to Github, add the following dependency to your pubspec.yaml + ``` dependencies: openapi: @@ -151,7 +154,9 @@ dependencies: ``` ### Local + To use the package in your local drive, add the following dependency to your pubspec.yaml + ``` dependencies: openapi: @@ -190,619 +195,613 @@ try { All URIs are relative to *https://community.openproject.org* -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*ActionsCapabilitiesApi* | [**listActions**](doc//ActionsCapabilitiesApi.md#listactions) | **GET** /api/v3/actions | List actions -*ActionsCapabilitiesApi* | [**listCapabilities**](doc//ActionsCapabilitiesApi.md#listcapabilities) | **GET** /api/v3/capabilities | List capabilities -*ActionsCapabilitiesApi* | [**viewAction**](doc//ActionsCapabilitiesApi.md#viewaction) | **GET** /api/v3/actions/{id} | View action -*ActionsCapabilitiesApi* | [**viewCapabilities**](doc//ActionsCapabilitiesApi.md#viewcapabilities) | **GET** /api/v3/capabilities/{id} | View capabilities -*ActionsCapabilitiesApi* | [**viewGlobalContext**](doc//ActionsCapabilitiesApi.md#viewglobalcontext) | **GET** /api/v3/capabilities/context/global | View global context -*ActivitiesApi* | [**updateActivity**](doc//ActivitiesApi.md#updateactivity) | **PATCH** /api/v3/activities/{id} | Update activity -*ActivitiesApi* | [**viewActivity**](doc//ActivitiesApi.md#viewactivity) | **GET** /api/v3/activities/{id} | View activity -*AttachmentsApi* | [**addAttachmentToPost**](doc//AttachmentsApi.md#addattachmenttopost) | **POST** /api/v3/posts/{id}/attachments | Add attachment to post -*AttachmentsApi* | [**addAttachmentToWikiPage**](doc//AttachmentsApi.md#addattachmenttowikipage) | **POST** /api/v3/wiki_pages/{id}/attachments | Add attachment to wiki page -*AttachmentsApi* | [**createAttachment**](doc//AttachmentsApi.md#createattachment) | **POST** /api/v3/attachments | Create Attachment -*AttachmentsApi* | [**createWorkPackageAttachment**](doc//AttachmentsApi.md#createworkpackageattachment) | **POST** /api/v3/work_packages/{id}/attachments | Create work package attachment -*AttachmentsApi* | [**deleteAttachment**](doc//AttachmentsApi.md#deleteattachment) | **DELETE** /api/v3/attachments/{id} | Delete attachment -*AttachmentsApi* | [**listAttachmentsByPost**](doc//AttachmentsApi.md#listattachmentsbypost) | **GET** /api/v3/posts/{id}/attachments | List attachments by post -*AttachmentsApi* | [**listAttachmentsByWikiPage**](doc//AttachmentsApi.md#listattachmentsbywikipage) | **GET** /api/v3/wiki_pages/{id}/attachments | List attachments by wiki page -*AttachmentsApi* | [**listWorkPackageAttachments**](doc//AttachmentsApi.md#listworkpackageattachments) | **GET** /api/v3/work_packages/{id}/attachments | List attachments by work package -*AttachmentsApi* | [**viewAttachment**](doc//AttachmentsApi.md#viewattachment) | **GET** /api/v3/attachments/{id} | View attachment -*BudgetsApi* | [**viewBudget**](doc//BudgetsApi.md#viewbudget) | **GET** /api/v3/budgets/{id} | view Budget -*BudgetsApi* | [**viewBudgetsOfAProject**](doc//BudgetsApi.md#viewbudgetsofaproject) | **GET** /api/v3/projects/{id}/budgets | view Budgets of a Project -*CategoriesApi* | [**listCategoriesOfAProject**](doc//CategoriesApi.md#listcategoriesofaproject) | **GET** /api/v3/projects/{id}/categories | List categories of a project -*CategoriesApi* | [**viewCategory**](doc//CategoriesApi.md#viewcategory) | **GET** /api/v3/categories/{id} | View Category -*CollectionsApi* | [**viewAggregatedResult**](doc//CollectionsApi.md#viewaggregatedresult) | **GET** /api/v3/examples | view aggregated result -*ConfigurationApi* | [**viewConfiguration**](doc//ConfigurationApi.md#viewconfiguration) | **GET** /api/v3/configuration | View configuration -*CustomActionsApi* | [**executeCustomAction**](doc//CustomActionsApi.md#executecustomaction) | **POST** /api/v3/custom_actions/{id}/execute | Execute custom action -*CustomActionsApi* | [**getCustomAction**](doc//CustomActionsApi.md#getcustomaction) | **GET** /api/v3/custom_actions/{id} | Get a custom action -*CustomOptionsApi* | [**viewCustomOption**](doc//CustomOptionsApi.md#viewcustomoption) | **GET** /api/v3/custom_options/{id} | View Custom Option -*DocumentsApi* | [**listDocuments**](doc//DocumentsApi.md#listdocuments) | **GET** /api/v3/documents | List Documents -*DocumentsApi* | [**viewDocument**](doc//DocumentsApi.md#viewdocument) | **GET** /api/v3/documents/{id} | View document -*FileLinksApi* | [**createStorage**](doc//FileLinksApi.md#createstorage) | **POST** /api/v3/storages | Creates a storage. -*FileLinksApi* | [**createStorageOauthCredentials**](doc//FileLinksApi.md#createstorageoauthcredentials) | **POST** /api/v3/storages/{id}/oauth_client_credentials | Creates an oauth client credentials object for a storage. -*FileLinksApi* | [**createWorkPackageFileLink**](doc//FileLinksApi.md#createworkpackagefilelink) | **POST** /api/v3/work_packages/{id}/file_links | Creates file links. -*FileLinksApi* | [**deleteFileLink**](doc//FileLinksApi.md#deletefilelink) | **DELETE** /api/v3/file_links/{id} | Removes a file link. -*FileLinksApi* | [**deleteStorage**](doc//FileLinksApi.md#deletestorage) | **DELETE** /api/v3/storages/{id} | Delete a storage -*FileLinksApi* | [**downloadFileLink**](doc//FileLinksApi.md#downloadfilelink) | **GET** /api/v3/file_links/{id}/download | Creates a download uri of the linked file. -*FileLinksApi* | [**getProjectStorage**](doc//FileLinksApi.md#getprojectstorage) | **GET** /api/v3/project_storages/{id} | Gets a project storage -*FileLinksApi* | [**getStorage**](doc//FileLinksApi.md#getstorage) | **GET** /api/v3/storages/{id} | Get a storage -*FileLinksApi* | [**getStorageFiles**](doc//FileLinksApi.md#getstoragefiles) | **GET** /api/v3/storages/{id}/files | Gets files of a storage. -*FileLinksApi* | [**listProjectStorages**](doc//FileLinksApi.md#listprojectstorages) | **GET** /api/v3/project_storages | Gets a list of project storages -*FileLinksApi* | [**listWorkPackageFileLinks**](doc//FileLinksApi.md#listworkpackagefilelinks) | **GET** /api/v3/work_packages/{id}/file_links | Gets all file links of a work package -*FileLinksApi* | [**openFileLink**](doc//FileLinksApi.md#openfilelink) | **GET** /api/v3/file_links/{id}/open | Creates an opening uri of the linked file. -*FileLinksApi* | [**prepareStorageFileUpload**](doc//FileLinksApi.md#preparestoragefileupload) | **POST** /api/v3/storages/{id}/files/prepare_upload | Preparation of a direct upload of a file to the given storage. -*FileLinksApi* | [**updateStorage**](doc//FileLinksApi.md#updatestorage) | **PATCH** /api/v3/storages/{id} | Update a storage -*FileLinksApi* | [**viewFileLink**](doc//FileLinksApi.md#viewfilelink) | **GET** /api/v3/file_links/{id} | Gets a file link. -*FormsApi* | [**showOrValidateForm**](doc//FormsApi.md#showorvalidateform) | **POST** /api/v3/example/form | show or validate form -*GridsApi* | [**createGrid**](doc//GridsApi.md#creategrid) | **POST** /api/v3/grids | Create a grid -*GridsApi* | [**getGrid**](doc//GridsApi.md#getgrid) | **GET** /api/v3/grids/{id} | Get a grid -*GridsApi* | [**gridCreateForm**](doc//GridsApi.md#gridcreateform) | **POST** /api/v3/grids/form | Grid Create Form -*GridsApi* | [**gridUpdateForm**](doc//GridsApi.md#gridupdateform) | **POST** /api/v3/grids/{id}/form | Grid Update Form -*GridsApi* | [**listGrids**](doc//GridsApi.md#listgrids) | **GET** /api/v3/grids | List grids -*GridsApi* | [**updateGrid**](doc//GridsApi.md#updategrid) | **PATCH** /api/v3/grids/{id} | Update a grid -*GroupsApi* | [**createGroup**](doc//GroupsApi.md#creategroup) | **POST** /api/v3/groups | Create group -*GroupsApi* | [**deleteGroup**](doc//GroupsApi.md#deletegroup) | **DELETE** /api/v3/groups/{id} | Delete group -*GroupsApi* | [**getGroup**](doc//GroupsApi.md#getgroup) | **GET** /api/v3/groups/{id} | Get group -*GroupsApi* | [**listGroups**](doc//GroupsApi.md#listgroups) | **GET** /api/v3/groups | List groups -*GroupsApi* | [**updateGroup**](doc//GroupsApi.md#updategroup) | **PATCH** /api/v3/groups/{id} | Update group -*HelpTextsApi* | [**getHelpText**](doc//HelpTextsApi.md#gethelptext) | **GET** /api/v3/help_texts/{id} | Get help text -*HelpTextsApi* | [**listHelpTexts**](doc//HelpTextsApi.md#listhelptexts) | **GET** /api/v3/help_texts | List help texts -*MembershipsApi* | [**availableProjectsForMemberships**](doc//MembershipsApi.md#availableprojectsformemberships) | **GET** /api/v3/memberships/available_projects | Available projects for memberships -*MembershipsApi* | [**createMembership**](doc//MembershipsApi.md#createmembership) | **POST** /api/v3/memberships | Create membership -*MembershipsApi* | [**deleteMembership**](doc//MembershipsApi.md#deletemembership) | **DELETE** /api/v3/memberships/{id} | Delete membership -*MembershipsApi* | [**listMemberships**](doc//MembershipsApi.md#listmemberships) | **GET** /api/v3/memberships | List memberships -*MembershipsApi* | [**membershipCreateForm**](doc//MembershipsApi.md#membershipcreateform) | **POST** /api/v3/memberships/form | Membership create form -*MembershipsApi* | [**membershipUpdateForm**](doc//MembershipsApi.md#membershipupdateform) | **POST** /api/v3/memberships/{id}/form | Membership update form -*MembershipsApi* | [**updateMembership**](doc//MembershipsApi.md#updatemembership) | **PATCH** /api/v3/memberships/{id} | Update membership -*MembershipsApi* | [**viewMembership**](doc//MembershipsApi.md#viewmembership) | **GET** /api/v3/memberships/{id} | View membership -*MembershipsApi* | [**viewMembershipSchema**](doc//MembershipsApi.md#viewmembershipschema) | **GET** /api/v3/memberships/schema | View membership schema -*NewsApi* | [**listNews**](doc//NewsApi.md#listnews) | **GET** /api/v3/news | List News -*NewsApi* | [**viewNews**](doc//NewsApi.md#viewnews) | **GET** /api/v3/news/{id} | View news -*NotificationsApi* | [**listNotifications**](doc//NotificationsApi.md#listnotifications) | **GET** /api/v3/notifications | Get notification collection -*NotificationsApi* | [**readNotification**](doc//NotificationsApi.md#readnotification) | **POST** /api/v3/notifications/{id}/read_ian | Read notification -*NotificationsApi* | [**readNotifications**](doc//NotificationsApi.md#readnotifications) | **POST** /api/v3/notifications/read_ian | Read all notifications -*NotificationsApi* | [**unreadNotification**](doc//NotificationsApi.md#unreadnotification) | **POST** /api/v3/notifications/{id}/unread_ian | Unread notification -*NotificationsApi* | [**unreadNotifications**](doc//NotificationsApi.md#unreadnotifications) | **POST** /api/v3/notifications/unread_ian | Unread all notifications -*NotificationsApi* | [**viewNotification**](doc//NotificationsApi.md#viewnotification) | **GET** /api/v3/notifications/{id} | Get the notification -*NotificationsApi* | [**viewNotificationDetail**](doc//NotificationsApi.md#viewnotificationdetail) | **GET** /api/v3/notifications/{notification_id}/details/{id} | Get a notification detail -*OAuth2Api* | [**getOauthApplication**](doc//OAuth2Api.md#getoauthapplication) | **GET** /api/v3/oauth_applications/{id} | Get the oauth application. -*OAuth2Api* | [**getOauthClientCredentials**](doc//OAuth2Api.md#getoauthclientcredentials) | **GET** /api/v3/oauth_client_credentials/{id} | Get the oauth client credentials object. -*PostsApi* | [**viewPost**](doc//PostsApi.md#viewpost) | **GET** /api/v3/posts/{id} | View Post -*PreviewingApi* | [**previewMarkdownDocument**](doc//PreviewingApi.md#previewmarkdowndocument) | **POST** /api/v3/render/markdown | Preview Markdown document -*PreviewingApi* | [**previewPlainDocument**](doc//PreviewingApi.md#previewplaindocument) | **POST** /api/v3/render/plain | Preview plain document -*PrincipalsApi* | [**listPrincipals**](doc//PrincipalsApi.md#listprincipals) | **GET** /api/v3/principals | List principals -*PrioritiesApi* | [**listAllPriorities**](doc//PrioritiesApi.md#listallpriorities) | **GET** /api/v3/priorities | List all Priorities -*PrioritiesApi* | [**viewPriority**](doc//PrioritiesApi.md#viewpriority) | **GET** /api/v3/priorities/{id} | View Priority -*ProjectsApi* | [**createProject**](doc//ProjectsApi.md#createproject) | **POST** /api/v3/projects | Create project -*ProjectsApi* | [**createProjectCopy**](doc//ProjectsApi.md#createprojectcopy) | **POST** /api/v3/projects/{id}/copy | Create project copy -*ProjectsApi* | [**deleteProject**](doc//ProjectsApi.md#deleteproject) | **DELETE** /api/v3/projects/{id} | Delete Project -*ProjectsApi* | [**listAvailableParentProjectCandidates**](doc//ProjectsApi.md#listavailableparentprojectcandidates) | **GET** /api/v3/projects/available_parent_projects | List available parent project candidates -*ProjectsApi* | [**listProjects**](doc//ProjectsApi.md#listprojects) | **GET** /api/v3/projects | List projects -*ProjectsApi* | [**listProjectsWithVersion**](doc//ProjectsApi.md#listprojectswithversion) | **GET** /api/v3/versions/{id}/projects | List projects having version -*ProjectsApi* | [**projectCopyForm**](doc//ProjectsApi.md#projectcopyform) | **POST** /api/v3/projects/{id}/copy/form | Project copy form -*ProjectsApi* | [**projectCreateForm**](doc//ProjectsApi.md#projectcreateform) | **POST** /api/v3/projects/form | Project create form -*ProjectsApi* | [**projectUpdateForm**](doc//ProjectsApi.md#projectupdateform) | **POST** /api/v3/projects/{id}/form | Project update form -*ProjectsApi* | [**updateProject**](doc//ProjectsApi.md#updateproject) | **PATCH** /api/v3/projects/{id} | Update Project -*ProjectsApi* | [**viewProject**](doc//ProjectsApi.md#viewproject) | **GET** /api/v3/projects/{id} | View project -*ProjectsApi* | [**viewProjectSchema**](doc//ProjectsApi.md#viewprojectschema) | **GET** /api/v3/projects/schema | View project schema -*ProjectsApi* | [**viewProjectStatus**](doc//ProjectsApi.md#viewprojectstatus) | **GET** /api/v3/project_statuses/{id} | View project status -*QueriesApi* | [**availableProjectsForQuery**](doc//QueriesApi.md#availableprojectsforquery) | **GET** /api/v3/queries/available_projects | Available projects for query -*QueriesApi* | [**createQuery**](doc//QueriesApi.md#createquery) | **POST** /api/v3/queries | Create query -*QueriesApi* | [**deleteQuery**](doc//QueriesApi.md#deletequery) | **DELETE** /api/v3/queries/{id} | Delete query -*QueriesApi* | [**editQuery**](doc//QueriesApi.md#editquery) | **PATCH** /api/v3/queries/{id} | Edit Query -*QueriesApi* | [**listQueries**](doc//QueriesApi.md#listqueries) | **GET** /api/v3/queries | List queries -*QueriesApi* | [**queryCreateForm**](doc//QueriesApi.md#querycreateform) | **POST** /api/v3/queries/form | Query Create Form -*QueriesApi* | [**queryUpdateForm**](doc//QueriesApi.md#queryupdateform) | **POST** /api/v3/queries/{id}/form | Query Update Form -*QueriesApi* | [**starQuery**](doc//QueriesApi.md#starquery) | **PATCH** /api/v3/queries/{id}/star | Star query -*QueriesApi* | [**unstarQuery**](doc//QueriesApi.md#unstarquery) | **PATCH** /api/v3/queries/{id}/unstar | Unstar query -*QueriesApi* | [**viewDefaultQuery**](doc//QueriesApi.md#viewdefaultquery) | **GET** /api/v3/queries/default | View default query -*QueriesApi* | [**viewDefaultQueryForProject**](doc//QueriesApi.md#viewdefaultqueryforproject) | **GET** /api/v3/projects/{id}/queries/default | View default query for project -*QueriesApi* | [**viewQuery**](doc//QueriesApi.md#viewquery) | **GET** /api/v3/queries/{id} | View query -*QueriesApi* | [**viewSchemaForGlobalQueries**](doc//QueriesApi.md#viewschemaforglobalqueries) | **GET** /api/v3/queries/schema | View schema for global queries -*QueriesApi* | [**viewSchemaForProjectQueries**](doc//QueriesApi.md#viewschemaforprojectqueries) | **GET** /api/v3/projects/{id}/queries/schema | View schema for project queries -*QueryColumnsApi* | [**viewQueryColumn**](doc//QueryColumnsApi.md#viewquerycolumn) | **GET** /api/v3/queries/columns/{id} | View Query Column -*QueryFilterInstanceSchemaApi* | [**listQueryFilterInstanceSchemas**](doc//QueryFilterInstanceSchemaApi.md#listqueryfilterinstanceschemas) | **GET** /api/v3/queries/filter_instance_schemas | List Query Filter Instance Schemas -*QueryFilterInstanceSchemaApi* | [**listQueryFilterInstanceSchemasForProject**](doc//QueryFilterInstanceSchemaApi.md#listqueryfilterinstanceschemasforproject) | **GET** /api/v3/projects/{id}/queries/filter_instance_schemas | List Query Filter Instance Schemas for Project -*QueryFilterInstanceSchemaApi* | [**viewQueryFilterInstanceSchema**](doc//QueryFilterInstanceSchemaApi.md#viewqueryfilterinstanceschema) | **GET** /api/v3/queries/filter_instance_schemas/{id} | View Query Filter Instance Schema -*QueryFiltersApi* | [**viewQueryFilter**](doc//QueryFiltersApi.md#viewqueryfilter) | **GET** /api/v3/queries/filters/{id} | View Query Filter -*QueryOperatorsApi* | [**viewQueryOperator**](doc//QueryOperatorsApi.md#viewqueryoperator) | **GET** /api/v3/queries/operators/{id} | View Query Operator -*QuerySortBysApi* | [**viewQuerySortBy**](doc//QuerySortBysApi.md#viewquerysortby) | **GET** /api/v3/queries/sort_bys/{id} | View Query Sort By -*RelationsApi* | [**deleteRelation**](doc//RelationsApi.md#deleterelation) | **DELETE** /api/v3/relations/{id} | Delete Relation -*RelationsApi* | [**editRelation**](doc//RelationsApi.md#editrelation) | **PATCH** /api/v3/relations/{id} | Edit Relation -*RelationsApi* | [**listRelations**](doc//RelationsApi.md#listrelations) | **GET** /api/v3/relations | List Relations -*RelationsApi* | [**relationEditForm**](doc//RelationsApi.md#relationeditform) | **POST** /api/v3/relations/{id}/form | Relation edit form -*RelationsApi* | [**viewRelation**](doc//RelationsApi.md#viewrelation) | **GET** /api/v3/relations/{id} | View Relation -*RelationsApi* | [**viewRelationSchema**](doc//RelationsApi.md#viewrelationschema) | **GET** /api/v3/relations/schema | View relation schema -*RelationsApi* | [**viewRelationSchemaForType**](doc//RelationsApi.md#viewrelationschemafortype) | **GET** /api/v3/relations/schema/{type} | View relation schema for type -*RevisionsApi* | [**viewRevision**](doc//RevisionsApi.md#viewrevision) | **GET** /api/v3/revisions/{id} | View revision -*RolesApi* | [**listRoles**](doc//RolesApi.md#listroles) | **GET** /api/v3/roles | List roles -*RolesApi* | [**viewRole**](doc//RolesApi.md#viewrole) | **GET** /api/v3/roles/{id} | View role -*RootApi* | [**viewRoot**](doc//RootApi.md#viewroot) | **GET** /api/v3 | View root -*SchemasApi* | [**viewTheSchema**](doc//SchemasApi.md#viewtheschema) | **GET** /api/v3/example/schema | view the schema -*StatusesApi* | [**listAllStatuses**](doc//StatusesApi.md#listallstatuses) | **GET** /api/v3/statuses | List all Statuses -*StatusesApi* | [**viewStatus**](doc//StatusesApi.md#viewstatus) | **GET** /api/v3/statuses/{id} | View Status -*TimeEntriesApi* | [**availableProjectsForTimeEntries**](doc//TimeEntriesApi.md#availableprojectsfortimeentries) | **GET** /api/v3/time_entries/available_projects | Available projects for time entries -*TimeEntriesApi* | [**createTimeEntry**](doc//TimeEntriesApi.md#createtimeentry) | **POST** /api/v3/time_entries | Create time entry -*TimeEntriesApi* | [**deleteTimeEntry**](doc//TimeEntriesApi.md#deletetimeentry) | **DELETE** /api/v3/time_entries/{id} | Delete time entry -*TimeEntriesApi* | [**getTimeEntry**](doc//TimeEntriesApi.md#gettimeentry) | **GET** /api/v3/time_entries/{id} | Get time entry -*TimeEntriesApi* | [**listTimeEntries**](doc//TimeEntriesApi.md#listtimeentries) | **GET** /api/v3/time_entries | List time entries -*TimeEntriesApi* | [**timeEntryCreateForm**](doc//TimeEntriesApi.md#timeentrycreateform) | **POST** /api/v3/time_entries/form | Time entry create form -*TimeEntriesApi* | [**timeEntryUpdateForm**](doc//TimeEntriesApi.md#timeentryupdateform) | **POST** /api/v3/time_entries/{id}/form | Time entry update form -*TimeEntriesApi* | [**updateTimeEntry**](doc//TimeEntriesApi.md#updatetimeentry) | **PATCH** /api/v3/time_entries/{id} | update time entry -*TimeEntriesApi* | [**viewTimeEntrySchema**](doc//TimeEntriesApi.md#viewtimeentryschema) | **GET** /api/v3/time_entries/schema | View time entry schema -*TimeEntryActivitiesApi* | [**getTimeEntriesActivity**](doc//TimeEntryActivitiesApi.md#gettimeentriesactivity) | **GET** /api/v3/time_entries/activity/{id} | View time entries activity -*TypesApi* | [**listAllTypes**](doc//TypesApi.md#listalltypes) | **GET** /api/v3/types | List all Types -*TypesApi* | [**listTypesAvailableInAProject**](doc//TypesApi.md#listtypesavailableinaproject) | **GET** /api/v3/projects/{id}/types | List types available in a project -*TypesApi* | [**viewType**](doc//TypesApi.md#viewtype) | **GET** /api/v3/types/{id} | View Type -*UserPreferencesApi* | [**showMyPreferences**](doc//UserPreferencesApi.md#showmypreferences) | **GET** /api/v3/my_preferences | Show my preferences -*UserPreferencesApi* | [**updateUserPreferences**](doc//UserPreferencesApi.md#updateuserpreferences) | **PATCH** /api/v3/my_preferences | Update my preferences -*UsersApi* | [**createUser**](doc//UsersApi.md#createuser) | **POST** /api/v3/users | Create User -*UsersApi* | [**deleteUser**](doc//UsersApi.md#deleteuser) | **DELETE** /api/v3/users/{id} | Delete user -*UsersApi* | [**listUsers**](doc//UsersApi.md#listusers) | **GET** /api/v3/users | List Users -*UsersApi* | [**lockUser**](doc//UsersApi.md#lockuser) | **POST** /api/v3/users/{id}/lock | Lock user -*UsersApi* | [**unlockUser**](doc//UsersApi.md#unlockuser) | **DELETE** /api/v3/users/{id}/lock | Unlock user -*UsersApi* | [**updateUser**](doc//UsersApi.md#updateuser) | **PATCH** /api/v3/users/{id} | Update user -*UsersApi* | [**userUpdateForm**](doc//UsersApi.md#userupdateform) | **POST** /api/v3/users/{id}/form | User update form -*UsersApi* | [**viewUser**](doc//UsersApi.md#viewuser) | **GET** /api/v3/users/{id} | View user -*UsersApi* | [**viewUserSchema**](doc//UsersApi.md#viewuserschema) | **GET** /api/v3/users/schema | View user schema -*ValuesPropertyApi* | [**viewNotificationDetail**](doc//ValuesPropertyApi.md#viewnotificationdetail) | **GET** /api/v3/notifications/{notification_id}/details/{id} | Get a notification detail -*ValuesPropertyApi* | [**viewValuesSchema**](doc//ValuesPropertyApi.md#viewvaluesschema) | **GET** /api/v3/values/schema/{id} | View Values schema -*VersionsApi* | [**availableProjectsForVersions**](doc//VersionsApi.md#availableprojectsforversions) | **GET** /api/v3/versions/available_projects | Available projects for versions -*VersionsApi* | [**createVersion**](doc//VersionsApi.md#createversion) | **POST** /api/v3/versions | Create version -*VersionsApi* | [**deleteVersion**](doc//VersionsApi.md#deleteversion) | **DELETE** /api/v3/versions/{id} | Delete version -*VersionsApi* | [**listVersions**](doc//VersionsApi.md#listversions) | **GET** /api/v3/versions | List versions -*VersionsApi* | [**listVersionsAvailableInAProject**](doc//VersionsApi.md#listversionsavailableinaproject) | **GET** /api/v3/projects/{id}/versions | List versions available in a project -*VersionsApi* | [**updateVersion**](doc//VersionsApi.md#updateversion) | **PATCH** /api/v3/versions/{id} | Update Version -*VersionsApi* | [**versionCreateForm**](doc//VersionsApi.md#versioncreateform) | **POST** /api/v3/versions/form | Version create form -*VersionsApi* | [**versionUpdateForm**](doc//VersionsApi.md#versionupdateform) | **POST** /api/v3/versions/{id}/form | Version update form -*VersionsApi* | [**viewVersion**](doc//VersionsApi.md#viewversion) | **GET** /api/v3/versions/{id} | View version -*VersionsApi* | [**viewVersionSchema**](doc//VersionsApi.md#viewversionschema) | **GET** /api/v3/versions/schema | View version schema -*ViewsApi* | [**createViews**](doc//ViewsApi.md#createviews) | **POST** /api/v3/views/{id} | Create view -*ViewsApi* | [**listViews**](doc//ViewsApi.md#listviews) | **GET** /api/v3/views | List views -*ViewsApi* | [**viewView**](doc//ViewsApi.md#viewview) | **GET** /api/v3/views/{id} | View view -*WikiPagesApi* | [**viewWikiPage**](doc//WikiPagesApi.md#viewwikipage) | **GET** /api/v3/wiki_pages/{id} | View Wiki Page -*WorkPackagesApi* | [**addWatcher**](doc//WorkPackagesApi.md#addwatcher) | **POST** /api/v3/work_packages/{id}/watchers | Add watcher -*WorkPackagesApi* | [**availableAssignees**](doc//WorkPackagesApi.md#availableassignees) | **GET** /api/v3/projects/{id}/available_assignees | Available assignees -*WorkPackagesApi* | [**availableProjectsForWorkPackage**](doc//WorkPackagesApi.md#availableprojectsforworkpackage) | **GET** /api/v3/work_packages/{id}/available_projects | Available projects for work package -*WorkPackagesApi* | [**availableResponsibles**](doc//WorkPackagesApi.md#availableresponsibles) | **GET** /api/v3/projects/{id}/available_responsibles | Available responsibles -*WorkPackagesApi* | [**availableWatchers**](doc//WorkPackagesApi.md#availablewatchers) | **GET** /api/v3/work_packages/{id}/available_watchers | Available watchers -*WorkPackagesApi* | [**commentWorkPackage**](doc//WorkPackagesApi.md#commentworkpackage) | **POST** /api/v3/work_packages/{id}/activities | Comment work package -*WorkPackagesApi* | [**createProjectWorkPackage**](doc//WorkPackagesApi.md#createprojectworkpackage) | **POST** /api/v3/projects/{id}/work_packages | Create work package in project -*WorkPackagesApi* | [**createRelation**](doc//WorkPackagesApi.md#createrelation) | **POST** /api/v3/work_packages/{id}/relations | Create Relation -*WorkPackagesApi* | [**createWorkPackage**](doc//WorkPackagesApi.md#createworkpackage) | **POST** /api/v3/work_packages | Create Work Package -*WorkPackagesApi* | [**createWorkPackageFileLink**](doc//WorkPackagesApi.md#createworkpackagefilelink) | **POST** /api/v3/work_packages/{id}/file_links | Creates file links. -*WorkPackagesApi* | [**deleteWorkPackage**](doc//WorkPackagesApi.md#deleteworkpackage) | **DELETE** /api/v3/work_packages/{id} | Delete Work Package -*WorkPackagesApi* | [**getProjectWorkPackageCollection**](doc//WorkPackagesApi.md#getprojectworkpackagecollection) | **GET** /api/v3/projects/{id}/work_packages | Get work packages of project -*WorkPackagesApi* | [**listAvailableRelationCandidates**](doc//WorkPackagesApi.md#listavailablerelationcandidates) | **GET** /api/v3/work_packages/{id}/available_relation_candidates | Available relation candidates -*WorkPackagesApi* | [**listRelations**](doc//WorkPackagesApi.md#listrelations) | **GET** /api/v3/work_packages/{id}/relations | List relations -*WorkPackagesApi* | [**listWatchers**](doc//WorkPackagesApi.md#listwatchers) | **GET** /api/v3/work_packages/{id}/watchers | List watchers -*WorkPackagesApi* | [**listWorkPackageActivities**](doc//WorkPackagesApi.md#listworkpackageactivities) | **GET** /api/v3/work_packages/{id}/activities | List work package activities -*WorkPackagesApi* | [**listWorkPackageFileLinks**](doc//WorkPackagesApi.md#listworkpackagefilelinks) | **GET** /api/v3/work_packages/{id}/file_links | Gets all file links of a work package -*WorkPackagesApi* | [**listWorkPackageSchemas**](doc//WorkPackagesApi.md#listworkpackageschemas) | **GET** /api/v3/work_packages/schemas | List Work Package Schemas -*WorkPackagesApi* | [**listWorkPackages**](doc//WorkPackagesApi.md#listworkpackages) | **GET** /api/v3/work_packages | List work packages -*WorkPackagesApi* | [**removeWatcher**](doc//WorkPackagesApi.md#removewatcher) | **DELETE** /api/v3/work_packages/{id}/watchers/{user_id} | Remove watcher -*WorkPackagesApi* | [**revisions**](doc//WorkPackagesApi.md#revisions) | **GET** /api/v3/work_packages/{id}/revisions | Revisions -*WorkPackagesApi* | [**updateWorkPackage**](doc//WorkPackagesApi.md#updateworkpackage) | **PATCH** /api/v3/work_packages/{id} | Update a Work Package -*WorkPackagesApi* | [**viewWorkPackage**](doc//WorkPackagesApi.md#viewworkpackage) | **GET** /api/v3/work_packages/{id} | View Work Package -*WorkPackagesApi* | [**viewWorkPackageSchema**](doc//WorkPackagesApi.md#viewworkpackageschema) | **GET** /api/v3/work_packages/schemas/{identifier} | View Work Package Schema -*WorkPackagesApi* | [**workPackageCreateForm**](doc//WorkPackagesApi.md#workpackagecreateform) | **POST** /api/v3/work_packages/form | Work Package Create Form -*WorkPackagesApi* | [**workPackageCreateFormForProject**](doc//WorkPackagesApi.md#workpackagecreateformforproject) | **POST** /api/v3/projects/{id}/work_packages/form | Work Package Create Form For Project -*WorkPackagesApi* | [**workPackageEditForm**](doc//WorkPackagesApi.md#workpackageeditform) | **POST** /api/v3/work_packages/{id}/form | Work Package Edit Form -*WorkScheduleApi* | [**createNonWorkingDay**](doc//WorkScheduleApi.md#createnonworkingday) | **POST** /api/v3/days/non_working | Creates a non-working day (NOT IMPLEMENTED) -*WorkScheduleApi* | [**deleteNonWorkingDay**](doc//WorkScheduleApi.md#deletenonworkingday) | **DELETE** /api/v3/days/non_working/{date} | Removes a non-working day (NOT IMPLEMENTED) -*WorkScheduleApi* | [**listDays**](doc//WorkScheduleApi.md#listdays) | **GET** /api/v3/days | Lists days -*WorkScheduleApi* | [**listNonWorkingDays**](doc//WorkScheduleApi.md#listnonworkingdays) | **GET** /api/v3/days/non_working | Lists all non working days -*WorkScheduleApi* | [**listWeekDays**](doc//WorkScheduleApi.md#listweekdays) | **GET** /api/v3/days/week | Lists week days -*WorkScheduleApi* | [**updateNonWorkingDay**](doc//WorkScheduleApi.md#updatenonworkingday) | **PATCH** /api/v3/days/non_working/{date} | Update a non-working day attributes (NOT IMPLEMENTED) -*WorkScheduleApi* | [**updateWeekDay**](doc//WorkScheduleApi.md#updateweekday) | **PATCH** /api/v3/days/week/{day} | Update a week day attributes (NOT IMPLEMENTED) -*WorkScheduleApi* | [**updateWeekDays**](doc//WorkScheduleApi.md#updateweekdays) | **PATCH** /api/v3/days/week | Update week days (NOT IMPLEMENTED) -*WorkScheduleApi* | [**viewDay**](doc//WorkScheduleApi.md#viewday) | **GET** /api/v3/days/{date} | View day -*WorkScheduleApi* | [**viewNonWorkingDay**](doc//WorkScheduleApi.md#viewnonworkingday) | **GET** /api/v3/days/non_working/{date} | View a non-working day -*WorkScheduleApi* | [**viewWeekDay**](doc//WorkScheduleApi.md#viewweekday) | **GET** /api/v3/days/week/{day} | View a week day - +| Class | Method | HTTP request | Description | +| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------------- | +| _ActionsCapabilitiesApi_ | [**listActions**](doc//ActionsCapabilitiesApi.md#listactions) | **GET** /api/v3/actions | List actions | +| _ActionsCapabilitiesApi_ | [**listCapabilities**](doc//ActionsCapabilitiesApi.md#listcapabilities) | **GET** /api/v3/capabilities | List capabilities | +| _ActionsCapabilitiesApi_ | [**viewAction**](doc//ActionsCapabilitiesApi.md#viewaction) | **GET** /api/v3/actions/{id} | View action | +| _ActionsCapabilitiesApi_ | [**viewCapabilities**](doc//ActionsCapabilitiesApi.md#viewcapabilities) | **GET** /api/v3/capabilities/{id} | View capabilities | +| _ActionsCapabilitiesApi_ | [**viewGlobalContext**](doc//ActionsCapabilitiesApi.md#viewglobalcontext) | **GET** /api/v3/capabilities/context/global | View global context | +| _ActivitiesApi_ | [**updateActivity**](doc//ActivitiesApi.md#updateactivity) | **PATCH** /api/v3/activities/{id} | Update activity | +| _ActivitiesApi_ | [**viewActivity**](doc//ActivitiesApi.md#viewactivity) | **GET** /api/v3/activities/{id} | View activity | +| _AttachmentsApi_ | [**addAttachmentToPost**](doc//AttachmentsApi.md#addattachmenttopost) | **POST** /api/v3/posts/{id}/attachments | Add attachment to post | +| _AttachmentsApi_ | [**addAttachmentToWikiPage**](doc//AttachmentsApi.md#addattachmenttowikipage) | **POST** /api/v3/wiki_pages/{id}/attachments | Add attachment to wiki page | +| _AttachmentsApi_ | [**createAttachment**](doc//AttachmentsApi.md#createattachment) | **POST** /api/v3/attachments | Create Attachment | +| _AttachmentsApi_ | [**createWorkPackageAttachment**](doc//AttachmentsApi.md#createworkpackageattachment) | **POST** /api/v3/work_packages/{id}/attachments | Create work package attachment | +| _AttachmentsApi_ | [**deleteAttachment**](doc//AttachmentsApi.md#deleteattachment) | **DELETE** /api/v3/attachments/{id} | Delete attachment | +| _AttachmentsApi_ | [**listAttachmentsByPost**](doc//AttachmentsApi.md#listattachmentsbypost) | **GET** /api/v3/posts/{id}/attachments | List attachments by post | +| _AttachmentsApi_ | [**listAttachmentsByWikiPage**](doc//AttachmentsApi.md#listattachmentsbywikipage) | **GET** /api/v3/wiki_pages/{id}/attachments | List attachments by wiki page | +| _AttachmentsApi_ | [**listWorkPackageAttachments**](doc//AttachmentsApi.md#listworkpackageattachments) | **GET** /api/v3/work_packages/{id}/attachments | List attachments by work package | +| _AttachmentsApi_ | [**viewAttachment**](doc//AttachmentsApi.md#viewattachment) | **GET** /api/v3/attachments/{id} | View attachment | +| _BudgetsApi_ | [**viewBudget**](doc//BudgetsApi.md#viewbudget) | **GET** /api/v3/budgets/{id} | view Budget | +| _BudgetsApi_ | [**viewBudgetsOfAProject**](doc//BudgetsApi.md#viewbudgetsofaproject) | **GET** /api/v3/projects/{id}/budgets | view Budgets of a Project | +| _CategoriesApi_ | [**listCategoriesOfAProject**](doc//CategoriesApi.md#listcategoriesofaproject) | **GET** /api/v3/projects/{id}/categories | List categories of a project | +| _CategoriesApi_ | [**viewCategory**](doc//CategoriesApi.md#viewcategory) | **GET** /api/v3/categories/{id} | View Category | +| _CollectionsApi_ | [**viewAggregatedResult**](doc//CollectionsApi.md#viewaggregatedresult) | **GET** /api/v3/examples | view aggregated result | +| _ConfigurationApi_ | [**viewConfiguration**](doc//ConfigurationApi.md#viewconfiguration) | **GET** /api/v3/configuration | View configuration | +| _CustomActionsApi_ | [**executeCustomAction**](doc//CustomActionsApi.md#executecustomaction) | **POST** /api/v3/custom_actions/{id}/execute | Execute custom action | +| _CustomActionsApi_ | [**getCustomAction**](doc//CustomActionsApi.md#getcustomaction) | **GET** /api/v3/custom_actions/{id} | Get a custom action | +| _CustomOptionsApi_ | [**viewCustomOption**](doc//CustomOptionsApi.md#viewcustomoption) | **GET** /api/v3/custom_options/{id} | View Custom Option | +| _DocumentsApi_ | [**listDocuments**](doc//DocumentsApi.md#listdocuments) | **GET** /api/v3/documents | List Documents | +| _DocumentsApi_ | [**viewDocument**](doc//DocumentsApi.md#viewdocument) | **GET** /api/v3/documents/{id} | View document | +| _FileLinksApi_ | [**createStorage**](doc//FileLinksApi.md#createstorage) | **POST** /api/v3/storages | Creates a storage. | +| _FileLinksApi_ | [**createStorageOauthCredentials**](doc//FileLinksApi.md#createstorageoauthcredentials) | **POST** /api/v3/storages/{id}/oauth_client_credentials | Creates an oauth client credentials object for a storage. | +| _FileLinksApi_ | [**createWorkPackageFileLink**](doc//FileLinksApi.md#createworkpackagefilelink) | **POST** /api/v3/work_packages/{id}/file_links | Creates file links. | +| _FileLinksApi_ | [**deleteFileLink**](doc//FileLinksApi.md#deletefilelink) | **DELETE** /api/v3/file_links/{id} | Removes a file link. | +| _FileLinksApi_ | [**deleteStorage**](doc//FileLinksApi.md#deletestorage) | **DELETE** /api/v3/storages/{id} | Delete a storage | +| _FileLinksApi_ | [**downloadFileLink**](doc//FileLinksApi.md#downloadfilelink) | **GET** /api/v3/file_links/{id}/download | Creates a download uri of the linked file. | +| _FileLinksApi_ | [**getProjectStorage**](doc//FileLinksApi.md#getprojectstorage) | **GET** /api/v3/project_storages/{id} | Gets a project storage | +| _FileLinksApi_ | [**getStorage**](doc//FileLinksApi.md#getstorage) | **GET** /api/v3/storages/{id} | Get a storage | +| _FileLinksApi_ | [**getStorageFiles**](doc//FileLinksApi.md#getstoragefiles) | **GET** /api/v3/storages/{id}/files | Gets files of a storage. | +| _FileLinksApi_ | [**listProjectStorages**](doc//FileLinksApi.md#listprojectstorages) | **GET** /api/v3/project_storages | Gets a list of project storages | +| _FileLinksApi_ | [**listWorkPackageFileLinks**](doc//FileLinksApi.md#listworkpackagefilelinks) | **GET** /api/v3/work_packages/{id}/file_links | Gets all file links of a work package | +| _FileLinksApi_ | [**openFileLink**](doc//FileLinksApi.md#openfilelink) | **GET** /api/v3/file_links/{id}/open | Creates an opening uri of the linked file. | +| _FileLinksApi_ | [**prepareStorageFileUpload**](doc//FileLinksApi.md#preparestoragefileupload) | **POST** /api/v3/storages/{id}/files/prepare_upload | Preparation of a direct upload of a file to the given storage. | +| _FileLinksApi_ | [**updateStorage**](doc//FileLinksApi.md#updatestorage) | **PATCH** /api/v3/storages/{id} | Update a storage | +| _FileLinksApi_ | [**viewFileLink**](doc//FileLinksApi.md#viewfilelink) | **GET** /api/v3/file_links/{id} | Gets a file link. | +| _FormsApi_ | [**showOrValidateForm**](doc//FormsApi.md#showorvalidateform) | **POST** /api/v3/example/form | show or validate form | +| _GridsApi_ | [**createGrid**](doc//GridsApi.md#creategrid) | **POST** /api/v3/grids | Create a grid | +| _GridsApi_ | [**getGrid**](doc//GridsApi.md#getgrid) | **GET** /api/v3/grids/{id} | Get a grid | +| _GridsApi_ | [**gridCreateForm**](doc//GridsApi.md#gridcreateform) | **POST** /api/v3/grids/form | Grid Create Form | +| _GridsApi_ | [**gridUpdateForm**](doc//GridsApi.md#gridupdateform) | **POST** /api/v3/grids/{id}/form | Grid Update Form | +| _GridsApi_ | [**listGrids**](doc//GridsApi.md#listgrids) | **GET** /api/v3/grids | List grids | +| _GridsApi_ | [**updateGrid**](doc//GridsApi.md#updategrid) | **PATCH** /api/v3/grids/{id} | Update a grid | +| _GroupsApi_ | [**createGroup**](doc//GroupsApi.md#creategroup) | **POST** /api/v3/groups | Create group | +| _GroupsApi_ | [**deleteGroup**](doc//GroupsApi.md#deletegroup) | **DELETE** /api/v3/groups/{id} | Delete group | +| _GroupsApi_ | [**getGroup**](doc//GroupsApi.md#getgroup) | **GET** /api/v3/groups/{id} | Get group | +| _GroupsApi_ | [**listGroups**](doc//GroupsApi.md#listgroups) | **GET** /api/v3/groups | List groups | +| _GroupsApi_ | [**updateGroup**](doc//GroupsApi.md#updategroup) | **PATCH** /api/v3/groups/{id} | Update group | +| _HelpTextsApi_ | [**getHelpText**](doc//HelpTextsApi.md#gethelptext) | **GET** /api/v3/help_texts/{id} | Get help text | +| _HelpTextsApi_ | [**listHelpTexts**](doc//HelpTextsApi.md#listhelptexts) | **GET** /api/v3/help_texts | List help texts | +| _MembershipsApi_ | [**availableProjectsForMemberships**](doc//MembershipsApi.md#availableprojectsformemberships) | **GET** /api/v3/memberships/available_projects | Available projects for memberships | +| _MembershipsApi_ | [**createMembership**](doc//MembershipsApi.md#createmembership) | **POST** /api/v3/memberships | Create membership | +| _MembershipsApi_ | [**deleteMembership**](doc//MembershipsApi.md#deletemembership) | **DELETE** /api/v3/memberships/{id} | Delete membership | +| _MembershipsApi_ | [**listMemberships**](doc//MembershipsApi.md#listmemberships) | **GET** /api/v3/memberships | List memberships | +| _MembershipsApi_ | [**membershipCreateForm**](doc//MembershipsApi.md#membershipcreateform) | **POST** /api/v3/memberships/form | Membership create form | +| _MembershipsApi_ | [**membershipUpdateForm**](doc//MembershipsApi.md#membershipupdateform) | **POST** /api/v3/memberships/{id}/form | Membership update form | +| _MembershipsApi_ | [**updateMembership**](doc//MembershipsApi.md#updatemembership) | **PATCH** /api/v3/memberships/{id} | Update membership | +| _MembershipsApi_ | [**viewMembership**](doc//MembershipsApi.md#viewmembership) | **GET** /api/v3/memberships/{id} | View membership | +| _MembershipsApi_ | [**viewMembershipSchema**](doc//MembershipsApi.md#viewmembershipschema) | **GET** /api/v3/memberships/schema | View membership schema | +| _NewsApi_ | [**listNews**](doc//NewsApi.md#listnews) | **GET** /api/v3/news | List News | +| _NewsApi_ | [**viewNews**](doc//NewsApi.md#viewnews) | **GET** /api/v3/news/{id} | View news | +| _NotificationsApi_ | [**listNotifications**](doc//NotificationsApi.md#listnotifications) | **GET** /api/v3/notifications | Get notification collection | +| _NotificationsApi_ | [**readNotification**](doc//NotificationsApi.md#readnotification) | **POST** /api/v3/notifications/{id}/read_ian | Read notification | +| _NotificationsApi_ | [**readNotifications**](doc//NotificationsApi.md#readnotifications) | **POST** /api/v3/notifications/read_ian | Read all notifications | +| _NotificationsApi_ | [**unreadNotification**](doc//NotificationsApi.md#unreadnotification) | **POST** /api/v3/notifications/{id}/unread_ian | Unread notification | +| _NotificationsApi_ | [**unreadNotifications**](doc//NotificationsApi.md#unreadnotifications) | **POST** /api/v3/notifications/unread_ian | Unread all notifications | +| _NotificationsApi_ | [**viewNotification**](doc//NotificationsApi.md#viewnotification) | **GET** /api/v3/notifications/{id} | Get the notification | +| _NotificationsApi_ | [**viewNotificationDetail**](doc//NotificationsApi.md#viewnotificationdetail) | **GET** /api/v3/notifications/{notification_id}/details/{id} | Get a notification detail | +| _OAuth2Api_ | [**getOauthApplication**](doc//OAuth2Api.md#getoauthapplication) | **GET** /api/v3/oauth_applications/{id} | Get the oauth application. | +| _OAuth2Api_ | [**getOauthClientCredentials**](doc//OAuth2Api.md#getoauthclientcredentials) | **GET** /api/v3/oauth_client_credentials/{id} | Get the oauth client credentials object. | +| _PostsApi_ | [**viewPost**](doc//PostsApi.md#viewpost) | **GET** /api/v3/posts/{id} | View Post | +| _PreviewingApi_ | [**previewMarkdownDocument**](doc//PreviewingApi.md#previewmarkdowndocument) | **POST** /api/v3/render/markdown | Preview Markdown document | +| _PreviewingApi_ | [**previewPlainDocument**](doc//PreviewingApi.md#previewplaindocument) | **POST** /api/v3/render/plain | Preview plain document | +| _PrincipalsApi_ | [**listPrincipals**](doc//PrincipalsApi.md#listprincipals) | **GET** /api/v3/principals | List principals | +| _PrioritiesApi_ | [**listAllPriorities**](doc//PrioritiesApi.md#listallpriorities) | **GET** /api/v3/priorities | List all Priorities | +| _PrioritiesApi_ | [**viewPriority**](doc//PrioritiesApi.md#viewpriority) | **GET** /api/v3/priorities/{id} | View Priority | +| _ProjectsApi_ | [**createProject**](doc//ProjectsApi.md#createproject) | **POST** /api/v3/projects | Create project | +| _ProjectsApi_ | [**createProjectCopy**](doc//ProjectsApi.md#createprojectcopy) | **POST** /api/v3/projects/{id}/copy | Create project copy | +| _ProjectsApi_ | [**deleteProject**](doc//ProjectsApi.md#deleteproject) | **DELETE** /api/v3/projects/{id} | Delete Project | +| _ProjectsApi_ | [**listAvailableParentProjectCandidates**](doc//ProjectsApi.md#listavailableparentprojectcandidates) | **GET** /api/v3/projects/available_parent_projects | List available parent project candidates | +| _ProjectsApi_ | [**listProjects**](doc//ProjectsApi.md#listprojects) | **GET** /api/v3/projects | List projects | +| _ProjectsApi_ | [**listProjectsWithVersion**](doc//ProjectsApi.md#listprojectswithversion) | **GET** /api/v3/versions/{id}/projects | List projects having version | +| _ProjectsApi_ | [**projectCopyForm**](doc//ProjectsApi.md#projectcopyform) | **POST** /api/v3/projects/{id}/copy/form | Project copy form | +| _ProjectsApi_ | [**projectCreateForm**](doc//ProjectsApi.md#projectcreateform) | **POST** /api/v3/projects/form | Project create form | +| _ProjectsApi_ | [**projectUpdateForm**](doc//ProjectsApi.md#projectupdateform) | **POST** /api/v3/projects/{id}/form | Project update form | +| _ProjectsApi_ | [**updateProject**](doc//ProjectsApi.md#updateproject) | **PATCH** /api/v3/projects/{id} | Update Project | +| _ProjectsApi_ | [**viewProject**](doc//ProjectsApi.md#viewproject) | **GET** /api/v3/projects/{id} | View project | +| _ProjectsApi_ | [**viewProjectSchema**](doc//ProjectsApi.md#viewprojectschema) | **GET** /api/v3/projects/schema | View project schema | +| _ProjectsApi_ | [**viewProjectStatus**](doc//ProjectsApi.md#viewprojectstatus) | **GET** /api/v3/project_statuses/{id} | View project status | +| _QueriesApi_ | [**availableProjectsForQuery**](doc//QueriesApi.md#availableprojectsforquery) | **GET** /api/v3/queries/available_projects | Available projects for query | +| _QueriesApi_ | [**createQuery**](doc//QueriesApi.md#createquery) | **POST** /api/v3/queries | Create query | +| _QueriesApi_ | [**deleteQuery**](doc//QueriesApi.md#deletequery) | **DELETE** /api/v3/queries/{id} | Delete query | +| _QueriesApi_ | [**editQuery**](doc//QueriesApi.md#editquery) | **PATCH** /api/v3/queries/{id} | Edit Query | +| _QueriesApi_ | [**listQueries**](doc//QueriesApi.md#listqueries) | **GET** /api/v3/queries | List queries | +| _QueriesApi_ | [**queryCreateForm**](doc//QueriesApi.md#querycreateform) | **POST** /api/v3/queries/form | Query Create Form | +| _QueriesApi_ | [**queryUpdateForm**](doc//QueriesApi.md#queryupdateform) | **POST** /api/v3/queries/{id}/form | Query Update Form | +| _QueriesApi_ | [**starQuery**](doc//QueriesApi.md#starquery) | **PATCH** /api/v3/queries/{id}/star | Star query | +| _QueriesApi_ | [**unstarQuery**](doc//QueriesApi.md#unstarquery) | **PATCH** /api/v3/queries/{id}/unstar | Unstar query | +| _QueriesApi_ | [**viewDefaultQuery**](doc//QueriesApi.md#viewdefaultquery) | **GET** /api/v3/queries/default | View default query | +| _QueriesApi_ | [**viewDefaultQueryForProject**](doc//QueriesApi.md#viewdefaultqueryforproject) | **GET** /api/v3/projects/{id}/queries/default | View default query for project | +| _QueriesApi_ | [**viewQuery**](doc//QueriesApi.md#viewquery) | **GET** /api/v3/queries/{id} | View query | +| _QueriesApi_ | [**viewSchemaForGlobalQueries**](doc//QueriesApi.md#viewschemaforglobalqueries) | **GET** /api/v3/queries/schema | View schema for global queries | +| _QueriesApi_ | [**viewSchemaForProjectQueries**](doc//QueriesApi.md#viewschemaforprojectqueries) | **GET** /api/v3/projects/{id}/queries/schema | View schema for project queries | +| _QueryColumnsApi_ | [**viewQueryColumn**](doc//QueryColumnsApi.md#viewquerycolumn) | **GET** /api/v3/queries/columns/{id} | View Query Column | +| _QueryFilterInstanceSchemaApi_ | [**listQueryFilterInstanceSchemas**](doc//QueryFilterInstanceSchemaApi.md#listqueryfilterinstanceschemas) | **GET** /api/v3/queries/filter_instance_schemas | List Query Filter Instance Schemas | +| _QueryFilterInstanceSchemaApi_ | [**listQueryFilterInstanceSchemasForProject**](doc//QueryFilterInstanceSchemaApi.md#listqueryfilterinstanceschemasforproject) | **GET** /api/v3/projects/{id}/queries/filter_instance_schemas | List Query Filter Instance Schemas for Project | +| _QueryFilterInstanceSchemaApi_ | [**viewQueryFilterInstanceSchema**](doc//QueryFilterInstanceSchemaApi.md#viewqueryfilterinstanceschema) | **GET** /api/v3/queries/filter_instance_schemas/{id} | View Query Filter Instance Schema | +| _QueryFiltersApi_ | [**viewQueryFilter**](doc//QueryFiltersApi.md#viewqueryfilter) | **GET** /api/v3/queries/filters/{id} | View Query Filter | +| _QueryOperatorsApi_ | [**viewQueryOperator**](doc//QueryOperatorsApi.md#viewqueryoperator) | **GET** /api/v3/queries/operators/{id} | View Query Operator | +| _QuerySortBysApi_ | [**viewQuerySortBy**](doc//QuerySortBysApi.md#viewquerysortby) | **GET** /api/v3/queries/sort_bys/{id} | View Query Sort By | +| _RelationsApi_ | [**deleteRelation**](doc//RelationsApi.md#deleterelation) | **DELETE** /api/v3/relations/{id} | Delete Relation | +| _RelationsApi_ | [**editRelation**](doc//RelationsApi.md#editrelation) | **PATCH** /api/v3/relations/{id} | Edit Relation | +| _RelationsApi_ | [**listRelations**](doc//RelationsApi.md#listrelations) | **GET** /api/v3/relations | List Relations | +| _RelationsApi_ | [**relationEditForm**](doc//RelationsApi.md#relationeditform) | **POST** /api/v3/relations/{id}/form | Relation edit form | +| _RelationsApi_ | [**viewRelation**](doc//RelationsApi.md#viewrelation) | **GET** /api/v3/relations/{id} | View Relation | +| _RelationsApi_ | [**viewRelationSchema**](doc//RelationsApi.md#viewrelationschema) | **GET** /api/v3/relations/schema | View relation schema | +| _RelationsApi_ | [**viewRelationSchemaForType**](doc//RelationsApi.md#viewrelationschemafortype) | **GET** /api/v3/relations/schema/{type} | View relation schema for type | +| _RevisionsApi_ | [**viewRevision**](doc//RevisionsApi.md#viewrevision) | **GET** /api/v3/revisions/{id} | View revision | +| _RolesApi_ | [**listRoles**](doc//RolesApi.md#listroles) | **GET** /api/v3/roles | List roles | +| _RolesApi_ | [**viewRole**](doc//RolesApi.md#viewrole) | **GET** /api/v3/roles/{id} | View role | +| _RootApi_ | [**viewRoot**](doc//RootApi.md#viewroot) | **GET** /api/v3 | View root | +| _SchemasApi_ | [**viewTheSchema**](doc//SchemasApi.md#viewtheschema) | **GET** /api/v3/example/schema | view the schema | +| _StatusesApi_ | [**listAllStatuses**](doc//StatusesApi.md#listallstatuses) | **GET** /api/v3/statuses | List all Statuses | +| _StatusesApi_ | [**viewStatus**](doc//StatusesApi.md#viewstatus) | **GET** /api/v3/statuses/{id} | View Status | +| _TimeEntriesApi_ | [**availableProjectsForTimeEntries**](doc//TimeEntriesApi.md#availableprojectsfortimeentries) | **GET** /api/v3/time_entries/available_projects | Available projects for time entries | +| _TimeEntriesApi_ | [**createTimeEntry**](doc//TimeEntriesApi.md#createtimeentry) | **POST** /api/v3/time_entries | Create time entry | +| _TimeEntriesApi_ | [**deleteTimeEntry**](doc//TimeEntriesApi.md#deletetimeentry) | **DELETE** /api/v3/time_entries/{id} | Delete time entry | +| _TimeEntriesApi_ | [**getTimeEntry**](doc//TimeEntriesApi.md#gettimeentry) | **GET** /api/v3/time_entries/{id} | Get time entry | +| _TimeEntriesApi_ | [**listTimeEntries**](doc//TimeEntriesApi.md#listtimeentries) | **GET** /api/v3/time_entries | List time entries | +| _TimeEntriesApi_ | [**timeEntryCreateForm**](doc//TimeEntriesApi.md#timeentrycreateform) | **POST** /api/v3/time_entries/form | Time entry create form | +| _TimeEntriesApi_ | [**timeEntryUpdateForm**](doc//TimeEntriesApi.md#timeentryupdateform) | **POST** /api/v3/time_entries/{id}/form | Time entry update form | +| _TimeEntriesApi_ | [**updateTimeEntry**](doc//TimeEntriesApi.md#updatetimeentry) | **PATCH** /api/v3/time_entries/{id} | update time entry | +| _TimeEntriesApi_ | [**viewTimeEntrySchema**](doc//TimeEntriesApi.md#viewtimeentryschema) | **GET** /api/v3/time_entries/schema | View time entry schema | +| _TimeEntryActivitiesApi_ | [**getTimeEntriesActivity**](doc//TimeEntryActivitiesApi.md#gettimeentriesactivity) | **GET** /api/v3/time_entries/activity/{id} | View time entries activity | +| _TypesApi_ | [**listAllTypes**](doc//TypesApi.md#listalltypes) | **GET** /api/v3/types | List all Types | +| _TypesApi_ | [**listTypesAvailableInAProject**](doc//TypesApi.md#listtypesavailableinaproject) | **GET** /api/v3/projects/{id}/types | List types available in a project | +| _TypesApi_ | [**viewType**](doc//TypesApi.md#viewtype) | **GET** /api/v3/types/{id} | View Type | +| _UserPreferencesApi_ | [**showMyPreferences**](doc//UserPreferencesApi.md#showmypreferences) | **GET** /api/v3/my_preferences | Show my preferences | +| _UserPreferencesApi_ | [**updateUserPreferences**](doc//UserPreferencesApi.md#updateuserpreferences) | **PATCH** /api/v3/my_preferences | Update my preferences | +| _UsersApi_ | [**createUser**](doc//UsersApi.md#createuser) | **POST** /api/v3/users | Create User | +| _UsersApi_ | [**deleteUser**](doc//UsersApi.md#deleteuser) | **DELETE** /api/v3/users/{id} | Delete user | +| _UsersApi_ | [**listUsers**](doc//UsersApi.md#listusers) | **GET** /api/v3/users | List Users | +| _UsersApi_ | [**lockUser**](doc//UsersApi.md#lockuser) | **POST** /api/v3/users/{id}/lock | Lock user | +| _UsersApi_ | [**unlockUser**](doc//UsersApi.md#unlockuser) | **DELETE** /api/v3/users/{id}/lock | Unlock user | +| _UsersApi_ | [**updateUser**](doc//UsersApi.md#updateuser) | **PATCH** /api/v3/users/{id} | Update user | +| _UsersApi_ | [**userUpdateForm**](doc//UsersApi.md#userupdateform) | **POST** /api/v3/users/{id}/form | User update form | +| _UsersApi_ | [**viewUser**](doc//UsersApi.md#viewuser) | **GET** /api/v3/users/{id} | View user | +| _UsersApi_ | [**viewUserSchema**](doc//UsersApi.md#viewuserschema) | **GET** /api/v3/users/schema | View user schema | +| _ValuesPropertyApi_ | [**viewNotificationDetail**](doc//ValuesPropertyApi.md#viewnotificationdetail) | **GET** /api/v3/notifications/{notification_id}/details/{id} | Get a notification detail | +| _ValuesPropertyApi_ | [**viewValuesSchema**](doc//ValuesPropertyApi.md#viewvaluesschema) | **GET** /api/v3/values/schema/{id} | View Values schema | +| _VersionsApi_ | [**availableProjectsForVersions**](doc//VersionsApi.md#availableprojectsforversions) | **GET** /api/v3/versions/available_projects | Available projects for versions | +| _VersionsApi_ | [**createVersion**](doc//VersionsApi.md#createversion) | **POST** /api/v3/versions | Create version | +| _VersionsApi_ | [**deleteVersion**](doc//VersionsApi.md#deleteversion) | **DELETE** /api/v3/versions/{id} | Delete version | +| _VersionsApi_ | [**listVersions**](doc//VersionsApi.md#listversions) | **GET** /api/v3/versions | List versions | +| _VersionsApi_ | [**listVersionsAvailableInAProject**](doc//VersionsApi.md#listversionsavailableinaproject) | **GET** /api/v3/projects/{id}/versions | List versions available in a project | +| _VersionsApi_ | [**updateVersion**](doc//VersionsApi.md#updateversion) | **PATCH** /api/v3/versions/{id} | Update Version | +| _VersionsApi_ | [**versionCreateForm**](doc//VersionsApi.md#versioncreateform) | **POST** /api/v3/versions/form | Version create form | +| _VersionsApi_ | [**versionUpdateForm**](doc//VersionsApi.md#versionupdateform) | **POST** /api/v3/versions/{id}/form | Version update form | +| _VersionsApi_ | [**viewVersion**](doc//VersionsApi.md#viewversion) | **GET** /api/v3/versions/{id} | View version | +| _VersionsApi_ | [**viewVersionSchema**](doc//VersionsApi.md#viewversionschema) | **GET** /api/v3/versions/schema | View version schema | +| _ViewsApi_ | [**createViews**](doc//ViewsApi.md#createviews) | **POST** /api/v3/views/{id} | Create view | +| _ViewsApi_ | [**listViews**](doc//ViewsApi.md#listviews) | **GET** /api/v3/views | List views | +| _ViewsApi_ | [**viewView**](doc//ViewsApi.md#viewview) | **GET** /api/v3/views/{id} | View view | +| _WikiPagesApi_ | [**viewWikiPage**](doc//WikiPagesApi.md#viewwikipage) | **GET** /api/v3/wiki_pages/{id} | View Wiki Page | +| _WorkPackagesApi_ | [**addWatcher**](doc//WorkPackagesApi.md#addwatcher) | **POST** /api/v3/work_packages/{id}/watchers | Add watcher | +| _WorkPackagesApi_ | [**availableAssignees**](doc//WorkPackagesApi.md#availableassignees) | **GET** /api/v3/projects/{id}/available_assignees | Available assignees | +| _WorkPackagesApi_ | [**availableProjectsForWorkPackage**](doc//WorkPackagesApi.md#availableprojectsforworkpackage) | **GET** /api/v3/work_packages/{id}/available_projects | Available projects for work package | +| _WorkPackagesApi_ | [**availableResponsibles**](doc//WorkPackagesApi.md#availableresponsibles) | **GET** /api/v3/projects/{id}/available_responsibles | Available responsibles | +| _WorkPackagesApi_ | [**availableWatchers**](doc//WorkPackagesApi.md#availablewatchers) | **GET** /api/v3/work_packages/{id}/available_watchers | Available watchers | +| _WorkPackagesApi_ | [**commentWorkPackage**](doc//WorkPackagesApi.md#commentworkpackage) | **POST** /api/v3/work_packages/{id}/activities | Comment work package | +| _WorkPackagesApi_ | [**createProjectWorkPackage**](doc//WorkPackagesApi.md#createprojectworkpackage) | **POST** /api/v3/projects/{id}/work_packages | Create work package in project | +| _WorkPackagesApi_ | [**createRelation**](doc//WorkPackagesApi.md#createrelation) | **POST** /api/v3/work_packages/{id}/relations | Create Relation | +| _WorkPackagesApi_ | [**createWorkPackage**](doc//WorkPackagesApi.md#createworkpackage) | **POST** /api/v3/work_packages | Create Work Package | +| _WorkPackagesApi_ | [**createWorkPackageFileLink**](doc//WorkPackagesApi.md#createworkpackagefilelink) | **POST** /api/v3/work_packages/{id}/file_links | Creates file links. | +| _WorkPackagesApi_ | [**deleteWorkPackage**](doc//WorkPackagesApi.md#deleteworkpackage) | **DELETE** /api/v3/work_packages/{id} | Delete Work Package | +| _WorkPackagesApi_ | [**getProjectWorkPackageCollection**](doc//WorkPackagesApi.md#getprojectworkpackagecollection) | **GET** /api/v3/projects/{id}/work_packages | Get work packages of project | +| _WorkPackagesApi_ | [**listAvailableRelationCandidates**](doc//WorkPackagesApi.md#listavailablerelationcandidates) | **GET** /api/v3/work_packages/{id}/available_relation_candidates | Available relation candidates | +| _WorkPackagesApi_ | [**listRelations**](doc//WorkPackagesApi.md#listrelations) | **GET** /api/v3/work_packages/{id}/relations | List relations | +| _WorkPackagesApi_ | [**listWatchers**](doc//WorkPackagesApi.md#listwatchers) | **GET** /api/v3/work_packages/{id}/watchers | List watchers | +| _WorkPackagesApi_ | [**listWorkPackageActivities**](doc//WorkPackagesApi.md#listworkpackageactivities) | **GET** /api/v3/work_packages/{id}/activities | List work package activities | +| _WorkPackagesApi_ | [**listWorkPackageFileLinks**](doc//WorkPackagesApi.md#listworkpackagefilelinks) | **GET** /api/v3/work_packages/{id}/file_links | Gets all file links of a work package | +| _WorkPackagesApi_ | [**listWorkPackageSchemas**](doc//WorkPackagesApi.md#listworkpackageschemas) | **GET** /api/v3/work_packages/schemas | List Work Package Schemas | +| _WorkPackagesApi_ | [**listWorkPackages**](doc//WorkPackagesApi.md#listworkpackages) | **GET** /api/v3/work_packages | List work packages | +| _WorkPackagesApi_ | [**removeWatcher**](doc//WorkPackagesApi.md#removewatcher) | **DELETE** /api/v3/work_packages/{id}/watchers/{user_id} | Remove watcher | +| _WorkPackagesApi_ | [**revisions**](doc//WorkPackagesApi.md#revisions) | **GET** /api/v3/work_packages/{id}/revisions | Revisions | +| _WorkPackagesApi_ | [**updateWorkPackage**](doc//WorkPackagesApi.md#updateworkpackage) | **PATCH** /api/v3/work_packages/{id} | Update a Work Package | +| _WorkPackagesApi_ | [**viewWorkPackage**](doc//WorkPackagesApi.md#viewworkpackage) | **GET** /api/v3/work_packages/{id} | View Work Package | +| _WorkPackagesApi_ | [**viewWorkPackageSchema**](doc//WorkPackagesApi.md#viewworkpackageschema) | **GET** /api/v3/work_packages/schemas/{identifier} | View Work Package Schema | +| _WorkPackagesApi_ | [**workPackageCreateForm**](doc//WorkPackagesApi.md#workpackagecreateform) | **POST** /api/v3/work_packages/form | Work Package Create Form | +| _WorkPackagesApi_ | [**workPackageCreateFormForProject**](doc//WorkPackagesApi.md#workpackagecreateformforproject) | **POST** /api/v3/projects/{id}/work_packages/form | Work Package Create Form For Project | +| _WorkPackagesApi_ | [**workPackageEditForm**](doc//WorkPackagesApi.md#workpackageeditform) | **POST** /api/v3/work_packages/{id}/form | Work Package Edit Form | +| _WorkScheduleApi_ | [**createNonWorkingDay**](doc//WorkScheduleApi.md#createnonworkingday) | **POST** /api/v3/days/non_working | Creates a non-working day (NOT IMPLEMENTED) | +| _WorkScheduleApi_ | [**deleteNonWorkingDay**](doc//WorkScheduleApi.md#deletenonworkingday) | **DELETE** /api/v3/days/non_working/{date} | Removes a non-working day (NOT IMPLEMENTED) | +| _WorkScheduleApi_ | [**listDays**](doc//WorkScheduleApi.md#listdays) | **GET** /api/v3/days | Lists days | +| _WorkScheduleApi_ | [**listNonWorkingDays**](doc//WorkScheduleApi.md#listnonworkingdays) | **GET** /api/v3/days/non_working | Lists all non working days | +| _WorkScheduleApi_ | [**listWeekDays**](doc//WorkScheduleApi.md#listweekdays) | **GET** /api/v3/days/week | Lists week days | +| _WorkScheduleApi_ | [**updateNonWorkingDay**](doc//WorkScheduleApi.md#updatenonworkingday) | **PATCH** /api/v3/days/non_working/{date} | Update a non-working day attributes (NOT IMPLEMENTED) | +| _WorkScheduleApi_ | [**updateWeekDay**](doc//WorkScheduleApi.md#updateweekday) | **PATCH** /api/v3/days/week/{day} | Update a week day attributes (NOT IMPLEMENTED) | +| _WorkScheduleApi_ | [**updateWeekDays**](doc//WorkScheduleApi.md#updateweekdays) | **PATCH** /api/v3/days/week | Update week days (NOT IMPLEMENTED) | +| _WorkScheduleApi_ | [**viewDay**](doc//WorkScheduleApi.md#viewday) | **GET** /api/v3/days/{date} | View day | +| _WorkScheduleApi_ | [**viewNonWorkingDay**](doc//WorkScheduleApi.md#viewnonworkingday) | **GET** /api/v3/days/non_working/{date} | View a non-working day | +| _WorkScheduleApi_ | [**viewWeekDay**](doc//WorkScheduleApi.md#viewweekday) | **GET** /api/v3/days/week/{day} | View a week day | ## Documentation For Models - - [ActivityModel](doc//ActivityModel.md) - - [ActivityModelComment](doc//ActivityModelComment.md) - - [AddWatcherRequest](doc//AddWatcherRequest.md) - - [AttachmentModel](doc//AttachmentModel.md) - - [AttachmentModelDescription](doc//AttachmentModelDescription.md) - - [AttachmentModelLinks](doc//AttachmentModelLinks.md) - - [AttachmentModelLinksAuthor](doc//AttachmentModelLinksAuthor.md) - - [AttachmentModelLinksContainer](doc//AttachmentModelLinksContainer.md) - - [AttachmentModelLinksDelete](doc//AttachmentModelLinksDelete.md) - - [AttachmentModelLinksDownloadLocation](doc//AttachmentModelLinksDownloadLocation.md) - - [AttachmentModelLinksSelf](doc//AttachmentModelLinksSelf.md) - - [AttachmentsModel](doc//AttachmentsModel.md) - - [AttachmentsModelAllOfEmbedded](doc//AttachmentsModelAllOfEmbedded.md) - - [AttachmentsModelAllOfEmbeddedElementsInner](doc//AttachmentsModelAllOfEmbeddedElementsInner.md) - - [AttachmentsModelAllOfLinks](doc//AttachmentsModelAllOfLinks.md) - - [AttachmentsModelAllOfLinksSelf](doc//AttachmentsModelAllOfLinksSelf.md) - - [BudgetModel](doc//BudgetModel.md) - - [BudgetModelLinks](doc//BudgetModelLinks.md) - - [BudgetModelLinksSelf](doc//BudgetModelLinksSelf.md) - - [CategoryModel](doc//CategoryModel.md) - - [CategoryModelLinks](doc//CategoryModelLinks.md) - - [CategoryModelLinksDefaultAssignee](doc//CategoryModelLinksDefaultAssignee.md) - - [CategoryModelLinksProject](doc//CategoryModelLinksProject.md) - - [CategoryModelLinksSelf](doc//CategoryModelLinksSelf.md) - - [CollectionModel](doc//CollectionModel.md) - - [CollectionModelLinks](doc//CollectionModelLinks.md) - - [CollectionModelLinksSelf](doc//CollectionModelLinksSelf.md) - - [CommentWorkPackageRequest](doc//CommentWorkPackageRequest.md) - - [ConfigurationModel](doc//ConfigurationModel.md) - - [CreateViewsRequest](doc//CreateViewsRequest.md) - - [CreateViewsRequestLinks](doc//CreateViewsRequestLinks.md) - - [CreateViewsRequestLinksQuery](doc//CreateViewsRequestLinksQuery.md) - - [CustomActionModel](doc//CustomActionModel.md) - - [CustomActionModelLinks](doc//CustomActionModelLinks.md) - - [CustomActionModelLinksExecuteImmediately](doc//CustomActionModelLinksExecuteImmediately.md) - - [CustomActionModelLinksSelf](doc//CustomActionModelLinksSelf.md) - - [CustomOptionModel](doc//CustomOptionModel.md) - - [CustomOptionModelLinks](doc//CustomOptionModelLinks.md) - - [CustomOptionModelLinksSelf](doc//CustomOptionModelLinksSelf.md) - - [DayCollectionModel](doc//DayCollectionModel.md) - - [DayCollectionModelAllOfEmbedded](doc//DayCollectionModelAllOfEmbedded.md) - - [DayCollectionModelAllOfLinks](doc//DayCollectionModelAllOfLinks.md) - - [DayCollectionModelAllOfLinksSelf](doc//DayCollectionModelAllOfLinksSelf.md) - - [DayModel](doc//DayModel.md) - - [DayModelLinks](doc//DayModelLinks.md) - - [DayModelLinksWeekDay](doc//DayModelLinksWeekDay.md) - - [DocumentModel](doc//DocumentModel.md) - - [DocumentModelLinks](doc//DocumentModelLinks.md) - - [DocumentModelLinksAttachments](doc//DocumentModelLinksAttachments.md) - - [DocumentModelLinksProject](doc//DocumentModelLinksProject.md) - - [DocumentModelLinksSelf](doc//DocumentModelLinksSelf.md) - - [ErrorResponse](doc//ErrorResponse.md) - - [ErrorResponseEmbedded](doc//ErrorResponseEmbedded.md) - - [ErrorResponseEmbeddedDetails](doc//ErrorResponseEmbeddedDetails.md) - - [ExecuteCustomActionRequest](doc//ExecuteCustomActionRequest.md) - - [ExecuteCustomActionRequestLinks](doc//ExecuteCustomActionRequestLinks.md) - - [ExecuteCustomActionRequestLinksWorkPackage](doc//ExecuteCustomActionRequestLinksWorkPackage.md) - - [FileLinkCollectionReadModel](doc//FileLinkCollectionReadModel.md) - - [FileLinkCollectionReadModelAllOfEmbedded](doc//FileLinkCollectionReadModelAllOfEmbedded.md) - - [FileLinkCollectionReadModelAllOfLinks](doc//FileLinkCollectionReadModelAllOfLinks.md) - - [FileLinkCollectionReadModelAllOfLinksSelf](doc//FileLinkCollectionReadModelAllOfLinksSelf.md) - - [FileLinkCollectionWriteModel](doc//FileLinkCollectionWriteModel.md) - - [FileLinkCollectionWriteModelAllOfEmbedded](doc//FileLinkCollectionWriteModelAllOfEmbedded.md) - - [FileLinkOriginDataModel](doc//FileLinkOriginDataModel.md) - - [FileLinkReadModel](doc//FileLinkReadModel.md) - - [FileLinkReadModelEmbedded](doc//FileLinkReadModelEmbedded.md) - - [FileLinkReadModelLinks](doc//FileLinkReadModelLinks.md) - - [FileLinkReadModelLinksContainer](doc//FileLinkReadModelLinksContainer.md) - - [FileLinkReadModelLinksCreator](doc//FileLinkReadModelLinksCreator.md) - - [FileLinkReadModelLinksDelete](doc//FileLinkReadModelLinksDelete.md) - - [FileLinkReadModelLinksOriginOpen](doc//FileLinkReadModelLinksOriginOpen.md) - - [FileLinkReadModelLinksOriginOpenLocation](doc//FileLinkReadModelLinksOriginOpenLocation.md) - - [FileLinkReadModelLinksPermission](doc//FileLinkReadModelLinksPermission.md) - - [FileLinkReadModelLinksSelf](doc//FileLinkReadModelLinksSelf.md) - - [FileLinkReadModelLinksStaticOriginDownload](doc//FileLinkReadModelLinksStaticOriginDownload.md) - - [FileLinkReadModelLinksStaticOriginOpen](doc//FileLinkReadModelLinksStaticOriginOpen.md) - - [FileLinkReadModelLinksStaticOriginOpenLocation](doc//FileLinkReadModelLinksStaticOriginOpenLocation.md) - - [FileLinkReadModelLinksStorage](doc//FileLinkReadModelLinksStorage.md) - - [FileLinkWriteModel](doc//FileLinkWriteModel.md) - - [Formattable](doc//Formattable.md) - - [GridCollectionModel](doc//GridCollectionModel.md) - - [GridCollectionModelAllOfEmbedded](doc//GridCollectionModelAllOfEmbedded.md) - - [GridReadModel](doc//GridReadModel.md) - - [GridReadModelLinks](doc//GridReadModelLinks.md) - - [GridReadModelLinksAddAttachment](doc//GridReadModelLinksAddAttachment.md) - - [GridReadModelLinksAttachments](doc//GridReadModelLinksAttachments.md) - - [GridReadModelLinksDelete](doc//GridReadModelLinksDelete.md) - - [GridReadModelLinksScope](doc//GridReadModelLinksScope.md) - - [GridReadModelLinksSelf](doc//GridReadModelLinksSelf.md) - - [GridReadModelLinksUpdate](doc//GridReadModelLinksUpdate.md) - - [GridReadModelLinksUpdateImmediately](doc//GridReadModelLinksUpdateImmediately.md) - - [GridWidgetModel](doc//GridWidgetModel.md) - - [GridWriteModel](doc//GridWriteModel.md) - - [GridWriteModelLinks](doc//GridWriteModelLinks.md) - - [GroupCollectionModel](doc//GroupCollectionModel.md) - - [GroupCollectionModelAllOfEmbedded](doc//GroupCollectionModelAllOfEmbedded.md) - - [GroupCollectionModelAllOfLinks](doc//GroupCollectionModelAllOfLinks.md) - - [GroupCollectionModelAllOfLinksSelf](doc//GroupCollectionModelAllOfLinksSelf.md) - - [GroupModel](doc//GroupModel.md) - - [GroupModelLinks](doc//GroupModelLinks.md) - - [GroupModelLinksDelete](doc//GroupModelLinksDelete.md) - - [GroupModelLinksMembersInner](doc//GroupModelLinksMembersInner.md) - - [GroupModelLinksMemberships](doc//GroupModelLinksMemberships.md) - - [GroupModelLinksSelf](doc//GroupModelLinksSelf.md) - - [GroupModelLinksUpdateImmediately](doc//GroupModelLinksUpdateImmediately.md) - - [GroupWriteModel](doc//GroupWriteModel.md) - - [GroupWriteModelLinks](doc//GroupWriteModelLinks.md) - - [GroupWriteModelLinksMembersInner](doc//GroupWriteModelLinksMembersInner.md) - - [HelpTextCollectionModel](doc//HelpTextCollectionModel.md) - - [HelpTextCollectionModelAllOfEmbedded](doc//HelpTextCollectionModelAllOfEmbedded.md) - - [HelpTextCollectionModelAllOfLinks](doc//HelpTextCollectionModelAllOfLinks.md) - - [HelpTextCollectionModelAllOfLinksSelf](doc//HelpTextCollectionModelAllOfLinksSelf.md) - - [HelpTextModel](doc//HelpTextModel.md) - - [HelpTextModelLinks](doc//HelpTextModelLinks.md) - - [HelpTextModelLinksAddAttachment](doc//HelpTextModelLinksAddAttachment.md) - - [HelpTextModelLinksAttachments](doc//HelpTextModelLinksAttachments.md) - - [HelpTextModelLinksEditText](doc//HelpTextModelLinksEditText.md) - - [HelpTextModelLinksSelf](doc//HelpTextModelLinksSelf.md) - - [Link](doc//Link.md) - - [NewsModel](doc//NewsModel.md) - - [NewsModelLinks](doc//NewsModelLinks.md) - - [NewsModelLinksAuthor](doc//NewsModelLinksAuthor.md) - - [NewsModelLinksProject](doc//NewsModelLinksProject.md) - - [NewsModelLinksSelf](doc//NewsModelLinksSelf.md) - - [NonWorkingDayCollectionModel](doc//NonWorkingDayCollectionModel.md) - - [NonWorkingDayCollectionModelAllOfEmbedded](doc//NonWorkingDayCollectionModelAllOfEmbedded.md) - - [NonWorkingDayCollectionModelAllOfLinks](doc//NonWorkingDayCollectionModelAllOfLinks.md) - - [NonWorkingDayCollectionModelAllOfLinksSelf](doc//NonWorkingDayCollectionModelAllOfLinksSelf.md) - - [NonWorkingDayModel](doc//NonWorkingDayModel.md) - - [NonWorkingDayModelLinks](doc//NonWorkingDayModelLinks.md) - - [NonWorkingDayModelLinksSelf](doc//NonWorkingDayModelLinksSelf.md) - - [NotificationCollectionModel](doc//NotificationCollectionModel.md) - - [NotificationCollectionModelAllOfEmbedded](doc//NotificationCollectionModelAllOfEmbedded.md) - - [NotificationCollectionModelAllOfLinks](doc//NotificationCollectionModelAllOfLinks.md) - - [NotificationCollectionModelAllOfLinksChangeSize](doc//NotificationCollectionModelAllOfLinksChangeSize.md) - - [NotificationCollectionModelAllOfLinksJumpTo](doc//NotificationCollectionModelAllOfLinksJumpTo.md) - - [NotificationCollectionModelAllOfLinksSelf](doc//NotificationCollectionModelAllOfLinksSelf.md) - - [NotificationModel](doc//NotificationModel.md) - - [NotificationModelDetailsInner](doc//NotificationModelDetailsInner.md) - - [NotificationModelEmbedded](doc//NotificationModelEmbedded.md) - - [NotificationModelEmbeddedResource](doc//NotificationModelEmbeddedResource.md) - - [NotificationModelLinks](doc//NotificationModelLinks.md) - - [NotificationModelLinksActivity](doc//NotificationModelLinksActivity.md) - - [NotificationModelLinksActor](doc//NotificationModelLinksActor.md) - - [NotificationModelLinksDetailsInner](doc//NotificationModelLinksDetailsInner.md) - - [NotificationModelLinksProject](doc//NotificationModelLinksProject.md) - - [NotificationModelLinksReadIAN](doc//NotificationModelLinksReadIAN.md) - - [NotificationModelLinksResource](doc//NotificationModelLinksResource.md) - - [NotificationModelLinksSelf](doc//NotificationModelLinksSelf.md) - - [NotificationModelLinksUnreadIAN](doc//NotificationModelLinksUnreadIAN.md) - - [OAuthApplicationReadModel](doc//OAuthApplicationReadModel.md) - - [OAuthApplicationReadModelLinks](doc//OAuthApplicationReadModelLinks.md) - - [OAuthApplicationReadModelLinksIntegration](doc//OAuthApplicationReadModelLinksIntegration.md) - - [OAuthApplicationReadModelLinksOwner](doc//OAuthApplicationReadModelLinksOwner.md) - - [OAuthApplicationReadModelLinksRedirectUri](doc//OAuthApplicationReadModelLinksRedirectUri.md) - - [OAuthApplicationReadModelLinksSelf](doc//OAuthApplicationReadModelLinksSelf.md) - - [OAuthClientCredentialsReadModel](doc//OAuthClientCredentialsReadModel.md) - - [OAuthClientCredentialsReadModelLinks](doc//OAuthClientCredentialsReadModelLinks.md) - - [OAuthClientCredentialsReadModelLinksIntegration](doc//OAuthClientCredentialsReadModelLinksIntegration.md) - - [OAuthClientCredentialsReadModelLinksSelf](doc//OAuthClientCredentialsReadModelLinksSelf.md) - - [OAuthClientCredentialsWriteModel](doc//OAuthClientCredentialsWriteModel.md) - - [PaginatedCollectionModel](doc//PaginatedCollectionModel.md) - - [PaginatedCollectionModelAllOfLinks](doc//PaginatedCollectionModelAllOfLinks.md) - - [PaginatedCollectionModelAllOfLinksChangeSize](doc//PaginatedCollectionModelAllOfLinksChangeSize.md) - - [PaginatedCollectionModelAllOfLinksJumpTo](doc//PaginatedCollectionModelAllOfLinksJumpTo.md) - - [PostModel](doc//PostModel.md) - - [PostModelLinks](doc//PostModelLinks.md) - - [PostModelLinksAddAttachment](doc//PostModelLinksAddAttachment.md) - - [PriorityModel](doc//PriorityModel.md) - - [PriorityModelLinks](doc//PriorityModelLinks.md) - - [PriorityModelLinksSelf](doc//PriorityModelLinksSelf.md) - - [ProjectModel](doc//ProjectModel.md) - - [ProjectModelLinks](doc//ProjectModelLinks.md) - - [ProjectModelLinksCategories](doc//ProjectModelLinksCategories.md) - - [ProjectModelLinksCreateWorkPackage](doc//ProjectModelLinksCreateWorkPackage.md) - - [ProjectModelLinksCreateWorkPackageImmediately](doc//ProjectModelLinksCreateWorkPackageImmediately.md) - - [ProjectModelLinksDelete](doc//ProjectModelLinksDelete.md) - - [ProjectModelLinksMemberships](doc//ProjectModelLinksMemberships.md) - - [ProjectModelLinksParent](doc//ProjectModelLinksParent.md) - - [ProjectModelLinksSelf](doc//ProjectModelLinksSelf.md) - - [ProjectModelLinksStatus](doc//ProjectModelLinksStatus.md) - - [ProjectModelLinksStoragesInner](doc//ProjectModelLinksStoragesInner.md) - - [ProjectModelLinksTypes](doc//ProjectModelLinksTypes.md) - - [ProjectModelLinksUpdate](doc//ProjectModelLinksUpdate.md) - - [ProjectModelLinksUpdateImmediately](doc//ProjectModelLinksUpdateImmediately.md) - - [ProjectModelLinksVersions](doc//ProjectModelLinksVersions.md) - - [ProjectModelLinksWorkPackages](doc//ProjectModelLinksWorkPackages.md) - - [ProjectModelStatusExplanation](doc//ProjectModelStatusExplanation.md) - - [ProjectStorageCollectionModel](doc//ProjectStorageCollectionModel.md) - - [ProjectStorageCollectionModelAllOfEmbedded](doc//ProjectStorageCollectionModelAllOfEmbedded.md) - - [ProjectStorageCollectionModelAllOfLinks](doc//ProjectStorageCollectionModelAllOfLinks.md) - - [ProjectStorageCollectionModelAllOfLinksSelf](doc//ProjectStorageCollectionModelAllOfLinksSelf.md) - - [ProjectStorageModel](doc//ProjectStorageModel.md) - - [ProjectStorageModelLinks](doc//ProjectStorageModelLinks.md) - - [ProjectStorageModelLinksCreator](doc//ProjectStorageModelLinksCreator.md) - - [ProjectStorageModelLinksProject](doc//ProjectStorageModelLinksProject.md) - - [ProjectStorageModelLinksProjectFolder](doc//ProjectStorageModelLinksProjectFolder.md) - - [ProjectStorageModelLinksSelf](doc//ProjectStorageModelLinksSelf.md) - - [ProjectStorageModelLinksStorage](doc//ProjectStorageModelLinksStorage.md) - - [QueryColumnModel](doc//QueryColumnModel.md) - - [QueryCreateForm](doc//QueryCreateForm.md) - - [QueryFilterInstanceSchemaModel](doc//QueryFilterInstanceSchemaModel.md) - - [QueryFilterInstanceSchemaModelLinks](doc//QueryFilterInstanceSchemaModelLinks.md) - - [QueryFilterInstanceSchemaModelLinksFilter](doc//QueryFilterInstanceSchemaModelLinksFilter.md) - - [QueryFilterInstanceSchemaModelLinksSelf](doc//QueryFilterInstanceSchemaModelLinksSelf.md) - - [QueryFilterModel](doc//QueryFilterModel.md) - - [QueryModel](doc//QueryModel.md) - - [QueryModelLinks](doc//QueryModelLinks.md) - - [QueryModelLinksStar](doc//QueryModelLinksStar.md) - - [QueryModelLinksUnstar](doc//QueryModelLinksUnstar.md) - - [QueryModelLinksUpdate](doc//QueryModelLinksUpdate.md) - - [QueryModelLinksUpdateImmediately](doc//QueryModelLinksUpdateImmediately.md) - - [QueryOperatorModel](doc//QueryOperatorModel.md) - - [QuerySortByModel](doc//QuerySortByModel.md) - - [QueryUpdateForm](doc//QueryUpdateForm.md) - - [RelationModel](doc//RelationModel.md) - - [RelationModelLinks](doc//RelationModelLinks.md) - - [RelationModelLinksDelete](doc//RelationModelLinksDelete.md) - - [RelationModelLinksFrom](doc//RelationModelLinksFrom.md) - - [RelationModelLinksSchema](doc//RelationModelLinksSchema.md) - - [RelationModelLinksSelf](doc//RelationModelLinksSelf.md) - - [RelationModelLinksTo](doc//RelationModelLinksTo.md) - - [RelationModelLinksUpdate](doc//RelationModelLinksUpdate.md) - - [RelationModelLinksUpdateImmediately](doc//RelationModelLinksUpdateImmediately.md) - - [RevisionModel](doc//RevisionModel.md) - - [RevisionModelLinks](doc//RevisionModelLinks.md) - - [RevisionModelLinksAuthor](doc//RevisionModelLinksAuthor.md) - - [RevisionModelLinksProject](doc//RevisionModelLinksProject.md) - - [RevisionModelLinksSelf](doc//RevisionModelLinksSelf.md) - - [RevisionModelLinksShowRevision](doc//RevisionModelLinksShowRevision.md) - - [RevisionModelMessage](doc//RevisionModelMessage.md) - - [RoleModel](doc//RoleModel.md) - - [RoleModelLinks](doc//RoleModelLinks.md) - - [RoleModelLinksSelf](doc//RoleModelLinksSelf.md) - - [RootModel](doc//RootModel.md) - - [RootModelLinks](doc//RootModelLinks.md) - - [RootModelLinksConfiguration](doc//RootModelLinksConfiguration.md) - - [RootModelLinksMemberships](doc//RootModelLinksMemberships.md) - - [RootModelLinksPriorities](doc//RootModelLinksPriorities.md) - - [RootModelLinksRelations](doc//RootModelLinksRelations.md) - - [RootModelLinksSelf](doc//RootModelLinksSelf.md) - - [RootModelLinksStatuses](doc//RootModelLinksStatuses.md) - - [RootModelLinksTimeEntries](doc//RootModelLinksTimeEntries.md) - - [RootModelLinksTypes](doc//RootModelLinksTypes.md) - - [RootModelLinksUser](doc//RootModelLinksUser.md) - - [RootModelLinksUserPreferences](doc//RootModelLinksUserPreferences.md) - - [RootModelLinksWorkPackages](doc//RootModelLinksWorkPackages.md) - - [SchemaModel](doc//SchemaModel.md) - - [SchemaModelLinks](doc//SchemaModelLinks.md) - - [SchemaModelLinksSelf](doc//SchemaModelLinksSelf.md) - - [ShowOrValidateFormRequest](doc//ShowOrValidateFormRequest.md) - - [StatusModel](doc//StatusModel.md) - - [StatusModelLinks](doc//StatusModelLinks.md) - - [StatusModelLinksSelf](doc//StatusModelLinksSelf.md) - - [StorageFileModel](doc//StorageFileModel.md) - - [StorageFileModelAllOfLinks](doc//StorageFileModelAllOfLinks.md) - - [StorageFileModelAllOfLinksSelf](doc//StorageFileModelAllOfLinksSelf.md) - - [StorageFileUploadLinkModel](doc//StorageFileUploadLinkModel.md) - - [StorageFileUploadLinkModelLinks](doc//StorageFileUploadLinkModelLinks.md) - - [StorageFileUploadLinkModelLinksDestination](doc//StorageFileUploadLinkModelLinksDestination.md) - - [StorageFileUploadLinkModelLinksSelf](doc//StorageFileUploadLinkModelLinksSelf.md) - - [StorageFileUploadPreparationModel](doc//StorageFileUploadPreparationModel.md) - - [StorageFilesModel](doc//StorageFilesModel.md) - - [StorageFilesModelParent](doc//StorageFilesModelParent.md) - - [StorageReadModel](doc//StorageReadModel.md) - - [StorageReadModelEmbedded](doc//StorageReadModelEmbedded.md) - - [StorageReadModelLinks](doc//StorageReadModelLinks.md) - - [StorageReadModelLinksAuthorizationState](doc//StorageReadModelLinksAuthorizationState.md) - - [StorageReadModelLinksAuthorize](doc//StorageReadModelLinksAuthorize.md) - - [StorageReadModelLinksOauthApplication](doc//StorageReadModelLinksOauthApplication.md) - - [StorageReadModelLinksOauthClientCredentials](doc//StorageReadModelLinksOauthClientCredentials.md) - - [StorageReadModelLinksOpen](doc//StorageReadModelLinksOpen.md) - - [StorageReadModelLinksOrigin](doc//StorageReadModelLinksOrigin.md) - - [StorageReadModelLinksSelf](doc//StorageReadModelLinksSelf.md) - - [StorageReadModelLinksType](doc//StorageReadModelLinksType.md) - - [StorageWriteModel](doc//StorageWriteModel.md) - - [StorageWriteModelLinks](doc//StorageWriteModelLinks.md) - - [StorageWriteModelLinksOrigin](doc//StorageWriteModelLinksOrigin.md) - - [StorageWriteModelLinksType](doc//StorageWriteModelLinksType.md) - - [TimeEntryActivityModel](doc//TimeEntryActivityModel.md) - - [TimeEntryActivityModelEmbedded](doc//TimeEntryActivityModelEmbedded.md) - - [TimeEntryActivityModelLinks](doc//TimeEntryActivityModelLinks.md) - - [TimeEntryActivityModelLinksSelf](doc//TimeEntryActivityModelLinksSelf.md) - - [TimeEntryCollectionModel](doc//TimeEntryCollectionModel.md) - - [TimeEntryCollectionModelAllOfEmbedded](doc//TimeEntryCollectionModelAllOfEmbedded.md) - - [TimeEntryCollectionModelAllOfLinks](doc//TimeEntryCollectionModelAllOfLinks.md) - - [TimeEntryCollectionModelAllOfLinksSelf](doc//TimeEntryCollectionModelAllOfLinksSelf.md) - - [TimeEntryModel](doc//TimeEntryModel.md) - - [TimeEntryModelComment](doc//TimeEntryModelComment.md) - - [TimeEntryModelLinks](doc//TimeEntryModelLinks.md) - - [TimeEntryModelLinksActivity](doc//TimeEntryModelLinksActivity.md) - - [TimeEntryModelLinksDelete](doc//TimeEntryModelLinksDelete.md) - - [TimeEntryModelLinksProject](doc//TimeEntryModelLinksProject.md) - - [TimeEntryModelLinksSchema](doc//TimeEntryModelLinksSchema.md) - - [TimeEntryModelLinksSelf](doc//TimeEntryModelLinksSelf.md) - - [TimeEntryModelLinksUpdate](doc//TimeEntryModelLinksUpdate.md) - - [TimeEntryModelLinksUpdateImmediately](doc//TimeEntryModelLinksUpdateImmediately.md) - - [TimeEntryModelLinksUser](doc//TimeEntryModelLinksUser.md) - - [TimeEntryModelLinksWorkPackage](doc//TimeEntryModelLinksWorkPackage.md) - - [TypeModel](doc//TypeModel.md) - - [TypeModelLinks](doc//TypeModelLinks.md) - - [TypeModelLinksSelf](doc//TypeModelLinksSelf.md) - - [UpdateActivityRequest](doc//UpdateActivityRequest.md) - - [UpdateActivityRequestComment](doc//UpdateActivityRequestComment.md) - - [UpdateUserPreferencesRequest](doc//UpdateUserPreferencesRequest.md) - - [UserCollectionModel](doc//UserCollectionModel.md) - - [UserCollectionModelAllOfEmbedded](doc//UserCollectionModelAllOfEmbedded.md) - - [UserCollectionModelAllOfLinks](doc//UserCollectionModelAllOfLinks.md) - - [UserCollectionModelAllOfLinksSelf](doc//UserCollectionModelAllOfLinksSelf.md) - - [UserCreateModel](doc//UserCreateModel.md) - - [UserModel](doc//UserModel.md) - - [UserModelLinks](doc//UserModelLinks.md) - - [UserModelLinksDelete](doc//UserModelLinksDelete.md) - - [UserModelLinksLock](doc//UserModelLinksLock.md) - - [UserModelLinksMemberships](doc//UserModelLinksMemberships.md) - - [UserModelLinksSelf](doc//UserModelLinksSelf.md) - - [UserModelLinksShowUser](doc//UserModelLinksShowUser.md) - - [UserModelLinksUnlock](doc//UserModelLinksUnlock.md) - - [UserModelLinksUpdateImmediately](doc//UserModelLinksUpdateImmediately.md) - - [ValuesPropertyModel](doc//ValuesPropertyModel.md) - - [ValuesPropertyModelLinks](doc//ValuesPropertyModelLinks.md) - - [ValuesPropertyModelLinksSchema](doc//ValuesPropertyModelLinksSchema.md) - - [ValuesPropertyModelLinksSelf](doc//ValuesPropertyModelLinksSelf.md) - - [VersionModel](doc//VersionModel.md) - - [VersionModelLinks](doc//VersionModelLinks.md) - - [VersionModelLinksAvailableInProjects](doc//VersionModelLinksAvailableInProjects.md) - - [VersionModelLinksDefiningProject](doc//VersionModelLinksDefiningProject.md) - - [VersionModelLinksSelf](doc//VersionModelLinksSelf.md) - - [VersionModelLinksUpdate](doc//VersionModelLinksUpdate.md) - - [VersionModelLinksUpdateImmediately](doc//VersionModelLinksUpdateImmediately.md) - - [WatchersModel](doc//WatchersModel.md) - - [WatchersModelAllOfEmbedded](doc//WatchersModelAllOfEmbedded.md) - - [WatchersModelAllOfLinks](doc//WatchersModelAllOfLinks.md) - - [WatchersModelAllOfLinksSelf](doc//WatchersModelAllOfLinksSelf.md) - - [WeekDayCollectionModel](doc//WeekDayCollectionModel.md) - - [WeekDayCollectionModelAllOfEmbedded](doc//WeekDayCollectionModelAllOfEmbedded.md) - - [WeekDayCollectionModelAllOfLinks](doc//WeekDayCollectionModelAllOfLinks.md) - - [WeekDayCollectionModelAllOfLinksSelf](doc//WeekDayCollectionModelAllOfLinksSelf.md) - - [WeekDayCollectionWriteModel](doc//WeekDayCollectionWriteModel.md) - - [WeekDayCollectionWriteModelEmbedded](doc//WeekDayCollectionWriteModelEmbedded.md) - - [WeekDayModel](doc//WeekDayModel.md) - - [WeekDaySelfLinkModel](doc//WeekDaySelfLinkModel.md) - - [WeekDaySelfLinkModelSelf](doc//WeekDaySelfLinkModelSelf.md) - - [WeekDayWriteModel](doc//WeekDayWriteModel.md) - - [WikiPageModel](doc//WikiPageModel.md) - - [WikiPageModelLinks](doc//WikiPageModelLinks.md) - - [WikiPageModelLinksAddAttachment](doc//WikiPageModelLinksAddAttachment.md) - - [WorkPackageModel](doc//WorkPackageModel.md) - - [WorkPackageModelDescription](doc//WorkPackageModelDescription.md) - - [WorkPackageModelLinks](doc//WorkPackageModelLinks.md) - - [WorkPackageModelLinksAddAttachment](doc//WorkPackageModelLinksAddAttachment.md) - - [WorkPackageModelLinksAddComment](doc//WorkPackageModelLinksAddComment.md) - - [WorkPackageModelLinksAddFileLink](doc//WorkPackageModelLinksAddFileLink.md) - - [WorkPackageModelLinksAddRelation](doc//WorkPackageModelLinksAddRelation.md) - - [WorkPackageModelLinksAddWatcher](doc//WorkPackageModelLinksAddWatcher.md) - - [WorkPackageModelLinksAssignee](doc//WorkPackageModelLinksAssignee.md) - - [WorkPackageModelLinksAttachments](doc//WorkPackageModelLinksAttachments.md) - - [WorkPackageModelLinksAuthor](doc//WorkPackageModelLinksAuthor.md) - - [WorkPackageModelLinksAvailableWatchers](doc//WorkPackageModelLinksAvailableWatchers.md) - - [WorkPackageModelLinksBudget](doc//WorkPackageModelLinksBudget.md) - - [WorkPackageModelLinksCategory](doc//WorkPackageModelLinksCategory.md) - - [WorkPackageModelLinksFileLinks](doc//WorkPackageModelLinksFileLinks.md) - - [WorkPackageModelLinksParent](doc//WorkPackageModelLinksParent.md) - - [WorkPackageModelLinksPreviewMarkup](doc//WorkPackageModelLinksPreviewMarkup.md) - - [WorkPackageModelLinksPriority](doc//WorkPackageModelLinksPriority.md) - - [WorkPackageModelLinksProject](doc//WorkPackageModelLinksProject.md) - - [WorkPackageModelLinksRelations](doc//WorkPackageModelLinksRelations.md) - - [WorkPackageModelLinksRemoveWatcher](doc//WorkPackageModelLinksRemoveWatcher.md) - - [WorkPackageModelLinksResponsible](doc//WorkPackageModelLinksResponsible.md) - - [WorkPackageModelLinksRevisions](doc//WorkPackageModelLinksRevisions.md) - - [WorkPackageModelLinksSchema](doc//WorkPackageModelLinksSchema.md) - - [WorkPackageModelLinksSelf](doc//WorkPackageModelLinksSelf.md) - - [WorkPackageModelLinksStatus](doc//WorkPackageModelLinksStatus.md) - - [WorkPackageModelLinksTimeEntries](doc//WorkPackageModelLinksTimeEntries.md) - - [WorkPackageModelLinksType](doc//WorkPackageModelLinksType.md) - - [WorkPackageModelLinksUnwatch](doc//WorkPackageModelLinksUnwatch.md) - - [WorkPackageModelLinksUpdate](doc//WorkPackageModelLinksUpdate.md) - - [WorkPackageModelLinksUpdateImmediately](doc//WorkPackageModelLinksUpdateImmediately.md) - - [WorkPackageModelLinksVersion](doc//WorkPackageModelLinksVersion.md) - - [WorkPackageModelLinksWatch](doc//WorkPackageModelLinksWatch.md) - - [WorkPackageModelLinksWatchers](doc//WorkPackageModelLinksWatchers.md) - - [WorkPackagePatchModel](doc//WorkPackagePatchModel.md) - - [WorkPackagePatchModelLinks](doc//WorkPackagePatchModelLinks.md) - - [WorkPackagesModel](doc//WorkPackagesModel.md) - - [WorkPackagesModelAllOfEmbedded](doc//WorkPackagesModelAllOfEmbedded.md) - - [WorkPackagesModelAllOfLinks](doc//WorkPackagesModelAllOfLinks.md) - - [WorkPackagesModelAllOfLinksSelf](doc//WorkPackagesModelAllOfLinksSelf.md) - +- [ActivityModel](doc//ActivityModel.md) +- [ActivityModelComment](doc//ActivityModelComment.md) +- [AddWatcherRequest](doc//AddWatcherRequest.md) +- [AttachmentModel](doc//AttachmentModel.md) +- [AttachmentModelDescription](doc//AttachmentModelDescription.md) +- [AttachmentModelLinks](doc//AttachmentModelLinks.md) +- [AttachmentModelLinksAuthor](doc//AttachmentModelLinksAuthor.md) +- [AttachmentModelLinksContainer](doc//AttachmentModelLinksContainer.md) +- [AttachmentModelLinksDelete](doc//AttachmentModelLinksDelete.md) +- [AttachmentModelLinksDownloadLocation](doc//AttachmentModelLinksDownloadLocation.md) +- [AttachmentModelLinksSelf](doc//AttachmentModelLinksSelf.md) +- [AttachmentsModel](doc//AttachmentsModel.md) +- [AttachmentsModelAllOfEmbedded](doc//AttachmentsModelAllOfEmbedded.md) +- [AttachmentsModelAllOfEmbeddedElementsInner](doc//AttachmentsModelAllOfEmbeddedElementsInner.md) +- [AttachmentsModelAllOfLinks](doc//AttachmentsModelAllOfLinks.md) +- [AttachmentsModelAllOfLinksSelf](doc//AttachmentsModelAllOfLinksSelf.md) +- [BudgetModel](doc//BudgetModel.md) +- [BudgetModelLinks](doc//BudgetModelLinks.md) +- [BudgetModelLinksSelf](doc//BudgetModelLinksSelf.md) +- [CategoryModel](doc//CategoryModel.md) +- [CategoryModelLinks](doc//CategoryModelLinks.md) +- [CategoryModelLinksDefaultAssignee](doc//CategoryModelLinksDefaultAssignee.md) +- [CategoryModelLinksProject](doc//CategoryModelLinksProject.md) +- [CategoryModelLinksSelf](doc//CategoryModelLinksSelf.md) +- [CollectionModel](doc//CollectionModel.md) +- [CollectionModelLinks](doc//CollectionModelLinks.md) +- [CollectionModelLinksSelf](doc//CollectionModelLinksSelf.md) +- [CommentWorkPackageRequest](doc//CommentWorkPackageRequest.md) +- [ConfigurationModel](doc//ConfigurationModel.md) +- [CreateViewsRequest](doc//CreateViewsRequest.md) +- [CreateViewsRequestLinks](doc//CreateViewsRequestLinks.md) +- [CreateViewsRequestLinksQuery](doc//CreateViewsRequestLinksQuery.md) +- [CustomActionModel](doc//CustomActionModel.md) +- [CustomActionModelLinks](doc//CustomActionModelLinks.md) +- [CustomActionModelLinksExecuteImmediately](doc//CustomActionModelLinksExecuteImmediately.md) +- [CustomActionModelLinksSelf](doc//CustomActionModelLinksSelf.md) +- [CustomOptionModel](doc//CustomOptionModel.md) +- [CustomOptionModelLinks](doc//CustomOptionModelLinks.md) +- [CustomOptionModelLinksSelf](doc//CustomOptionModelLinksSelf.md) +- [DayCollectionModel](doc//DayCollectionModel.md) +- [DayCollectionModelAllOfEmbedded](doc//DayCollectionModelAllOfEmbedded.md) +- [DayCollectionModelAllOfLinks](doc//DayCollectionModelAllOfLinks.md) +- [DayCollectionModelAllOfLinksSelf](doc//DayCollectionModelAllOfLinksSelf.md) +- [DayModel](doc//DayModel.md) +- [DayModelLinks](doc//DayModelLinks.md) +- [DayModelLinksWeekDay](doc//DayModelLinksWeekDay.md) +- [DocumentModel](doc//DocumentModel.md) +- [DocumentModelLinks](doc//DocumentModelLinks.md) +- [DocumentModelLinksAttachments](doc//DocumentModelLinksAttachments.md) +- [DocumentModelLinksProject](doc//DocumentModelLinksProject.md) +- [DocumentModelLinksSelf](doc//DocumentModelLinksSelf.md) +- [ErrorResponse](doc//ErrorResponse.md) +- [ErrorResponseEmbedded](doc//ErrorResponseEmbedded.md) +- [ErrorResponseEmbeddedDetails](doc//ErrorResponseEmbeddedDetails.md) +- [ExecuteCustomActionRequest](doc//ExecuteCustomActionRequest.md) +- [ExecuteCustomActionRequestLinks](doc//ExecuteCustomActionRequestLinks.md) +- [ExecuteCustomActionRequestLinksWorkPackage](doc//ExecuteCustomActionRequestLinksWorkPackage.md) +- [FileLinkCollectionReadModel](doc//FileLinkCollectionReadModel.md) +- [FileLinkCollectionReadModelAllOfEmbedded](doc//FileLinkCollectionReadModelAllOfEmbedded.md) +- [FileLinkCollectionReadModelAllOfLinks](doc//FileLinkCollectionReadModelAllOfLinks.md) +- [FileLinkCollectionReadModelAllOfLinksSelf](doc//FileLinkCollectionReadModelAllOfLinksSelf.md) +- [FileLinkCollectionWriteModel](doc//FileLinkCollectionWriteModel.md) +- [FileLinkCollectionWriteModelAllOfEmbedded](doc//FileLinkCollectionWriteModelAllOfEmbedded.md) +- [FileLinkOriginDataModel](doc//FileLinkOriginDataModel.md) +- [FileLinkReadModel](doc//FileLinkReadModel.md) +- [FileLinkReadModelEmbedded](doc//FileLinkReadModelEmbedded.md) +- [FileLinkReadModelLinks](doc//FileLinkReadModelLinks.md) +- [FileLinkReadModelLinksContainer](doc//FileLinkReadModelLinksContainer.md) +- [FileLinkReadModelLinksCreator](doc//FileLinkReadModelLinksCreator.md) +- [FileLinkReadModelLinksDelete](doc//FileLinkReadModelLinksDelete.md) +- [FileLinkReadModelLinksOriginOpen](doc//FileLinkReadModelLinksOriginOpen.md) +- [FileLinkReadModelLinksOriginOpenLocation](doc//FileLinkReadModelLinksOriginOpenLocation.md) +- [FileLinkReadModelLinksPermission](doc//FileLinkReadModelLinksPermission.md) +- [FileLinkReadModelLinksSelf](doc//FileLinkReadModelLinksSelf.md) +- [FileLinkReadModelLinksStaticOriginDownload](doc//FileLinkReadModelLinksStaticOriginDownload.md) +- [FileLinkReadModelLinksStaticOriginOpen](doc//FileLinkReadModelLinksStaticOriginOpen.md) +- [FileLinkReadModelLinksStaticOriginOpenLocation](doc//FileLinkReadModelLinksStaticOriginOpenLocation.md) +- [FileLinkReadModelLinksStorage](doc//FileLinkReadModelLinksStorage.md) +- [FileLinkWriteModel](doc//FileLinkWriteModel.md) +- [Formattable](doc//Formattable.md) +- [GridCollectionModel](doc//GridCollectionModel.md) +- [GridCollectionModelAllOfEmbedded](doc//GridCollectionModelAllOfEmbedded.md) +- [GridReadModel](doc//GridReadModel.md) +- [GridReadModelLinks](doc//GridReadModelLinks.md) +- [GridReadModelLinksAddAttachment](doc//GridReadModelLinksAddAttachment.md) +- [GridReadModelLinksAttachments](doc//GridReadModelLinksAttachments.md) +- [GridReadModelLinksDelete](doc//GridReadModelLinksDelete.md) +- [GridReadModelLinksScope](doc//GridReadModelLinksScope.md) +- [GridReadModelLinksSelf](doc//GridReadModelLinksSelf.md) +- [GridReadModelLinksUpdate](doc//GridReadModelLinksUpdate.md) +- [GridReadModelLinksUpdateImmediately](doc//GridReadModelLinksUpdateImmediately.md) +- [GridWidgetModel](doc//GridWidgetModel.md) +- [GridWriteModel](doc//GridWriteModel.md) +- [GridWriteModelLinks](doc//GridWriteModelLinks.md) +- [GroupCollectionModel](doc//GroupCollectionModel.md) +- [GroupCollectionModelAllOfEmbedded](doc//GroupCollectionModelAllOfEmbedded.md) +- [GroupCollectionModelAllOfLinks](doc//GroupCollectionModelAllOfLinks.md) +- [GroupCollectionModelAllOfLinksSelf](doc//GroupCollectionModelAllOfLinksSelf.md) +- [GroupModel](doc//GroupModel.md) +- [GroupModelLinks](doc//GroupModelLinks.md) +- [GroupModelLinksDelete](doc//GroupModelLinksDelete.md) +- [GroupModelLinksMembersInner](doc//GroupModelLinksMembersInner.md) +- [GroupModelLinksMemberships](doc//GroupModelLinksMemberships.md) +- [GroupModelLinksSelf](doc//GroupModelLinksSelf.md) +- [GroupModelLinksUpdateImmediately](doc//GroupModelLinksUpdateImmediately.md) +- [GroupWriteModel](doc//GroupWriteModel.md) +- [GroupWriteModelLinks](doc//GroupWriteModelLinks.md) +- [GroupWriteModelLinksMembersInner](doc//GroupWriteModelLinksMembersInner.md) +- [HelpTextCollectionModel](doc//HelpTextCollectionModel.md) +- [HelpTextCollectionModelAllOfEmbedded](doc//HelpTextCollectionModelAllOfEmbedded.md) +- [HelpTextCollectionModelAllOfLinks](doc//HelpTextCollectionModelAllOfLinks.md) +- [HelpTextCollectionModelAllOfLinksSelf](doc//HelpTextCollectionModelAllOfLinksSelf.md) +- [HelpTextModel](doc//HelpTextModel.md) +- [HelpTextModelLinks](doc//HelpTextModelLinks.md) +- [HelpTextModelLinksAddAttachment](doc//HelpTextModelLinksAddAttachment.md) +- [HelpTextModelLinksAttachments](doc//HelpTextModelLinksAttachments.md) +- [HelpTextModelLinksEditText](doc//HelpTextModelLinksEditText.md) +- [HelpTextModelLinksSelf](doc//HelpTextModelLinksSelf.md) +- [Link](doc//Link.md) +- [NewsModel](doc//NewsModel.md) +- [NewsModelLinks](doc//NewsModelLinks.md) +- [NewsModelLinksAuthor](doc//NewsModelLinksAuthor.md) +- [NewsModelLinksProject](doc//NewsModelLinksProject.md) +- [NewsModelLinksSelf](doc//NewsModelLinksSelf.md) +- [NonWorkingDayCollectionModel](doc//NonWorkingDayCollectionModel.md) +- [NonWorkingDayCollectionModelAllOfEmbedded](doc//NonWorkingDayCollectionModelAllOfEmbedded.md) +- [NonWorkingDayCollectionModelAllOfLinks](doc//NonWorkingDayCollectionModelAllOfLinks.md) +- [NonWorkingDayCollectionModelAllOfLinksSelf](doc//NonWorkingDayCollectionModelAllOfLinksSelf.md) +- [NonWorkingDayModel](doc//NonWorkingDayModel.md) +- [NonWorkingDayModelLinks](doc//NonWorkingDayModelLinks.md) +- [NonWorkingDayModelLinksSelf](doc//NonWorkingDayModelLinksSelf.md) +- [NotificationCollectionModel](doc//NotificationCollectionModel.md) +- [NotificationCollectionModelAllOfEmbedded](doc//NotificationCollectionModelAllOfEmbedded.md) +- [NotificationCollectionModelAllOfLinks](doc//NotificationCollectionModelAllOfLinks.md) +- [NotificationCollectionModelAllOfLinksChangeSize](doc//NotificationCollectionModelAllOfLinksChangeSize.md) +- [NotificationCollectionModelAllOfLinksJumpTo](doc//NotificationCollectionModelAllOfLinksJumpTo.md) +- [NotificationCollectionModelAllOfLinksSelf](doc//NotificationCollectionModelAllOfLinksSelf.md) +- [NotificationModel](doc//NotificationModel.md) +- [NotificationModelDetailsInner](doc//NotificationModelDetailsInner.md) +- [NotificationModelEmbedded](doc//NotificationModelEmbedded.md) +- [NotificationModelEmbeddedResource](doc//NotificationModelEmbeddedResource.md) +- [NotificationModelLinks](doc//NotificationModelLinks.md) +- [NotificationModelLinksActivity](doc//NotificationModelLinksActivity.md) +- [NotificationModelLinksActor](doc//NotificationModelLinksActor.md) +- [NotificationModelLinksDetailsInner](doc//NotificationModelLinksDetailsInner.md) +- [NotificationModelLinksProject](doc//NotificationModelLinksProject.md) +- [NotificationModelLinksReadIAN](doc//NotificationModelLinksReadIAN.md) +- [NotificationModelLinksResource](doc//NotificationModelLinksResource.md) +- [NotificationModelLinksSelf](doc//NotificationModelLinksSelf.md) +- [NotificationModelLinksUnreadIAN](doc//NotificationModelLinksUnreadIAN.md) +- [OAuthApplicationReadModel](doc//OAuthApplicationReadModel.md) +- [OAuthApplicationReadModelLinks](doc//OAuthApplicationReadModelLinks.md) +- [OAuthApplicationReadModelLinksIntegration](doc//OAuthApplicationReadModelLinksIntegration.md) +- [OAuthApplicationReadModelLinksOwner](doc//OAuthApplicationReadModelLinksOwner.md) +- [OAuthApplicationReadModelLinksRedirectUri](doc//OAuthApplicationReadModelLinksRedirectUri.md) +- [OAuthApplicationReadModelLinksSelf](doc//OAuthApplicationReadModelLinksSelf.md) +- [OAuthClientCredentialsReadModel](doc//OAuthClientCredentialsReadModel.md) +- [OAuthClientCredentialsReadModelLinks](doc//OAuthClientCredentialsReadModelLinks.md) +- [OAuthClientCredentialsReadModelLinksIntegration](doc//OAuthClientCredentialsReadModelLinksIntegration.md) +- [OAuthClientCredentialsReadModelLinksSelf](doc//OAuthClientCredentialsReadModelLinksSelf.md) +- [OAuthClientCredentialsWriteModel](doc//OAuthClientCredentialsWriteModel.md) +- [PaginatedCollectionModel](doc//PaginatedCollectionModel.md) +- [PaginatedCollectionModelAllOfLinks](doc//PaginatedCollectionModelAllOfLinks.md) +- [PaginatedCollectionModelAllOfLinksChangeSize](doc//PaginatedCollectionModelAllOfLinksChangeSize.md) +- [PaginatedCollectionModelAllOfLinksJumpTo](doc//PaginatedCollectionModelAllOfLinksJumpTo.md) +- [PostModel](doc//PostModel.md) +- [PostModelLinks](doc//PostModelLinks.md) +- [PostModelLinksAddAttachment](doc//PostModelLinksAddAttachment.md) +- [PriorityModel](doc//PriorityModel.md) +- [PriorityModelLinks](doc//PriorityModelLinks.md) +- [PriorityModelLinksSelf](doc//PriorityModelLinksSelf.md) +- [ProjectModel](doc//ProjectModel.md) +- [ProjectModelLinks](doc//ProjectModelLinks.md) +- [ProjectModelLinksCategories](doc//ProjectModelLinksCategories.md) +- [ProjectModelLinksCreateWorkPackage](doc//ProjectModelLinksCreateWorkPackage.md) +- [ProjectModelLinksCreateWorkPackageImmediately](doc//ProjectModelLinksCreateWorkPackageImmediately.md) +- [ProjectModelLinksDelete](doc//ProjectModelLinksDelete.md) +- [ProjectModelLinksMemberships](doc//ProjectModelLinksMemberships.md) +- [ProjectModelLinksParent](doc//ProjectModelLinksParent.md) +- [ProjectModelLinksSelf](doc//ProjectModelLinksSelf.md) +- [ProjectModelLinksStatus](doc//ProjectModelLinksStatus.md) +- [ProjectModelLinksStoragesInner](doc//ProjectModelLinksStoragesInner.md) +- [ProjectModelLinksTypes](doc//ProjectModelLinksTypes.md) +- [ProjectModelLinksUpdate](doc//ProjectModelLinksUpdate.md) +- [ProjectModelLinksUpdateImmediately](doc//ProjectModelLinksUpdateImmediately.md) +- [ProjectModelLinksVersions](doc//ProjectModelLinksVersions.md) +- [ProjectModelLinksWorkPackages](doc//ProjectModelLinksWorkPackages.md) +- [ProjectModelStatusExplanation](doc//ProjectModelStatusExplanation.md) +- [ProjectStorageCollectionModel](doc//ProjectStorageCollectionModel.md) +- [ProjectStorageCollectionModelAllOfEmbedded](doc//ProjectStorageCollectionModelAllOfEmbedded.md) +- [ProjectStorageCollectionModelAllOfLinks](doc//ProjectStorageCollectionModelAllOfLinks.md) +- [ProjectStorageCollectionModelAllOfLinksSelf](doc//ProjectStorageCollectionModelAllOfLinksSelf.md) +- [ProjectStorageModel](doc//ProjectStorageModel.md) +- [ProjectStorageModelLinks](doc//ProjectStorageModelLinks.md) +- [ProjectStorageModelLinksCreator](doc//ProjectStorageModelLinksCreator.md) +- [ProjectStorageModelLinksProject](doc//ProjectStorageModelLinksProject.md) +- [ProjectStorageModelLinksProjectFolder](doc//ProjectStorageModelLinksProjectFolder.md) +- [ProjectStorageModelLinksSelf](doc//ProjectStorageModelLinksSelf.md) +- [ProjectStorageModelLinksStorage](doc//ProjectStorageModelLinksStorage.md) +- [QueryColumnModel](doc//QueryColumnModel.md) +- [QueryCreateForm](doc//QueryCreateForm.md) +- [QueryFilterInstanceSchemaModel](doc//QueryFilterInstanceSchemaModel.md) +- [QueryFilterInstanceSchemaModelLinks](doc//QueryFilterInstanceSchemaModelLinks.md) +- [QueryFilterInstanceSchemaModelLinksFilter](doc//QueryFilterInstanceSchemaModelLinksFilter.md) +- [QueryFilterInstanceSchemaModelLinksSelf](doc//QueryFilterInstanceSchemaModelLinksSelf.md) +- [QueryFilterModel](doc//QueryFilterModel.md) +- [QueryModel](doc//QueryModel.md) +- [QueryModelLinks](doc//QueryModelLinks.md) +- [QueryModelLinksStar](doc//QueryModelLinksStar.md) +- [QueryModelLinksUnstar](doc//QueryModelLinksUnstar.md) +- [QueryModelLinksUpdate](doc//QueryModelLinksUpdate.md) +- [QueryModelLinksUpdateImmediately](doc//QueryModelLinksUpdateImmediately.md) +- [QueryOperatorModel](doc//QueryOperatorModel.md) +- [QuerySortByModel](doc//QuerySortByModel.md) +- [QueryUpdateForm](doc//QueryUpdateForm.md) +- [RelationModel](doc//RelationModel.md) +- [RelationModelLinks](doc//RelationModelLinks.md) +- [RelationModelLinksDelete](doc//RelationModelLinksDelete.md) +- [RelationModelLinksFrom](doc//RelationModelLinksFrom.md) +- [RelationModelLinksSchema](doc//RelationModelLinksSchema.md) +- [RelationModelLinksSelf](doc//RelationModelLinksSelf.md) +- [RelationModelLinksTo](doc//RelationModelLinksTo.md) +- [RelationModelLinksUpdate](doc//RelationModelLinksUpdate.md) +- [RelationModelLinksUpdateImmediately](doc//RelationModelLinksUpdateImmediately.md) +- [RevisionModel](doc//RevisionModel.md) +- [RevisionModelLinks](doc//RevisionModelLinks.md) +- [RevisionModelLinksAuthor](doc//RevisionModelLinksAuthor.md) +- [RevisionModelLinksProject](doc//RevisionModelLinksProject.md) +- [RevisionModelLinksSelf](doc//RevisionModelLinksSelf.md) +- [RevisionModelLinksShowRevision](doc//RevisionModelLinksShowRevision.md) +- [RevisionModelMessage](doc//RevisionModelMessage.md) +- [RoleModel](doc//RoleModel.md) +- [RoleModelLinks](doc//RoleModelLinks.md) +- [RoleModelLinksSelf](doc//RoleModelLinksSelf.md) +- [RootModel](doc//RootModel.md) +- [RootModelLinks](doc//RootModelLinks.md) +- [RootModelLinksConfiguration](doc//RootModelLinksConfiguration.md) +- [RootModelLinksMemberships](doc//RootModelLinksMemberships.md) +- [RootModelLinksPriorities](doc//RootModelLinksPriorities.md) +- [RootModelLinksRelations](doc//RootModelLinksRelations.md) +- [RootModelLinksSelf](doc//RootModelLinksSelf.md) +- [RootModelLinksStatuses](doc//RootModelLinksStatuses.md) +- [RootModelLinksTimeEntries](doc//RootModelLinksTimeEntries.md) +- [RootModelLinksTypes](doc//RootModelLinksTypes.md) +- [RootModelLinksUser](doc//RootModelLinksUser.md) +- [RootModelLinksUserPreferences](doc//RootModelLinksUserPreferences.md) +- [RootModelLinksWorkPackages](doc//RootModelLinksWorkPackages.md) +- [SchemaModel](doc//SchemaModel.md) +- [SchemaModelLinks](doc//SchemaModelLinks.md) +- [SchemaModelLinksSelf](doc//SchemaModelLinksSelf.md) +- [ShowOrValidateFormRequest](doc//ShowOrValidateFormRequest.md) +- [StatusModel](doc//StatusModel.md) +- [StatusModelLinks](doc//StatusModelLinks.md) +- [StatusModelLinksSelf](doc//StatusModelLinksSelf.md) +- [StorageFileModel](doc//StorageFileModel.md) +- [StorageFileModelAllOfLinks](doc//StorageFileModelAllOfLinks.md) +- [StorageFileModelAllOfLinksSelf](doc//StorageFileModelAllOfLinksSelf.md) +- [StorageFileUploadLinkModel](doc//StorageFileUploadLinkModel.md) +- [StorageFileUploadLinkModelLinks](doc//StorageFileUploadLinkModelLinks.md) +- [StorageFileUploadLinkModelLinksDestination](doc//StorageFileUploadLinkModelLinksDestination.md) +- [StorageFileUploadLinkModelLinksSelf](doc//StorageFileUploadLinkModelLinksSelf.md) +- [StorageFileUploadPreparationModel](doc//StorageFileUploadPreparationModel.md) +- [StorageFilesModel](doc//StorageFilesModel.md) +- [StorageFilesModelParent](doc//StorageFilesModelParent.md) +- [StorageReadModel](doc//StorageReadModel.md) +- [StorageReadModelEmbedded](doc//StorageReadModelEmbedded.md) +- [StorageReadModelLinks](doc//StorageReadModelLinks.md) +- [StorageReadModelLinksAuthorizationState](doc//StorageReadModelLinksAuthorizationState.md) +- [StorageReadModelLinksAuthorize](doc//StorageReadModelLinksAuthorize.md) +- [StorageReadModelLinksOauthApplication](doc//StorageReadModelLinksOauthApplication.md) +- [StorageReadModelLinksOauthClientCredentials](doc//StorageReadModelLinksOauthClientCredentials.md) +- [StorageReadModelLinksOpen](doc//StorageReadModelLinksOpen.md) +- [StorageReadModelLinksOrigin](doc//StorageReadModelLinksOrigin.md) +- [StorageReadModelLinksSelf](doc//StorageReadModelLinksSelf.md) +- [StorageReadModelLinksType](doc//StorageReadModelLinksType.md) +- [StorageWriteModel](doc//StorageWriteModel.md) +- [StorageWriteModelLinks](doc//StorageWriteModelLinks.md) +- [StorageWriteModelLinksOrigin](doc//StorageWriteModelLinksOrigin.md) +- [StorageWriteModelLinksType](doc//StorageWriteModelLinksType.md) +- [TimeEntryActivityModel](doc//TimeEntryActivityModel.md) +- [TimeEntryActivityModelEmbedded](doc//TimeEntryActivityModelEmbedded.md) +- [TimeEntryActivityModelLinks](doc//TimeEntryActivityModelLinks.md) +- [TimeEntryActivityModelLinksSelf](doc//TimeEntryActivityModelLinksSelf.md) +- [TimeEntryCollectionModel](doc//TimeEntryCollectionModel.md) +- [TimeEntryCollectionModelAllOfEmbedded](doc//TimeEntryCollectionModelAllOfEmbedded.md) +- [TimeEntryCollectionModelAllOfLinks](doc//TimeEntryCollectionModelAllOfLinks.md) +- [TimeEntryCollectionModelAllOfLinksSelf](doc//TimeEntryCollectionModelAllOfLinksSelf.md) +- [TimeEntryModel](doc//TimeEntryModel.md) +- [TimeEntryModelComment](doc//TimeEntryModelComment.md) +- [TimeEntryModelLinks](doc//TimeEntryModelLinks.md) +- [TimeEntryModelLinksActivity](doc//TimeEntryModelLinksActivity.md) +- [TimeEntryModelLinksDelete](doc//TimeEntryModelLinksDelete.md) +- [TimeEntryModelLinksProject](doc//TimeEntryModelLinksProject.md) +- [TimeEntryModelLinksSchema](doc//TimeEntryModelLinksSchema.md) +- [TimeEntryModelLinksSelf](doc//TimeEntryModelLinksSelf.md) +- [TimeEntryModelLinksUpdate](doc//TimeEntryModelLinksUpdate.md) +- [TimeEntryModelLinksUpdateImmediately](doc//TimeEntryModelLinksUpdateImmediately.md) +- [TimeEntryModelLinksUser](doc//TimeEntryModelLinksUser.md) +- [TimeEntryModelLinksWorkPackage](doc//TimeEntryModelLinksWorkPackage.md) +- [TypeModel](doc//TypeModel.md) +- [TypeModelLinks](doc//TypeModelLinks.md) +- [TypeModelLinksSelf](doc//TypeModelLinksSelf.md) +- [UpdateActivityRequest](doc//UpdateActivityRequest.md) +- [UpdateActivityRequestComment](doc//UpdateActivityRequestComment.md) +- [UpdateUserPreferencesRequest](doc//UpdateUserPreferencesRequest.md) +- [UserCollectionModel](doc//UserCollectionModel.md) +- [UserCollectionModelAllOfEmbedded](doc//UserCollectionModelAllOfEmbedded.md) +- [UserCollectionModelAllOfLinks](doc//UserCollectionModelAllOfLinks.md) +- [UserCollectionModelAllOfLinksSelf](doc//UserCollectionModelAllOfLinksSelf.md) +- [UserCreateModel](doc//UserCreateModel.md) +- [UserModel](doc//UserModel.md) +- [UserModelLinks](doc//UserModelLinks.md) +- [UserModelLinksDelete](doc//UserModelLinksDelete.md) +- [UserModelLinksLock](doc//UserModelLinksLock.md) +- [UserModelLinksMemberships](doc//UserModelLinksMemberships.md) +- [UserModelLinksSelf](doc//UserModelLinksSelf.md) +- [UserModelLinksShowUser](doc//UserModelLinksShowUser.md) +- [UserModelLinksUnlock](doc//UserModelLinksUnlock.md) +- [UserModelLinksUpdateImmediately](doc//UserModelLinksUpdateImmediately.md) +- [ValuesPropertyModel](doc//ValuesPropertyModel.md) +- [ValuesPropertyModelLinks](doc//ValuesPropertyModelLinks.md) +- [ValuesPropertyModelLinksSchema](doc//ValuesPropertyModelLinksSchema.md) +- [ValuesPropertyModelLinksSelf](doc//ValuesPropertyModelLinksSelf.md) +- [VersionModel](doc//VersionModel.md) +- [VersionModelLinks](doc//VersionModelLinks.md) +- [VersionModelLinksAvailableInProjects](doc//VersionModelLinksAvailableInProjects.md) +- [VersionModelLinksDefiningProject](doc//VersionModelLinksDefiningProject.md) +- [VersionModelLinksSelf](doc//VersionModelLinksSelf.md) +- [VersionModelLinksUpdate](doc//VersionModelLinksUpdate.md) +- [VersionModelLinksUpdateImmediately](doc//VersionModelLinksUpdateImmediately.md) +- [WatchersModel](doc//WatchersModel.md) +- [WatchersModelAllOfEmbedded](doc//WatchersModelAllOfEmbedded.md) +- [WatchersModelAllOfLinks](doc//WatchersModelAllOfLinks.md) +- [WatchersModelAllOfLinksSelf](doc//WatchersModelAllOfLinksSelf.md) +- [WeekDayCollectionModel](doc//WeekDayCollectionModel.md) +- [WeekDayCollectionModelAllOfEmbedded](doc//WeekDayCollectionModelAllOfEmbedded.md) +- [WeekDayCollectionModelAllOfLinks](doc//WeekDayCollectionModelAllOfLinks.md) +- [WeekDayCollectionModelAllOfLinksSelf](doc//WeekDayCollectionModelAllOfLinksSelf.md) +- [WeekDayCollectionWriteModel](doc//WeekDayCollectionWriteModel.md) +- [WeekDayCollectionWriteModelEmbedded](doc//WeekDayCollectionWriteModelEmbedded.md) +- [WeekDayModel](doc//WeekDayModel.md) +- [WeekDaySelfLinkModel](doc//WeekDaySelfLinkModel.md) +- [WeekDaySelfLinkModelSelf](doc//WeekDaySelfLinkModelSelf.md) +- [WeekDayWriteModel](doc//WeekDayWriteModel.md) +- [WikiPageModel](doc//WikiPageModel.md) +- [WikiPageModelLinks](doc//WikiPageModelLinks.md) +- [WikiPageModelLinksAddAttachment](doc//WikiPageModelLinksAddAttachment.md) +- [WorkPackageModel](doc//WorkPackageModel.md) +- [WorkPackageModelDescription](doc//WorkPackageModelDescription.md) +- [WorkPackageModelLinks](doc//WorkPackageModelLinks.md) +- [WorkPackageModelLinksAddAttachment](doc//WorkPackageModelLinksAddAttachment.md) +- [WorkPackageModelLinksAddComment](doc//WorkPackageModelLinksAddComment.md) +- [WorkPackageModelLinksAddFileLink](doc//WorkPackageModelLinksAddFileLink.md) +- [WorkPackageModelLinksAddRelation](doc//WorkPackageModelLinksAddRelation.md) +- [WorkPackageModelLinksAddWatcher](doc//WorkPackageModelLinksAddWatcher.md) +- [WorkPackageModelLinksAssignee](doc//WorkPackageModelLinksAssignee.md) +- [WorkPackageModelLinksAttachments](doc//WorkPackageModelLinksAttachments.md) +- [WorkPackageModelLinksAuthor](doc//WorkPackageModelLinksAuthor.md) +- [WorkPackageModelLinksAvailableWatchers](doc//WorkPackageModelLinksAvailableWatchers.md) +- [WorkPackageModelLinksBudget](doc//WorkPackageModelLinksBudget.md) +- [WorkPackageModelLinksCategory](doc//WorkPackageModelLinksCategory.md) +- [WorkPackageModelLinksFileLinks](doc//WorkPackageModelLinksFileLinks.md) +- [WorkPackageModelLinksParent](doc//WorkPackageModelLinksParent.md) +- [WorkPackageModelLinksPreviewMarkup](doc//WorkPackageModelLinksPreviewMarkup.md) +- [WorkPackageModelLinksPriority](doc//WorkPackageModelLinksPriority.md) +- [WorkPackageModelLinksProject](doc//WorkPackageModelLinksProject.md) +- [WorkPackageModelLinksRelations](doc//WorkPackageModelLinksRelations.md) +- [WorkPackageModelLinksRemoveWatcher](doc//WorkPackageModelLinksRemoveWatcher.md) +- [WorkPackageModelLinksResponsible](doc//WorkPackageModelLinksResponsible.md) +- [WorkPackageModelLinksRevisions](doc//WorkPackageModelLinksRevisions.md) +- [WorkPackageModelLinksSchema](doc//WorkPackageModelLinksSchema.md) +- [WorkPackageModelLinksSelf](doc//WorkPackageModelLinksSelf.md) +- [WorkPackageModelLinksStatus](doc//WorkPackageModelLinksStatus.md) +- [WorkPackageModelLinksTimeEntries](doc//WorkPackageModelLinksTimeEntries.md) +- [WorkPackageModelLinksType](doc//WorkPackageModelLinksType.md) +- [WorkPackageModelLinksUnwatch](doc//WorkPackageModelLinksUnwatch.md) +- [WorkPackageModelLinksUpdate](doc//WorkPackageModelLinksUpdate.md) +- [WorkPackageModelLinksUpdateImmediately](doc//WorkPackageModelLinksUpdateImmediately.md) +- [WorkPackageModelLinksVersion](doc//WorkPackageModelLinksVersion.md) +- [WorkPackageModelLinksWatch](doc//WorkPackageModelLinksWatch.md) +- [WorkPackageModelLinksWatchers](doc//WorkPackageModelLinksWatchers.md) +- [WorkPackagePatchModel](doc//WorkPackagePatchModel.md) +- [WorkPackagePatchModelLinks](doc//WorkPackagePatchModelLinks.md) +- [WorkPackagesModel](doc//WorkPackagesModel.md) +- [WorkPackagesModelAllOfEmbedded](doc//WorkPackagesModelAllOfEmbedded.md) +- [WorkPackagesModelAllOfLinks](doc//WorkPackagesModelAllOfLinks.md) +- [WorkPackagesModelAllOfLinksSelf](doc//WorkPackagesModelAllOfLinksSelf.md) ## Documentation For Authorization - Authentication schemes defined for the API: + ### BasicAuth - **Type**: HTTP Basic authentication - ## Author - - - diff --git a/lib/model/notification_model_details_inner.dart b/lib/model/notification_model_details_inner.dart index 9b608fc..2d126f9 100644 --- a/lib/model/notification_model_details_inner.dart +++ b/lib/model/notification_model_details_inner.dart @@ -30,22 +30,25 @@ class NotificationModelDetailsInner { ValuesPropertyModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is NotificationModelDetailsInner && - other.type == type && - other.property == property && - other.value == value && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is NotificationModelDetailsInner && + other.type == type && + other.property == property && + other.value == value && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (property == null ? 0 : property!.hashCode) + - (value == null ? 0 : value!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (property == null ? 0 : property!.hashCode) + + (value == null ? 0 : value!.hashCode) + + (links.hashCode); @override - String toString() => 'NotificationModelDetailsInner[type=$type, property=$property, value=$value, links=$links]'; + String toString() => + 'NotificationModelDetailsInner[type=$type, property=$property, value=$value, links=$links]'; Map toJson() { final json = {}; @@ -64,7 +67,7 @@ class NotificationModelDetailsInner { } else { json[r'value'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -80,14 +83,16 @@ class NotificationModelDetailsInner { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "NotificationModelDetailsInner[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "NotificationModelDetailsInner[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "NotificationModelDetailsInner[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "NotificationModelDetailsInner[$key]" has a null value in JSON.'); }); return true; }()); return NotificationModelDetailsInner( - type: Object.fromJson(json[r'_type']), + type: NotificationModelDetailsInnerTypeEnum.fromJson(json[r'_type']), property: mapValueOfType(json, r'property'), value: mapValueOfType(json, r'value'), links: ValuesPropertyModelLinks.fromJson(json[r'_links'])!, @@ -96,7 +101,10 @@ class NotificationModelDetailsInner { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -124,13 +132,19 @@ class NotificationModelDetailsInner { } // maps a json object with a list of NotificationModelDetailsInner-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = NotificationModelDetailsInner.listFromJson(entry.value, growable: growable,); + map[entry.key] = NotificationModelDetailsInner.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -145,7 +159,6 @@ class NotificationModelDetailsInner { }; } - class NotificationModelDetailsInnerTypeEnum { /// Instantiate a new enum with the provided [value]. const NotificationModelDetailsInnerTypeEnum._(this.value); @@ -158,16 +171,21 @@ class NotificationModelDetailsInnerTypeEnum { Object toJson() => value; - static const valuesColonColonProperty = NotificationModelDetailsInnerTypeEnum._('Values::Property'); + static const valuesColonColonProperty = + NotificationModelDetailsInnerTypeEnum._('Values::Property'); /// List of all possible values in this [enum][NotificationModelDetailsInnerTypeEnum]. static const values = [ valuesColonColonProperty, ]; - static NotificationModelDetailsInnerTypeEnum? fromJson(dynamic value) => NotificationModelDetailsInnerTypeEnumTypeTransformer().decode(value); + static NotificationModelDetailsInnerTypeEnum? fromJson(dynamic value) => + NotificationModelDetailsInnerTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -184,7 +202,9 @@ class NotificationModelDetailsInnerTypeEnum { /// Transformation class that can [encode] an instance of [NotificationModelDetailsInnerTypeEnum] to Object, /// and [decode] dynamic data back to [NotificationModelDetailsInnerTypeEnum]. class NotificationModelDetailsInnerTypeEnumTypeTransformer { - factory NotificationModelDetailsInnerTypeEnumTypeTransformer() => _instance ??= const NotificationModelDetailsInnerTypeEnumTypeTransformer._(); + factory NotificationModelDetailsInnerTypeEnumTypeTransformer() => + _instance ??= + const NotificationModelDetailsInnerTypeEnumTypeTransformer._(); const NotificationModelDetailsInnerTypeEnumTypeTransformer._(); @@ -198,10 +218,12 @@ class NotificationModelDetailsInnerTypeEnumTypeTransformer { /// /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, /// and users are still using an old app with the old code. - NotificationModelDetailsInnerTypeEnum? decode(dynamic data, {bool allowNull = true}) { + NotificationModelDetailsInnerTypeEnum? decode(dynamic data, + {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Values::Property': return NotificationModelDetailsInnerTypeEnum.valuesColonColonProperty; + case 'Values::Property': + return NotificationModelDetailsInnerTypeEnum.valuesColonColonProperty; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -214,5 +236,3 @@ class NotificationModelDetailsInnerTypeEnumTypeTransformer { /// Singleton [NotificationModelDetailsInnerTypeEnumTypeTransformer] instance. static NotificationModelDetailsInnerTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/notification_model_embedded_resource.dart b/lib/model/notification_model_embedded_resource.dart index 183b007..171d6e8 100644 --- a/lib/model/notification_model_embedded_resource.dart +++ b/lib/model/notification_model_embedded_resource.dart @@ -107,56 +107,59 @@ class NotificationModelEmbeddedResource { WorkPackageModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is NotificationModelEmbeddedResource && - other.id == id && - other.lockVersion == lockVersion && - other.subject == subject && - other.type == type && - other.description == description && - other.scheduleManually == scheduleManually && - other.readonly == readonly && - other.startDate == startDate && - other.dueDate == dueDate && - other.date == date && - other.derivedStartDate == derivedStartDate && - other.derivedDueDate == derivedDueDate && - other.duration == duration && - other.estimatedTime == estimatedTime && - other.derivedEstimatedTime == derivedEstimatedTime && - other.ignoreNonWorkingDays == ignoreNonWorkingDays && - other.spentTime == spentTime && - other.percentageDone == percentageDone && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is NotificationModelEmbeddedResource && + other.id == id && + other.lockVersion == lockVersion && + other.subject == subject && + other.type == type && + other.description == description && + other.scheduleManually == scheduleManually && + other.readonly == readonly && + other.startDate == startDate && + other.dueDate == dueDate && + other.date == date && + other.derivedStartDate == derivedStartDate && + other.derivedDueDate == derivedDueDate && + other.duration == duration && + other.estimatedTime == estimatedTime && + other.derivedEstimatedTime == derivedEstimatedTime && + other.ignoreNonWorkingDays == ignoreNonWorkingDays && + other.spentTime == spentTime && + other.percentageDone == percentageDone && + other.createdAt == createdAt && + other.updatedAt == updatedAt && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (lockVersion == null ? 0 : lockVersion!.hashCode) + - (subject == null ? 0 : subject!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (scheduleManually == null ? 0 : scheduleManually!.hashCode) + - (readonly == null ? 0 : readonly!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode) + - (dueDate == null ? 0 : dueDate!.hashCode) + - (date == null ? 0 : date!.hashCode) + - (derivedStartDate == null ? 0 : derivedStartDate!.hashCode) + - (derivedDueDate == null ? 0 : derivedDueDate!.hashCode) + - (duration == null ? 0 : duration!.hashCode) + - (estimatedTime == null ? 0 : estimatedTime!.hashCode) + - (derivedEstimatedTime == null ? 0 : derivedEstimatedTime!.hashCode) + - (ignoreNonWorkingDays == null ? 0 : ignoreNonWorkingDays!.hashCode) + - (spentTime == null ? 0 : spentTime!.hashCode) + - (percentageDone == null ? 0 : percentageDone!.hashCode) + - (createdAt == null ? 0 : createdAt!.hashCode) + - (updatedAt == null ? 0 : updatedAt!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (id == null ? 0 : id!.hashCode) + + (lockVersion == null ? 0 : lockVersion!.hashCode) + + (subject == null ? 0 : subject!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (description == null ? 0 : description!.hashCode) + + (scheduleManually == null ? 0 : scheduleManually!.hashCode) + + (readonly == null ? 0 : readonly!.hashCode) + + (startDate == null ? 0 : startDate!.hashCode) + + (dueDate == null ? 0 : dueDate!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (derivedStartDate == null ? 0 : derivedStartDate!.hashCode) + + (derivedDueDate == null ? 0 : derivedDueDate!.hashCode) + + (duration == null ? 0 : duration!.hashCode) + + (estimatedTime == null ? 0 : estimatedTime!.hashCode) + + (derivedEstimatedTime == null ? 0 : derivedEstimatedTime!.hashCode) + + (ignoreNonWorkingDays == null ? 0 : ignoreNonWorkingDays!.hashCode) + + (spentTime == null ? 0 : spentTime!.hashCode) + + (percentageDone == null ? 0 : percentageDone!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (updatedAt == null ? 0 : updatedAt!.hashCode) + + (links.hashCode); @override - String toString() => 'NotificationModelEmbeddedResource[id=$id, lockVersion=$lockVersion, subject=$subject, type=$type, description=$description, scheduleManually=$scheduleManually, readonly=$readonly, startDate=$startDate, dueDate=$dueDate, date=$date, derivedStartDate=$derivedStartDate, derivedDueDate=$derivedDueDate, duration=$duration, estimatedTime=$estimatedTime, derivedEstimatedTime=$derivedEstimatedTime, ignoreNonWorkingDays=$ignoreNonWorkingDays, spentTime=$spentTime, percentageDone=$percentageDone, createdAt=$createdAt, updatedAt=$updatedAt, links=$links]'; + String toString() => + 'NotificationModelEmbeddedResource[id=$id, lockVersion=$lockVersion, subject=$subject, type=$type, description=$description, scheduleManually=$scheduleManually, readonly=$readonly, startDate=$startDate, dueDate=$dueDate, date=$date, derivedStartDate=$derivedStartDate, derivedDueDate=$derivedDueDate, duration=$duration, estimatedTime=$estimatedTime, derivedEstimatedTime=$derivedEstimatedTime, ignoreNonWorkingDays=$ignoreNonWorkingDays, spentTime=$spentTime, percentageDone=$percentageDone, createdAt=$createdAt, updatedAt=$updatedAt, links=$links]'; Map toJson() { final json = {}; @@ -260,7 +263,7 @@ class NotificationModelEmbeddedResource { } else { json[r'updatedAt'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -276,8 +279,10 @@ class NotificationModelEmbeddedResource { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "NotificationModelEmbeddedResource[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "NotificationModelEmbeddedResource[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "NotificationModelEmbeddedResource[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "NotificationModelEmbeddedResource[$key]" has a null value in JSON.'); }); return true; }()); @@ -286,7 +291,8 @@ class NotificationModelEmbeddedResource { id: mapValueOfType(json, r'id'), lockVersion: mapValueOfType(json, r'lockVersion'), subject: mapValueOfType(json, r'subject'), - type: Object.fromJson(json[r'_type']), + type: + NotificationModelEmbeddedResourceTypeEnum.fromJson(json[r'_type']), description: WorkPackageModelDescription.fromJson(json[r'description']), scheduleManually: mapValueOfType(json, r'scheduleManually'), readonly: mapValueOfType(json, r'readonly'), @@ -297,8 +303,10 @@ class NotificationModelEmbeddedResource { derivedDueDate: mapValueOfType(json, r'derivedDueDate'), duration: mapValueOfType(json, r'duration'), estimatedTime: mapValueOfType(json, r'estimatedTime'), - derivedEstimatedTime: mapValueOfType(json, r'derivedEstimatedTime'), - ignoreNonWorkingDays: mapValueOfType(json, r'ignoreNonWorkingDays'), + derivedEstimatedTime: + mapValueOfType(json, r'derivedEstimatedTime'), + ignoreNonWorkingDays: + mapValueOfType(json, r'ignoreNonWorkingDays'), spentTime: mapValueOfType(json, r'spentTime'), percentageDone: mapValueOfType(json, r'percentageDone'), createdAt: mapValueOfType(json, r'createdAt'), @@ -309,7 +317,10 @@ class NotificationModelEmbeddedResource { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -322,7 +333,8 @@ class NotificationModelEmbeddedResource { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { + static Map mapFromJson( + dynamic json) { final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments @@ -337,13 +349,19 @@ class NotificationModelEmbeddedResource { } // maps a json object with a list of NotificationModelEmbeddedResource-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = NotificationModelEmbeddedResource.listFromJson(entry.value, growable: growable,); + map[entry.key] = NotificationModelEmbeddedResource.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -356,7 +374,6 @@ class NotificationModelEmbeddedResource { }; } - class NotificationModelEmbeddedResourceTypeEnum { /// Instantiate a new enum with the provided [value]. const NotificationModelEmbeddedResourceTypeEnum._(this.value); @@ -369,16 +386,21 @@ class NotificationModelEmbeddedResourceTypeEnum { Object toJson() => value; - static const workPackage = NotificationModelEmbeddedResourceTypeEnum._('WorkPackage'); + static const workPackage = + NotificationModelEmbeddedResourceTypeEnum._('WorkPackage'); /// List of all possible values in this [enum][NotificationModelEmbeddedResourceTypeEnum]. static const values = [ workPackage, ]; - static NotificationModelEmbeddedResourceTypeEnum? fromJson(dynamic value) => NotificationModelEmbeddedResourceTypeEnumTypeTransformer().decode(value); + static NotificationModelEmbeddedResourceTypeEnum? fromJson(dynamic value) => + NotificationModelEmbeddedResourceTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -395,7 +417,9 @@ class NotificationModelEmbeddedResourceTypeEnum { /// Transformation class that can [encode] an instance of [NotificationModelEmbeddedResourceTypeEnum] to Object, /// and [decode] dynamic data back to [NotificationModelEmbeddedResourceTypeEnum]. class NotificationModelEmbeddedResourceTypeEnumTypeTransformer { - factory NotificationModelEmbeddedResourceTypeEnumTypeTransformer() => _instance ??= const NotificationModelEmbeddedResourceTypeEnumTypeTransformer._(); + factory NotificationModelEmbeddedResourceTypeEnumTypeTransformer() => + _instance ??= + const NotificationModelEmbeddedResourceTypeEnumTypeTransformer._(); const NotificationModelEmbeddedResourceTypeEnumTypeTransformer._(); @@ -409,10 +433,12 @@ class NotificationModelEmbeddedResourceTypeEnumTypeTransformer { /// /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, /// and users are still using an old app with the old code. - NotificationModelEmbeddedResourceTypeEnum? decode(dynamic data, {bool allowNull = true}) { + NotificationModelEmbeddedResourceTypeEnum? decode(dynamic data, + {bool allowNull = true}) { if (data != null) { switch (data) { - case 'WorkPackage': return NotificationModelEmbeddedResourceTypeEnum.workPackage; + case 'WorkPackage': + return NotificationModelEmbeddedResourceTypeEnum.workPackage; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -425,5 +451,3 @@ class NotificationModelEmbeddedResourceTypeEnumTypeTransformer { /// Singleton [NotificationModelEmbeddedResourceTypeEnumTypeTransformer] instance. static NotificationModelEmbeddedResourceTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/role_model.dart b/lib/model/role_model.dart index 6909b34..3f11239 100644 --- a/lib/model/role_model.dart +++ b/lib/model/role_model.dart @@ -38,22 +38,25 @@ class RoleModel { RoleModelLinks? links; @override - bool operator ==(Object other) => identical(this, other) || other is RoleModel && - other.type == type && - other.id == id && - other.name == name && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is RoleModel && + other.type == type && + other.id == id && + other.name == name && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (id == null ? 0 : id!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (links == null ? 0 : links!.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (id == null ? 0 : id!.hashCode) + + (name == null ? 0 : name!.hashCode) + + (links == null ? 0 : links!.hashCode); @override - String toString() => 'RoleModel[type=$type, id=$id, name=$name, links=$links]'; + String toString() => + 'RoleModel[type=$type, id=$id, name=$name, links=$links]'; Map toJson() { final json = {}; @@ -92,14 +95,16 @@ class RoleModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RoleModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RoleModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "RoleModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "RoleModel[$key]" has a null value in JSON.'); }); return true; }()); return RoleModel( - type: Object.fromJson(json[r'_type']), + type: RoleModelTypeEnum.fromJson(json[r'_type']), id: mapValueOfType(json, r'id'), name: mapValueOfType(json, r'name'), links: RoleModelLinks.fromJson(json[r'_links']), @@ -108,7 +113,10 @@ class RoleModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -136,13 +144,19 @@ class RoleModel { } // maps a json object with a list of RoleModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = RoleModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = RoleModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -154,7 +168,6 @@ class RoleModel { }; } - class RoleModelTypeEnum { /// Instantiate a new enum with the provided [value]. const RoleModelTypeEnum._(this.value); @@ -174,9 +187,13 @@ class RoleModelTypeEnum { role, ]; - static RoleModelTypeEnum? fromJson(dynamic value) => RoleModelTypeEnumTypeTransformer().decode(value); + static RoleModelTypeEnum? fromJson(dynamic value) => + RoleModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -193,7 +210,8 @@ class RoleModelTypeEnum { /// Transformation class that can [encode] an instance of [RoleModelTypeEnum] to Object, /// and [decode] dynamic data back to [RoleModelTypeEnum]. class RoleModelTypeEnumTypeTransformer { - factory RoleModelTypeEnumTypeTransformer() => _instance ??= const RoleModelTypeEnumTypeTransformer._(); + factory RoleModelTypeEnumTypeTransformer() => + _instance ??= const RoleModelTypeEnumTypeTransformer._(); const RoleModelTypeEnumTypeTransformer._(); @@ -210,7 +228,8 @@ class RoleModelTypeEnumTypeTransformer { RoleModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Role': return RoleModelTypeEnum.role; + case 'Role': + return RoleModelTypeEnum.role; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -223,5 +242,3 @@ class RoleModelTypeEnumTypeTransformer { /// Singleton [RoleModelTypeEnumTypeTransformer] instance. static RoleModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/root_model.dart b/lib/model/root_model.dart index 5aee3ff..0c013b5 100644 --- a/lib/model/root_model.dart +++ b/lib/model/root_model.dart @@ -30,22 +30,25 @@ class RootModel { RootModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is RootModel && - other.type == type && - other.instanceName == instanceName && - other.coreVersion == coreVersion && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is RootModel && + other.type == type && + other.instanceName == instanceName && + other.coreVersion == coreVersion && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (instanceName == null ? 0 : instanceName!.hashCode) + - (coreVersion == null ? 0 : coreVersion!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (instanceName == null ? 0 : instanceName!.hashCode) + + (coreVersion == null ? 0 : coreVersion!.hashCode) + + (links.hashCode); @override - String toString() => 'RootModel[type=$type, instanceName=$instanceName, coreVersion=$coreVersion, links=$links]'; + String toString() => + 'RootModel[type=$type, instanceName=$instanceName, coreVersion=$coreVersion, links=$links]'; Map toJson() { final json = {}; @@ -64,7 +67,7 @@ class RootModel { } else { json[r'coreVersion'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -80,14 +83,16 @@ class RootModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RootModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RootModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "RootModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "RootModel[$key]" has a null value in JSON.'); }); return true; }()); return RootModel( - type: Object.fromJson(json[r'_type']), + type: RootModelTypeEnum.fromJson(json[r'_type']), instanceName: mapValueOfType(json, r'instanceName'), coreVersion: mapValueOfType(json, r'coreVersion'), links: RootModelLinks.fromJson(json[r'_links'])!, @@ -96,7 +101,10 @@ class RootModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -124,13 +132,19 @@ class RootModel { } // maps a json object with a list of RootModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = RootModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = RootModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -144,7 +158,6 @@ class RootModel { }; } - class RootModelTypeEnum { /// Instantiate a new enum with the provided [value]. const RootModelTypeEnum._(this.value); @@ -164,9 +177,13 @@ class RootModelTypeEnum { root, ]; - static RootModelTypeEnum? fromJson(dynamic value) => RootModelTypeEnumTypeTransformer().decode(value); + static RootModelTypeEnum? fromJson(dynamic value) => + RootModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -183,7 +200,8 @@ class RootModelTypeEnum { /// Transformation class that can [encode] an instance of [RootModelTypeEnum] to Object, /// and [decode] dynamic data back to [RootModelTypeEnum]. class RootModelTypeEnumTypeTransformer { - factory RootModelTypeEnumTypeTransformer() => _instance ??= const RootModelTypeEnumTypeTransformer._(); + factory RootModelTypeEnumTypeTransformer() => + _instance ??= const RootModelTypeEnumTypeTransformer._(); const RootModelTypeEnumTypeTransformer._(); @@ -200,7 +218,8 @@ class RootModelTypeEnumTypeTransformer { RootModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Root': return RootModelTypeEnum.root; + case 'Root': + return RootModelTypeEnum.root; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -213,5 +232,3 @@ class RootModelTypeEnumTypeTransformer { /// Singleton [RootModelTypeEnumTypeTransformer] instance. static RootModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/schema_model.dart b/lib/model/schema_model.dart index c3210ce..532b2d8 100644 --- a/lib/model/schema_model.dart +++ b/lib/model/schema_model.dart @@ -26,20 +26,23 @@ class SchemaModel { SchemaModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is SchemaModel && - other.type == type && - other.dependencies == dependencies && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is SchemaModel && + other.type == type && + other.dependencies == dependencies && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (dependencies == null ? 0 : dependencies!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (dependencies == null ? 0 : dependencies!.hashCode) + + (links.hashCode); @override - String toString() => 'SchemaModel[type=$type, dependencies=$dependencies, links=$links]'; + String toString() => + 'SchemaModel[type=$type, dependencies=$dependencies, links=$links]'; Map toJson() { final json = {}; @@ -53,7 +56,7 @@ class SchemaModel { } else { json[r'_dependencies'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -69,14 +72,16 @@ class SchemaModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SchemaModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SchemaModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "SchemaModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "SchemaModel[$key]" has a null value in JSON.'); }); return true; }()); return SchemaModel( - type: Object.fromJson(json[r'_type']), + type: SchemaModelTypeEnum.fromJson(json[r'_type']), dependencies: mapValueOfType(json, r'_dependencies'), links: SchemaModelLinks.fromJson(json[r'_links'])!, ); @@ -84,7 +89,10 @@ class SchemaModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -112,13 +120,19 @@ class SchemaModel { } // maps a json object with a list of SchemaModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = SchemaModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = SchemaModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -131,7 +145,6 @@ class SchemaModel { }; } - class SchemaModelTypeEnum { /// Instantiate a new enum with the provided [value]. const SchemaModelTypeEnum._(this.value); @@ -151,9 +164,13 @@ class SchemaModelTypeEnum { schema, ]; - static SchemaModelTypeEnum? fromJson(dynamic value) => SchemaModelTypeEnumTypeTransformer().decode(value); + static SchemaModelTypeEnum? fromJson(dynamic value) => + SchemaModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -170,7 +187,8 @@ class SchemaModelTypeEnum { /// Transformation class that can [encode] an instance of [SchemaModelTypeEnum] to Object, /// and [decode] dynamic data back to [SchemaModelTypeEnum]. class SchemaModelTypeEnumTypeTransformer { - factory SchemaModelTypeEnumTypeTransformer() => _instance ??= const SchemaModelTypeEnumTypeTransformer._(); + factory SchemaModelTypeEnumTypeTransformer() => + _instance ??= const SchemaModelTypeEnumTypeTransformer._(); const SchemaModelTypeEnumTypeTransformer._(); @@ -187,7 +205,8 @@ class SchemaModelTypeEnumTypeTransformer { SchemaModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Schema': return SchemaModelTypeEnum.schema; + case 'Schema': + return SchemaModelTypeEnum.schema; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -200,5 +219,3 @@ class SchemaModelTypeEnumTypeTransformer { /// Singleton [SchemaModelTypeEnumTypeTransformer] instance. static SchemaModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/status_model.dart b/lib/model/status_model.dart index 2ab8db8..67d5a82 100644 --- a/lib/model/status_model.dart +++ b/lib/model/status_model.dart @@ -59,32 +59,35 @@ class StatusModel { StatusModelLinks? links; @override - bool operator ==(Object other) => identical(this, other) || other is StatusModel && - other.type == type && - other.id == id && - other.name == name && - other.position == position && - other.isDefault == isDefault && - other.isClosed == isClosed && - other.isReadonly == isReadonly && - other.defaultDoneRatio == defaultDoneRatio && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is StatusModel && + other.type == type && + other.id == id && + other.name == name && + other.position == position && + other.isDefault == isDefault && + other.isClosed == isClosed && + other.isReadonly == isReadonly && + other.defaultDoneRatio == defaultDoneRatio && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (id == null ? 0 : id!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (position == null ? 0 : position!.hashCode) + - (isDefault == null ? 0 : isDefault!.hashCode) + - (isClosed == null ? 0 : isClosed!.hashCode) + - (isReadonly == null ? 0 : isReadonly!.hashCode) + - (defaultDoneRatio == null ? 0 : defaultDoneRatio!.hashCode) + - (links == null ? 0 : links!.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (id == null ? 0 : id!.hashCode) + + (name == null ? 0 : name!.hashCode) + + (position == null ? 0 : position!.hashCode) + + (isDefault == null ? 0 : isDefault!.hashCode) + + (isClosed == null ? 0 : isClosed!.hashCode) + + (isReadonly == null ? 0 : isReadonly!.hashCode) + + (defaultDoneRatio == null ? 0 : defaultDoneRatio!.hashCode) + + (links == null ? 0 : links!.hashCode); @override - String toString() => 'StatusModel[type=$type, id=$id, name=$name, position=$position, isDefault=$isDefault, isClosed=$isClosed, isReadonly=$isReadonly, defaultDoneRatio=$defaultDoneRatio, links=$links]'; + String toString() => + 'StatusModel[type=$type, id=$id, name=$name, position=$position, isDefault=$isDefault, isClosed=$isClosed, isReadonly=$isReadonly, defaultDoneRatio=$defaultDoneRatio, links=$links]'; Map toJson() { final json = {}; @@ -148,14 +151,16 @@ class StatusModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "StatusModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "StatusModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "StatusModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "StatusModel[$key]" has a null value in JSON.'); }); return true; }()); return StatusModel( - type: Object.fromJson(json[r'_type']), + type: StatusModelTypeEnum.fromJson(json[r'_type']), id: mapValueOfType(json, r'id'), name: mapValueOfType(json, r'name'), position: mapValueOfType(json, r'position'), @@ -169,7 +174,10 @@ class StatusModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -197,24 +205,28 @@ class StatusModel { } // maps a json object with a list of StatusModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = StatusModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = StatusModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; } /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; + static const requiredKeys = {}; } - class StatusModelTypeEnum { /// Instantiate a new enum with the provided [value]. const StatusModelTypeEnum._(this.value); @@ -234,9 +246,13 @@ class StatusModelTypeEnum { status, ]; - static StatusModelTypeEnum? fromJson(dynamic value) => StatusModelTypeEnumTypeTransformer().decode(value); + static StatusModelTypeEnum? fromJson(dynamic value) => + StatusModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -253,7 +269,8 @@ class StatusModelTypeEnum { /// Transformation class that can [encode] an instance of [StatusModelTypeEnum] to Object, /// and [decode] dynamic data back to [StatusModelTypeEnum]. class StatusModelTypeEnumTypeTransformer { - factory StatusModelTypeEnumTypeTransformer() => _instance ??= const StatusModelTypeEnumTypeTransformer._(); + factory StatusModelTypeEnumTypeTransformer() => + _instance ??= const StatusModelTypeEnumTypeTransformer._(); const StatusModelTypeEnumTypeTransformer._(); @@ -270,7 +287,8 @@ class StatusModelTypeEnumTypeTransformer { StatusModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Status': return StatusModelTypeEnum.status; + case 'Status': + return StatusModelTypeEnum.status; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -283,5 +301,3 @@ class StatusModelTypeEnumTypeTransformer { /// Singleton [StatusModelTypeEnumTypeTransformer] instance. static StatusModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/storage_file_model.dart b/lib/model/storage_file_model.dart index 7d19eb4..e9f9f40 100644 --- a/lib/model/storage_file_model.dart +++ b/lib/model/storage_file_model.dart @@ -96,41 +96,44 @@ class StorageFileModel { StorageFileModelAllOfLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is StorageFileModel && - other.id == id && - other.name == name && - other.mimeType == mimeType && - other.size == size && - other.createdAt == createdAt && - other.lastModifiedAt == lastModifiedAt && - other.createdByName == createdByName && - other.lastModifiedByName == lastModifiedByName && - other.type == type && - other.location == location && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is StorageFileModel && + other.id == id && + other.name == name && + other.mimeType == mimeType && + other.size == size && + other.createdAt == createdAt && + other.lastModifiedAt == lastModifiedAt && + other.createdByName == createdByName && + other.lastModifiedByName == lastModifiedByName && + other.type == type && + other.location == location && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (name.hashCode) + - (mimeType == null ? 0 : mimeType!.hashCode) + - (size == null ? 0 : size!.hashCode) + - (createdAt == null ? 0 : createdAt!.hashCode) + - (lastModifiedAt == null ? 0 : lastModifiedAt!.hashCode) + - (createdByName == null ? 0 : createdByName!.hashCode) + - (lastModifiedByName == null ? 0 : lastModifiedByName!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (location == null ? 0 : location!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (id.hashCode) + + (name.hashCode) + + (mimeType == null ? 0 : mimeType!.hashCode) + + (size == null ? 0 : size!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (lastModifiedAt == null ? 0 : lastModifiedAt!.hashCode) + + (createdByName == null ? 0 : createdByName!.hashCode) + + (lastModifiedByName == null ? 0 : lastModifiedByName!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (location == null ? 0 : location!.hashCode) + + (links.hashCode); @override - String toString() => 'StorageFileModel[id=$id, name=$name, mimeType=$mimeType, size=$size, createdAt=$createdAt, lastModifiedAt=$lastModifiedAt, createdByName=$createdByName, lastModifiedByName=$lastModifiedByName, type=$type, location=$location, links=$links]'; + String toString() => + 'StorageFileModel[id=$id, name=$name, mimeType=$mimeType, size=$size, createdAt=$createdAt, lastModifiedAt=$lastModifiedAt, createdByName=$createdByName, lastModifiedByName=$lastModifiedByName, type=$type, location=$location, links=$links]'; Map toJson() { final json = {}; - json[r'id'] = this.id; - json[r'name'] = this.name; + json[r'id'] = this.id; + json[r'name'] = this.name; if (this.mimeType != null) { json[r'mimeType'] = this.mimeType; } else { @@ -171,7 +174,7 @@ class StorageFileModel { } else { json[r'location'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -187,8 +190,10 @@ class StorageFileModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "StorageFileModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "StorageFileModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "StorageFileModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "StorageFileModel[$key]" has a null value in JSON.'); }); return true; }()); @@ -202,7 +207,7 @@ class StorageFileModel { lastModifiedAt: mapDateTime(json, r'lastModifiedAt', r''), createdByName: mapValueOfType(json, r'createdByName'), lastModifiedByName: mapValueOfType(json, r'lastModifiedByName'), - type: Object.fromJson(json[r'_type']), + type: StorageFileModelTypeEnum.fromJson(json[r'_type']), location: mapValueOfType(json, r'location'), links: StorageFileModelAllOfLinks.fromJson(json[r'_links'])!, ); @@ -210,7 +215,10 @@ class StorageFileModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -238,13 +246,19 @@ class StorageFileModel { } // maps a json object with a list of StorageFileModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = StorageFileModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = StorageFileModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -260,7 +274,6 @@ class StorageFileModel { }; } - class StorageFileModelTypeEnum { /// Instantiate a new enum with the provided [value]. const StorageFileModelTypeEnum._(this.value); @@ -280,9 +293,13 @@ class StorageFileModelTypeEnum { storageFile, ]; - static StorageFileModelTypeEnum? fromJson(dynamic value) => StorageFileModelTypeEnumTypeTransformer().decode(value); + static StorageFileModelTypeEnum? fromJson(dynamic value) => + StorageFileModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -299,7 +316,8 @@ class StorageFileModelTypeEnum { /// Transformation class that can [encode] an instance of [StorageFileModelTypeEnum] to Object, /// and [decode] dynamic data back to [StorageFileModelTypeEnum]. class StorageFileModelTypeEnumTypeTransformer { - factory StorageFileModelTypeEnumTypeTransformer() => _instance ??= const StorageFileModelTypeEnumTypeTransformer._(); + factory StorageFileModelTypeEnumTypeTransformer() => + _instance ??= const StorageFileModelTypeEnumTypeTransformer._(); const StorageFileModelTypeEnumTypeTransformer._(); @@ -316,7 +334,8 @@ class StorageFileModelTypeEnumTypeTransformer { StorageFileModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'StorageFile': return StorageFileModelTypeEnum.storageFile; + case 'StorageFile': + return StorageFileModelTypeEnum.storageFile; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -329,5 +348,3 @@ class StorageFileModelTypeEnumTypeTransformer { /// Singleton [StorageFileModelTypeEnumTypeTransformer] instance. static StorageFileModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/storage_file_upload_link_model.dart b/lib/model/storage_file_upload_link_model.dart index 3f61b65..2c9a846 100644 --- a/lib/model/storage_file_upload_link_model.dart +++ b/lib/model/storage_file_upload_link_model.dart @@ -22,15 +22,16 @@ class StorageFileUploadLinkModel { StorageFileUploadLinkModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is StorageFileUploadLinkModel && - other.type == type && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is StorageFileUploadLinkModel && + other.type == type && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + (links.hashCode); @override String toString() => 'StorageFileUploadLinkModel[type=$type, links=$links]'; @@ -42,7 +43,7 @@ class StorageFileUploadLinkModel { } else { json[r'_type'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -58,21 +59,26 @@ class StorageFileUploadLinkModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "StorageFileUploadLinkModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "StorageFileUploadLinkModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "StorageFileUploadLinkModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "StorageFileUploadLinkModel[$key]" has a null value in JSON.'); }); return true; }()); return StorageFileUploadLinkModel( - type: Object.fromJson(json[r'_type']), + type: StorageFileUploadLinkModelTypeEnum.fromJson(json[r'_type']), links: StorageFileUploadLinkModelLinks.fromJson(json[r'_links'])!, ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -100,13 +106,19 @@ class StorageFileUploadLinkModel { } // maps a json object with a list of StorageFileUploadLinkModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = StorageFileUploadLinkModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = StorageFileUploadLinkModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -119,7 +131,6 @@ class StorageFileUploadLinkModel { }; } - class StorageFileUploadLinkModelTypeEnum { /// Instantiate a new enum with the provided [value]. const StorageFileUploadLinkModelTypeEnum._(this.value); @@ -139,9 +150,13 @@ class StorageFileUploadLinkModelTypeEnum { uploadLink, ]; - static StorageFileUploadLinkModelTypeEnum? fromJson(dynamic value) => StorageFileUploadLinkModelTypeEnumTypeTransformer().decode(value); + static StorageFileUploadLinkModelTypeEnum? fromJson(dynamic value) => + StorageFileUploadLinkModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -158,7 +173,8 @@ class StorageFileUploadLinkModelTypeEnum { /// Transformation class that can [encode] an instance of [StorageFileUploadLinkModelTypeEnum] to Object, /// and [decode] dynamic data back to [StorageFileUploadLinkModelTypeEnum]. class StorageFileUploadLinkModelTypeEnumTypeTransformer { - factory StorageFileUploadLinkModelTypeEnumTypeTransformer() => _instance ??= const StorageFileUploadLinkModelTypeEnumTypeTransformer._(); + factory StorageFileUploadLinkModelTypeEnumTypeTransformer() => + _instance ??= const StorageFileUploadLinkModelTypeEnumTypeTransformer._(); const StorageFileUploadLinkModelTypeEnumTypeTransformer._(); @@ -172,10 +188,12 @@ class StorageFileUploadLinkModelTypeEnumTypeTransformer { /// /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, /// and users are still using an old app with the old code. - StorageFileUploadLinkModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { + StorageFileUploadLinkModelTypeEnum? decode(dynamic data, + {bool allowNull = true}) { if (data != null) { switch (data) { - case 'UploadLink': return StorageFileUploadLinkModelTypeEnum.uploadLink; + case 'UploadLink': + return StorageFileUploadLinkModelTypeEnum.uploadLink; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -188,5 +206,3 @@ class StorageFileUploadLinkModelTypeEnumTypeTransformer { /// Singleton [StorageFileUploadLinkModelTypeEnumTypeTransformer] instance. static StorageFileUploadLinkModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/storage_files_model.dart b/lib/model/storage_files_model.dart index 0d692ce..7fcaf4b 100644 --- a/lib/model/storage_files_model.dart +++ b/lib/model/storage_files_model.dart @@ -33,24 +33,27 @@ class StorageFilesModel { StorageFileModelAllOfLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is StorageFilesModel && - other.type == type && - other.files == files && - other.parent == parent && - other.ancestors == ancestors && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is StorageFilesModel && + other.type == type && + other.files == files && + other.parent == parent && + other.ancestors == ancestors && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (files == null ? 0 : files!.hashCode) + - (parent.hashCode) + - (ancestors == null ? 0 : ancestors!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (files == null ? 0 : files!.hashCode) + + (parent.hashCode) + + (ancestors == null ? 0 : ancestors!.hashCode) + + (links.hashCode); @override - String toString() => 'StorageFilesModel[type=$type, files=$files, parent=$parent, ancestors=$ancestors, links=$links]'; + String toString() => + 'StorageFilesModel[type=$type, files=$files, parent=$parent, ancestors=$ancestors, links=$links]'; Map toJson() { final json = {}; @@ -64,13 +67,13 @@ class StorageFilesModel { } else { json[r'files'] = null; } - json[r'parent'] = this.parent; + json[r'parent'] = this.parent; if (this.ancestors != null) { json[r'ancestors'] = this.ancestors; } else { json[r'ancestors'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -86,14 +89,16 @@ class StorageFilesModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "StorageFilesModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "StorageFilesModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "StorageFilesModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "StorageFilesModel[$key]" has a null value in JSON.'); }); return true; }()); return StorageFilesModel( - type: Object.fromJson(json[r'_type']), + type: StorageFilesModelTypeEnum.fromJson(json[r'_type']), files: mapValueOfType(json, r'files'), parent: StorageFilesModelParent.fromJson(json[r'parent'])!, ancestors: mapValueOfType(json, r'ancestors'), @@ -103,7 +108,10 @@ class StorageFilesModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -131,13 +139,19 @@ class StorageFilesModel { } // maps a json object with a list of StorageFilesModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = StorageFilesModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = StorageFilesModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -153,7 +167,6 @@ class StorageFilesModel { }; } - class StorageFilesModelTypeEnum { /// Instantiate a new enum with the provided [value]. const StorageFilesModelTypeEnum._(this.value); @@ -173,9 +186,13 @@ class StorageFilesModelTypeEnum { storageFiles, ]; - static StorageFilesModelTypeEnum? fromJson(dynamic value) => StorageFilesModelTypeEnumTypeTransformer().decode(value); + static StorageFilesModelTypeEnum? fromJson(dynamic value) => + StorageFilesModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -192,7 +209,8 @@ class StorageFilesModelTypeEnum { /// Transformation class that can [encode] an instance of [StorageFilesModelTypeEnum] to Object, /// and [decode] dynamic data back to [StorageFilesModelTypeEnum]. class StorageFilesModelTypeEnumTypeTransformer { - factory StorageFilesModelTypeEnumTypeTransformer() => _instance ??= const StorageFilesModelTypeEnumTypeTransformer._(); + factory StorageFilesModelTypeEnumTypeTransformer() => + _instance ??= const StorageFilesModelTypeEnumTypeTransformer._(); const StorageFilesModelTypeEnumTypeTransformer._(); @@ -209,7 +227,8 @@ class StorageFilesModelTypeEnumTypeTransformer { StorageFilesModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'StorageFiles': return StorageFilesModelTypeEnum.storageFiles; + case 'StorageFiles': + return StorageFilesModelTypeEnum.storageFiles; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -222,5 +241,3 @@ class StorageFilesModelTypeEnumTypeTransformer { /// Singleton [StorageFilesModelTypeEnumTypeTransformer] instance. static StorageFilesModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/storage_files_model_parent.dart b/lib/model/storage_files_model_parent.dart index 4df22eb..9350ab4 100644 --- a/lib/model/storage_files_model_parent.dart +++ b/lib/model/storage_files_model_parent.dart @@ -96,41 +96,44 @@ class StorageFilesModelParent { StorageFileModelAllOfLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is StorageFilesModelParent && - other.id == id && - other.name == name && - other.mimeType == mimeType && - other.size == size && - other.createdAt == createdAt && - other.lastModifiedAt == lastModifiedAt && - other.createdByName == createdByName && - other.lastModifiedByName == lastModifiedByName && - other.type == type && - other.location == location && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is StorageFilesModelParent && + other.id == id && + other.name == name && + other.mimeType == mimeType && + other.size == size && + other.createdAt == createdAt && + other.lastModifiedAt == lastModifiedAt && + other.createdByName == createdByName && + other.lastModifiedByName == lastModifiedByName && + other.type == type && + other.location == location && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (name.hashCode) + - (mimeType == null ? 0 : mimeType!.hashCode) + - (size == null ? 0 : size!.hashCode) + - (createdAt == null ? 0 : createdAt!.hashCode) + - (lastModifiedAt == null ? 0 : lastModifiedAt!.hashCode) + - (createdByName == null ? 0 : createdByName!.hashCode) + - (lastModifiedByName == null ? 0 : lastModifiedByName!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (location == null ? 0 : location!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (id.hashCode) + + (name.hashCode) + + (mimeType == null ? 0 : mimeType!.hashCode) + + (size == null ? 0 : size!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (lastModifiedAt == null ? 0 : lastModifiedAt!.hashCode) + + (createdByName == null ? 0 : createdByName!.hashCode) + + (lastModifiedByName == null ? 0 : lastModifiedByName!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (location == null ? 0 : location!.hashCode) + + (links.hashCode); @override - String toString() => 'StorageFilesModelParent[id=$id, name=$name, mimeType=$mimeType, size=$size, createdAt=$createdAt, lastModifiedAt=$lastModifiedAt, createdByName=$createdByName, lastModifiedByName=$lastModifiedByName, type=$type, location=$location, links=$links]'; + String toString() => + 'StorageFilesModelParent[id=$id, name=$name, mimeType=$mimeType, size=$size, createdAt=$createdAt, lastModifiedAt=$lastModifiedAt, createdByName=$createdByName, lastModifiedByName=$lastModifiedByName, type=$type, location=$location, links=$links]'; Map toJson() { final json = {}; - json[r'id'] = this.id; - json[r'name'] = this.name; + json[r'id'] = this.id; + json[r'name'] = this.name; if (this.mimeType != null) { json[r'mimeType'] = this.mimeType; } else { @@ -171,7 +174,7 @@ class StorageFilesModelParent { } else { json[r'location'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -187,8 +190,10 @@ class StorageFilesModelParent { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "StorageFilesModelParent[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "StorageFilesModelParent[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "StorageFilesModelParent[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "StorageFilesModelParent[$key]" has a null value in JSON.'); }); return true; }()); @@ -202,7 +207,7 @@ class StorageFilesModelParent { lastModifiedAt: mapDateTime(json, r'lastModifiedAt', r''), createdByName: mapValueOfType(json, r'createdByName'), lastModifiedByName: mapValueOfType(json, r'lastModifiedByName'), - type: Object.fromJson(json[r'_type']), + type: StorageFilesModelParentTypeEnum.fromJson(json[r'_type']), location: mapValueOfType(json, r'location'), links: StorageFileModelAllOfLinks.fromJson(json[r'_links'])!, ); @@ -210,7 +215,10 @@ class StorageFilesModelParent { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -238,13 +246,19 @@ class StorageFilesModelParent { } // maps a json object with a list of StorageFilesModelParent-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = StorageFilesModelParent.listFromJson(entry.value, growable: growable,); + map[entry.key] = StorageFilesModelParent.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -260,7 +274,6 @@ class StorageFilesModelParent { }; } - class StorageFilesModelParentTypeEnum { /// Instantiate a new enum with the provided [value]. const StorageFilesModelParentTypeEnum._(this.value); @@ -280,9 +293,13 @@ class StorageFilesModelParentTypeEnum { storageFile, ]; - static StorageFilesModelParentTypeEnum? fromJson(dynamic value) => StorageFilesModelParentTypeEnumTypeTransformer().decode(value); + static StorageFilesModelParentTypeEnum? fromJson(dynamic value) => + StorageFilesModelParentTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -299,7 +316,8 @@ class StorageFilesModelParentTypeEnum { /// Transformation class that can [encode] an instance of [StorageFilesModelParentTypeEnum] to Object, /// and [decode] dynamic data back to [StorageFilesModelParentTypeEnum]. class StorageFilesModelParentTypeEnumTypeTransformer { - factory StorageFilesModelParentTypeEnumTypeTransformer() => _instance ??= const StorageFilesModelParentTypeEnumTypeTransformer._(); + factory StorageFilesModelParentTypeEnumTypeTransformer() => + _instance ??= const StorageFilesModelParentTypeEnumTypeTransformer._(); const StorageFilesModelParentTypeEnumTypeTransformer._(); @@ -313,10 +331,12 @@ class StorageFilesModelParentTypeEnumTypeTransformer { /// /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, /// and users are still using an old app with the old code. - StorageFilesModelParentTypeEnum? decode(dynamic data, {bool allowNull = true}) { + StorageFilesModelParentTypeEnum? decode(dynamic data, + {bool allowNull = true}) { if (data != null) { switch (data) { - case 'StorageFile': return StorageFilesModelParentTypeEnum.storageFile; + case 'StorageFile': + return StorageFilesModelParentTypeEnum.storageFile; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -329,5 +349,3 @@ class StorageFilesModelParentTypeEnumTypeTransformer { /// Singleton [StorageFilesModelParentTypeEnumTypeTransformer] instance. static StorageFilesModelParentTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/storage_read_model.dart b/lib/model/storage_read_model.dart index 694bbf0..a985002 100644 --- a/lib/model/storage_read_model.dart +++ b/lib/model/storage_read_model.dart @@ -51,30 +51,33 @@ class StorageReadModel { StorageReadModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is StorageReadModel && - other.id == id && - other.type == type && - other.name == name && - other.hasApplicationPassword == hasApplicationPassword && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.embedded == embedded && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is StorageReadModel && + other.id == id && + other.type == type && + other.name == name && + other.hasApplicationPassword == hasApplicationPassword && + other.createdAt == createdAt && + other.updatedAt == updatedAt && + other.embedded == embedded && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (hasApplicationPassword == null ? 0 : hasApplicationPassword!.hashCode) + - (createdAt == null ? 0 : createdAt!.hashCode) + - (updatedAt == null ? 0 : updatedAt!.hashCode) + - (embedded == null ? 0 : embedded!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (id == null ? 0 : id!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (name == null ? 0 : name!.hashCode) + + (hasApplicationPassword == null ? 0 : hasApplicationPassword!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (updatedAt == null ? 0 : updatedAt!.hashCode) + + (embedded == null ? 0 : embedded!.hashCode) + + (links.hashCode); @override - String toString() => 'StorageReadModel[id=$id, type=$type, name=$name, hasApplicationPassword=$hasApplicationPassword, createdAt=$createdAt, updatedAt=$updatedAt, embedded=$embedded, links=$links]'; + String toString() => + 'StorageReadModel[id=$id, type=$type, name=$name, hasApplicationPassword=$hasApplicationPassword, createdAt=$createdAt, updatedAt=$updatedAt, embedded=$embedded, links=$links]'; Map toJson() { final json = {}; @@ -113,7 +116,7 @@ class StorageReadModel { } else { json[r'_embedded'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -129,17 +132,20 @@ class StorageReadModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "StorageReadModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "StorageReadModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "StorageReadModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "StorageReadModel[$key]" has a null value in JSON.'); }); return true; }()); return StorageReadModel( id: mapValueOfType(json, r'id'), - type: Object.fromJson(json[r'_type']), + type: StorageReadModelTypeEnum.fromJson(json[r'_type']), name: mapValueOfType(json, r'name'), - hasApplicationPassword: mapValueOfType(json, r'hasApplicationPassword'), + hasApplicationPassword: + mapValueOfType(json, r'hasApplicationPassword'), createdAt: mapValueOfType(json, r'createdAt'), updatedAt: mapValueOfType(json, r'updatedAt'), embedded: StorageReadModelEmbedded.fromJson(json[r'_embedded']), @@ -149,7 +155,10 @@ class StorageReadModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -177,13 +186,19 @@ class StorageReadModel { } // maps a json object with a list of StorageReadModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = StorageReadModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = StorageReadModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -198,7 +213,6 @@ class StorageReadModel { }; } - class StorageReadModelTypeEnum { /// Instantiate a new enum with the provided [value]. const StorageReadModelTypeEnum._(this.value); @@ -218,9 +232,13 @@ class StorageReadModelTypeEnum { storage, ]; - static StorageReadModelTypeEnum? fromJson(dynamic value) => StorageReadModelTypeEnumTypeTransformer().decode(value); + static StorageReadModelTypeEnum? fromJson(dynamic value) => + StorageReadModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -237,7 +255,8 @@ class StorageReadModelTypeEnum { /// Transformation class that can [encode] an instance of [StorageReadModelTypeEnum] to Object, /// and [decode] dynamic data back to [StorageReadModelTypeEnum]. class StorageReadModelTypeEnumTypeTransformer { - factory StorageReadModelTypeEnumTypeTransformer() => _instance ??= const StorageReadModelTypeEnumTypeTransformer._(); + factory StorageReadModelTypeEnumTypeTransformer() => + _instance ??= const StorageReadModelTypeEnumTypeTransformer._(); const StorageReadModelTypeEnumTypeTransformer._(); @@ -254,7 +273,8 @@ class StorageReadModelTypeEnumTypeTransformer { StorageReadModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Storage': return StorageReadModelTypeEnum.storage; + case 'Storage': + return StorageReadModelTypeEnum.storage; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -267,5 +287,3 @@ class StorageReadModelTypeEnumTypeTransformer { /// Singleton [StorageReadModelTypeEnumTypeTransformer] instance. static StorageReadModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/time_entry_activity_model.dart b/lib/model/time_entry_activity_model.dart index 48dc3e2..d9e6994 100644 --- a/lib/model/time_entry_activity_model.dart +++ b/lib/model/time_entry_activity_model.dart @@ -43,28 +43,31 @@ class TimeEntryActivityModel { TimeEntryActivityModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is TimeEntryActivityModel && - other.type == type && - other.id == id && - other.name == name && - other.position == position && - other.default_ == default_ && - other.embedded == embedded && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is TimeEntryActivityModel && + other.type == type && + other.id == id && + other.name == name && + other.position == position && + other.default_ == default_ && + other.embedded == embedded && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (id == null ? 0 : id!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (position == null ? 0 : position!.hashCode) + - (default_ == null ? 0 : default_!.hashCode) + - (embedded.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (id == null ? 0 : id!.hashCode) + + (name == null ? 0 : name!.hashCode) + + (position == null ? 0 : position!.hashCode) + + (default_ == null ? 0 : default_!.hashCode) + + (embedded.hashCode) + + (links.hashCode); @override - String toString() => 'TimeEntryActivityModel[type=$type, id=$id, name=$name, position=$position, default_=$default_, embedded=$embedded, links=$links]'; + String toString() => + 'TimeEntryActivityModel[type=$type, id=$id, name=$name, position=$position, default_=$default_, embedded=$embedded, links=$links]'; Map toJson() { final json = {}; @@ -93,8 +96,8 @@ class TimeEntryActivityModel { } else { json[r'default'] = null; } - json[r'_embedded'] = this.embedded; - json[r'_links'] = this.links; + json[r'_embedded'] = this.embedded; + json[r'_links'] = this.links; return json; } @@ -110,14 +113,16 @@ class TimeEntryActivityModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "TimeEntryActivityModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "TimeEntryActivityModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "TimeEntryActivityModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "TimeEntryActivityModel[$key]" has a null value in JSON.'); }); return true; }()); return TimeEntryActivityModel( - type: Object.fromJson(json[r'_type']), + type: TimeEntryActivityModelTypeEnum.fromJson(json[r'_type']), id: mapValueOfType(json, r'id'), name: mapValueOfType(json, r'name'), position: mapValueOfType(json, r'position'), @@ -129,7 +134,10 @@ class TimeEntryActivityModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -157,13 +165,19 @@ class TimeEntryActivityModel { } // maps a json object with a list of TimeEntryActivityModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = TimeEntryActivityModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = TimeEntryActivityModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -181,7 +195,6 @@ class TimeEntryActivityModel { }; } - class TimeEntryActivityModelTypeEnum { /// Instantiate a new enum with the provided [value]. const TimeEntryActivityModelTypeEnum._(this.value); @@ -194,16 +207,21 @@ class TimeEntryActivityModelTypeEnum { Object toJson() => value; - static const timeEntriesActivity = TimeEntryActivityModelTypeEnum._('TimeEntriesActivity'); + static const timeEntriesActivity = + TimeEntryActivityModelTypeEnum._('TimeEntriesActivity'); /// List of all possible values in this [enum][TimeEntryActivityModelTypeEnum]. static const values = [ timeEntriesActivity, ]; - static TimeEntryActivityModelTypeEnum? fromJson(dynamic value) => TimeEntryActivityModelTypeEnumTypeTransformer().decode(value); + static TimeEntryActivityModelTypeEnum? fromJson(dynamic value) => + TimeEntryActivityModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -220,7 +238,8 @@ class TimeEntryActivityModelTypeEnum { /// Transformation class that can [encode] an instance of [TimeEntryActivityModelTypeEnum] to Object, /// and [decode] dynamic data back to [TimeEntryActivityModelTypeEnum]. class TimeEntryActivityModelTypeEnumTypeTransformer { - factory TimeEntryActivityModelTypeEnumTypeTransformer() => _instance ??= const TimeEntryActivityModelTypeEnumTypeTransformer._(); + factory TimeEntryActivityModelTypeEnumTypeTransformer() => + _instance ??= const TimeEntryActivityModelTypeEnumTypeTransformer._(); const TimeEntryActivityModelTypeEnumTypeTransformer._(); @@ -234,10 +253,12 @@ class TimeEntryActivityModelTypeEnumTypeTransformer { /// /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, /// and users are still using an old app with the old code. - TimeEntryActivityModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { + TimeEntryActivityModelTypeEnum? decode(dynamic data, + {bool allowNull = true}) { if (data != null) { switch (data) { - case 'TimeEntriesActivity': return TimeEntryActivityModelTypeEnum.timeEntriesActivity; + case 'TimeEntriesActivity': + return TimeEntryActivityModelTypeEnum.timeEntriesActivity; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -250,5 +271,3 @@ class TimeEntryActivityModelTypeEnumTypeTransformer { /// Singleton [TimeEntryActivityModelTypeEnumTypeTransformer] instance. static TimeEntryActivityModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/user_model.dart b/lib/model/user_model.dart index 8e17373..05381a4 100644 --- a/lib/model/user_model.dart +++ b/lib/model/user_model.dart @@ -76,44 +76,47 @@ class UserModel { UserModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is UserModel && - other.type == type && - other.id == id && - other.login == login && - other.firstName == firstName && - other.lastName == lastName && - other.name == name && - other.email == email && - other.admin == admin && - other.avatar == avatar && - other.status == status && - other.language == language && - other.identityUrl == identityUrl && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is UserModel && + other.type == type && + other.id == id && + other.login == login && + other.firstName == firstName && + other.lastName == lastName && + other.name == name && + other.email == email && + other.admin == admin && + other.avatar == avatar && + other.status == status && + other.language == language && + other.identityUrl == identityUrl && + other.createdAt == createdAt && + other.updatedAt == updatedAt && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (id == null ? 0 : id!.hashCode) + - (login == null ? 0 : login!.hashCode) + - (firstName == null ? 0 : firstName!.hashCode) + - (lastName == null ? 0 : lastName!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (admin == null ? 0 : admin!.hashCode) + - (avatar == null ? 0 : avatar!.hashCode) + - (status == null ? 0 : status!.hashCode) + - (language == null ? 0 : language!.hashCode) + - (identityUrl == null ? 0 : identityUrl!.hashCode) + - (createdAt == null ? 0 : createdAt!.hashCode) + - (updatedAt == null ? 0 : updatedAt!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (id == null ? 0 : id!.hashCode) + + (login == null ? 0 : login!.hashCode) + + (firstName == null ? 0 : firstName!.hashCode) + + (lastName == null ? 0 : lastName!.hashCode) + + (name == null ? 0 : name!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (admin == null ? 0 : admin!.hashCode) + + (avatar == null ? 0 : avatar!.hashCode) + + (status == null ? 0 : status!.hashCode) + + (language == null ? 0 : language!.hashCode) + + (identityUrl == null ? 0 : identityUrl!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (updatedAt == null ? 0 : updatedAt!.hashCode) + + (links.hashCode); @override - String toString() => 'UserModel[type=$type, id=$id, login=$login, firstName=$firstName, lastName=$lastName, name=$name, email=$email, admin=$admin, avatar=$avatar, status=$status, language=$language, identityUrl=$identityUrl, createdAt=$createdAt, updatedAt=$updatedAt, links=$links]'; + String toString() => + 'UserModel[type=$type, id=$id, login=$login, firstName=$firstName, lastName=$lastName, name=$name, email=$email, admin=$admin, avatar=$avatar, status=$status, language=$language, identityUrl=$identityUrl, createdAt=$createdAt, updatedAt=$updatedAt, links=$links]'; Map toJson() { final json = {}; @@ -187,7 +190,7 @@ class UserModel { } else { json[r'updatedAt'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -203,14 +206,16 @@ class UserModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "UserModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "UserModel[$key]" has a null value in JSON.'); }); return true; }()); return UserModel( - type: Object.fromJson(json[r'_type']), + type: UserModelTypeEnum.fromJson(json[r'_type']), id: mapValueOfType(json, r'id'), login: mapValueOfType(json, r'login'), firstName: mapValueOfType(json, r'firstName'), @@ -230,7 +235,10 @@ class UserModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -258,13 +266,19 @@ class UserModel { } // maps a json object with a list of UserModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = UserModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = UserModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -280,7 +294,6 @@ class UserModel { }; } - class UserModelTypeEnum { /// Instantiate a new enum with the provided [value]. const UserModelTypeEnum._(this.value); @@ -300,9 +313,13 @@ class UserModelTypeEnum { user, ]; - static UserModelTypeEnum? fromJson(dynamic value) => UserModelTypeEnumTypeTransformer().decode(value); + static UserModelTypeEnum? fromJson(dynamic value) => + UserModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -319,7 +336,8 @@ class UserModelTypeEnum { /// Transformation class that can [encode] an instance of [UserModelTypeEnum] to Object, /// and [decode] dynamic data back to [UserModelTypeEnum]. class UserModelTypeEnumTypeTransformer { - factory UserModelTypeEnumTypeTransformer() => _instance ??= const UserModelTypeEnumTypeTransformer._(); + factory UserModelTypeEnumTypeTransformer() => + _instance ??= const UserModelTypeEnumTypeTransformer._(); const UserModelTypeEnumTypeTransformer._(); @@ -336,7 +354,8 @@ class UserModelTypeEnumTypeTransformer { UserModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'User': return UserModelTypeEnum.user; + case 'User': + return UserModelTypeEnum.user; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -349,5 +368,3 @@ class UserModelTypeEnumTypeTransformer { /// Singleton [UserModelTypeEnumTypeTransformer] instance. static UserModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/values_property_model.dart b/lib/model/values_property_model.dart index c2a2216..3f94cf4 100644 --- a/lib/model/values_property_model.dart +++ b/lib/model/values_property_model.dart @@ -30,22 +30,25 @@ class ValuesPropertyModel { ValuesPropertyModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is ValuesPropertyModel && - other.type == type && - other.property == property && - other.value == value && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is ValuesPropertyModel && + other.type == type && + other.property == property && + other.value == value && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (property == null ? 0 : property!.hashCode) + - (value == null ? 0 : value!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (property == null ? 0 : property!.hashCode) + + (value == null ? 0 : value!.hashCode) + + (links.hashCode); @override - String toString() => 'ValuesPropertyModel[type=$type, property=$property, value=$value, links=$links]'; + String toString() => + 'ValuesPropertyModel[type=$type, property=$property, value=$value, links=$links]'; Map toJson() { final json = {}; @@ -64,7 +67,7 @@ class ValuesPropertyModel { } else { json[r'value'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -80,14 +83,16 @@ class ValuesPropertyModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ValuesPropertyModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ValuesPropertyModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "ValuesPropertyModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "ValuesPropertyModel[$key]" has a null value in JSON.'); }); return true; }()); return ValuesPropertyModel( - type: Object.fromJson(json[r'_type']), + type: ValuesPropertyModelTypeEnum.fromJson(json[r'_type']), property: mapValueOfType(json, r'property'), value: mapValueOfType(json, r'value'), links: ValuesPropertyModelLinks.fromJson(json[r'_links'])!, @@ -96,7 +101,10 @@ class ValuesPropertyModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -124,13 +132,19 @@ class ValuesPropertyModel { } // maps a json object with a list of ValuesPropertyModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = ValuesPropertyModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = ValuesPropertyModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -145,7 +159,6 @@ class ValuesPropertyModel { }; } - class ValuesPropertyModelTypeEnum { /// Instantiate a new enum with the provided [value]. const ValuesPropertyModelTypeEnum._(this.value); @@ -158,16 +171,21 @@ class ValuesPropertyModelTypeEnum { Object toJson() => value; - static const valuesColonColonProperty = ValuesPropertyModelTypeEnum._('Values::Property'); + static const valuesColonColonProperty = + ValuesPropertyModelTypeEnum._('Values::Property'); /// List of all possible values in this [enum][ValuesPropertyModelTypeEnum]. static const values = [ valuesColonColonProperty, ]; - static ValuesPropertyModelTypeEnum? fromJson(dynamic value) => ValuesPropertyModelTypeEnumTypeTransformer().decode(value); + static ValuesPropertyModelTypeEnum? fromJson(dynamic value) => + ValuesPropertyModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -184,7 +202,8 @@ class ValuesPropertyModelTypeEnum { /// Transformation class that can [encode] an instance of [ValuesPropertyModelTypeEnum] to Object, /// and [decode] dynamic data back to [ValuesPropertyModelTypeEnum]. class ValuesPropertyModelTypeEnumTypeTransformer { - factory ValuesPropertyModelTypeEnumTypeTransformer() => _instance ??= const ValuesPropertyModelTypeEnumTypeTransformer._(); + factory ValuesPropertyModelTypeEnumTypeTransformer() => + _instance ??= const ValuesPropertyModelTypeEnumTypeTransformer._(); const ValuesPropertyModelTypeEnumTypeTransformer._(); @@ -201,7 +220,8 @@ class ValuesPropertyModelTypeEnumTypeTransformer { ValuesPropertyModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Values::Property': return ValuesPropertyModelTypeEnum.valuesColonColonProperty; + case 'Values::Property': + return ValuesPropertyModelTypeEnum.valuesColonColonProperty; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -214,5 +234,3 @@ class ValuesPropertyModelTypeEnumTypeTransformer { /// Singleton [ValuesPropertyModelTypeEnumTypeTransformer] instance. static ValuesPropertyModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/week_day_collection_write_model.dart b/lib/model/week_day_collection_write_model.dart index fc1963d..96c6989 100644 --- a/lib/model/week_day_collection_write_model.dart +++ b/lib/model/week_day_collection_write_model.dart @@ -22,18 +22,20 @@ class WeekDayCollectionWriteModel { WeekDayCollectionWriteModelEmbedded embedded; @override - bool operator ==(Object other) => identical(this, other) || other is WeekDayCollectionWriteModel && - other.type == type && - other.embedded == embedded; + bool operator ==(Object other) => + identical(this, other) || + other is WeekDayCollectionWriteModel && + other.type == type && + other.embedded == embedded; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (embedded.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + (embedded.hashCode); @override - String toString() => 'WeekDayCollectionWriteModel[type=$type, embedded=$embedded]'; + String toString() => + 'WeekDayCollectionWriteModel[type=$type, embedded=$embedded]'; Map toJson() { final json = {}; @@ -42,7 +44,7 @@ class WeekDayCollectionWriteModel { } else { json[r'_type'] = null; } - json[r'_embedded'] = this.embedded; + json[r'_embedded'] = this.embedded; return json; } @@ -58,21 +60,27 @@ class WeekDayCollectionWriteModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "WeekDayCollectionWriteModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "WeekDayCollectionWriteModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "WeekDayCollectionWriteModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "WeekDayCollectionWriteModel[$key]" has a null value in JSON.'); }); return true; }()); return WeekDayCollectionWriteModel( - type: Object.fromJson(json[r'_type']), - embedded: WeekDayCollectionWriteModelEmbedded.fromJson(json[r'_embedded'])!, + type: WeekDayCollectionWriteModelTypeEnum.fromJson(json[r'_type']), + embedded: + WeekDayCollectionWriteModelEmbedded.fromJson(json[r'_embedded'])!, ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -100,13 +108,19 @@ class WeekDayCollectionWriteModel { } // maps a json object with a list of WeekDayCollectionWriteModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = WeekDayCollectionWriteModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = WeekDayCollectionWriteModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -119,7 +133,6 @@ class WeekDayCollectionWriteModel { }; } - class WeekDayCollectionWriteModelTypeEnum { /// Instantiate a new enum with the provided [value]. const WeekDayCollectionWriteModelTypeEnum._(this.value); @@ -139,9 +152,13 @@ class WeekDayCollectionWriteModelTypeEnum { collection, ]; - static WeekDayCollectionWriteModelTypeEnum? fromJson(dynamic value) => WeekDayCollectionWriteModelTypeEnumTypeTransformer().decode(value); + static WeekDayCollectionWriteModelTypeEnum? fromJson(dynamic value) => + WeekDayCollectionWriteModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -158,7 +175,8 @@ class WeekDayCollectionWriteModelTypeEnum { /// Transformation class that can [encode] an instance of [WeekDayCollectionWriteModelTypeEnum] to Object, /// and [decode] dynamic data back to [WeekDayCollectionWriteModelTypeEnum]. class WeekDayCollectionWriteModelTypeEnumTypeTransformer { - factory WeekDayCollectionWriteModelTypeEnumTypeTransformer() => _instance ??= const WeekDayCollectionWriteModelTypeEnumTypeTransformer._(); + factory WeekDayCollectionWriteModelTypeEnumTypeTransformer() => _instance ??= + const WeekDayCollectionWriteModelTypeEnumTypeTransformer._(); const WeekDayCollectionWriteModelTypeEnumTypeTransformer._(); @@ -172,10 +190,12 @@ class WeekDayCollectionWriteModelTypeEnumTypeTransformer { /// /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, /// and users are still using an old app with the old code. - WeekDayCollectionWriteModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { + WeekDayCollectionWriteModelTypeEnum? decode(dynamic data, + {bool allowNull = true}) { if (data != null) { switch (data) { - case 'Collection': return WeekDayCollectionWriteModelTypeEnum.collection; + case 'Collection': + return WeekDayCollectionWriteModelTypeEnum.collection; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -188,5 +208,3 @@ class WeekDayCollectionWriteModelTypeEnumTypeTransformer { /// Singleton [WeekDayCollectionWriteModelTypeEnumTypeTransformer] instance. static WeekDayCollectionWriteModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/week_day_model.dart b/lib/model/week_day_model.dart index 208f51e..2c8a74f 100644 --- a/lib/model/week_day_model.dart +++ b/lib/model/week_day_model.dart @@ -43,24 +43,27 @@ class WeekDayModel { WeekDaySelfLinkModel? links; @override - bool operator ==(Object other) => identical(this, other) || other is WeekDayModel && - other.type == type && - other.day == day && - other.name == name && - other.working == working && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is WeekDayModel && + other.type == type && + other.day == day && + other.name == name && + other.working == working && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (day == null ? 0 : day!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (working == null ? 0 : working!.hashCode) + - (links == null ? 0 : links!.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (day == null ? 0 : day!.hashCode) + + (name == null ? 0 : name!.hashCode) + + (working == null ? 0 : working!.hashCode) + + (links == null ? 0 : links!.hashCode); @override - String toString() => 'WeekDayModel[type=$type, day=$day, name=$name, working=$working, links=$links]'; + String toString() => + 'WeekDayModel[type=$type, day=$day, name=$name, working=$working, links=$links]'; Map toJson() { final json = {}; @@ -104,14 +107,16 @@ class WeekDayModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "WeekDayModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "WeekDayModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "WeekDayModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "WeekDayModel[$key]" has a null value in JSON.'); }); return true; }()); return WeekDayModel( - type: Object.fromJson(json[r'_type']), + type: WeekDayModelTypeEnum.fromJson(json[r'_type']), day: mapValueOfType(json, r'day'), name: mapValueOfType(json, r'name'), working: mapValueOfType(json, r'working'), @@ -121,7 +126,10 @@ class WeekDayModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -149,13 +157,19 @@ class WeekDayModel { } // maps a json object with a list of WeekDayModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = WeekDayModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = WeekDayModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -170,7 +184,6 @@ class WeekDayModel { }; } - class WeekDayModelTypeEnum { /// Instantiate a new enum with the provided [value]. const WeekDayModelTypeEnum._(this.value); @@ -190,9 +203,13 @@ class WeekDayModelTypeEnum { weekDay, ]; - static WeekDayModelTypeEnum? fromJson(dynamic value) => WeekDayModelTypeEnumTypeTransformer().decode(value); + static WeekDayModelTypeEnum? fromJson(dynamic value) => + WeekDayModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -209,7 +226,8 @@ class WeekDayModelTypeEnum { /// Transformation class that can [encode] an instance of [WeekDayModelTypeEnum] to Object, /// and [decode] dynamic data back to [WeekDayModelTypeEnum]. class WeekDayModelTypeEnumTypeTransformer { - factory WeekDayModelTypeEnumTypeTransformer() => _instance ??= const WeekDayModelTypeEnumTypeTransformer._(); + factory WeekDayModelTypeEnumTypeTransformer() => + _instance ??= const WeekDayModelTypeEnumTypeTransformer._(); const WeekDayModelTypeEnumTypeTransformer._(); @@ -226,7 +244,8 @@ class WeekDayModelTypeEnumTypeTransformer { WeekDayModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'WeekDay': return WeekDayModelTypeEnum.weekDay; + case 'WeekDay': + return WeekDayModelTypeEnum.weekDay; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -239,5 +258,3 @@ class WeekDayModelTypeEnumTypeTransformer { /// Singleton [WeekDayModelTypeEnumTypeTransformer] instance. static WeekDayModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/week_day_write_model.dart b/lib/model/week_day_write_model.dart index 5ef3278..786336c 100644 --- a/lib/model/week_day_write_model.dart +++ b/lib/model/week_day_write_model.dart @@ -23,15 +23,17 @@ class WeekDayWriteModel { Object? working; @override - bool operator ==(Object other) => identical(this, other) || other is WeekDayWriteModel && - other.type == type && - other.working == working; + bool operator ==(Object other) => + identical(this, other) || + other is WeekDayWriteModel && + other.type == type && + other.working == working; @override int get hashCode => - // ignore: unnecessary_parenthesis - (type == null ? 0 : type!.hashCode) + - (working == null ? 0 : working!.hashCode); + // ignore: unnecessary_parenthesis + (type == null ? 0 : type!.hashCode) + + (working == null ? 0 : working!.hashCode); @override String toString() => 'WeekDayWriteModel[type=$type, working=$working]'; @@ -63,21 +65,26 @@ class WeekDayWriteModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "WeekDayWriteModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "WeekDayWriteModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "WeekDayWriteModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "WeekDayWriteModel[$key]" has a null value in JSON.'); }); return true; }()); return WeekDayWriteModel( - type: Object.fromJson(json[r'_type']), + type: WeekDayWriteModelTypeEnum.fromJson(json[r'_type']), working: mapValueOfType(json, r'working'), ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -105,13 +112,19 @@ class WeekDayWriteModel { } // maps a json object with a list of WeekDayWriteModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = WeekDayWriteModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = WeekDayWriteModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -124,7 +137,6 @@ class WeekDayWriteModel { }; } - class WeekDayWriteModelTypeEnum { /// Instantiate a new enum with the provided [value]. const WeekDayWriteModelTypeEnum._(this.value); @@ -144,9 +156,13 @@ class WeekDayWriteModelTypeEnum { weekDay, ]; - static WeekDayWriteModelTypeEnum? fromJson(dynamic value) => WeekDayWriteModelTypeEnumTypeTransformer().decode(value); + static WeekDayWriteModelTypeEnum? fromJson(dynamic value) => + WeekDayWriteModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -163,7 +179,8 @@ class WeekDayWriteModelTypeEnum { /// Transformation class that can [encode] an instance of [WeekDayWriteModelTypeEnum] to Object, /// and [decode] dynamic data back to [WeekDayWriteModelTypeEnum]. class WeekDayWriteModelTypeEnumTypeTransformer { - factory WeekDayWriteModelTypeEnumTypeTransformer() => _instance ??= const WeekDayWriteModelTypeEnumTypeTransformer._(); + factory WeekDayWriteModelTypeEnumTypeTransformer() => + _instance ??= const WeekDayWriteModelTypeEnumTypeTransformer._(); const WeekDayWriteModelTypeEnumTypeTransformer._(); @@ -180,7 +197,8 @@ class WeekDayWriteModelTypeEnumTypeTransformer { WeekDayWriteModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'WeekDay': return WeekDayWriteModelTypeEnum.weekDay; + case 'WeekDay': + return WeekDayWriteModelTypeEnum.weekDay; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -193,5 +211,3 @@ class WeekDayWriteModelTypeEnumTypeTransformer { /// Singleton [WeekDayWriteModelTypeEnumTypeTransformer] instance. static WeekDayWriteModelTypeEnumTypeTransformer? _instance; } - - diff --git a/lib/model/work_package_model.dart b/lib/model/work_package_model.dart index 56c4140..21261ab 100644 --- a/lib/model/work_package_model.dart +++ b/lib/model/work_package_model.dart @@ -107,56 +107,59 @@ class WorkPackageModel { WorkPackageModelLinks links; @override - bool operator ==(Object other) => identical(this, other) || other is WorkPackageModel && - other.id == id && - other.lockVersion == lockVersion && - other.subject == subject && - other.type == type && - other.description == description && - other.scheduleManually == scheduleManually && - other.readonly == readonly && - other.startDate == startDate && - other.dueDate == dueDate && - other.date == date && - other.derivedStartDate == derivedStartDate && - other.derivedDueDate == derivedDueDate && - other.duration == duration && - other.estimatedTime == estimatedTime && - other.derivedEstimatedTime == derivedEstimatedTime && - other.ignoreNonWorkingDays == ignoreNonWorkingDays && - other.spentTime == spentTime && - other.percentageDone == percentageDone && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.links == links; + bool operator ==(Object other) => + identical(this, other) || + other is WorkPackageModel && + other.id == id && + other.lockVersion == lockVersion && + other.subject == subject && + other.type == type && + other.description == description && + other.scheduleManually == scheduleManually && + other.readonly == readonly && + other.startDate == startDate && + other.dueDate == dueDate && + other.date == date && + other.derivedStartDate == derivedStartDate && + other.derivedDueDate == derivedDueDate && + other.duration == duration && + other.estimatedTime == estimatedTime && + other.derivedEstimatedTime == derivedEstimatedTime && + other.ignoreNonWorkingDays == ignoreNonWorkingDays && + other.spentTime == spentTime && + other.percentageDone == percentageDone && + other.createdAt == createdAt && + other.updatedAt == updatedAt && + other.links == links; @override int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (lockVersion == null ? 0 : lockVersion!.hashCode) + - (subject == null ? 0 : subject!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (scheduleManually == null ? 0 : scheduleManually!.hashCode) + - (readonly == null ? 0 : readonly!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode) + - (dueDate == null ? 0 : dueDate!.hashCode) + - (date == null ? 0 : date!.hashCode) + - (derivedStartDate == null ? 0 : derivedStartDate!.hashCode) + - (derivedDueDate == null ? 0 : derivedDueDate!.hashCode) + - (duration == null ? 0 : duration!.hashCode) + - (estimatedTime == null ? 0 : estimatedTime!.hashCode) + - (derivedEstimatedTime == null ? 0 : derivedEstimatedTime!.hashCode) + - (ignoreNonWorkingDays == null ? 0 : ignoreNonWorkingDays!.hashCode) + - (spentTime == null ? 0 : spentTime!.hashCode) + - (percentageDone == null ? 0 : percentageDone!.hashCode) + - (createdAt == null ? 0 : createdAt!.hashCode) + - (updatedAt == null ? 0 : updatedAt!.hashCode) + - (links.hashCode); + // ignore: unnecessary_parenthesis + (id == null ? 0 : id!.hashCode) + + (lockVersion == null ? 0 : lockVersion!.hashCode) + + (subject == null ? 0 : subject!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (description == null ? 0 : description!.hashCode) + + (scheduleManually == null ? 0 : scheduleManually!.hashCode) + + (readonly == null ? 0 : readonly!.hashCode) + + (startDate == null ? 0 : startDate!.hashCode) + + (dueDate == null ? 0 : dueDate!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (derivedStartDate == null ? 0 : derivedStartDate!.hashCode) + + (derivedDueDate == null ? 0 : derivedDueDate!.hashCode) + + (duration == null ? 0 : duration!.hashCode) + + (estimatedTime == null ? 0 : estimatedTime!.hashCode) + + (derivedEstimatedTime == null ? 0 : derivedEstimatedTime!.hashCode) + + (ignoreNonWorkingDays == null ? 0 : ignoreNonWorkingDays!.hashCode) + + (spentTime == null ? 0 : spentTime!.hashCode) + + (percentageDone == null ? 0 : percentageDone!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (updatedAt == null ? 0 : updatedAt!.hashCode) + + (links.hashCode); @override - String toString() => 'WorkPackageModel[id=$id, lockVersion=$lockVersion, subject=$subject, type=$type, description=$description, scheduleManually=$scheduleManually, readonly=$readonly, startDate=$startDate, dueDate=$dueDate, date=$date, derivedStartDate=$derivedStartDate, derivedDueDate=$derivedDueDate, duration=$duration, estimatedTime=$estimatedTime, derivedEstimatedTime=$derivedEstimatedTime, ignoreNonWorkingDays=$ignoreNonWorkingDays, spentTime=$spentTime, percentageDone=$percentageDone, createdAt=$createdAt, updatedAt=$updatedAt, links=$links]'; + String toString() => + 'WorkPackageModel[id=$id, lockVersion=$lockVersion, subject=$subject, type=$type, description=$description, scheduleManually=$scheduleManually, readonly=$readonly, startDate=$startDate, dueDate=$dueDate, date=$date, derivedStartDate=$derivedStartDate, derivedDueDate=$derivedDueDate, duration=$duration, estimatedTime=$estimatedTime, derivedEstimatedTime=$derivedEstimatedTime, ignoreNonWorkingDays=$ignoreNonWorkingDays, spentTime=$spentTime, percentageDone=$percentageDone, createdAt=$createdAt, updatedAt=$updatedAt, links=$links]'; Map toJson() { final json = {}; @@ -260,7 +263,7 @@ class WorkPackageModel { } else { json[r'updatedAt'] = null; } - json[r'_links'] = this.links; + json[r'_links'] = this.links; return json; } @@ -276,8 +279,10 @@ class WorkPackageModel { // Note 2: this code is stripped in release mode! assert(() { requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "WorkPackageModel[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "WorkPackageModel[$key]" has a null value in JSON.'); + assert(json.containsKey(key), + 'Required key "WorkPackageModel[$key]" is missing from JSON.'); + assert(json[key] != null, + 'Required key "WorkPackageModel[$key]" has a null value in JSON.'); }); return true; }()); @@ -286,7 +291,7 @@ class WorkPackageModel { id: mapValueOfType(json, r'id'), lockVersion: mapValueOfType(json, r'lockVersion'), subject: mapValueOfType(json, r'subject'), - type: Object.fromJson(json[r'_type']), + type: WorkPackageModelTypeEnum.fromJson(json[r'_type']), description: WorkPackageModelDescription.fromJson(json[r'description']), scheduleManually: mapValueOfType(json, r'scheduleManually'), readonly: mapValueOfType(json, r'readonly'), @@ -297,8 +302,10 @@ class WorkPackageModel { derivedDueDate: mapValueOfType(json, r'derivedDueDate'), duration: mapValueOfType(json, r'duration'), estimatedTime: mapValueOfType(json, r'estimatedTime'), - derivedEstimatedTime: mapValueOfType(json, r'derivedEstimatedTime'), - ignoreNonWorkingDays: mapValueOfType(json, r'ignoreNonWorkingDays'), + derivedEstimatedTime: + mapValueOfType(json, r'derivedEstimatedTime'), + ignoreNonWorkingDays: + mapValueOfType(json, r'ignoreNonWorkingDays'), spentTime: mapValueOfType(json, r'spentTime'), percentageDone: mapValueOfType(json, r'percentageDone'), createdAt: mapValueOfType(json, r'createdAt'), @@ -309,7 +316,10 @@ class WorkPackageModel { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -337,13 +347,19 @@ class WorkPackageModel { } // maps a json object with a list of WorkPackageModel-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + static Map> mapListFromJson( + dynamic json, { + bool growable = false, + }) { final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = WorkPackageModel.listFromJson(entry.value, growable: growable,); + map[entry.key] = WorkPackageModel.listFromJson( + entry.value, + growable: growable, + ); } } return map; @@ -356,7 +372,6 @@ class WorkPackageModel { }; } - class WorkPackageModelTypeEnum { /// Instantiate a new enum with the provided [value]. const WorkPackageModelTypeEnum._(this.value); @@ -376,9 +391,13 @@ class WorkPackageModelTypeEnum { workPackage, ]; - static WorkPackageModelTypeEnum? fromJson(dynamic value) => WorkPackageModelTypeEnumTypeTransformer().decode(value); + static WorkPackageModelTypeEnum? fromJson(dynamic value) => + WorkPackageModelTypeEnumTypeTransformer().decode(value); - static List listFromJson(dynamic json, {bool growable = false,}) { + static List listFromJson( + dynamic json, { + bool growable = false, + }) { final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { @@ -395,7 +414,8 @@ class WorkPackageModelTypeEnum { /// Transformation class that can [encode] an instance of [WorkPackageModelTypeEnum] to Object, /// and [decode] dynamic data back to [WorkPackageModelTypeEnum]. class WorkPackageModelTypeEnumTypeTransformer { - factory WorkPackageModelTypeEnumTypeTransformer() => _instance ??= const WorkPackageModelTypeEnumTypeTransformer._(); + factory WorkPackageModelTypeEnumTypeTransformer() => + _instance ??= const WorkPackageModelTypeEnumTypeTransformer._(); const WorkPackageModelTypeEnumTypeTransformer._(); @@ -412,7 +432,8 @@ class WorkPackageModelTypeEnumTypeTransformer { WorkPackageModelTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case 'WorkPackage': return WorkPackageModelTypeEnum.workPackage; + case 'WorkPackage': + return WorkPackageModelTypeEnum.workPackage; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); @@ -425,5 +446,3 @@ class WorkPackageModelTypeEnumTypeTransformer { /// Singleton [WorkPackageModelTypeEnumTypeTransformer] instance. static WorkPackageModelTypeEnumTypeTransformer? _instance; } - -