Browse Source

Merge pull request #29 from jld3103/fix/nextcloud-null-values

nextcloud, specs: Fix null values in responses in tests
pull/34/head
jld3103 2 years ago committed by GitHub
parent
commit
247c14ff12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/nextcloud/doc/provisioning_api/ProvisioningApiUserDetails.md
  2. 10
      packages/nextcloud/lib/src/clients/common/model/ocs_meta.dart
  3. 2
      packages/nextcloud/lib/src/clients/generated/core/api_client.dart
  4. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init.dart
  5. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init_poll.dart
  6. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_query.dart
  7. 6
      packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_result.dart
  8. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps.dart
  9. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs.dart
  10. 18
      packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs_data_inner.dart
  11. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities.dart
  12. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs.dart
  13. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data.dart
  14. 32
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities.dart
  15. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_bruteforce.dart
  16. 10
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles.dart
  17. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle.dart
  18. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants.dart
  19. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants_source.dart
  20. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member.dart
  21. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member_constants.dart
  22. 8
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_settings.dart
  23. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_status.dart
  24. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_core.dart
  25. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_dav.dart
  26. 10
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files.dart
  27. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_direct_editing.dart
  28. 20
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing.dart
  29. 8
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_federation.dart
  30. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_group.dart
  31. 18
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public.dart
  32. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_expire_date.dart
  33. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_password.dart
  34. 10
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail.dart
  35. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail_password.dart
  36. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharee.dart
  37. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_user.dart
  38. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_notes.dart
  39. 6
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm.dart
  40. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner.dart
  41. 2
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner_protocols.dart
  42. 12
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy.dart
  43. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy_api.dart
  44. 8
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_provisioning_api.dart
  45. 28
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_theming.dart
  46. 4
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_user_status.dart
  47. 12
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_version.dart
  48. 16
      packages/nextcloud/lib/src/clients/generated/core/model/core_server_status.dart
  49. 2
      packages/nextcloud/lib/src/clients/generated/news/api_client.dart
  50. 4
      packages/nextcloud/lib/src/clients/generated/news/model/news_add_feed.dart
  51. 40
      packages/nextcloud/lib/src/clients/generated/news/model/news_article.dart
  52. 2
      packages/nextcloud/lib/src/clients/generated/news/model/news_create_folder.dart
  53. 24
      packages/nextcloud/lib/src/clients/generated/news/model/news_feed.dart
  54. 6
      packages/nextcloud/lib/src/clients/generated/news/model/news_folder.dart
  55. 4
      packages/nextcloud/lib/src/clients/generated/news/model/news_list_feeds.dart
  56. 2
      packages/nextcloud/lib/src/clients/generated/news/model/news_mark_as_read.dart
  57. 2
      packages/nextcloud/lib/src/clients/generated/news/model/news_move_feed.dart
  58. 2
      packages/nextcloud/lib/src/clients/generated/news/model/news_rename_feed.dart
  59. 2
      packages/nextcloud/lib/src/clients/generated/news/model/news_rename_folder.dart
  60. 2
      packages/nextcloud/lib/src/clients/generated/notes/api_client.dart
  61. 20
      packages/nextcloud/lib/src/clients/generated/notes/model/notes_note.dart
  62. 6
      packages/nextcloud/lib/src/clients/generated/notes/model/notes_settings.dart
  63. 2
      packages/nextcloud/lib/src/clients/generated/notifications/api_client.dart
  64. 4
      packages/nextcloud/lib/src/clients/generated/notifications/model/admin_notification.dart
  65. 2
      packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response.dart
  66. 2
      packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response_ocs.dart
  67. 2
      packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response.dart
  68. 4
      packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response_ocs.dart
  69. 2
      packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response.dart
  70. 2
      packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response_ocs.dart
  71. 24
      packages/nextcloud/lib/src/clients/generated/notifications/model/notification.dart
  72. 10
      packages/nextcloud/lib/src/clients/generated/notifications/model/push_notification_decrypted_subject.dart
  73. 6
      packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_device.dart
  74. 2
      packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response.dart
  75. 4
      packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response_ocs.dart
  76. 6
      packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_subscription.dart
  77. 2
      packages/nextcloud/lib/src/clients/generated/provisioning_api/api_client.dart
  78. 2
      packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user.dart
  79. 83
      packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details.dart
  80. 4
      packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_backend_capabilities.dart
  81. 10
      packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_quota.dart
  82. 4
      packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_ocs.dart
  83. 2
      packages/nextcloud/lib/src/clients/generated/user_status/api_client.dart
  84. 16
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status.dart
  85. 4
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_clear_at.dart
  86. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses.dart
  87. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses_ocs.dart
  88. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status.dart
  89. 4
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status_ocs.dart
  90. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status.dart
  91. 4
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status_ocs.dart
  92. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_heartbeat.dart
  93. 8
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_status.dart
  94. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses.dart
  95. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses_ocs.dart
  96. 10
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_public_user_status.dart
  97. 6
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_custom_message.dart
  98. 4
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_predefined_message.dart
  99. 2
      packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_user_status.dart
  100. 22
      packages/nextcloud/test/news_test.dart
  101. Some files were not shown because too many files have changed in this diff Show More

1
packages/nextcloud/doc/provisioning_api/ProvisioningApiUserDetails.md

@ -42,6 +42,7 @@ Name | Type | Description | Notes
**groups** | **List<String>** | | [optional] [default to const []]
**language** | **String** | | [optional]
**locale** | **String** | | [optional]
**notifyEmail** | **String** | | [optional]
**backendCapabilities** | [**ProvisioningApiUserDetailsBackendCapabilities**](ProvisioningApiUserDetailsBackendCapabilities.md) | | [optional]
**displayName** | **String** | | [optional]

10
packages/nextcloud/lib/src/clients/common/model/ocs_meta.dart

@ -87,18 +87,28 @@ class OCSMeta {
final _json = <String, dynamic>{};
if (status != null) {
_json[r'status'] = status;
} else {
_json[r'status'] = null;
}
if (statuscode != null) {
_json[r'statuscode'] = statuscode;
} else {
_json[r'statuscode'] = null;
}
if (message != null) {
_json[r'message'] = message;
} else {
_json[r'message'] = null;
}
if (totalitems != null) {
_json[r'totalitems'] = totalitems;
} else {
_json[r'totalitems'] = null;
}
if (itemsperpage != null) {
_json[r'itemsperpage'] = itemsperpage;
} else {
_json[r'itemsperpage'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/api_client.dart

@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient {
}
final valueString = '$value'.toLowerCase();
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'CoreLoginFlowInit':
return CoreLoginFlowInit.fromJson(value);
case 'CoreLoginFlowInitPoll':

4
packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init.dart

@ -49,9 +49,13 @@ class CoreLoginFlowInit {
final _json = <String, dynamic>{};
if (poll != null) {
_json[r'poll'] = poll;
} else {
_json[r'poll'] = null;
}
if (login != null) {
_json[r'login'] = login;
} else {
_json[r'login'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init_poll.dart

@ -49,9 +49,13 @@ class CoreLoginFlowInitPoll {
final _json = <String, dynamic>{};
if (token != null) {
_json[r'token'] = token;
} else {
_json[r'token'] = null;
}
if (endpoint != null) {
_json[r'endpoint'] = endpoint;
} else {
_json[r'endpoint'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_query.dart

@ -39,6 +39,8 @@ class CoreLoginFlowQuery {
final _json = <String, dynamic>{};
if (token != null) {
_json[r'token'] = token;
} else {
_json[r'token'] = null;
}
return _json;
}

6
packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_result.dart

@ -64,12 +64,18 @@ class CoreLoginFlowResult {
final _json = <String, dynamic>{};
if (server != null) {
_json[r'server'] = server;
} else {
_json[r'server'] = null;
}
if (loginName != null) {
_json[r'loginName'] = loginName;
} else {
_json[r'loginName'] = null;
}
if (appPassword != null) {
_json[r'appPassword'] = appPassword;
} else {
_json[r'appPassword'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps.dart

@ -39,6 +39,8 @@ class CoreNavigationApps {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs.dart

@ -38,6 +38,8 @@ class CoreNavigationAppsOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
_json[r'data'] = data;
return _json;

18
packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs_data_inner.dart

@ -132,30 +132,48 @@ class CoreNavigationAppsOcsDataInner {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (order != null) {
_json[r'order'] = order;
} else {
_json[r'order'] = null;
}
if (href != null) {
_json[r'href'] = href;
} else {
_json[r'href'] = null;
}
if (icon != null) {
_json[r'icon'] = icon;
} else {
_json[r'icon'] = null;
}
if (type != null) {
_json[r'type'] = type;
} else {
_json[r'type'] = null;
}
if (name != null) {
_json[r'name'] = name;
} else {
_json[r'name'] = null;
}
if (active != null) {
_json[r'active'] = active;
} else {
_json[r'active'] = null;
}
if (classes != null) {
_json[r'classes'] = classes;
} else {
_json[r'classes'] = null;
}
if (unread != null) {
_json[r'unread'] = unread;
} else {
_json[r'unread'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities.dart

@ -39,6 +39,8 @@ class CoreServerCapabilities {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs.dart

@ -44,9 +44,13 @@ class CoreServerCapabilitiesOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
if (data != null) {
_json[r'data'] = data;
} else {
_json[r'data'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data.dart

@ -50,9 +50,13 @@ class CoreServerCapabilitiesOcsData {
final _json = <String, dynamic>{};
if (version != null) {
_json[r'version'] = version;
} else {
_json[r'version'] = null;
}
if (capabilities != null) {
_json[r'capabilities'] = capabilities;
} else {
_json[r'capabilities'] = null;
}
return _json;
}

32
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities.dart

@ -208,51 +208,83 @@ class CoreServerCapabilitiesOcsDataCapabilities {
final _json = <String, dynamic>{};
if (core != null) {
_json[r'core'] = core;
} else {
_json[r'core'] = null;
}
if (bruteforce != null) {
_json[r'bruteforce'] = bruteforce;
} else {
_json[r'bruteforce'] = null;
}
if (metadataAvailable != null) {
_json[r'metadataAvailable'] = metadataAvailable;
} else {
_json[r'metadataAvailable'] = null;
}
if (files != null) {
_json[r'files'] = files;
} else {
_json[r'files'] = null;
}
if (activity != null) {
_json[r'activity'] = activity;
} else {
_json[r'activity'] = null;
}
if (circles != null) {
_json[r'circles'] = circles;
} else {
_json[r'circles'] = null;
}
if (ocm != null) {
_json[r'ocm'] = ocm;
} else {
_json[r'ocm'] = null;
}
if (dav != null) {
_json[r'dav'] = dav;
} else {
_json[r'dav'] = null;
}
if (filesSharing != null) {
_json[r'files_sharing'] = filesSharing;
} else {
_json[r'files_sharing'] = null;
}
if (notes != null) {
_json[r'notes'] = notes;
} else {
_json[r'notes'] = null;
}
if (notifications != null) {
_json[r'notifications'] = notifications;
} else {
_json[r'notifications'] = null;
}
if (passwordPolicy != null) {
_json[r'password_policy'] = passwordPolicy;
} else {
_json[r'password_policy'] = null;
}
if (provisioningApi != null) {
_json[r'provisioning_api'] = provisioningApi;
} else {
_json[r'provisioning_api'] = null;
}
if (theming != null) {
_json[r'theming'] = theming;
} else {
_json[r'theming'] = null;
}
if (userStatus != null) {
_json[r'user_status'] = userStatus;
} else {
_json[r'user_status'] = null;
}
if (weatherStatus != null) {
_json[r'weather_status'] = weatherStatus;
} else {
_json[r'weather_status'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_bruteforce.dart

@ -40,6 +40,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesBruteforce {
final _json = <String, dynamic>{};
if (delay != null) {
_json[r'delay'] = delay;
} else {
_json[r'delay'] = null;
}
return _json;
}

10
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles.dart

@ -87,18 +87,28 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCircles {
final _json = <String, dynamic>{};
if (version != null) {
_json[r'version'] = version;
} else {
_json[r'version'] = null;
}
if (status != null) {
_json[r'status'] = status;
} else {
_json[r'status'] = null;
}
if (settings != null) {
_json[r'settings'] = settings;
} else {
_json[r'settings'] = null;
}
if (circle != null) {
_json[r'circle'] = circle;
} else {
_json[r'circle'] = null;
}
if (member != null) {
_json[r'member'] = member;
} else {
_json[r'member'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle.dart

@ -52,9 +52,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle {
final _json = <String, dynamic>{};
if (constants != null) {
_json[r'constants'] = constants;
} else {
_json[r'constants'] = null;
}
if (config != null) {
_json[r'config'] = config;
} else {
_json[r'config'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants {
final _json = <String, dynamic>{};
if (flags != null) {
_json[r'flags'] = flags;
} else {
_json[r'flags'] = null;
}
if (source_ != null) {
_json[r'source'] = source_;
} else {
_json[r'source'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants_source.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource {
final _json = <String, dynamic>{};
if (core != null) {
_json[r'core'] = core;
} else {
_json[r'core'] = null;
}
if (extra != null) {
_json[r'extra'] = extra;
} else {
_json[r'extra'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member.dart

@ -52,9 +52,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember {
final _json = <String, dynamic>{};
if (constants != null) {
_json[r'constants'] = constants;
} else {
_json[r'constants'] = null;
}
if (type != null) {
_json[r'type'] = type;
} else {
_json[r'type'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member_constants.dart

@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants {
final _json = <String, dynamic>{};
if (level != null) {
_json[r'level'] = level;
} else {
_json[r'level'] = null;
}
return _json;
}

8
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_settings.dart

@ -76,15 +76,23 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings {
final _json = <String, dynamic>{};
if (frontendEnabled != null) {
_json[r'frontendEnabled'] = frontendEnabled;
} else {
_json[r'frontendEnabled'] = null;
}
if (allowedCircles != null) {
_json[r'allowedCircles'] = allowedCircles;
} else {
_json[r'allowedCircles'] = null;
}
if (allowedUserTypes != null) {
_json[r'allowedUserTypes'] = allowedUserTypes;
} else {
_json[r'allowedUserTypes'] = null;
}
if (membersLimit != null) {
_json[r'membersLimit'] = membersLimit;
} else {
_json[r'membersLimit'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_status.dart

@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus {
final _json = <String, dynamic>{};
if (globalScale != null) {
_json[r'globalScale'] = globalScale;
} else {
_json[r'globalScale'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_core.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCore {
final _json = <String, dynamic>{};
if (pollinterval != null) {
_json[r'pollinterval'] = pollinterval;
} else {
_json[r'pollinterval'] = null;
}
if (webdavRoot != null) {
_json[r'webdav-root'] = webdavRoot;
} else {
_json[r'webdav-root'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_dav.dart

@ -40,6 +40,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesDav {
final _json = <String, dynamic>{};
if (chunking != null) {
_json[r'chunking'] = chunking;
} else {
_json[r'chunking'] = null;
}
return _json;
}

10
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files.dart

@ -92,19 +92,29 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFiles {
final _json = <String, dynamic>{};
if (bigfilechunking != null) {
_json[r'bigfilechunking'] = bigfilechunking;
} else {
_json[r'bigfilechunking'] = null;
}
_json[r'blacklisted_files'] = blacklistedFiles;
if (directEditing != null) {
_json[r'directEditing'] = directEditing;
} else {
_json[r'directEditing'] = null;
}
if (comments != null) {
_json[r'comments'] = comments;
} else {
_json[r'comments'] = null;
}
if (undelete != null) {
_json[r'undelete'] = undelete;
} else {
_json[r'undelete'] = null;
}
if (versioning != null) {
_json[r'versioning'] = versioning;
} else {
_json[r'versioning'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_direct_editing.dart

@ -50,9 +50,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing {
final _json = <String, dynamic>{};
if (url != null) {
_json[r'url'] = url;
} else {
_json[r'url'] = null;
}
if (etag != null) {
_json[r'etag'] = etag;
} else {
_json[r'etag'] = null;
}
return _json;
}

20
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing.dart

@ -142,33 +142,53 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing {
final _json = <String, dynamic>{};
if (apiEnabled != null) {
_json[r'api_enabled'] = apiEnabled;
} else {
_json[r'api_enabled'] = null;
}
if (public != null) {
_json[r'public'] = public;
} else {
_json[r'public'] = null;
}
if (resharing != null) {
_json[r'resharing'] = resharing;
} else {
_json[r'resharing'] = null;
}
if (user != null) {
_json[r'user'] = user;
} else {
_json[r'user'] = null;
}
if (groupSharing != null) {
_json[r'group_sharing'] = groupSharing;
} else {
_json[r'group_sharing'] = null;
}
if (group != null) {
_json[r'group'] = group;
} else {
_json[r'group'] = null;
}
if (defaultPermissions != null) {
_json[r'default_permissions'] = defaultPermissions;
} else {
_json[r'default_permissions'] = null;
}
if (federation != null) {
_json[r'federation'] = federation;
} else {
_json[r'federation'] = null;
}
if (sharee != null) {
_json[r'sharee'] = sharee;
} else {
_json[r'sharee'] = null;
}
if (sharebymail != null) {
_json[r'sharebymail'] = sharebymail;
} else {
_json[r'sharebymail'] = null;
}
return _json;
}

8
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_federation.dart

@ -76,15 +76,23 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation {
final _json = <String, dynamic>{};
if (outgoing != null) {
_json[r'outgoing'] = outgoing;
} else {
_json[r'outgoing'] = null;
}
if (incoming != null) {
_json[r'incoming'] = incoming;
} else {
_json[r'incoming'] = null;
}
if (expireDate != null) {
_json[r'expire_date'] = expireDate;
} else {
_json[r'expire_date'] = null;
}
if (expireDateSupported != null) {
_json[r'expire_date_supported'] = expireDateSupported;
} else {
_json[r'expire_date_supported'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_group.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
if (expireDate != null) {
_json[r'expire_date'] = expireDate;
} else {
_json[r'expire_date'] = null;
}
return _json;
}

18
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public.dart

@ -131,30 +131,48 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
if (password != null) {
_json[r'password'] = password;
} else {
_json[r'password'] = null;
}
if (expireDate != null) {
_json[r'expire_date'] = expireDate;
} else {
_json[r'expire_date'] = null;
}
if (multipleLinks != null) {
_json[r'multiple_links'] = multipleLinks;
} else {
_json[r'multiple_links'] = null;
}
if (expireDateInternal != null) {
_json[r'expire_date_internal'] = expireDateInternal;
} else {
_json[r'expire_date_internal'] = null;
}
if (expireDateRemote != null) {
_json[r'expire_date_remote'] = expireDateRemote;
} else {
_json[r'expire_date_remote'] = null;
}
if (sendMail != null) {
_json[r'send_mail'] = sendMail;
} else {
_json[r'send_mail'] = null;
}
if (upload != null) {
_json[r'upload'] = upload;
} else {
_json[r'upload'] = null;
}
if (uploadFilesDrop != null) {
_json[r'upload_files_drop'] = uploadFilesDrop;
} else {
_json[r'upload_files_drop'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_expire_date.dart

@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_password.dart

@ -54,9 +54,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword {
final _json = <String, dynamic>{};
if (enforced != null) {
_json[r'enforced'] = enforced;
} else {
_json[r'enforced'] = null;
}
if (askForOptionalPassword != null) {
_json[r'askForOptionalPassword'] = askForOptionalPassword;
} else {
_json[r'askForOptionalPassword'] = null;
}
return _json;
}

10
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail.dart

@ -87,18 +87,28 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
if (sendPasswordByMail != null) {
_json[r'send_password_by_mail'] = sendPasswordByMail;
} else {
_json[r'send_password_by_mail'] = null;
}
if (uploadFilesDrop != null) {
_json[r'upload_files_drop'] = uploadFilesDrop;
} else {
_json[r'upload_files_drop'] = null;
}
if (password != null) {
_json[r'password'] = password;
} else {
_json[r'password'] = null;
}
if (expireDate != null) {
_json[r'expire_date'] = expireDate;
} else {
_json[r'expire_date'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail_password.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
if (enforced != null) {
_json[r'enforced'] = enforced;
} else {
_json[r'enforced'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharee.dart

@ -54,9 +54,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee {
final _json = <String, dynamic>{};
if (queryLookupDefault != null) {
_json[r'query_lookup_default'] = queryLookupDefault;
} else {
_json[r'query_lookup_default'] = null;
}
if (alwaysShowUnique != null) {
_json[r'always_show_unique'] = alwaysShowUnique;
} else {
_json[r'always_show_unique'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_user.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser {
final _json = <String, dynamic>{};
if (sendMail != null) {
_json[r'send_mail'] = sendMail;
} else {
_json[r'send_mail'] = null;
}
if (expireDate != null) {
_json[r'expire_date'] = expireDate;
} else {
_json[r'expire_date'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_notes.dart

@ -47,6 +47,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesNotes {
_json[r'api_version'] = apiVersion;
if (version != null) {
_json[r'version'] = version;
} else {
_json[r'version'] = null;
}
return _json;
}

6
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm.dart

@ -70,12 +70,18 @@ class CoreServerCapabilitiesOcsDataCapabilitiesOcm {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
if (apiVersion != null) {
_json[r'apiVersion'] = apiVersion;
} else {
_json[r'apiVersion'] = null;
}
if (endPoint != null) {
_json[r'endPoint'] = endPoint;
} else {
_json[r'endPoint'] = null;
}
_json[r'resourceTypes'] = resourceTypes;
return _json;

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner.dart

@ -57,10 +57,14 @@ class CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesInner {
final _json = <String, dynamic>{};
if (name != null) {
_json[r'name'] = name;
} else {
_json[r'name'] = null;
}
_json[r'shareTypes'] = shareTypes;
if (protocols != null) {
_json[r'protocols'] = protocols;
} else {
_json[r'protocols'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner_protocols.dart

@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesInnerProtocols {
final _json = <String, dynamic>{};
if (webdav != null) {
_json[r'webdav'] = webdav;
} else {
_json[r'webdav'] = null;
}
return _json;
}

12
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy.dart

@ -98,21 +98,33 @@ class CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy {
final _json = <String, dynamic>{};
if (minLength != null) {
_json[r'minLength'] = minLength;
} else {
_json[r'minLength'] = null;
}
if (enforceNonCommonPassword != null) {
_json[r'enforceNonCommonPassword'] = enforceNonCommonPassword;
} else {
_json[r'enforceNonCommonPassword'] = null;
}
if (enforceNumericCharacters != null) {
_json[r'enforceNumericCharacters'] = enforceNumericCharacters;
} else {
_json[r'enforceNumericCharacters'] = null;
}
if (enforceSpecialCharacters != null) {
_json[r'enforceSpecialCharacters'] = enforceSpecialCharacters;
} else {
_json[r'enforceSpecialCharacters'] = null;
}
if (enforceUpperLowerCase != null) {
_json[r'enforceUpperLowerCase'] = enforceUpperLowerCase;
} else {
_json[r'enforceUpperLowerCase'] = null;
}
if (api != null) {
_json[r'api'] = api;
} else {
_json[r'api'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy_api.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi {
final _json = <String, dynamic>{};
if (generate != null) {
_json[r'generate'] = generate;
} else {
_json[r'generate'] = null;
}
if (validate != null) {
_json[r'validate'] = validate;
} else {
_json[r'validate'] = null;
}
return _json;
}

8
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_provisioning_api.dart

@ -76,15 +76,23 @@ class CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi {
final _json = <String, dynamic>{};
if (version != null) {
_json[r'version'] = version;
} else {
_json[r'version'] = null;
}
if (accountPropertyScopesVersion != null) {
_json[r'AccountPropertyScopesVersion'] = accountPropertyScopesVersion;
} else {
_json[r'AccountPropertyScopesVersion'] = null;
}
if (accountPropertyScopesFederatedEnabled != null) {
_json[r'AccountPropertyScopesFederatedEnabled'] = accountPropertyScopesFederatedEnabled;
} else {
_json[r'AccountPropertyScopesFederatedEnabled'] = null;
}
if (accountPropertyScopesPublishedEnabled != null) {
_json[r'AccountPropertyScopesPublishedEnabled'] = accountPropertyScopesPublishedEnabled;
} else {
_json[r'AccountPropertyScopesPublishedEnabled'] = null;
}
return _json;
}

28
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_theming.dart

@ -186,45 +186,73 @@ class CoreServerCapabilitiesOcsDataCapabilitiesTheming {
final _json = <String, dynamic>{};
if (name != null) {
_json[r'name'] = name;
} else {
_json[r'name'] = null;
}
if (url != null) {
_json[r'url'] = url;
} else {
_json[r'url'] = null;
}
if (slogan != null) {
_json[r'slogan'] = slogan;
} else {
_json[r'slogan'] = null;
}
if (color != null) {
_json[r'color'] = color;
} else {
_json[r'color'] = null;
}
if (colorText != null) {
_json[r'color-text'] = colorText;
} else {
_json[r'color-text'] = null;
}
if (colorElement != null) {
_json[r'color-element'] = colorElement;
} else {
_json[r'color-element'] = null;
}
if (colorElementBright != null) {
_json[r'color-element-bright'] = colorElementBright;
} else {
_json[r'color-element-bright'] = null;
}
if (colorElementDark != null) {
_json[r'color-element-dark'] = colorElementDark;
} else {
_json[r'color-element-dark'] = null;
}
if (logo != null) {
_json[r'logo'] = logo;
} else {
_json[r'logo'] = null;
}
if (background != null) {
_json[r'background'] = background;
} else {
_json[r'background'] = null;
}
if (backgroundPlain != null) {
_json[r'background-plain'] = backgroundPlain;
} else {
_json[r'background-plain'] = null;
}
if (backgroundDefault != null) {
_json[r'background-default'] = backgroundDefault;
} else {
_json[r'background-default'] = null;
}
if (logoheader != null) {
_json[r'logoheader'] = logoheader;
} else {
_json[r'logoheader'] = null;
}
if (favicon != null) {
_json[r'favicon'] = favicon;
} else {
_json[r'favicon'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_user_status.dart

@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesUserStatus {
final _json = <String, dynamic>{};
if (enabled != null) {
_json[r'enabled'] = enabled;
} else {
_json[r'enabled'] = null;
}
if (supportsEmoji != null) {
_json[r'supports_emoji'] = supportsEmoji;
} else {
_json[r'supports_emoji'] = null;
}
return _json;
}

12
packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_version.dart

@ -98,21 +98,33 @@ class CoreServerCapabilitiesOcsDataVersion {
final _json = <String, dynamic>{};
if (major != null) {
_json[r'major'] = major;
} else {
_json[r'major'] = null;
}
if (minor != null) {
_json[r'minor'] = minor;
} else {
_json[r'minor'] = null;
}
if (micro != null) {
_json[r'micro'] = micro;
} else {
_json[r'micro'] = null;
}
if (string != null) {
_json[r'string'] = string;
} else {
_json[r'string'] = null;
}
if (edition != null) {
_json[r'edition'] = edition;
} else {
_json[r'edition'] = null;
}
if (extendedSupport != null) {
_json[r'extendedSupport'] = extendedSupport;
} else {
_json[r'extendedSupport'] = null;
}
return _json;
}

16
packages/nextcloud/lib/src/clients/generated/core/model/core_server_status.dart

@ -120,27 +120,43 @@ class CoreServerStatus {
final _json = <String, dynamic>{};
if (installed != null) {
_json[r'installed'] = installed;
} else {
_json[r'installed'] = null;
}
if (maintenance != null) {
_json[r'maintenance'] = maintenance;
} else {
_json[r'maintenance'] = null;
}
if (needsDbUpgrade != null) {
_json[r'needsDbUpgrade'] = needsDbUpgrade;
} else {
_json[r'needsDbUpgrade'] = null;
}
if (version != null) {
_json[r'version'] = version;
} else {
_json[r'version'] = null;
}
if (versionstring != null) {
_json[r'versionstring'] = versionstring;
} else {
_json[r'versionstring'] = null;
}
if (edition != null) {
_json[r'edition'] = edition;
} else {
_json[r'edition'] = null;
}
if (productname != null) {
_json[r'productname'] = productname;
} else {
_json[r'productname'] = null;
}
if (extendedSupport != null) {
_json[r'extendedSupport'] = extendedSupport;
} else {
_json[r'extendedSupport'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/news/api_client.dart

@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient {
}
final valueString = '$value'.toLowerCase();
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'NewsAddFeed':
return NewsAddFeed.fromJson(value);
case 'NewsArticle':

4
packages/nextcloud/lib/src/clients/generated/news/model/news_add_feed.dart

@ -49,9 +49,13 @@ class NewsAddFeed {
final _json = <String, dynamic>{};
if (url != null) {
_json[r'url'] = url;
} else {
_json[r'url'] = null;
}
if (folderId != null) {
_json[r'folderId'] = folderId;
} else {
_json[r'folderId'] = null;
}
return _json;
}

40
packages/nextcloud/lib/src/clients/generated/news/model/news_article.dart

@ -252,63 +252,103 @@ class NewsArticle {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (guid != null) {
_json[r'guid'] = guid;
} else {
_json[r'guid'] = null;
}
if (guidHash != null) {
_json[r'guidHash'] = guidHash;
} else {
_json[r'guidHash'] = null;
}
if (url != null) {
_json[r'url'] = url;
} else {
_json[r'url'] = null;
}
if (title != null) {
_json[r'title'] = title;
} else {
_json[r'title'] = null;
}
if (author != null) {
_json[r'author'] = author;
} else {
_json[r'author'] = null;
}
if (pubDate != null) {
_json[r'pubDate'] = pubDate;
} else {
_json[r'pubDate'] = null;
}
if (updatedDate != null) {
_json[r'updatedDate'] = updatedDate;
} else {
_json[r'updatedDate'] = null;
}
if (body != null) {
_json[r'body'] = body;
} else {
_json[r'body'] = null;
}
if (enclosureMime != null) {
_json[r'enclosureMime'] = enclosureMime;
} else {
_json[r'enclosureMime'] = null;
}
if (enclosureLink != null) {
_json[r'enclosureLink'] = enclosureLink;
} else {
_json[r'enclosureLink'] = null;
}
if (mediaThumbnail != null) {
_json[r'mediaThumbnail'] = mediaThumbnail;
} else {
_json[r'mediaThumbnail'] = null;
}
if (mediaDescription != null) {
_json[r'mediaDescription'] = mediaDescription;
} else {
_json[r'mediaDescription'] = null;
}
if (feedId != null) {
_json[r'feedId'] = feedId;
} else {
_json[r'feedId'] = null;
}
if (unread != null) {
_json[r'unread'] = unread;
} else {
_json[r'unread'] = null;
}
if (starred != null) {
_json[r'starred'] = starred;
} else {
_json[r'starred'] = null;
}
if (lastModified != null) {
_json[r'lastModified'] = lastModified;
} else {
_json[r'lastModified'] = null;
}
if (rtl != null) {
_json[r'rtl'] = rtl;
} else {
_json[r'rtl'] = null;
}
if (fingerprint != null) {
_json[r'fingerprint'] = fingerprint;
} else {
_json[r'fingerprint'] = null;
}
if (contentHash != null) {
_json[r'contentHash'] = contentHash;
} else {
_json[r'contentHash'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/news/model/news_create_folder.dart

@ -39,6 +39,8 @@ class NewsCreateFolder {
final _json = <String, dynamic>{};
if (name != null) {
_json[r'name'] = name;
} else {
_json[r'name'] = null;
}
return _json;
}

24
packages/nextcloud/lib/src/clients/generated/news/model/news_feed.dart

@ -169,39 +169,63 @@ class NewsFeed {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (url != null) {
_json[r'url'] = url;
} else {
_json[r'url'] = null;
}
if (title != null) {
_json[r'title'] = title;
} else {
_json[r'title'] = null;
}
if (faviconLink != null) {
_json[r'faviconLink'] = faviconLink;
} else {
_json[r'faviconLink'] = null;
}
if (added != null) {
_json[r'added'] = added;
} else {
_json[r'added'] = null;
}
if (folderId != null) {
_json[r'folderId'] = folderId;
} else {
_json[r'folderId'] = null;
}
if (unreadCount != null) {
_json[r'unreadCount'] = unreadCount;
} else {
_json[r'unreadCount'] = null;
}
if (ordering != null) {
_json[r'ordering'] = ordering;
} else {
_json[r'ordering'] = null;
}
if (link != null) {
_json[r'link'] = link;
} else {
_json[r'link'] = null;
}
if (pinned != null) {
_json[r'pinned'] = pinned;
} else {
_json[r'pinned'] = null;
}
if (updateErrorCount != null) {
_json[r'updateErrorCount'] = updateErrorCount;
} else {
_json[r'updateErrorCount'] = null;
}
if (lastUpdateError != null) {
_json[r'lastUpdateError'] = lastUpdateError;
} else {
_json[r'lastUpdateError'] = null;
}
_json[r'items'] = items;
return _json;

6
packages/nextcloud/lib/src/clients/generated/news/model/news_folder.dart

@ -66,12 +66,18 @@ class NewsFolder {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (name != null) {
_json[r'name'] = name;
} else {
_json[r'name'] = null;
}
if (opened != null) {
_json[r'opened'] = opened;
} else {
_json[r'opened'] = null;
}
_json[r'feeds'] = feeds;
return _json;

4
packages/nextcloud/lib/src/clients/generated/news/model/news_list_feeds.dart

@ -58,9 +58,13 @@ class NewsListFeeds {
final _json = <String, dynamic>{};
if (starredCount != null) {
_json[r'starredCount'] = starredCount;
} else {
_json[r'starredCount'] = null;
}
if (newestItemId != null) {
_json[r'newestItemId'] = newestItemId;
} else {
_json[r'newestItemId'] = null;
}
_json[r'feeds'] = feeds;
return _json;

2
packages/nextcloud/lib/src/clients/generated/news/model/news_mark_as_read.dart

@ -40,6 +40,8 @@ class NewsMarkAsRead {
final _json = <String, dynamic>{};
if (newestItemId != null) {
_json[r'newestItemId'] = newestItemId;
} else {
_json[r'newestItemId'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/news/model/news_move_feed.dart

@ -39,6 +39,8 @@ class NewsMoveFeed {
final _json = <String, dynamic>{};
if (folderId != null) {
_json[r'folderId'] = folderId;
} else {
_json[r'folderId'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/news/model/news_rename_feed.dart

@ -39,6 +39,8 @@ class NewsRenameFeed {
final _json = <String, dynamic>{};
if (feedTitle != null) {
_json[r'feedTitle'] = feedTitle;
} else {
_json[r'feedTitle'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/news/model/news_rename_folder.dart

@ -39,6 +39,8 @@ class NewsRenameFolder {
final _json = <String, dynamic>{};
if (name != null) {
_json[r'name'] = name;
} else {
_json[r'name'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notes/api_client.dart

@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient {
}
final valueString = '$value'.toLowerCase();
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'NotesNote':
return NotesNote.fromJson(value);
case 'NotesSettings':

20
packages/nextcloud/lib/src/clients/generated/notes/model/notes_note.dart

@ -142,33 +142,53 @@ class NotesNote {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (etag != null) {
_json[r'etag'] = etag;
} else {
_json[r'etag'] = null;
}
if (readonly != null) {
_json[r'readonly'] = readonly;
} else {
_json[r'readonly'] = null;
}
if (content != null) {
_json[r'content'] = content;
} else {
_json[r'content'] = null;
}
if (title != null) {
_json[r'title'] = title;
} else {
_json[r'title'] = null;
}
if (category != null) {
_json[r'category'] = category;
} else {
_json[r'category'] = null;
}
if (favorite != null) {
_json[r'favorite'] = favorite;
} else {
_json[r'favorite'] = null;
}
if (modified != null) {
_json[r'modified'] = modified;
} else {
_json[r'modified'] = null;
}
if (error != null) {
_json[r'error'] = error;
} else {
_json[r'error'] = null;
}
if (errorType != null) {
_json[r'errorType'] = errorType;
} else {
_json[r'errorType'] = null;
}
return _json;
}

6
packages/nextcloud/lib/src/clients/generated/notes/model/notes_settings.dart

@ -58,12 +58,18 @@ class NotesSettings {
final _json = <String, dynamic>{};
if (notesPath != null) {
_json[r'notesPath'] = notesPath;
} else {
_json[r'notesPath'] = null;
}
if (fileSuffix != null) {
_json[r'fileSuffix'] = fileSuffix;
} else {
_json[r'fileSuffix'] = null;
}
if (noteMode != null) {
_json[r'noteMode'] = noteMode;
} else {
_json[r'noteMode'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notifications/api_client.dart

@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient {
}
final valueString = '$value'.toLowerCase();
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'AdminNotification':
return AdminNotification.fromJson(value);
case 'EmptyResponse':

4
packages/nextcloud/lib/src/clients/generated/notifications/model/admin_notification.dart

@ -50,9 +50,13 @@ class AdminNotification {
final _json = <String, dynamic>{};
if (shortMessage != null) {
_json[r'shortMessage'] = shortMessage;
} else {
_json[r'shortMessage'] = null;
}
if (longMessage != null) {
_json[r'longMessage'] = longMessage;
} else {
_json[r'longMessage'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response.dart

@ -39,6 +39,8 @@ class EmptyResponse {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response_ocs.dart

@ -38,6 +38,8 @@ class EmptyResponseOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
_json[r'data'] = data;
return _json;

2
packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response.dart

@ -39,6 +39,8 @@ class GetNotificationResponse {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response_ocs.dart

@ -44,9 +44,13 @@ class GetNotificationResponseOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
if (data != null) {
_json[r'data'] = data;
} else {
_json[r'data'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response.dart

@ -39,6 +39,8 @@ class ListNotificationsResponse {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response_ocs.dart

@ -38,6 +38,8 @@ class ListNotificationsResponseOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
_json[r'data'] = data;
return _json;

24
packages/nextcloud/lib/src/clients/generated/notifications/model/notification.dart

@ -179,41 +179,65 @@ class Notification {
final _json = <String, dynamic>{};
if (notificationId != null) {
_json[r'notification_id'] = notificationId;
} else {
_json[r'notification_id'] = null;
}
if (app != null) {
_json[r'app'] = app;
} else {
_json[r'app'] = null;
}
if (user != null) {
_json[r'user'] = user;
} else {
_json[r'user'] = null;
}
if (datetime != null) {
_json[r'datetime'] = datetime;
} else {
_json[r'datetime'] = null;
}
if (objectType != null) {
_json[r'object_type'] = objectType;
} else {
_json[r'object_type'] = null;
}
if (objectId != null) {
_json[r'object_id'] = objectId;
} else {
_json[r'object_id'] = null;
}
if (subject != null) {
_json[r'subject'] = subject;
} else {
_json[r'subject'] = null;
}
if (message != null) {
_json[r'message'] = message;
} else {
_json[r'message'] = null;
}
if (link != null) {
_json[r'link'] = link;
} else {
_json[r'link'] = null;
}
if (subjectRich != null) {
_json[r'subjectRich'] = subjectRich;
} else {
_json[r'subjectRich'] = null;
}
_json[r'subjectRichParameters'] = subjectRichParameters;
if (messageRich != null) {
_json[r'messageRich'] = messageRich;
} else {
_json[r'messageRich'] = null;
}
_json[r'messageRichParameters'] = messageRichParameters;
if (icon != null) {
_json[r'icon'] = icon;
} else {
_json[r'icon'] = null;
}
_json[r'actions'] = actions;
return _json;

10
packages/nextcloud/lib/src/clients/generated/notifications/model/push_notification_decrypted_subject.dart

@ -86,18 +86,28 @@ class PushNotificationDecryptedSubject {
final _json = <String, dynamic>{};
if (nid != null) {
_json[r'nid'] = nid;
} else {
_json[r'nid'] = null;
}
if (app != null) {
_json[r'app'] = app;
} else {
_json[r'app'] = null;
}
if (subject != null) {
_json[r'subject'] = subject;
} else {
_json[r'subject'] = null;
}
if (type != null) {
_json[r'type'] = type;
} else {
_json[r'type'] = null;
}
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
return _json;
}

6
packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_device.dart

@ -65,12 +65,18 @@ class PushServerDevice {
final _json = <String, dynamic>{};
if (pushTokenHash != null) {
_json[r'pushTokenHash'] = pushTokenHash;
} else {
_json[r'pushTokenHash'] = null;
}
if (devicePublicKey != null) {
_json[r'devicePublicKey'] = devicePublicKey;
} else {
_json[r'devicePublicKey'] = null;
}
if (proxyServer != null) {
_json[r'proxyServer'] = proxyServer;
} else {
_json[r'proxyServer'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response.dart

@ -40,6 +40,8 @@ class PushServerRegistrationResponse {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response_ocs.dart

@ -44,9 +44,13 @@ class PushServerRegistrationResponseOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
if (data != null) {
_json[r'data'] = data;
} else {
_json[r'data'] = null;
}
return _json;
}

6
packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_subscription.dart

@ -65,12 +65,18 @@ class PushServerSubscription {
final _json = <String, dynamic>{};
if (publicKey != null) {
_json[r'publicKey'] = publicKey;
} else {
_json[r'publicKey'] = null;
}
if (deviceIdentifier != null) {
_json[r'deviceIdentifier'] = deviceIdentifier;
} else {
_json[r'deviceIdentifier'] = null;
}
if (signature != null) {
_json[r'signature'] = signature;
} else {
_json[r'signature'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/provisioning_api/api_client.dart

@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient {
}
final valueString = '$value'.toLowerCase();
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'ProvisioningApiUser':
return ProvisioningApiUser.fromJson(value);
case 'ProvisioningApiUserDetails':

2
packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user.dart

@ -39,6 +39,8 @@ class ProvisioningApiUser {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

83
packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details.dart

@ -47,6 +47,7 @@ class ProvisioningApiUserDetails {
this.groups = const [],
this.language,
this.locale,
this.notifyEmail,
this.backendCapabilities,
this.displayName,
});
@ -299,6 +300,14 @@ class ProvisioningApiUserDetails {
///
String? locale;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? notifyEmail;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
@ -353,6 +362,7 @@ class ProvisioningApiUserDetails {
other.groups == groups &&
other.language == language &&
other.locale == locale &&
other.notifyEmail == notifyEmail &&
other.backendCapabilities == backendCapabilities &&
other.displayName == displayName;
@ -393,114 +403,184 @@ class ProvisioningApiUserDetails {
(groups.hashCode) +
(language == null ? 0 : language!.hashCode) +
(locale == null ? 0 : locale!.hashCode) +
(notifyEmail == null ? 0 : notifyEmail!.hashCode) +
(backendCapabilities == null ? 0 : backendCapabilities!.hashCode) +
(displayName == null ? 0 : displayName!.hashCode);
@override
String toString() =>
'ProvisioningApiUserDetails[storageLocation=$storageLocation, id=$id, lastLogin=$lastLogin, backend=$backend, subadmin=$subadmin, quota=$quota, avatarScope=$avatarScope, email=$email, emailScope=$emailScope, additionalMail=$additionalMail, additionalMailScope=$additionalMailScope, displayname=$displayname, displaynameScope=$displaynameScope, phone=$phone, phoneScope=$phoneScope, address=$address, addressScope=$addressScope, website=$website, websiteScope=$websiteScope, twitter=$twitter, twitterScope=$twitterScope, organisation=$organisation, organisationScope=$organisationScope, role=$role, roleScope=$roleScope, headline=$headline, headlineScope=$headlineScope, biography=$biography, biographyScope=$biographyScope, profileEnabled=$profileEnabled, profileEnabledScope=$profileEnabledScope, groups=$groups, language=$language, locale=$locale, backendCapabilities=$backendCapabilities, displayName=$displayName]';
'ProvisioningApiUserDetails[storageLocation=$storageLocation, id=$id, lastLogin=$lastLogin, backend=$backend, subadmin=$subadmin, quota=$quota, avatarScope=$avatarScope, email=$email, emailScope=$emailScope, additionalMail=$additionalMail, additionalMailScope=$additionalMailScope, displayname=$displayname, displaynameScope=$displaynameScope, phone=$phone, phoneScope=$phoneScope, address=$address, addressScope=$addressScope, website=$website, websiteScope=$websiteScope, twitter=$twitter, twitterScope=$twitterScope, organisation=$organisation, organisationScope=$organisationScope, role=$role, roleScope=$roleScope, headline=$headline, headlineScope=$headlineScope, biography=$biography, biographyScope=$biographyScope, profileEnabled=$profileEnabled, profileEnabledScope=$profileEnabledScope, groups=$groups, language=$language, locale=$locale, notifyEmail=$notifyEmail, backendCapabilities=$backendCapabilities, displayName=$displayName]';
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (storageLocation != null) {
_json[r'storageLocation'] = storageLocation;
} else {
_json[r'storageLocation'] = null;
}
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (lastLogin != null) {
_json[r'lastLogin'] = lastLogin;
} else {
_json[r'lastLogin'] = null;
}
if (backend != null) {
_json[r'backend'] = backend;
} else {
_json[r'backend'] = null;
}
_json[r'subadmin'] = subadmin;
if (quota != null) {
_json[r'quota'] = quota;
} else {
_json[r'quota'] = null;
}
if (avatarScope != null) {
_json[r'avatarScope'] = avatarScope;
} else {
_json[r'avatarScope'] = null;
}
if (email != null) {
_json[r'email'] = email;
} else {
_json[r'email'] = null;
}
if (emailScope != null) {
_json[r'emailScope'] = emailScope;
} else {
_json[r'emailScope'] = null;
}
_json[r'additional_mail'] = additionalMail;
_json[r'additional_mailScope'] = additionalMailScope;
if (displayname != null) {
_json[r'displayname'] = displayname;
} else {
_json[r'displayname'] = null;
}
if (displaynameScope != null) {
_json[r'displaynameScope'] = displaynameScope;
} else {
_json[r'displaynameScope'] = null;
}
if (phone != null) {
_json[r'phone'] = phone;
} else {
_json[r'phone'] = null;
}
if (phoneScope != null) {
_json[r'phoneScope'] = phoneScope;
} else {
_json[r'phoneScope'] = null;
}
if (address != null) {
_json[r'address'] = address;
} else {
_json[r'address'] = null;
}
if (addressScope != null) {
_json[r'addressScope'] = addressScope;
} else {
_json[r'addressScope'] = null;
}
if (website != null) {
_json[r'website'] = website;
} else {
_json[r'website'] = null;
}
if (websiteScope != null) {
_json[r'websiteScope'] = websiteScope;
} else {
_json[r'websiteScope'] = null;
}
if (twitter != null) {
_json[r'twitter'] = twitter;
} else {
_json[r'twitter'] = null;
}
if (twitterScope != null) {
_json[r'twitterScope'] = twitterScope;
} else {
_json[r'twitterScope'] = null;
}
if (organisation != null) {
_json[r'organisation'] = organisation;
} else {
_json[r'organisation'] = null;
}
if (organisationScope != null) {
_json[r'organisationScope'] = organisationScope;
} else {
_json[r'organisationScope'] = null;
}
if (role != null) {
_json[r'role'] = role;
} else {
_json[r'role'] = null;
}
if (roleScope != null) {
_json[r'roleScope'] = roleScope;
} else {
_json[r'roleScope'] = null;
}
if (headline != null) {
_json[r'headline'] = headline;
} else {
_json[r'headline'] = null;
}
if (headlineScope != null) {
_json[r'headlineScope'] = headlineScope;
} else {
_json[r'headlineScope'] = null;
}
if (biography != null) {
_json[r'biography'] = biography;
} else {
_json[r'biography'] = null;
}
if (biographyScope != null) {
_json[r'biographyScope'] = biographyScope;
} else {
_json[r'biographyScope'] = null;
}
if (profileEnabled != null) {
_json[r'profile_enabled'] = profileEnabled;
} else {
_json[r'profile_enabled'] = null;
}
if (profileEnabledScope != null) {
_json[r'profile_enabledScope'] = profileEnabledScope;
} else {
_json[r'profile_enabledScope'] = null;
}
_json[r'groups'] = groups;
if (language != null) {
_json[r'language'] = language;
} else {
_json[r'language'] = null;
}
if (locale != null) {
_json[r'locale'] = locale;
} else {
_json[r'locale'] = null;
}
if (notifyEmail != null) {
_json[r'notify_email'] = notifyEmail;
} else {
_json[r'notify_email'] = null;
}
if (backendCapabilities != null) {
_json[r'backendCapabilities'] = backendCapabilities;
} else {
_json[r'backendCapabilities'] = null;
}
if (displayName != null) {
_json[r'display-name'] = displayName;
} else {
_json[r'display-name'] = null;
}
return _json;
}
@ -559,6 +639,7 @@ class ProvisioningApiUserDetails {
groups: json[r'groups'] is List ? (json[r'groups'] as List).cast<String>() : const [],
language: mapValueOfType<String>(json, r'language'),
locale: mapValueOfType<String>(json, r'locale'),
notifyEmail: mapValueOfType<String>(json, r'notify_email'),
backendCapabilities: ProvisioningApiUserDetailsBackendCapabilities.fromJson(json[r'backendCapabilities']),
displayName: mapValueOfType<String>(json, r'display-name'),
);

4
packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_backend_capabilities.dart

@ -53,9 +53,13 @@ class ProvisioningApiUserDetailsBackendCapabilities {
final _json = <String, dynamic>{};
if (setDisplayName != null) {
_json[r'setDisplayName'] = setDisplayName;
} else {
_json[r'setDisplayName'] = null;
}
if (setPassword != null) {
_json[r'setPassword'] = setPassword;
} else {
_json[r'setPassword'] = null;
}
return _json;
}

10
packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_quota.dart

@ -87,18 +87,28 @@ class ProvisioningApiUserDetailsQuota {
final _json = <String, dynamic>{};
if (free != null) {
_json[r'free'] = free;
} else {
_json[r'free'] = null;
}
if (used != null) {
_json[r'used'] = used;
} else {
_json[r'used'] = null;
}
if (total != null) {
_json[r'total'] = total;
} else {
_json[r'total'] = null;
}
if (relative != null) {
_json[r'relative'] = relative;
} else {
_json[r'relative'] = null;
}
if (quota != null) {
_json[r'quota'] = quota;
} else {
_json[r'quota'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_ocs.dart

@ -44,9 +44,13 @@ class ProvisioningApiUserOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
if (data != null) {
_json[r'data'] = data;
} else {
_json[r'data'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/api_client.dart

@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient {
}
final valueString = '$value'.toLowerCase();
return valueString == 'true' || valueString == '1';
case 'DateTime':
return value is DateTime ? value : DateTime.tryParse(value);
case 'UserStatus':
return UserStatus.fromJson(value);
case 'UserStatusClearAt':

16
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status.dart

@ -120,27 +120,43 @@ class UserStatus {
final _json = <String, dynamic>{};
if (userId != null) {
_json[r'userId'] = userId;
} else {
_json[r'userId'] = null;
}
if (message != null) {
_json[r'message'] = message;
} else {
_json[r'message'] = null;
}
if (messageId != null) {
_json[r'messageId'] = messageId;
} else {
_json[r'messageId'] = null;
}
if (messageIsPredefined != null) {
_json[r'messageIsPredefined'] = messageIsPredefined;
} else {
_json[r'messageIsPredefined'] = null;
}
if (icon != null) {
_json[r'icon'] = icon;
} else {
_json[r'icon'] = null;
}
if (clearAt != null) {
_json[r'clearAt'] = clearAt;
} else {
_json[r'clearAt'] = null;
}
if (status != null) {
_json[r'status'] = status;
} else {
_json[r'status'] = null;
}
if (statusIsUserDefined != null) {
_json[r'statusIsUserDefined'] = statusIsUserDefined;
} else {
_json[r'statusIsUserDefined'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_clear_at.dart

@ -49,9 +49,13 @@ class UserStatusClearAt {
final _json = <String, dynamic>{};
if (type != null) {
_json[r'type'] = type;
} else {
_json[r'type'] = null;
}
if (time != null) {
_json[r'time'] = time;
} else {
_json[r'time'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses.dart

@ -39,6 +39,8 @@ class UserStatusFindAllStatuses {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses_ocs.dart

@ -38,6 +38,8 @@ class UserStatusFindAllStatusesOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
_json[r'data'] = data;
return _json;

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status.dart

@ -39,6 +39,8 @@ class UserStatusFindStatus {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status_ocs.dart

@ -44,9 +44,13 @@ class UserStatusFindStatusOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
if (data != null) {
_json[r'data'] = data;
} else {
_json[r'data'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status.dart

@ -39,6 +39,8 @@ class UserStatusGetUserStatus {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status_ocs.dart

@ -44,9 +44,13 @@ class UserStatusGetUserStatusOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
if (data != null) {
_json[r'data'] = data;
} else {
_json[r'data'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_heartbeat.dart

@ -39,6 +39,8 @@ class UserStatusHeartbeat {
final _json = <String, dynamic>{};
if (status != null) {
_json[r'status'] = status;
} else {
_json[r'status'] = null;
}
return _json;
}

8
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_status.dart

@ -75,15 +75,23 @@ class UserStatusPredefinedStatus {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
} else {
_json[r'id'] = null;
}
if (icon != null) {
_json[r'icon'] = icon;
} else {
_json[r'icon'] = null;
}
if (message != null) {
_json[r'message'] = message;
} else {
_json[r'message'] = null;
}
if (clearAt != null) {
_json[r'clearAt'] = clearAt;
} else {
_json[r'clearAt'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses.dart

@ -39,6 +39,8 @@ class UserStatusPredefinedStatuses {
final _json = <String, dynamic>{};
if (ocs != null) {
_json[r'ocs'] = ocs;
} else {
_json[r'ocs'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses_ocs.dart

@ -38,6 +38,8 @@ class UserStatusPredefinedStatusesOcs {
final _json = <String, dynamic>{};
if (meta != null) {
_json[r'meta'] = meta;
} else {
_json[r'meta'] = null;
}
_json[r'data'] = data;
return _json;

10
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_public_user_status.dart

@ -87,18 +87,28 @@ class UserStatusPublicUserStatus {
final _json = <String, dynamic>{};
if (userId != null) {
_json[r'userId'] = userId;
} else {
_json[r'userId'] = null;
}
if (message != null) {
_json[r'message'] = message;
} else {
_json[r'message'] = null;
}
if (icon != null) {
_json[r'icon'] = icon;
} else {
_json[r'icon'] = null;
}
if (clearAt != null) {
_json[r'clearAt'] = clearAt;
} else {
_json[r'clearAt'] = null;
}
if (status != null) {
_json[r'status'] = status;
} else {
_json[r'status'] = null;
}
return _json;
}

6
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_custom_message.dart

@ -64,12 +64,18 @@ class UserStatusSetCustomMessage {
final _json = <String, dynamic>{};
if (statusIcon != null) {
_json[r'statusIcon'] = statusIcon;
} else {
_json[r'statusIcon'] = null;
}
if (message != null) {
_json[r'message'] = message;
} else {
_json[r'message'] = null;
}
if (clearAt != null) {
_json[r'clearAt'] = clearAt;
} else {
_json[r'clearAt'] = null;
}
return _json;
}

4
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_predefined_message.dart

@ -50,9 +50,13 @@ class UserStatusSetPredefinedMessage {
final _json = <String, dynamic>{};
if (messageId != null) {
_json[r'messageId'] = messageId;
} else {
_json[r'messageId'] = null;
}
if (clearAt != null) {
_json[r'clearAt'] = clearAt;
} else {
_json[r'clearAt'] = null;
}
return _json;
}

2
packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_user_status.dart

@ -40,6 +40,8 @@ class UserStatusSetUserStatus {
final _json = <String, dynamic>{};
if (statusType != null) {
_json[r'statusType'] = statusType;
} else {
_json[r'statusType'] = null;
}
return _json;
}

22
packages/nextcloud/test/news_test.dart

@ -39,6 +39,7 @@ Future main() async {
var response = (await validateResponse<NewsListFeeds, void>(
client.news,
client.news.listFeedsWithHttpInfo(),
cleanResponse: true,
))!;
expect(response.starredCount, 0);
expect(response.newestItemId, null);
@ -53,7 +54,6 @@ Future main() async {
response = (await validateResponse<NewsListFeeds, void>(
client.news,
client.news.listFeedsWithHttpInfo(),
cleanResponse: true,
))!;
expect(response.starredCount, 0);
expect(response.newestItemId, isNotNull);
@ -67,7 +67,6 @@ Future main() async {
var articlesResponse = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
expect(articlesResponse.items.length, greaterThan(0));
@ -81,7 +80,6 @@ Future main() async {
articlesResponse = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
expect(articlesResponse.items, hasLength(0));
});
@ -90,7 +88,6 @@ Future main() async {
var response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(),
cleanResponse: true,
))!;
expect(response.items, hasLength(0));
@ -99,7 +96,6 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(),
cleanResponse: true,
))!;
expect(response.items.length, greaterThan(0));
expect(response.items[0].body, isNotNull);
@ -119,7 +115,6 @@ Future main() async {
var response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(),
cleanResponse: true,
))!;
final wikipediaArticles = response.items.length;
expect(wikipediaArticles, greaterThan(0));
@ -129,7 +124,6 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(),
cleanResponse: true,
))!;
final nasaArticles = response.items.length - wikipediaArticles;
expect(nasaArticles, greaterThan(0));
@ -139,7 +133,6 @@ Future main() async {
client.news.listUpdatedArticlesWithHttpInfo(
lastModified: response.items[response.items.length - 1 - nasaArticles].lastModified,
),
cleanResponse: true,
))!;
expect(response.items, hasLength(nasaArticles));
});
@ -150,7 +143,6 @@ Future main() async {
var response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
final unreadArticles = response.items.length;
expect(unreadArticles, greaterThan(0));
@ -159,7 +151,6 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
expect(response.items, hasLength(unreadArticles - 1));
});
@ -170,14 +161,12 @@ Future main() async {
var response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
final readArticle = response.items[0];
await client.news.markArticleAsRead(readArticle.id!);
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
final unreadArticles = response.items.length;
expect(unreadArticles, greaterThan(0));
@ -186,7 +175,6 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
expect(response.items, hasLength(unreadArticles + 1));
});
@ -197,7 +185,6 @@ Future main() async {
var response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 2),
cleanResponse: true,
))!;
final starredArticles = response.items.length;
expect(starredArticles, 0);
@ -205,13 +192,11 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(),
cleanResponse: true,
))!;
await client.news.starArticle(response.items[0].feedId!, response.items[0].guidHash!);
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 2),
cleanResponse: true,
))!;
expect(response.items, hasLength(1));
});
@ -222,7 +207,6 @@ Future main() async {
var response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(),
cleanResponse: true,
))!;
final item = response.items[0];
@ -230,7 +214,6 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 2),
cleanResponse: true,
))!;
expect(response.items, hasLength(1));
@ -238,7 +221,6 @@ Future main() async {
response = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 2),
cleanResponse: true,
))!;
expect(response.items, hasLength(0));
});
@ -316,7 +298,6 @@ Future main() async {
var articlesResponse = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
expect(articlesResponse.items.length, greaterThan(0));
@ -330,7 +311,6 @@ Future main() async {
articlesResponse = (await validateResponse<NewsListArticles, void>(
client.news,
client.news.listArticlesWithHttpInfo(type: 6),
cleanResponse: true,
))!;
expect(articlesResponse.items, hasLength(0));
});

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save