fix: resolved type conversion

This commit is contained in:
Wlad Meixner 2023-11-05 21:14:39 +01:00
parent 4a3123aa74
commit 064ffcd2c1
19 changed files with 1530 additions and 1210 deletions

443
README.md
View File

@ -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,217 +195,216 @@ 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
@ -792,17 +796,12 @@ Class | Method | HTTP request | Description
- [WorkPackagesModelAllOfLinks](doc//WorkPackagesModelAllOfLinks.md)
- [WorkPackagesModelAllOfLinksSelf](doc//WorkPackagesModelAllOfLinksSelf.md)
## Documentation For Authorization
Authentication schemes defined for the API:
### BasicAuth
- **Type**: HTTP Basic authentication
## Author

View File

@ -30,7 +30,9 @@ class NotificationModelDetailsInner {
ValuesPropertyModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is NotificationModelDetailsInner &&
bool operator ==(Object other) =>
identical(this, other) ||
other is NotificationModelDetailsInner &&
other.type == type &&
other.property == property &&
other.value == value &&
@ -45,7 +47,8 @@ class NotificationModelDetailsInner {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'property'),
value: mapValueOfType<Object>(json, r'value'),
links: ValuesPropertyModelLinks.fromJson(json[r'_links'])!,
@ -96,7 +101,10 @@ class NotificationModelDetailsInner {
return null;
}
static List<NotificationModelDetailsInner> listFromJson(dynamic json, {bool growable = false,}) {
static List<NotificationModelDetailsInner> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <NotificationModelDetailsInner>[];
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<String, List<NotificationModelDetailsInner>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<NotificationModelDetailsInner>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<NotificationModelDetailsInner>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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 = <NotificationModelDetailsInnerTypeEnum>[
valuesColonColonProperty,
];
static NotificationModelDetailsInnerTypeEnum? fromJson(dynamic value) => NotificationModelDetailsInnerTypeEnumTypeTransformer().decode(value);
static NotificationModelDetailsInnerTypeEnum? fromJson(dynamic value) =>
NotificationModelDetailsInnerTypeEnumTypeTransformer().decode(value);
static List<NotificationModelDetailsInnerTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<NotificationModelDetailsInnerTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <NotificationModelDetailsInnerTypeEnum>[];
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;
}

View File

@ -107,7 +107,9 @@ class NotificationModelEmbeddedResource {
WorkPackageModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is NotificationModelEmbeddedResource &&
bool operator ==(Object other) =>
identical(this, other) ||
other is NotificationModelEmbeddedResource &&
other.id == id &&
other.lockVersion == lockVersion &&
other.subject == subject &&
@ -156,7 +158,8 @@ class NotificationModelEmbeddedResource {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
lockVersion: mapValueOfType<Object>(json, r'lockVersion'),
subject: mapValueOfType<Object>(json, r'subject'),
type: Object.fromJson(json[r'_type']),
type:
NotificationModelEmbeddedResourceTypeEnum.fromJson(json[r'_type']),
description: WorkPackageModelDescription.fromJson(json[r'description']),
scheduleManually: mapValueOfType<Object>(json, r'scheduleManually'),
readonly: mapValueOfType<Object>(json, r'readonly'),
@ -297,8 +303,10 @@ class NotificationModelEmbeddedResource {
derivedDueDate: mapValueOfType<Object>(json, r'derivedDueDate'),
duration: mapValueOfType<Object>(json, r'duration'),
estimatedTime: mapValueOfType<Object>(json, r'estimatedTime'),
derivedEstimatedTime: mapValueOfType<Object>(json, r'derivedEstimatedTime'),
ignoreNonWorkingDays: mapValueOfType<Object>(json, r'ignoreNonWorkingDays'),
derivedEstimatedTime:
mapValueOfType<Object>(json, r'derivedEstimatedTime'),
ignoreNonWorkingDays:
mapValueOfType<Object>(json, r'ignoreNonWorkingDays'),
spentTime: mapValueOfType<Object>(json, r'spentTime'),
percentageDone: mapValueOfType<Object>(json, r'percentageDone'),
createdAt: mapValueOfType<Object>(json, r'createdAt'),
@ -309,7 +317,10 @@ class NotificationModelEmbeddedResource {
return null;
}
static List<NotificationModelEmbeddedResource> listFromJson(dynamic json, {bool growable = false,}) {
static List<NotificationModelEmbeddedResource> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <NotificationModelEmbeddedResource>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
@ -322,7 +333,8 @@ class NotificationModelEmbeddedResource {
return result.toList(growable: growable);
}
static Map<String, NotificationModelEmbeddedResource> mapFromJson(dynamic json) {
static Map<String, NotificationModelEmbeddedResource> mapFromJson(
dynamic json) {
final map = <String, NotificationModelEmbeddedResource>{};
if (json is Map && json.isNotEmpty) {
json = json.cast<String, dynamic>(); // 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<String, List<NotificationModelEmbeddedResource>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<NotificationModelEmbeddedResource>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<NotificationModelEmbeddedResource>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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 = <NotificationModelEmbeddedResourceTypeEnum>[
workPackage,
];
static NotificationModelEmbeddedResourceTypeEnum? fromJson(dynamic value) => NotificationModelEmbeddedResourceTypeEnumTypeTransformer().decode(value);
static NotificationModelEmbeddedResourceTypeEnum? fromJson(dynamic value) =>
NotificationModelEmbeddedResourceTypeEnumTypeTransformer().decode(value);
static List<NotificationModelEmbeddedResourceTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<NotificationModelEmbeddedResourceTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <NotificationModelEmbeddedResourceTypeEnum>[];
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;
}

View File

@ -38,7 +38,9 @@ class RoleModel {
RoleModelLinks? links;
@override
bool operator ==(Object other) => identical(this, other) || other is RoleModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is RoleModel &&
other.type == type &&
other.id == id &&
other.name == name &&
@ -53,7 +55,8 @@ class RoleModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
name: mapValueOfType<Object>(json, r'name'),
links: RoleModelLinks.fromJson(json[r'_links']),
@ -108,7 +113,10 @@ class RoleModel {
return null;
}
static List<RoleModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<RoleModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <RoleModel>[];
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<String, List<RoleModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<RoleModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<RoleModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<RoleModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<RoleModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <RoleModelTypeEnum>[];
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;
}

View File

@ -30,7 +30,9 @@ class RootModel {
RootModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is RootModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is RootModel &&
other.type == type &&
other.instanceName == instanceName &&
other.coreVersion == coreVersion &&
@ -45,7 +47,8 @@ class RootModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'instanceName'),
coreVersion: mapValueOfType<Object>(json, r'coreVersion'),
links: RootModelLinks.fromJson(json[r'_links'])!,
@ -96,7 +101,10 @@ class RootModel {
return null;
}
static List<RootModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<RootModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <RootModel>[];
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<String, List<RootModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<RootModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<RootModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<RootModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<RootModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <RootModelTypeEnum>[];
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;
}

View File

@ -26,7 +26,9 @@ class SchemaModel {
SchemaModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is SchemaModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is SchemaModel &&
other.type == type &&
other.dependencies == dependencies &&
other.links == links;
@ -39,7 +41,8 @@ class SchemaModel {
(links.hashCode);
@override
String toString() => 'SchemaModel[type=$type, dependencies=$dependencies, links=$links]';
String toString() =>
'SchemaModel[type=$type, dependencies=$dependencies, links=$links]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'_dependencies'),
links: SchemaModelLinks.fromJson(json[r'_links'])!,
);
@ -84,7 +89,10 @@ class SchemaModel {
return null;
}
static List<SchemaModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<SchemaModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <SchemaModel>[];
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<String, List<SchemaModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<SchemaModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<SchemaModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<SchemaModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<SchemaModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <SchemaModelTypeEnum>[];
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;
}

View File

@ -59,7 +59,9 @@ class StatusModel {
StatusModelLinks? links;
@override
bool operator ==(Object other) => identical(this, other) || other is StatusModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is StatusModel &&
other.type == type &&
other.id == id &&
other.name == name &&
@ -84,7 +86,8 @@ class StatusModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
name: mapValueOfType<Object>(json, r'name'),
position: mapValueOfType<Object>(json, r'position'),
@ -169,7 +174,10 @@ class StatusModel {
return null;
}
static List<StatusModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<StatusModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StatusModel>[];
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<String, List<StatusModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<StatusModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<StatusModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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 = <String>{
};
static const requiredKeys = <String>{};
}
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<StatusModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<StatusModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StatusModelTypeEnum>[];
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;
}

View File

@ -96,7 +96,9 @@ class StorageFileModel {
StorageFileModelAllOfLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is StorageFileModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is StorageFileModel &&
other.id == id &&
other.name == name &&
other.mimeType == mimeType &&
@ -125,7 +127,8 @@ class StorageFileModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<String>(json, r'createdByName'),
lastModifiedByName: mapValueOfType<String>(json, r'lastModifiedByName'),
type: Object.fromJson(json[r'_type']),
type: StorageFileModelTypeEnum.fromJson(json[r'_type']),
location: mapValueOfType<Object>(json, r'location'),
links: StorageFileModelAllOfLinks.fromJson(json[r'_links'])!,
);
@ -210,7 +215,10 @@ class StorageFileModel {
return null;
}
static List<StorageFileModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFileModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFileModel>[];
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<String, List<StorageFileModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<StorageFileModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<StorageFileModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<StorageFileModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFileModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFileModelTypeEnum>[];
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;
}

View File

@ -22,15 +22,16 @@ class StorageFileUploadLinkModel {
StorageFileUploadLinkModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is StorageFileUploadLinkModel &&
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);
(type == null ? 0 : type!.hashCode) + (links.hashCode);
@override
String toString() => 'StorageFileUploadLinkModel[type=$type, links=$links]';
@ -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<StorageFileUploadLinkModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFileUploadLinkModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFileUploadLinkModel>[];
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<String, List<StorageFileUploadLinkModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<StorageFileUploadLinkModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<StorageFileUploadLinkModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<StorageFileUploadLinkModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFileUploadLinkModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFileUploadLinkModelTypeEnum>[];
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;
}

View File

@ -33,7 +33,9 @@ class StorageFilesModel {
StorageFileModelAllOfLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is StorageFilesModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is StorageFilesModel &&
other.type == type &&
other.files == files &&
other.parent == parent &&
@ -50,7 +52,8 @@ class StorageFilesModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'files'),
parent: StorageFilesModelParent.fromJson(json[r'parent'])!,
ancestors: mapValueOfType<Object>(json, r'ancestors'),
@ -103,7 +108,10 @@ class StorageFilesModel {
return null;
}
static List<StorageFilesModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFilesModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFilesModel>[];
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<String, List<StorageFilesModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<StorageFilesModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<StorageFilesModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<StorageFilesModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFilesModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFilesModelTypeEnum>[];
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;
}

View File

@ -96,7 +96,9 @@ class StorageFilesModelParent {
StorageFileModelAllOfLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is StorageFilesModelParent &&
bool operator ==(Object other) =>
identical(this, other) ||
other is StorageFilesModelParent &&
other.id == id &&
other.name == name &&
other.mimeType == mimeType &&
@ -125,7 +127,8 @@ class StorageFilesModelParent {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<String>(json, r'createdByName'),
lastModifiedByName: mapValueOfType<String>(json, r'lastModifiedByName'),
type: Object.fromJson(json[r'_type']),
type: StorageFilesModelParentTypeEnum.fromJson(json[r'_type']),
location: mapValueOfType<Object>(json, r'location'),
links: StorageFileModelAllOfLinks.fromJson(json[r'_links'])!,
);
@ -210,7 +215,10 @@ class StorageFilesModelParent {
return null;
}
static List<StorageFilesModelParent> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFilesModelParent> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFilesModelParent>[];
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<String, List<StorageFilesModelParent>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<StorageFilesModelParent>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<StorageFilesModelParent>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<StorageFilesModelParentTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageFilesModelParentTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageFilesModelParentTypeEnum>[];
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;
}

View File

@ -51,7 +51,9 @@ class StorageReadModel {
StorageReadModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is StorageReadModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is StorageReadModel &&
other.id == id &&
other.type == type &&
other.name == name &&
@ -74,7 +76,8 @@ class StorageReadModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
type: Object.fromJson(json[r'_type']),
type: StorageReadModelTypeEnum.fromJson(json[r'_type']),
name: mapValueOfType<Object>(json, r'name'),
hasApplicationPassword: mapValueOfType<Object>(json, r'hasApplicationPassword'),
hasApplicationPassword:
mapValueOfType<Object>(json, r'hasApplicationPassword'),
createdAt: mapValueOfType<Object>(json, r'createdAt'),
updatedAt: mapValueOfType<Object>(json, r'updatedAt'),
embedded: StorageReadModelEmbedded.fromJson(json[r'_embedded']),
@ -149,7 +155,10 @@ class StorageReadModel {
return null;
}
static List<StorageReadModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageReadModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageReadModel>[];
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<String, List<StorageReadModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<StorageReadModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<StorageReadModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<StorageReadModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<StorageReadModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <StorageReadModelTypeEnum>[];
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;
}

View File

@ -43,7 +43,9 @@ class TimeEntryActivityModel {
TimeEntryActivityModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is TimeEntryActivityModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is TimeEntryActivityModel &&
other.type == type &&
other.id == id &&
other.name == name &&
@ -64,7 +66,8 @@ class TimeEntryActivityModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
name: mapValueOfType<Object>(json, r'name'),
position: mapValueOfType<Object>(json, r'position'),
@ -129,7 +134,10 @@ class TimeEntryActivityModel {
return null;
}
static List<TimeEntryActivityModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<TimeEntryActivityModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <TimeEntryActivityModel>[];
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<String, List<TimeEntryActivityModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<TimeEntryActivityModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<TimeEntryActivityModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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 = <TimeEntryActivityModelTypeEnum>[
timeEntriesActivity,
];
static TimeEntryActivityModelTypeEnum? fromJson(dynamic value) => TimeEntryActivityModelTypeEnumTypeTransformer().decode(value);
static TimeEntryActivityModelTypeEnum? fromJson(dynamic value) =>
TimeEntryActivityModelTypeEnumTypeTransformer().decode(value);
static List<TimeEntryActivityModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<TimeEntryActivityModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <TimeEntryActivityModelTypeEnum>[];
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;
}

View File

@ -76,7 +76,9 @@ class UserModel {
UserModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is UserModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is UserModel &&
other.type == type &&
other.id == id &&
other.login == login &&
@ -113,7 +115,8 @@ class UserModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
login: mapValueOfType<Object>(json, r'login'),
firstName: mapValueOfType<Object>(json, r'firstName'),
@ -230,7 +235,10 @@ class UserModel {
return null;
}
static List<UserModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<UserModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <UserModel>[];
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<String, List<UserModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<UserModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<UserModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<UserModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<UserModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <UserModelTypeEnum>[];
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;
}

View File

@ -30,7 +30,9 @@ class ValuesPropertyModel {
ValuesPropertyModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is ValuesPropertyModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is ValuesPropertyModel &&
other.type == type &&
other.property == property &&
other.value == value &&
@ -45,7 +47,8 @@ class ValuesPropertyModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'property'),
value: mapValueOfType<Object>(json, r'value'),
links: ValuesPropertyModelLinks.fromJson(json[r'_links'])!,
@ -96,7 +101,10 @@ class ValuesPropertyModel {
return null;
}
static List<ValuesPropertyModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<ValuesPropertyModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <ValuesPropertyModel>[];
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<String, List<ValuesPropertyModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<ValuesPropertyModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<ValuesPropertyModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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 = <ValuesPropertyModelTypeEnum>[
valuesColonColonProperty,
];
static ValuesPropertyModelTypeEnum? fromJson(dynamic value) => ValuesPropertyModelTypeEnumTypeTransformer().decode(value);
static ValuesPropertyModelTypeEnum? fromJson(dynamic value) =>
ValuesPropertyModelTypeEnumTypeTransformer().decode(value);
static List<ValuesPropertyModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<ValuesPropertyModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <ValuesPropertyModelTypeEnum>[];
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;
}

View File

@ -22,18 +22,20 @@ class WeekDayCollectionWriteModel {
WeekDayCollectionWriteModelEmbedded embedded;
@override
bool operator ==(Object other) => identical(this, other) || other is WeekDayCollectionWriteModel &&
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);
(type == null ? 0 : type!.hashCode) + (embedded.hashCode);
@override
String toString() => 'WeekDayCollectionWriteModel[type=$type, embedded=$embedded]';
String toString() =>
'WeekDayCollectionWriteModel[type=$type, embedded=$embedded]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<WeekDayCollectionWriteModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<WeekDayCollectionWriteModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WeekDayCollectionWriteModel>[];
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<String, List<WeekDayCollectionWriteModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<WeekDayCollectionWriteModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<WeekDayCollectionWriteModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<WeekDayCollectionWriteModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<WeekDayCollectionWriteModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WeekDayCollectionWriteModelTypeEnum>[];
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;
}

View File

@ -43,7 +43,9 @@ class WeekDayModel {
WeekDaySelfLinkModel? links;
@override
bool operator ==(Object other) => identical(this, other) || other is WeekDayModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is WeekDayModel &&
other.type == type &&
other.day == day &&
other.name == name &&
@ -60,7 +62,8 @@ class WeekDayModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'day'),
name: mapValueOfType<Object>(json, r'name'),
working: mapValueOfType<Object>(json, r'working'),
@ -121,7 +126,10 @@ class WeekDayModel {
return null;
}
static List<WeekDayModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<WeekDayModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WeekDayModel>[];
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<String, List<WeekDayModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<WeekDayModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<WeekDayModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<WeekDayModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<WeekDayModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WeekDayModelTypeEnum>[];
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;
}

View File

@ -23,7 +23,9 @@ class WeekDayWriteModel {
Object? working;
@override
bool operator ==(Object other) => identical(this, other) || other is WeekDayWriteModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is WeekDayWriteModel &&
other.type == type &&
other.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<Object>(json, r'working'),
);
}
return null;
}
static List<WeekDayWriteModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<WeekDayWriteModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WeekDayWriteModel>[];
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<String, List<WeekDayWriteModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<WeekDayWriteModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<WeekDayWriteModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<WeekDayWriteModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<WeekDayWriteModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WeekDayWriteModelTypeEnum>[];
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;
}

View File

@ -107,7 +107,9 @@ class WorkPackageModel {
WorkPackageModelLinks links;
@override
bool operator ==(Object other) => identical(this, other) || other is WorkPackageModel &&
bool operator ==(Object other) =>
identical(this, other) ||
other is WorkPackageModel &&
other.id == id &&
other.lockVersion == lockVersion &&
other.subject == subject &&
@ -156,7 +158,8 @@ class WorkPackageModel {
(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<String, dynamic> toJson() {
final json = <String, dynamic>{};
@ -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<Object>(json, r'id'),
lockVersion: mapValueOfType<Object>(json, r'lockVersion'),
subject: mapValueOfType<Object>(json, r'subject'),
type: Object.fromJson(json[r'_type']),
type: WorkPackageModelTypeEnum.fromJson(json[r'_type']),
description: WorkPackageModelDescription.fromJson(json[r'description']),
scheduleManually: mapValueOfType<Object>(json, r'scheduleManually'),
readonly: mapValueOfType<Object>(json, r'readonly'),
@ -297,8 +302,10 @@ class WorkPackageModel {
derivedDueDate: mapValueOfType<Object>(json, r'derivedDueDate'),
duration: mapValueOfType<Object>(json, r'duration'),
estimatedTime: mapValueOfType<Object>(json, r'estimatedTime'),
derivedEstimatedTime: mapValueOfType<Object>(json, r'derivedEstimatedTime'),
ignoreNonWorkingDays: mapValueOfType<Object>(json, r'ignoreNonWorkingDays'),
derivedEstimatedTime:
mapValueOfType<Object>(json, r'derivedEstimatedTime'),
ignoreNonWorkingDays:
mapValueOfType<Object>(json, r'ignoreNonWorkingDays'),
spentTime: mapValueOfType<Object>(json, r'spentTime'),
percentageDone: mapValueOfType<Object>(json, r'percentageDone'),
createdAt: mapValueOfType<Object>(json, r'createdAt'),
@ -309,7 +316,10 @@ class WorkPackageModel {
return null;
}
static List<WorkPackageModel> listFromJson(dynamic json, {bool growable = false,}) {
static List<WorkPackageModel> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WorkPackageModel>[];
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<String, List<WorkPackageModel>> mapListFromJson(dynamic json, {bool growable = false,}) {
static Map<String, List<WorkPackageModel>> mapListFromJson(
dynamic json, {
bool growable = false,
}) {
final map = <String, List<WorkPackageModel>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
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<WorkPackageModelTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
static List<WorkPackageModelTypeEnum> listFromJson(
dynamic json, {
bool growable = false,
}) {
final result = <WorkPackageModelTypeEnum>[];
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;
}