diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index 9f52e168..97872fb6 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -1,11 +1,15 @@ -// ignore_for_file: avoid_dynamic_calls // ignore_for_file: camel_case_types // ignore_for_file: public_member_api_docs import 'dart:convert'; import 'dart:typed_data'; +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/json_object.dart'; +import 'package:built_value/serializer.dart'; +import 'package:built_value/standard_json_plugin.dart'; import 'package:cookie_jar/cookie_jar.dart'; -import 'package:json_annotation/json_annotation.dart'; +import 'package:dynamite_runtime/content_string.dart'; import 'package:universal_io/io.dart'; export 'package:cookie_jar/cookie_jar.dart'; @@ -182,9 +186,7 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return NextcloudCoreServerStatus.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudCoreServerStatus.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -208,9 +210,7 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return NextcloudCoreServerCapabilities.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudCoreServerCapabilities.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -234,9 +234,7 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return NextcloudCoreNavigationApps.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudCoreNavigationApps.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -255,9 +253,7 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return NextcloudCoreLoginFlowInit.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudCoreLoginFlowInit.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -277,9 +273,7 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return NextcloudCoreLoginFlowResult.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudCoreLoginFlowResult.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -395,7 +389,7 @@ class NextcloudCoreClient { required final String search, required final String itemType, required final String itemId, - required final List shareTypes, + required final BuiltList shareTypes, final String? sorter, final int limit = 10, }) async { @@ -413,7 +407,7 @@ class NextcloudCoreClient { queryParameters['search'] = search; queryParameters['itemType'] = itemType; queryParameters['itemId'] = itemId; - queryParameters['shareTypes[]'] = shareTypes.map((final e) => e).toList().map((final e) => e.toString()).toList(); + queryParameters['shareTypes[]'] = shareTypes.map((final e) => e).map((final e) => e.toString()); if (sorter != null) { queryParameters['sorter'] = sorter; } @@ -427,14 +421,12 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return NextcloudCoreAutocompleteResult.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudCoreAutocompleteResult.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future deleteAppPassword() async { + Future deleteAppPassword() async { const path = '/ocs/v2.php/core/apppassword'; final queryParameters = {}; final headers = { @@ -453,7 +445,7 @@ class NextcloudCoreClient { body, ); if (response.statusCode == 200) { - return; + return JsonObject(JsonObject(utf8.decode(response.body))); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -483,9 +475,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsSupportedAPIVersions.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudNewsSupportedAPIVersions.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -509,9 +499,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsListFolders.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudNewsListFolders.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -536,9 +524,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsListFolders.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudNewsListFolders.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -639,7 +625,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsListFeeds.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNewsListFeeds.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -670,7 +656,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsListFeeds.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNewsListFeeds.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -825,9 +811,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsListArticles.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudNewsListArticles.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -864,9 +848,7 @@ class NextcloudNewsClient { body, ); if (response.statusCode == 200) { - return NextcloudNewsListArticles.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudNewsListArticles.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -969,7 +951,7 @@ class NextcloudNotesClient { final NextcloudClient rootClient; - Future> getNotes({ + Future> getNotes({ final String? category, final String exclude = '', final int pruneBefore = 0, @@ -1013,9 +995,9 @@ class NextcloudNotesClient { body, ); if (response.statusCode == 200) { - return (json.decode(utf8.decode(response.body)) as List) - .map((final e) => NextcloudNotesNote.fromJson(e as Map)) - .toList(); + return BuiltList( + (json.decode(utf8.decode(response.body)) as List).map((final e) => NextcloudNotesNote.fromJson(e as Object)), + ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1060,7 +1042,7 @@ class NextcloudNotesClient { body, ); if (response.statusCode == 200) { - return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1095,7 +1077,7 @@ class NextcloudNotesClient { body, ); if (response.statusCode == 200) { - return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1146,7 +1128,7 @@ class NextcloudNotesClient { body, ); if (response.statusCode == 200) { - return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1195,7 +1177,7 @@ class NextcloudNotesClient { body, ); if (response.statusCode == 200) { - return NextcloudNotesSettings.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNotesSettings.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1221,7 +1203,7 @@ class NextcloudNotesClient { body, ); if (response.statusCode == 200) { - return NextcloudNotesSettings.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudNotesSettings.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1252,7 +1234,7 @@ class NextcloudNotificationsClient { ); if (response.statusCode == 200) { return NextcloudNotificationsListNotifications.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1303,7 +1285,7 @@ class NextcloudNotificationsClient { ); if (response.statusCode == 200) { return NextcloudNotificationsGetNotification.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1329,7 +1311,7 @@ class NextcloudNotificationsClient { body, ); if (response.statusCode == 200) { - return NextcloudEmptyOCS.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudEmptyOCS.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1361,7 +1343,7 @@ class NextcloudNotificationsClient { ); if (response.statusCode == 201) { return NextcloudNotificationsPushServerRegistration.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1419,7 +1401,7 @@ class NextcloudNotificationsClient { body, ); if (response.statusCode == 200) { - return NextcloudEmptyOCS.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NextcloudEmptyOCS.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1449,9 +1431,7 @@ class NextcloudProvisioningApiClient { body, ); if (response.statusCode == 200) { - return NextcloudProvisioningApiUser.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1476,9 +1456,7 @@ class NextcloudProvisioningApiClient { body, ); if (response.statusCode == 200) { - return NextcloudProvisioningApiUser.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1510,7 +1488,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1542,7 +1520,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1572,7 +1550,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1604,7 +1582,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 401) { return NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1634,7 +1612,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1666,7 +1644,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1696,7 +1674,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1726,7 +1704,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1754,7 +1732,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 201) { return NextcloudUnifiedPushProviderPushResponse201ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1781,7 +1759,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1808,7 +1786,7 @@ class NextcloudUnifiedPushProviderClient { ); if (response.statusCode == 200) { return NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -1839,9 +1817,7 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusGetPublicStatuses.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusGetPublicStatuses.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1866,9 +1842,7 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusGetPublicStatus.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusGetPublicStatus.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1892,9 +1866,7 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusGetStatus.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusGetStatus.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1911,7 +1883,7 @@ class NextcloudUserStatusClient { } else { throw Exception('Missing authentication for basic_auth'); } - queryParameters['statusType'] = statusType.value; + queryParameters['statusType'] = statusType.name; final response = await rootClient.doRequest( 'put', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), @@ -1919,9 +1891,7 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusGetStatus.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusGetStatus.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1952,9 +1922,7 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusGetStatus.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusGetStatus.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -1991,9 +1959,7 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusGetStatus.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusGetStatus.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } @@ -2040,7 +2006,7 @@ class NextcloudUserStatusClient { ); if (response.statusCode == 200) { return NextcloudUserStatusPredefinedStatuses.fromJson( - json.decode(utf8.decode(response.body)) as Map, + json.decode(utf8.decode(response.body)) as Object, ); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line @@ -2058,7 +2024,7 @@ class NextcloudUserStatusClient { } else { throw Exception('Missing authentication for basic_auth'); } - queryParameters['status'] = status.value; + queryParameters['status'] = status.name; final response = await rootClient.doRequest( 'put', Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), @@ -2066,5466 +2032,2773 @@ class NextcloudUserStatusClient { body, ); if (response.statusCode == 200) { - return NextcloudUserStatusHeartbeat.fromJson( - json.decode(utf8.decode(response.body)) as Map, - ); + return NextcloudUserStatusHeartbeat.fromJson(json.decode(utf8.decode(response.body)) as Object); } throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } -@JsonSerializable() -class NextcloudCoreServerStatus { - NextcloudCoreServerStatus({ - required this.installed, - required this.maintenance, - required this.needsDbUpgrade, - required this.version, - required this.versionstring, - required this.edition, - required this.productname, - required this.extendedSupport, - }); - - // coverage:ignore-start - factory NextcloudCoreServerStatus.fromJson(final Map json) => - _$NextcloudCoreServerStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerStatus.fromJsonString(final String data) => - NextcloudCoreServerStatus.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final bool installed; - - final bool maintenance; - - final bool needsDbUpgrade; - - final String version; - - final String versionstring; - - final String edition; +abstract class NextcloudCoreServerStatus implements Built { + factory NextcloudCoreServerStatus([final void Function(NextcloudCoreServerStatusBuilder)? b]) = + _$NextcloudCoreServerStatus; + const NextcloudCoreServerStatus._(); + + static NextcloudCoreServerStatus fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get installed; + bool get maintenance; + bool get needsDbUpgrade; + String get version; + String get versionstring; + String get edition; + String get productname; + bool get extendedSupport; + static Serializer get serializer => _$nextcloudCoreServerStatusSerializer; +} + +abstract class NextcloudOCSMeta implements Built { + factory NextcloudOCSMeta([final void Function(NextcloudOCSMetaBuilder)? b]) = _$NextcloudOCSMeta; + const NextcloudOCSMeta._(); + + static NextcloudOCSMeta fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get status; + int get statuscode; + String? get message; + String? get totalitems; + String? get itemsperpage; + static Serializer get serializer => _$nextcloudOCSMetaSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Version + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Version([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Version; + const NextcloudCoreServerCapabilities_Ocs_Data_Version._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Version fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int? get major; + int? get minor; + int? get micro; + String? get string; + String? get edition; + bool? get extendedSupport; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataVersionSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int? get pollinterval; + @BuiltValueField(wireName: 'webdav-root') + String? get webdavRoot; + @BuiltValueField(wireName: 'reference-api') + bool? get referenceApi; + @BuiltValueField(wireName: 'reference-regex') + String? get referenceRegex; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCoreSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int? get delay; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesBruteforceSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList? get size; + BuiltList? get gps; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailableSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get url; + String? get etag; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditingSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get bigfilechunking; + @BuiltValueField(wireName: 'blacklisted_files') + BuiltList? get blacklistedFiles; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? get directEditing; + bool? get comments; + bool? get undelete; + bool? get versioning; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList? get apiv2; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesActivitySerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get globalScale; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesStatusSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get frontendEnabled; + int? get allowedCircles; + int? get allowedUserTypes; + int? get membersLimit; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder)? + b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + JsonObject? get core; + JsonObject? get extra; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSourceSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + JsonObject? get flags; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? get source; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList? get coreFlags; + BuiltList? get systemFlags; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfigSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? get constants; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? get config; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + JsonObject? get level; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstantsSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? get constants; + JsonObject? get type; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get version; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? get status; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? get settings; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? get circle; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? get member; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get webdav; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocolsSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get name; + BuiltList? get shareTypes; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? get protocols; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + String? get apiVersion; + String? get endPoint; + BuiltList? get resourceTypes; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesOcmSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get bulkupload; + String? get chunking; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesDavSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enforced; + bool? get askForOptionalPassword; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPasswordSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal([ + final void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder, + )? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternalSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote([ + final void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder, + )? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemoteSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? get password; + @BuiltValueField(wireName: 'expire_date') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? get expireDate; + @BuiltValueField(wireName: 'multiple_links') + bool? get multipleLinks; + @BuiltValueField(wireName: 'expire_date_internal') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? get expireDateInternal; + @BuiltValueField(wireName: 'expire_date_remote') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? get expireDateRemote; + @BuiltValueField(wireName: 'send_mail') + bool? get sendMail; + bool? get upload; + @BuiltValueField(wireName: 'upload_files_drop') + bool? get uploadFilesDrop; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDateSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueField(wireName: 'send_mail') + bool? get sendMail; + @BuiltValueField(wireName: 'expire_date') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? get expireDate; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDateSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + @BuiltValueField(wireName: 'expire_date') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? get expireDate; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate([ + final void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder, + )? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported([ + final void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder, + )? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupportedSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get outgoing; + bool? get incoming; + @BuiltValueField(wireName: 'expire_date') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? get expireDate; + @BuiltValueField(wireName: 'expire_date_supported') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? + get expireDateSupported; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueField(wireName: 'query_lookup_default') + bool? get queryLookupDefault; + @BuiltValueField(wireName: 'always_show_unique') + bool? get alwaysShowUnique; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingShareeSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop([ + final void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder, + )? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer + get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDropSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder)? + b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + bool? get enforced; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPasswordSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate([ + final void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder, + )? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + bool? get enforced; + static Serializer + get serializer => _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDateSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + @BuiltValueField(wireName: 'send_password_by_mail') + bool? get sendPasswordByMail; + @BuiltValueField(wireName: 'upload_files_drop') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? get uploadFilesDrop; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? get password; + @BuiltValueField(wireName: 'expire_date') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? get expireDate; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueField(wireName: 'api_enabled') + bool? get apiEnabled; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? get public; + bool? get resharing; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? get user; + @BuiltValueField(wireName: 'group_sharing') + bool? get groupSharing; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? get group; + @BuiltValueField(wireName: 'default_permissions') + int? get defaultPermissions; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? get federation; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? get sharee; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? get sharebymail; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueField(wireName: 'api_version') + BuiltList? get apiVersion; + String? get version; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesNotesSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueField(wireName: 'ocs-endpoints') + BuiltList? get ocsEndpoints; + BuiltList? get push; + @BuiltValueField(wireName: 'admin-notifications') + BuiltList? get adminNotifications; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesNotificationsSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get generate; + String? get validate; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApiSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int? get minLength; + bool? get enforceNonCommonPassword; + bool? get enforceNumericCharacters; + bool? get enforceSpecialCharacters; + bool? get enforceUpperLowerCase; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? get api; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicySerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get version; + @BuiltValueField(wireName: 'AccountPropertyScopesVersion') + int? get accountPropertyScopesVersion; + @BuiltValueField(wireName: 'AccountPropertyScopesFederatedEnabled') + bool? get accountPropertyScopesFederatedEnabled; + @BuiltValueField(wireName: 'AccountPropertyScopesPublishedEnabled') + bool? get accountPropertyScopesPublishedEnabled; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String? get name; + String? get url; + String? get slogan; + String? get color; + @BuiltValueField(wireName: 'color-text') + String? get colorText; + @BuiltValueField(wireName: 'color-element') + String? get colorElement; + @BuiltValueField(wireName: 'color-element-bright') + String? get colorElementBright; + @BuiltValueField(wireName: 'color-element-dark') + String? get colorElementDark; + String? get logo; + String? get background; + @BuiltValueField(wireName: 'background-plain') + bool? get backgroundPlain; + @BuiltValueField(wireName: 'background-default') + bool? get backgroundDefault; + String? get logoheader; + String? get favicon; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesThemingSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + @BuiltValueField(wireName: 'supports_emoji') + bool? get supportsEmoji; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesUserStatusSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesWeatherStatusSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities + implements + Built { + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities([ + final void Function(NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities; + const NextcloudCoreServerCapabilities_Ocs_Data_Capabilities._(); + + static NextcloudCoreServerCapabilities_Ocs_Data_Capabilities fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? get core; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? get bruteforce; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? get metadataAvailable; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? get files; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? get activity; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? get circles; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? get ocm; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? get dav; + @BuiltValueField(wireName: 'files_sharing') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? get filesSharing; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? get notes; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? get notifications; + @BuiltValueField(wireName: 'password_policy') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? get passwordPolicy; + @BuiltValueField(wireName: 'provisioning_api') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? get provisioningApi; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? get theming; + @BuiltValueField(wireName: 'user_status') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? get userStatus; + @BuiltValueField(wireName: 'weather_status') + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? get weatherStatus; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs_Data + implements Built { + factory NextcloudCoreServerCapabilities_Ocs_Data([ + final void Function(NextcloudCoreServerCapabilities_Ocs_DataBuilder)? b, + ]) = _$NextcloudCoreServerCapabilities_Ocs_Data; + const NextcloudCoreServerCapabilities_Ocs_Data._(); + + static NextcloudCoreServerCapabilities_Ocs_Data fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreServerCapabilities_Ocs_Data_Version get version; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities get capabilities; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsDataSerializer; +} + +abstract class NextcloudCoreServerCapabilities_Ocs + implements Built { + factory NextcloudCoreServerCapabilities_Ocs([final void Function(NextcloudCoreServerCapabilities_OcsBuilder)? b]) = + _$NextcloudCoreServerCapabilities_Ocs; + const NextcloudCoreServerCapabilities_Ocs._(); + + static NextcloudCoreServerCapabilities_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudCoreServerCapabilities_Ocs_Data get data; + static Serializer get serializer => + _$nextcloudCoreServerCapabilitiesOcsSerializer; +} + +abstract class NextcloudCoreServerCapabilities + implements Built { + factory NextcloudCoreServerCapabilities([final void Function(NextcloudCoreServerCapabilitiesBuilder)? b]) = + _$NextcloudCoreServerCapabilities; + const NextcloudCoreServerCapabilities._(); + + static NextcloudCoreServerCapabilities fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreServerCapabilities_Ocs get ocs; + static Serializer get serializer => _$nextcloudCoreServerCapabilitiesSerializer; +} + +abstract class NextcloudCoreNavigationApps_Ocs_Data_Order + implements Built { + factory NextcloudCoreNavigationApps_Ocs_Data_Order([ + final void Function(NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder)? b, + ]) = _$NextcloudCoreNavigationApps_Ocs_Data_Order; + const NextcloudCoreNavigationApps_Ocs_Data_Order._(); + + JsonObject get data; + int? get $int; + String? get string; + static NextcloudCoreNavigationApps_Ocs_Data_Order fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudCoreNavigationApps_Ocs_Data_OrderSerializer(); +} + +class _$NextcloudCoreNavigationApps_Ocs_Data_OrderSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [ + NextcloudCoreNavigationApps_Ocs_Data_Order, + _$NextcloudCoreNavigationApps_Ocs_Data_Order + ]; - final String productname; + @override + final String wireName = 'NextcloudCoreNavigationApps_Ocs_Data_Order'; - final bool extendedSupport; + @override + Object serialize( + final Serializers serializers, + final NextcloudCoreNavigationApps_Ocs_Data_Order object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerStatus? data) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudCoreNavigationApps_Ocs_Data_Order deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder()..data = JsonObject(data); + try { + result.$int = data as int?; + } catch (_) {} + try { + result.string = data as String?; + } catch (_) {} + assert([result._$int, result._string].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); + return result.build(); + } } -@JsonSerializable() -class NextcloudOCSMeta { - NextcloudOCSMeta({ - required this.status, - required this.statuscode, - this.message, - this.totalitems, - this.itemsperpage, - }); - - // coverage:ignore-start - factory NextcloudOCSMeta.fromJson(final Map json) => _$NextcloudOCSMetaFromJson(json); - // coverage:ignore-end +abstract class NextcloudCoreNavigationApps_Ocs_Data + implements Built { + factory NextcloudCoreNavigationApps_Ocs_Data([final void Function(NextcloudCoreNavigationApps_Ocs_DataBuilder)? b]) = + _$NextcloudCoreNavigationApps_Ocs_Data; + const NextcloudCoreNavigationApps_Ocs_Data._(); - // coverage:ignore-start - factory NextcloudOCSMeta.fromJsonString(final String data) => - NextcloudOCSMeta.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String status; - - final int statuscode; + static NextcloudCoreNavigationApps_Ocs_Data fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get id; - final String? message; + /// Should always be an integer, but there is a bug. See https://github.com/nextcloud/server/issues/32828 + NextcloudCoreNavigationApps_Ocs_Data_Order get order; + String get href; + String get icon; + String get type; + String get name; + bool get active; + String get classes; + int get unread; + static Serializer get serializer => + _$nextcloudCoreNavigationAppsOcsDataSerializer; +} + +abstract class NextcloudCoreNavigationApps_Ocs + implements Built { + factory NextcloudCoreNavigationApps_Ocs([final void Function(NextcloudCoreNavigationApps_OcsBuilder)? b]) = + _$NextcloudCoreNavigationApps_Ocs; + const NextcloudCoreNavigationApps_Ocs._(); + + static NextcloudCoreNavigationApps_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + BuiltList get data; + static Serializer get serializer => _$nextcloudCoreNavigationAppsOcsSerializer; +} + +abstract class NextcloudCoreNavigationApps + implements Built { + factory NextcloudCoreNavigationApps([final void Function(NextcloudCoreNavigationAppsBuilder)? b]) = + _$NextcloudCoreNavigationApps; + const NextcloudCoreNavigationApps._(); + + static NextcloudCoreNavigationApps fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreNavigationApps_Ocs get ocs; + static Serializer get serializer => _$nextcloudCoreNavigationAppsSerializer; +} + +abstract class NextcloudCoreLoginFlowInit_Poll + implements Built { + factory NextcloudCoreLoginFlowInit_Poll([final void Function(NextcloudCoreLoginFlowInit_PollBuilder)? b]) = + _$NextcloudCoreLoginFlowInit_Poll; + const NextcloudCoreLoginFlowInit_Poll._(); + + static NextcloudCoreLoginFlowInit_Poll fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get token; + String get endpoint; + static Serializer get serializer => _$nextcloudCoreLoginFlowInitPollSerializer; +} + +abstract class NextcloudCoreLoginFlowInit + implements Built { + factory NextcloudCoreLoginFlowInit([final void Function(NextcloudCoreLoginFlowInitBuilder)? b]) = + _$NextcloudCoreLoginFlowInit; + const NextcloudCoreLoginFlowInit._(); + + static NextcloudCoreLoginFlowInit fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreLoginFlowInit_Poll get poll; + String get login; + static Serializer get serializer => _$nextcloudCoreLoginFlowInitSerializer; +} + +abstract class NextcloudCoreLoginFlowResult + implements Built { + factory NextcloudCoreLoginFlowResult([final void Function(NextcloudCoreLoginFlowResultBuilder)? b]) = + _$NextcloudCoreLoginFlowResult; + const NextcloudCoreLoginFlowResult._(); + + static NextcloudCoreLoginFlowResult fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get server; + String get loginName; + String get appPassword; + static Serializer get serializer => _$nextcloudCoreLoginFlowResultSerializer; +} + +abstract class NextcloudCoreAutocompleteResult_Ocs_Data_Status + implements + Built { + factory NextcloudCoreAutocompleteResult_Ocs_Data_Status([ + final void Function(NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder)? b, + ]) = _$NextcloudCoreAutocompleteResult_Ocs_Data_Status; + const NextcloudCoreAutocompleteResult_Ocs_Data_Status._(); + + JsonObject get data; + BuiltList? get builtListJsonObject; + String? get string; + static NextcloudCoreAutocompleteResult_Ocs_Data_Status fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudCoreAutocompleteResult_Ocs_Data_StatusSerializer(); +} + +class _$NextcloudCoreAutocompleteResult_Ocs_Data_StatusSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [ + NextcloudCoreAutocompleteResult_Ocs_Data_Status, + _$NextcloudCoreAutocompleteResult_Ocs_Data_Status + ]; - final String? totalitems; + @override + final String wireName = 'NextcloudCoreAutocompleteResult_Ocs_Data_Status'; - final String? itemsperpage; + @override + Object serialize( + final Serializers serializers, + final NextcloudCoreAutocompleteResult_Ocs_Data_Status object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => _$NextcloudOCSMetaToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudOCSMeta? data) => data == null ? null : json.encode(data.toJson()); + @override + NextcloudCoreAutocompleteResult_Ocs_Data_Status deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder()..data = JsonObject(data); + try { + result.builtListJsonObject = BuiltList((data as List).map(JsonObject.new)).toBuilder(); + } catch (_) {} + try { + result.string = data as String?; + } catch (_) {} + assert( + [result._builtListJsonObject, result._string].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable() -class NextcloudCoreServerCapabilities_Ocs_Data_Version { - NextcloudCoreServerCapabilities_Ocs_Data_Version({ - this.major, - this.minor, - this.micro, - this.string, - this.edition, - this.extendedSupport, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_VersionFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int? major; - - final int? minor; +abstract class NextcloudCoreAutocompleteResult_Ocs_Data + implements Built { + factory NextcloudCoreAutocompleteResult_Ocs_Data([ + final void Function(NextcloudCoreAutocompleteResult_Ocs_DataBuilder)? b, + ]) = _$NextcloudCoreAutocompleteResult_Ocs_Data; + const NextcloudCoreAutocompleteResult_Ocs_Data._(); - final int? micro; - - final String? string; - - final String? edition; - - final bool? extendedSupport; + static NextcloudCoreAutocompleteResult_Ocs_Data fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get id; + String get label; + String get icon; + String get source; + NextcloudCoreAutocompleteResult_Ocs_Data_Status get status; + String get subline; + String get shareWithDisplayNameUnique; + static Serializer get serializer => + _$nextcloudCoreAutocompleteResultOcsDataSerializer; +} + +abstract class NextcloudCoreAutocompleteResult_Ocs + implements Built { + factory NextcloudCoreAutocompleteResult_Ocs([final void Function(NextcloudCoreAutocompleteResult_OcsBuilder)? b]) = + _$NextcloudCoreAutocompleteResult_Ocs; + const NextcloudCoreAutocompleteResult_Ocs._(); + + static NextcloudCoreAutocompleteResult_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + BuiltList get data; + static Serializer get serializer => + _$nextcloudCoreAutocompleteResultOcsSerializer; +} + +abstract class NextcloudCoreAutocompleteResult + implements Built { + factory NextcloudCoreAutocompleteResult([final void Function(NextcloudCoreAutocompleteResultBuilder)? b]) = + _$NextcloudCoreAutocompleteResult; + const NextcloudCoreAutocompleteResult._(); + + static NextcloudCoreAutocompleteResult fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudCoreAutocompleteResult_Ocs get ocs; + static Serializer get serializer => _$nextcloudCoreAutocompleteResultSerializer; +} + +abstract class NextcloudNewsSupportedAPIVersions + implements Built { + factory NextcloudNewsSupportedAPIVersions([final void Function(NextcloudNewsSupportedAPIVersionsBuilder)? b]) = + _$NextcloudNewsSupportedAPIVersions; + const NextcloudNewsSupportedAPIVersions._(); + + static NextcloudNewsSupportedAPIVersions fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList? get apiLevels; + static Serializer get serializer => _$nextcloudNewsSupportedAPIVersionsSerializer; +} + +abstract class NextcloudNewsArticle implements Built { + factory NextcloudNewsArticle([final void Function(NextcloudNewsArticleBuilder)? b]) = _$NextcloudNewsArticle; + const NextcloudNewsArticle._(); + + static NextcloudNewsArticle fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int get id; + String get guid; + String get guidHash; + String? get url; + String get title; + String? get author; + int get pubDate; + int? get updatedDate; + String get body; + String? get enclosureMime; + String? get enclosureLink; + String? get mediaThumbnail; + String? get mediaDescription; + int get feedId; + bool get unread; + bool get starred; + int get lastModified; + bool get rtl; + String get fingerprint; + String get contentHash; + static Serializer get serializer => _$nextcloudNewsArticleSerializer; +} + +abstract class NextcloudNewsFeed implements Built { + factory NextcloudNewsFeed([final void Function(NextcloudNewsFeedBuilder)? b]) = _$NextcloudNewsFeed; + const NextcloudNewsFeed._(); + + static NextcloudNewsFeed fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int get id; + String get url; + String get title; + String? get faviconLink; + int get added; + int? get folderId; + int? get unreadCount; + int get ordering; + String? get link; + bool get pinned; + int get updateErrorCount; + String? get lastUpdateError; + BuiltList get items; + static Serializer get serializer => _$nextcloudNewsFeedSerializer; +} + +abstract class NextcloudNewsFolder implements Built { + factory NextcloudNewsFolder([final void Function(NextcloudNewsFolderBuilder)? b]) = _$NextcloudNewsFolder; + const NextcloudNewsFolder._(); + + static NextcloudNewsFolder fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int get id; + String get name; + bool get opened; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_VersionToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Version? data) => - data == null ? null : json.encode(data.toJson()); + /// This seems to be broken. In testing it is always empty + BuiltList get feeds; + static Serializer get serializer => _$nextcloudNewsFolderSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core({ - this.pollinterval, - this.webdavRoot, - this.referenceApi, - this.referenceRegex, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int? pollinterval; - - @JsonKey(name: 'webdav-root') - final String? webdavRoot; - - @JsonKey(name: 'reference-api') - final bool? referenceApi; - - @JsonKey(name: 'reference-regex') - final String? referenceRegex; +abstract class NextcloudNewsListFolders implements Built { + factory NextcloudNewsListFolders([final void Function(NextcloudNewsListFoldersBuilder)? b]) = + _$NextcloudNewsListFolders; + const NextcloudNewsListFolders._(); - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? data) => - data == null ? null : json.encode(data.toJson()); + static NextcloudNewsListFolders fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList get folders; + static Serializer get serializer => _$nextcloudNewsListFoldersSerializer; +} + +abstract class NextcloudNewsListFeeds implements Built { + factory NextcloudNewsListFeeds([final void Function(NextcloudNewsListFeedsBuilder)? b]) = _$NextcloudNewsListFeeds; + const NextcloudNewsListFeeds._(); + + static NextcloudNewsListFeeds fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int? get starredCount; + int? get newestItemId; + BuiltList get feeds; + static Serializer get serializer => _$nextcloudNewsListFeedsSerializer; +} + +abstract class NextcloudNewsListArticles implements Built { + factory NextcloudNewsListArticles([final void Function(NextcloudNewsListArticlesBuilder)? b]) = + _$NextcloudNewsListArticles; + const NextcloudNewsListArticles._(); + + static NextcloudNewsListArticles fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList get items; + static Serializer get serializer => _$nextcloudNewsListArticlesSerializer; +} + +abstract class NextcloudNotesNote implements Built { + factory NextcloudNotesNote([final void Function(NextcloudNotesNoteBuilder)? b]) = _$NextcloudNotesNote; + const NextcloudNotesNote._(); + + static NextcloudNotesNote fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int get id; + String get etag; + bool get readonly; + String get content; + String get title; + String get category; + bool get favorite; + int get modified; + bool get error; + String get errorType; + static Serializer get serializer => _$nextcloudNotesNoteSerializer; +} + +class NextcloudNotesSettings_NoteMode extends EnumClass { + const NextcloudNotesSettings_NoteMode._(super.name); + + static const NextcloudNotesSettings_NoteMode edit = _$nextcloudNotesSettingsNoteModeEdit; + + static const NextcloudNotesSettings_NoteMode preview = _$nextcloudNotesSettingsNoteModePreview; + + static const NextcloudNotesSettings_NoteMode rich = _$nextcloudNotesSettingsNoteModeRich; + + static BuiltSet get values => _$nextcloudNotesSettingsNoteModeValues; + static NextcloudNotesSettings_NoteMode valueOf(final String name) => _$valueOfNextcloudNotesSettings_NoteMode(name); + static Serializer get serializer => _$nextcloudNotesSettingsNoteModeSerializer; +} + +abstract class NextcloudNotesSettings implements Built { + factory NextcloudNotesSettings([final void Function(NextcloudNotesSettingsBuilder)? b]) = _$NextcloudNotesSettings; + const NextcloudNotesSettings._(); + + static NextcloudNotesSettings fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get notesPath; + String get fileSuffix; + NextcloudNotesSettings_NoteMode get noteMode; + static Serializer get serializer => _$nextcloudNotesSettingsSerializer; +} + +abstract class NextcloudNotificationsNotificationAction + implements Built { + factory NextcloudNotificationsNotificationAction([ + final void Function(NextcloudNotificationsNotificationActionBuilder)? b, + ]) = _$NextcloudNotificationsNotificationAction; + const NextcloudNotificationsNotificationAction._(); + + static NextcloudNotificationsNotificationAction fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get label; + String get link; + String get type; + bool? get primary; + static Serializer get serializer => + _$nextcloudNotificationsNotificationActionSerializer; +} + +abstract class NextcloudNotificationsNotification + implements Built { + factory NextcloudNotificationsNotification([final void Function(NextcloudNotificationsNotificationBuilder)? b]) = + _$NextcloudNotificationsNotification; + const NextcloudNotificationsNotification._(); + + static NextcloudNotificationsNotification fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueField(wireName: 'notification_id') + int get notificationId; + String get app; + String get user; + String get datetime; + @BuiltValueField(wireName: 'object_type') + String get objectType; + @BuiltValueField(wireName: 'object_id') + String get objectId; + String get subject; + String get message; + String get link; + String? get subjectRich; + JsonObject? get subjectRichParameters; + String? get messageRich; + JsonObject? get messageRichParameters; + String? get icon; + bool? get shouldNotify; + BuiltList get actions; + static Serializer get serializer => + _$nextcloudNotificationsNotificationSerializer; +} + +abstract class NextcloudNotificationsListNotifications_Ocs + implements Built { + factory NextcloudNotificationsListNotifications_Ocs([ + final void Function(NextcloudNotificationsListNotifications_OcsBuilder)? b, + ]) = _$NextcloudNotificationsListNotifications_Ocs; + const NextcloudNotificationsListNotifications_Ocs._(); + + static NextcloudNotificationsListNotifications_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + BuiltList get data; + static Serializer get serializer => + _$nextcloudNotificationsListNotificationsOcsSerializer; +} + +abstract class NextcloudNotificationsListNotifications + implements Built { + factory NextcloudNotificationsListNotifications([ + final void Function(NextcloudNotificationsListNotificationsBuilder)? b, + ]) = _$NextcloudNotificationsListNotifications; + const NextcloudNotificationsListNotifications._(); + + static NextcloudNotificationsListNotifications fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudNotificationsListNotifications_Ocs get ocs; + static Serializer get serializer => + _$nextcloudNotificationsListNotificationsSerializer; +} + +abstract class NextcloudNotificationsGetNotification_Ocs + implements Built { + factory NextcloudNotificationsGetNotification_Ocs([ + final void Function(NextcloudNotificationsGetNotification_OcsBuilder)? b, + ]) = _$NextcloudNotificationsGetNotification_Ocs; + const NextcloudNotificationsGetNotification_Ocs._(); + + static NextcloudNotificationsGetNotification_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudNotificationsNotification get data; + static Serializer get serializer => + _$nextcloudNotificationsGetNotificationOcsSerializer; +} + +abstract class NextcloudNotificationsGetNotification + implements Built { + factory NextcloudNotificationsGetNotification([ + final void Function(NextcloudNotificationsGetNotificationBuilder)? b, + ]) = _$NextcloudNotificationsGetNotification; + const NextcloudNotificationsGetNotification._(); + + static NextcloudNotificationsGetNotification fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudNotificationsGetNotification_Ocs get ocs; + static Serializer get serializer => + _$nextcloudNotificationsGetNotificationSerializer; +} + +abstract class NextcloudEmptyOCS_Ocs implements Built { + factory NextcloudEmptyOCS_Ocs([final void Function(NextcloudEmptyOCS_OcsBuilder)? b]) = _$NextcloudEmptyOCS_Ocs; + const NextcloudEmptyOCS_Ocs._(); + + static NextcloudEmptyOCS_Ocs fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + BuiltList get data; + static Serializer get serializer => _$nextcloudEmptyOCSOcsSerializer; +} + +abstract class NextcloudEmptyOCS implements Built { + factory NextcloudEmptyOCS([final void Function(NextcloudEmptyOCSBuilder)? b]) = _$NextcloudEmptyOCS; + const NextcloudEmptyOCS._(); + + static NextcloudEmptyOCS fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudEmptyOCS_Ocs get ocs; + static Serializer get serializer => _$nextcloudEmptyOCSSerializer; +} + +abstract class NextcloudNotificationsPushServerSubscription + implements + Built { + factory NextcloudNotificationsPushServerSubscription([ + final void Function(NextcloudNotificationsPushServerSubscriptionBuilder)? b, + ]) = _$NextcloudNotificationsPushServerSubscription; + const NextcloudNotificationsPushServerSubscription._(); + + static NextcloudNotificationsPushServerSubscription fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get publicKey; + String get deviceIdentifier; + String get signature; + String? get message; + static Serializer get serializer => + _$nextcloudNotificationsPushServerSubscriptionSerializer; +} + +abstract class NextcloudNotificationsPushServerRegistration_Ocs + implements + Built { + factory NextcloudNotificationsPushServerRegistration_Ocs([ + final void Function(NextcloudNotificationsPushServerRegistration_OcsBuilder)? b, + ]) = _$NextcloudNotificationsPushServerRegistration_Ocs; + const NextcloudNotificationsPushServerRegistration_Ocs._(); + + static NextcloudNotificationsPushServerRegistration_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudNotificationsPushServerSubscription get data; + static Serializer get serializer => + _$nextcloudNotificationsPushServerRegistrationOcsSerializer; +} + +abstract class NextcloudNotificationsPushServerRegistration + implements + Built { + factory NextcloudNotificationsPushServerRegistration([ + final void Function(NextcloudNotificationsPushServerRegistrationBuilder)? b, + ]) = _$NextcloudNotificationsPushServerRegistration; + const NextcloudNotificationsPushServerRegistration._(); + + static NextcloudNotificationsPushServerRegistration fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudNotificationsPushServerRegistration_Ocs get ocs; + static Serializer get serializer => + _$nextcloudNotificationsPushServerRegistrationSerializer; +} + +abstract class NextcloudProvisioningApiUserDetails_Quota + implements Built { + factory NextcloudProvisioningApiUserDetails_Quota([ + final void Function(NextcloudProvisioningApiUserDetails_QuotaBuilder)? b, + ]) = _$NextcloudProvisioningApiUserDetails_Quota; + const NextcloudProvisioningApiUserDetails_Quota._(); + + static NextcloudProvisioningApiUserDetails_Quota fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int get free; + int get used; + int get total; + num get relative; + int get quota; + static Serializer get serializer => + _$nextcloudProvisioningApiUserDetailsQuotaSerializer; +} + +abstract class NextcloudProvisioningApiUserDetails_BackendCapabilities + implements + Built { + factory NextcloudProvisioningApiUserDetails_BackendCapabilities([ + final void Function(NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder)? b, + ]) = _$NextcloudProvisioningApiUserDetails_BackendCapabilities; + const NextcloudProvisioningApiUserDetails_BackendCapabilities._(); + + static NextcloudProvisioningApiUserDetails_BackendCapabilities fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get setDisplayName; + bool get setPassword; + static Serializer get serializer => + _$nextcloudProvisioningApiUserDetailsBackendCapabilitiesSerializer; +} + +abstract class NextcloudProvisioningApiUserDetails + implements Built { + factory NextcloudProvisioningApiUserDetails([final void Function(NextcloudProvisioningApiUserDetailsBuilder)? b]) = + _$NextcloudProvisioningApiUserDetails; + const NextcloudProvisioningApiUserDetails._(); + + static NextcloudProvisioningApiUserDetails fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool? get enabled; + String? get storageLocation; + String get id; + int get lastLogin; + String get backend; + BuiltList get subadmin; + NextcloudProvisioningApiUserDetails_Quota get quota; + String get avatarScope; + String? get email; + String get emailScope; + @BuiltValueField(wireName: 'additional_mail') + BuiltList get additionalMail; + @BuiltValueField(wireName: 'additional_mailScope') + BuiltList get additionalMailScope; + String? get displayname; + String get displaynameScope; + String get phone; + String get phoneScope; + String get address; + String get addressScope; + String get website; + String get websiteScope; + String get twitter; + String get twitterScope; + String get organisation; + String get organisationScope; + String get role; + String get roleScope; + String get headline; + String get headlineScope; + String get biography; + String get biographyScope; + @BuiltValueField(wireName: 'profile_enabled') + String get profileEnabled; + @BuiltValueField(wireName: 'profile_enabledScope') + String get profileEnabledScope; + String get fediverse; + String get fediverseScope; + BuiltList get groups; + String get language; + String get locale; + @BuiltValueField(wireName: 'notify_email') + String? get notifyEmail; + NextcloudProvisioningApiUserDetails_BackendCapabilities get backendCapabilities; + @BuiltValueField(wireName: 'display-name') + String? get displayName; + static Serializer get serializer => + _$nextcloudProvisioningApiUserDetailsSerializer; +} + +abstract class NextcloudProvisioningApiUser_Ocs + implements Built { + factory NextcloudProvisioningApiUser_Ocs([final void Function(NextcloudProvisioningApiUser_OcsBuilder)? b]) = + _$NextcloudProvisioningApiUser_Ocs; + const NextcloudProvisioningApiUser_Ocs._(); + + static NextcloudProvisioningApiUser_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudProvisioningApiUserDetails get data; + static Serializer get serializer => _$nextcloudProvisioningApiUserOcsSerializer; +} + +abstract class NextcloudProvisioningApiUser + implements Built { + factory NextcloudProvisioningApiUser([final void Function(NextcloudProvisioningApiUserBuilder)? b]) = + _$NextcloudProvisioningApiUser; + const NextcloudProvisioningApiUser._(); + + static NextcloudProvisioningApiUser fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudProvisioningApiUser_Ocs get ocs; + static Serializer get serializer => _$nextcloudProvisioningApiUserSerializer; +} + +abstract class NextcloudUnifiedPushProviderCheckResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderCheckResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson; + const NextcloudUnifiedPushProviderCheckResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderCheckResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderCheckResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson; + const NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson; + const NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + String get deviceId; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson; + const NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson._(); + + static NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson; + const NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson; + const NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + String get token; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson; + const NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush + implements + Built { + factory NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush([ + final void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? + b, + ]) = _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush; + const NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush._(); + + static NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int get version; + static Serializer + get serializer => + _$nextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonUnifiedpushSerializer; +} + +abstract class NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson; + const NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson._(); + + static NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush get unifiedpush; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderPushResponse201ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderPushResponse201ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson; + const NextcloudUnifiedPushProviderPushResponse201ApplicationJson._(); + + static NextcloudUnifiedPushProviderPushResponse201ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + bool get success; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderPushResponse201ApplicationJsonSerializer; +} + +abstract class NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush + implements + Built { + factory NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush([ + final void Function( + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder, + )? b, + ]) = _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush; + const NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush._(); + + static NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush fromJson( + final Object json, + ) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get gateway; + static Serializer + get serializer => + _$nextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonUnifiedpushSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce({this.delay}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(json); - // coverage:ignore-end +abstract class NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson; + const NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson._(); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final int? delay; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? data) => - data == null ? null : json.encode(data.toJson()); + static NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush get unifiedpush; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({ - this.size, - this.gps, - }); +abstract class NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson + implements + Built { + factory NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson([ + final void Function(NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder)? b, + ]) = _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson; + const NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson._(); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json); - // coverage:ignore-end + static NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + BuiltList get rejected; + static Serializer get serializer => + _$nextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonSerializer; +} - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end +class NextcloudUserStatusClearAt_Type extends EnumClass { + const NextcloudUserStatusClearAt_Type._(super.name); - final List? size; + static const NextcloudUserStatusClearAt_Type period = _$nextcloudUserStatusClearAtTypePeriod; - final List? gps; + @BuiltValueEnumConst(wireName: 'end-of') + static const NextcloudUserStatusClearAt_Type endOf = _$nextcloudUserStatusClearAtTypeEndOf; - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? data) => - data == null ? null : json.encode(data.toJson()); + static BuiltSet get values => _$nextcloudUserStatusClearAtTypeValues; + static NextcloudUserStatusClearAt_Type valueOf(final String name) => _$valueOfNextcloudUserStatusClearAt_Type(name); + static Serializer get serializer => _$nextcloudUserStatusClearAtTypeSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing({ - this.url, - this.etag, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end +class NextcloudUserStatusClearAt_Time0 extends EnumClass { + const NextcloudUserStatusClearAt_Time0._(super.name); - final String? url; + static const NextcloudUserStatusClearAt_Time0 day = _$nextcloudUserStatusClearAtTime0Day; - final String? etag; + static const NextcloudUserStatusClearAt_Time0 week = _$nextcloudUserStatusClearAtTime0Week; - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? data) => - data == null ? null : json.encode(data.toJson()); + static BuiltSet get values => _$nextcloudUserStatusClearAtTime0Values; + static NextcloudUserStatusClearAt_Time0 valueOf(final String name) => _$valueOfNextcloudUserStatusClearAt_Time0(name); + static Serializer get serializer => _$nextcloudUserStatusClearAtTime0Serializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files({ - this.bigfilechunking, - this.blacklistedFiles, - this.directEditing, - this.comments, - this.undelete, - this.versioning, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final bool? bigfilechunking; +abstract class NextcloudUserStatusClearAt_Time + implements Built { + factory NextcloudUserStatusClearAt_Time([final void Function(NextcloudUserStatusClearAt_TimeBuilder)? b]) = + _$NextcloudUserStatusClearAt_Time; + const NextcloudUserStatusClearAt_Time._(); - @JsonKey(name: 'blacklisted_files') - final List? blacklistedFiles; + JsonObject get data; + NextcloudUserStatusClearAt_Time0? get userStatusClearAtTime0; - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? directEditing; + /// Time offset in seconds + int? get $int; + static NextcloudUserStatusClearAt_Time fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$NextcloudUserStatusClearAt_TimeSerializer(); +} - final bool? comments; +class _$NextcloudUserStatusClearAt_TimeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [NextcloudUserStatusClearAt_Time, _$NextcloudUserStatusClearAt_Time]; - final bool? undelete; + @override + final String wireName = 'NextcloudUserStatusClearAt_Time'; - final bool? versioning; + @override + Object serialize( + final Serializers serializers, + final NextcloudUserStatusClearAt_Time object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? data) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudUserStatusClearAt_Time deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudUserStatusClearAt_TimeBuilder()..data = JsonObject(data); + try { + result.userStatusClearAtTime0 = NextcloudUserStatusClearAt_Time0.valueOf(data as String); + } catch (_) {} + try { + result.$int = data as int?; + } catch (_) {} + assert( + [result._userStatusClearAtTime0, result._$int].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity({this.apiv2}); +abstract class NextcloudUserStatusClearAt + implements Built { + factory NextcloudUserStatusClearAt([final void Function(NextcloudUserStatusClearAtBuilder)? b]) = + _$NextcloudUserStatusClearAt; + const NextcloudUserStatusClearAt._(); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(json); - // coverage:ignore-end + static NextcloudUserStatusClearAt fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUserStatusClearAt_Type get type; + NextcloudUserStatusClearAt_Time get time; + static Serializer get serializer => _$nextcloudUserStatusClearAtSerializer; +} - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end +abstract class NextcloudUserStatusPublicStatus_ClearAt + implements Built { + factory NextcloudUserStatusPublicStatus_ClearAt([ + final void Function(NextcloudUserStatusPublicStatus_ClearAtBuilder)? b, + ]) = _$NextcloudUserStatusPublicStatus_ClearAt; + const NextcloudUserStatusPublicStatus_ClearAt._(); - final List? apiv2; + JsonObject get data; + NextcloudUserStatusClearAt? get userStatusClearAt; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? data) => - data == null ? null : json.encode(data.toJson()); + /// Time as unix timestamp + int? get $int; + static NextcloudUserStatusPublicStatus_ClearAt fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudUserStatusPublicStatus_ClearAtSerializer(); } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status({this.globalScale}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(json); - // coverage:ignore-end +class _$NextcloudUserStatusPublicStatus_ClearAtSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [ + NextcloudUserStatusPublicStatus_ClearAt, + _$NextcloudUserStatusPublicStatus_ClearAt + ]; - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end + @override + final String wireName = 'NextcloudUserStatusPublicStatus_ClearAt'; - final bool? globalScale; + @override + Object serialize( + final Serializers serializers, + final NextcloudUserStatusPublicStatus_ClearAt object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? data) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudUserStatusPublicStatus_ClearAt deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudUserStatusPublicStatus_ClearAtBuilder()..data = JsonObject(data); + try { + result.userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data).toBuilder(); + } catch (_) {} + try { + result.$int = data as int?; + } catch (_) {} + assert( + [result._userStatusClearAt, result._$int].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings({ - this.frontendEnabled, - this.allowedCircles, - this.allowedUserTypes, - this.membersLimit, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(json); - // coverage:ignore-end +class NextcloudUserStatusType extends EnumClass { + const NextcloudUserStatusType._(super.name); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end + static const NextcloudUserStatusType online = _$nextcloudUserStatusTypeOnline; - final bool? frontendEnabled; + static const NextcloudUserStatusType offline = _$nextcloudUserStatusTypeOffline; - final int? allowedCircles; + static const NextcloudUserStatusType dnd = _$nextcloudUserStatusTypeDnd; - final int? allowedUserTypes; + static const NextcloudUserStatusType away = _$nextcloudUserStatusTypeAway; - final int? membersLimit; + static const NextcloudUserStatusType invisible = _$nextcloudUserStatusTypeInvisible; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? data) => - data == null ? null : json.encode(data.toJson()); + static BuiltSet get values => _$nextcloudUserStatusTypeValues; + static NextcloudUserStatusType valueOf(final String name) => _$valueOfNextcloudUserStatusType(name); + static Serializer get serializer => _$nextcloudUserStatusTypeSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source({ - this.core, - this.extra, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end +abstract class NextcloudUserStatusPublicStatus + implements Built { + factory NextcloudUserStatusPublicStatus([final void Function(NextcloudUserStatusPublicStatusBuilder)? b]) = + _$NextcloudUserStatusPublicStatus; + const NextcloudUserStatusPublicStatus._(); - final dynamic core; - - final dynamic extra; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? data, - ) => - data == null ? null : json.encode(data.toJson()); + static NextcloudUserStatusPublicStatus fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get userId; + String? get message; + String? get icon; + NextcloudUserStatusPublicStatus_ClearAt? get clearAt; + NextcloudUserStatusType get status; + static Serializer get serializer => _$nextcloudUserStatusPublicStatusSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants({ - this.flags, - this.source, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final dynamic flags; +abstract class NextcloudUserStatusGetPublicStatuses_Ocs + implements Built { + factory NextcloudUserStatusGetPublicStatuses_Ocs([ + final void Function(NextcloudUserStatusGetPublicStatuses_OcsBuilder)? b, + ]) = _$NextcloudUserStatusGetPublicStatuses_Ocs; + const NextcloudUserStatusGetPublicStatuses_Ocs._(); - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? source; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? data, - ) => - data == null ? null : json.encode(data.toJson()); + static NextcloudUserStatusGetPublicStatuses_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + BuiltList get data; + static Serializer get serializer => + _$nextcloudUserStatusGetPublicStatusesOcsSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config({ - this.coreFlags, - this.systemFlags, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final List? coreFlags; - - final List? systemFlags; +abstract class NextcloudUserStatusGetPublicStatuses + implements Built { + factory NextcloudUserStatusGetPublicStatuses([final void Function(NextcloudUserStatusGetPublicStatusesBuilder)? b]) = + _$NextcloudUserStatusGetPublicStatuses; + const NextcloudUserStatusGetPublicStatuses._(); - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? data, - ) => - data == null ? null : json.encode(data.toJson()); + static NextcloudUserStatusGetPublicStatuses fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUserStatusGetPublicStatuses_Ocs get ocs; + static Serializer get serializer => + _$nextcloudUserStatusGetPublicStatusesSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle({ - this.constants, - this.config, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? constants; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? config; +abstract class NextcloudUserStatusGetPublicStatus_Ocs_Data + implements Built { + factory NextcloudUserStatusGetPublicStatus_Ocs_Data([ + final void Function(NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder)? b, + ]) = _$NextcloudUserStatusGetPublicStatus_Ocs_Data; + const NextcloudUserStatusGetPublicStatus_Ocs_Data._(); - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? data) => - data == null ? null : json.encode(data.toJson()); + JsonObject get data; + BuiltList? get builtListJsonObject; + NextcloudUserStatusPublicStatus? get userStatusPublicStatus; + static NextcloudUserStatusGetPublicStatus_Ocs_Data fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudUserStatusGetPublicStatus_Ocs_DataSerializer(); } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants({this.level}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(json); - // coverage:ignore-end +class _$NextcloudUserStatusGetPublicStatus_Ocs_DataSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [ + NextcloudUserStatusGetPublicStatus_Ocs_Data, + _$NextcloudUserStatusGetPublicStatus_Ocs_Data + ]; - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end + @override + final String wireName = 'NextcloudUserStatusGetPublicStatus_Ocs_Data'; - final dynamic level; + @override + Object serialize( + final Serializers serializers, + final NextcloudUserStatusGetPublicStatus_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? data, - ) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudUserStatusGetPublicStatus_Ocs_Data deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder()..data = JsonObject(data); + try { + result.builtListJsonObject = BuiltList((data as List).map(JsonObject.new)).toBuilder(); + } catch (_) {} + try { + result.userStatusPublicStatus = NextcloudUserStatusPublicStatus.fromJson(data).toBuilder(); + } catch (_) {} + assert( + [result._builtListJsonObject, result._userStatusPublicStatus].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member({ - this.constants, - this.type, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? constants; +abstract class NextcloudUserStatusGetPublicStatus_Ocs + implements Built { + factory NextcloudUserStatusGetPublicStatus_Ocs([ + final void Function(NextcloudUserStatusGetPublicStatus_OcsBuilder)? b, + ]) = _$NextcloudUserStatusGetPublicStatus_Ocs; + const NextcloudUserStatusGetPublicStatus_Ocs._(); - final dynamic type; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? data) => - data == null ? null : json.encode(data.toJson()); + static NextcloudUserStatusGetPublicStatus_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudUserStatusGetPublicStatus_Ocs_Data get data; + static Serializer get serializer => + _$nextcloudUserStatusGetPublicStatusOcsSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles({ - this.version, - this.status, - this.settings, - this.circle, - this.member, - }); +abstract class NextcloudUserStatusGetPublicStatus + implements Built { + factory NextcloudUserStatusGetPublicStatus([final void Function(NextcloudUserStatusGetPublicStatusBuilder)? b]) = + _$NextcloudUserStatusGetPublicStatus; + const NextcloudUserStatusGetPublicStatus._(); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(json); - // coverage:ignore-end + static NextcloudUserStatusGetPublicStatus fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUserStatusGetPublicStatus_Ocs get ocs; + static Serializer get serializer => + _$nextcloudUserStatusGetPublicStatusSerializer; +} - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json.decode(data) as Map); - // coverage:ignore-end +abstract class NextcloudUserStatusStatus_ClearAt + implements Built { + factory NextcloudUserStatusStatus_ClearAt([final void Function(NextcloudUserStatusStatus_ClearAtBuilder)? b]) = + _$NextcloudUserStatusStatus_ClearAt; + const NextcloudUserStatusStatus_ClearAt._(); - final String? version; + JsonObject get data; + NextcloudUserStatusClearAt? get userStatusClearAt; - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? status; + /// Time as unix timestamp + int? get $int; + static NextcloudUserStatusStatus_ClearAt fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudUserStatusStatus_ClearAtSerializer(); +} - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? settings; +class _$NextcloudUserStatusStatus_ClearAtSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [NextcloudUserStatusStatus_ClearAt, _$NextcloudUserStatusStatus_ClearAt]; - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? circle; + @override + final String wireName = 'NextcloudUserStatusStatus_ClearAt'; - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? member; + @override + Object serialize( + final Serializers serializers, + final NextcloudUserStatusStatus_ClearAt object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? data) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudUserStatusStatus_ClearAt deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudUserStatusStatus_ClearAtBuilder()..data = JsonObject(data); + try { + result.userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data).toBuilder(); + } catch (_) {} + try { + result.$int = data as int?; + } catch (_) {} + assert( + [result._userStatusClearAt, result._$int].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols({this.webdav}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(json); - // coverage:ignore-end +abstract class NextcloudUserStatusStatus implements Built { + factory NextcloudUserStatusStatus([final void Function(NextcloudUserStatusStatusBuilder)? b]) = + _$NextcloudUserStatusStatus; + const NextcloudUserStatusStatus._(); + + static NextcloudUserStatusStatus fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get userId; + String? get message; + String? get messageId; + bool get messageIsPredefined; + String? get icon; + NextcloudUserStatusStatus_ClearAt? get clearAt; + NextcloudUserStatusType get status; + bool get statusIsUserDefined; + static Serializer get serializer => _$nextcloudUserStatusStatusSerializer; +} + +abstract class NextcloudUserStatusGetStatus_Ocs_Data + implements Built { + factory NextcloudUserStatusGetStatus_Ocs_Data([ + final void Function(NextcloudUserStatusGetStatus_Ocs_DataBuilder)? b, + ]) = _$NextcloudUserStatusGetStatus_Ocs_Data; + const NextcloudUserStatusGetStatus_Ocs_Data._(); + + JsonObject get data; + BuiltList? get builtListJsonObject; + NextcloudUserStatusStatus? get userStatusStatus; + static NextcloudUserStatusGetStatus_Ocs_Data fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudUserStatusGetStatus_Ocs_DataSerializer(); +} + +class _$NextcloudUserStatusGetStatus_Ocs_DataSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [NextcloudUserStatusGetStatus_Ocs_Data, _$NextcloudUserStatusGetStatus_Ocs_Data]; - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end + @override + final String wireName = 'NextcloudUserStatusGetStatus_Ocs_Data'; - final String? webdav; + @override + Object serialize( + final Serializers serializers, + final NextcloudUserStatusGetStatus_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? data, - ) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudUserStatusGetStatus_Ocs_Data deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudUserStatusGetStatus_Ocs_DataBuilder()..data = JsonObject(data); + try { + result.builtListJsonObject = BuiltList((data as List).map(JsonObject.new)).toBuilder(); + } catch (_) {} + try { + result.userStatusStatus = NextcloudUserStatusStatus.fromJson(data).toBuilder(); + } catch (_) {} + assert( + [result._builtListJsonObject, result._userStatusStatus].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes({ - this.name, - this.shareTypes, - this.protocols, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final String? name; +abstract class NextcloudUserStatusGetStatus_Ocs + implements Built { + factory NextcloudUserStatusGetStatus_Ocs([final void Function(NextcloudUserStatusGetStatus_OcsBuilder)? b]) = + _$NextcloudUserStatusGetStatus_Ocs; + const NextcloudUserStatusGetStatus_Ocs._(); - final List? shareTypes; + static NextcloudUserStatusGetStatus_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudUserStatusGetStatus_Ocs_Data get data; + static Serializer get serializer => _$nextcloudUserStatusGetStatusOcsSerializer; +} - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? protocols; +abstract class NextcloudUserStatusGetStatus + implements Built { + factory NextcloudUserStatusGetStatus([final void Function(NextcloudUserStatusGetStatusBuilder)? b]) = + _$NextcloudUserStatusGetStatus; + const NextcloudUserStatusGetStatus._(); - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes? data) => - data == null ? null : json.encode(data.toJson()); + static NextcloudUserStatusGetStatus fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUserStatusGetStatus_Ocs get ocs; + static Serializer get serializer => _$nextcloudUserStatusGetStatusSerializer; } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm({ - this.enabled, - this.apiVersion, - this.endPoint, - this.resourceTypes, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(json); - // coverage:ignore-end +abstract class NextcloudUserStatusPredefinedStatus_ClearAt + implements Built { + factory NextcloudUserStatusPredefinedStatus_ClearAt([ + final void Function(NextcloudUserStatusPredefinedStatus_ClearAtBuilder)? b, + ]) = _$NextcloudUserStatusPredefinedStatus_ClearAt; + const NextcloudUserStatusPredefinedStatus_ClearAt._(); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json.decode(data) as Map); - // coverage:ignore-end + JsonObject get data; + NextcloudUserStatusClearAt? get userStatusClearAt; - final bool? enabled; + /// Time as unix timestamp + int? get $int; + static NextcloudUserStatusPredefinedStatus_ClearAt fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _$NextcloudUserStatusPredefinedStatus_ClearAtSerializer(); +} - final String? apiVersion; +class _$NextcloudUserStatusPredefinedStatus_ClearAtSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [ + NextcloudUserStatusPredefinedStatus_ClearAt, + _$NextcloudUserStatusPredefinedStatus_ClearAt + ]; - final String? endPoint; + @override + final String wireName = 'NextcloudUserStatusPredefinedStatus_ClearAt'; - final List? resourceTypes; + @override + Object serialize( + final Serializers serializers, + final NextcloudUserStatusPredefinedStatus_ClearAt object, { + final FullType specifiedType = FullType.unspecified, + }) => + object.data.value; - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? data) => - data == null ? null : json.encode(data.toJson()); + @override + NextcloudUserStatusPredefinedStatus_ClearAt deserialize( + final Serializers serializers, + final Object data, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NextcloudUserStatusPredefinedStatus_ClearAtBuilder()..data = JsonObject(data); + try { + result.userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data).toBuilder(); + } catch (_) {} + try { + result.$int = data as int?; + } catch (_) {} + assert( + [result._userStatusClearAt, result._$int].where((final x) => x != null).isNotEmpty, + 'Need oneOf for ${result._data}', + ); + return result.build(); + } } -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav({ - this.bulkupload, - this.chunking, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(json); - // coverage:ignore-end +abstract class NextcloudUserStatusPredefinedStatus + implements Built { + factory NextcloudUserStatusPredefinedStatus([final void Function(NextcloudUserStatusPredefinedStatusBuilder)? b]) = + _$NextcloudUserStatusPredefinedStatus; + const NextcloudUserStatusPredefinedStatus._(); - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json.decode(data) as Map); - // coverage:ignore-end + static NextcloudUserStatusPredefinedStatus fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + String get id; + String get icon; + String get message; + NextcloudUserStatusPredefinedStatus_ClearAt? get clearAt; + static Serializer get serializer => + _$nextcloudUserStatusPredefinedStatusSerializer; +} + +abstract class NextcloudUserStatusPredefinedStatuses_Ocs + implements Built { + factory NextcloudUserStatusPredefinedStatuses_Ocs([ + final void Function(NextcloudUserStatusPredefinedStatuses_OcsBuilder)? b, + ]) = _$NextcloudUserStatusPredefinedStatuses_Ocs; + const NextcloudUserStatusPredefinedStatuses_Ocs._(); + + static NextcloudUserStatusPredefinedStatuses_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + BuiltList get data; + static Serializer get serializer => + _$nextcloudUserStatusPredefinedStatusesOcsSerializer; +} + +abstract class NextcloudUserStatusPredefinedStatuses + implements Built { + factory NextcloudUserStatusPredefinedStatuses([ + final void Function(NextcloudUserStatusPredefinedStatusesBuilder)? b, + ]) = _$NextcloudUserStatusPredefinedStatuses; + const NextcloudUserStatusPredefinedStatuses._(); + + static NextcloudUserStatusPredefinedStatuses fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUserStatusPredefinedStatuses_Ocs get ocs; + static Serializer get serializer => + _$nextcloudUserStatusPredefinedStatusesSerializer; +} + +abstract class NextcloudUserStatusHeartbeat_Ocs + implements Built { + factory NextcloudUserStatusHeartbeat_Ocs([final void Function(NextcloudUserStatusHeartbeat_OcsBuilder)? b]) = + _$NextcloudUserStatusHeartbeat_Ocs; + const NextcloudUserStatusHeartbeat_Ocs._(); + + static NextcloudUserStatusHeartbeat_Ocs fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudOCSMeta get meta; + NextcloudUserStatusStatus get data; + static Serializer get serializer => _$nextcloudUserStatusHeartbeatOcsSerializer; +} + +abstract class NextcloudUserStatusHeartbeat + implements Built { + factory NextcloudUserStatusHeartbeat([final void Function(NextcloudUserStatusHeartbeatBuilder)? b]) = + _$NextcloudUserStatusHeartbeat; + const NextcloudUserStatusHeartbeat._(); + + static NextcloudUserStatusHeartbeat fromJson(final Object json) => jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + NextcloudUserStatusHeartbeat_Ocs get ocs; + static Serializer get serializer => _$nextcloudUserStatusHeartbeatSerializer; +} + +abstract class NextcloudNotificationsNotificationDecryptedSubject + implements + Built { + factory NextcloudNotificationsNotificationDecryptedSubject([ + final void Function(NextcloudNotificationsNotificationDecryptedSubjectBuilder)? b, + ]) = _$NextcloudNotificationsNotificationDecryptedSubject; + const NextcloudNotificationsNotificationDecryptedSubject._(); + + static NextcloudNotificationsNotificationDecryptedSubject fromJson(final Object json) => + jsonSerializers.deserializeWith(serializer, json)!; + Map toJson() => jsonSerializers.serializeWith(serializer, this)! as Map; + int? get nid; + String? get app; + String? get subject; + String? get type; + String? get id; + bool? get delete; + @BuiltValueField(wireName: 'delete-all') + bool? get deleteAll; + static Serializer get serializer => + _$nextcloudNotificationsNotificationDecryptedSubjectSerializer; +} + +@SerializersFor([ + NextcloudCoreServerStatus, + NextcloudCoreServerCapabilities, + NextcloudCoreServerCapabilities_Ocs, + NextcloudOCSMeta, + NextcloudCoreServerCapabilities_Ocs_Data, + NextcloudCoreServerCapabilities_Ocs_Data_Version, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus, + NextcloudCoreNavigationApps, + NextcloudCoreNavigationApps_Ocs, + NextcloudCoreNavigationApps_Ocs_Data, + NextcloudCoreLoginFlowInit, + NextcloudCoreLoginFlowInit_Poll, + NextcloudCoreLoginFlowResult, + NextcloudCoreAutocompleteResult, + NextcloudCoreAutocompleteResult_Ocs, + NextcloudCoreAutocompleteResult_Ocs_Data, + NextcloudNewsSupportedAPIVersions, + NextcloudNewsListFolders, + NextcloudNewsFolder, + NextcloudNewsFeed, + NextcloudNewsArticle, + NextcloudNewsListFeeds, + NextcloudNewsListArticles, + NextcloudNotesNote, + NextcloudNotesSettings, + NextcloudNotificationsListNotifications, + NextcloudNotificationsListNotifications_Ocs, + NextcloudNotificationsNotification, + NextcloudNotificationsNotificationAction, + NextcloudNotificationsGetNotification, + NextcloudNotificationsGetNotification_Ocs, + NextcloudEmptyOCS, + NextcloudEmptyOCS_Ocs, + NextcloudNotificationsPushServerRegistration, + NextcloudNotificationsPushServerRegistration_Ocs, + NextcloudNotificationsPushServerSubscription, + NextcloudProvisioningApiUser, + NextcloudProvisioningApiUser_Ocs, + NextcloudProvisioningApiUserDetails, + NextcloudProvisioningApiUserDetails_Quota, + NextcloudProvisioningApiUserDetails_BackendCapabilities, + NextcloudUnifiedPushProviderCheckResponse200ApplicationJson, + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson, + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson, + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson, + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson, + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson, + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson, + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson, + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush, + NextcloudUnifiedPushProviderPushResponse201ApplicationJson, + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson, + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush, + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson, + NextcloudUserStatusGetPublicStatuses, + NextcloudUserStatusGetPublicStatuses_Ocs, + NextcloudUserStatusPublicStatus, + NextcloudUserStatusClearAt, + NextcloudUserStatusGetPublicStatus, + NextcloudUserStatusGetPublicStatus_Ocs, + NextcloudUserStatusGetStatus, + NextcloudUserStatusGetStatus_Ocs, + NextcloudUserStatusStatus, + NextcloudUserStatusPredefinedStatuses, + NextcloudUserStatusPredefinedStatuses_Ocs, + NextcloudUserStatusPredefinedStatus, + NextcloudUserStatusHeartbeat, + NextcloudUserStatusHeartbeat_Ocs, + NextcloudNotificationsNotificationDecryptedSubject, +]) +final Serializers serializers = (_$serializers.toBuilder() + ..addBuilderFactory(const FullType(BuiltList, [FullType(int)]), ListBuilder.new)) + .build(); + +final Serializers jsonSerializers = (serializers.toBuilder() + ..addPlugin(StandardJsonPlugin()) + ..addPlugin(const ContentStringPlugin())) + .build(); - final String? bulkupload; +// coverage:ignore-start +T deserializeNextcloud(final Object data) => serializers.deserialize(data, specifiedType: FullType(T))! as T; - final String? chunking; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password({ - this.enforced, - this.askForOptionalPassword, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enforced; - - final bool? askForOptionalPassword; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public({ - this.enabled, - this.password, - this.expireDate, - this.multipleLinks, - this.expireDateInternal, - this.expireDateRemote, - this.sendMail, - this.upload, - this.uploadFilesDrop, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? password; - - @JsonKey(name: 'expire_date') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? expireDate; - - @JsonKey(name: 'multiple_links') - final bool? multipleLinks; - - @JsonKey(name: 'expire_date_internal') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? - expireDateInternal; - - @JsonKey(name: 'expire_date_remote') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? expireDateRemote; - - @JsonKey(name: 'send_mail') - final bool? sendMail; - - final bool? upload; - - @JsonKey(name: 'upload_files_drop') - final bool? uploadFilesDrop; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User({ - this.sendMail, - this.expireDate, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - @JsonKey(name: 'send_mail') - final bool? sendMail; - - @JsonKey(name: 'expire_date') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? expireDate; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group({ - this.enabled, - this.expireDate, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - @JsonKey(name: 'expire_date') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? expireDate; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation({ - this.outgoing, - this.incoming, - this.expireDate, - this.expireDateSupported, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? outgoing; - - final bool? incoming; - - @JsonKey(name: 'expire_date') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? expireDate; - - @JsonKey(name: 'expire_date_supported') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? - expireDateSupported; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee({ - this.queryLookupDefault, - this.alwaysShowUnique, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - @JsonKey(name: 'query_lookup_default') - final bool? queryLookupDefault; - - @JsonKey(name: 'always_show_unique') - final bool? alwaysShowUnique; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password({ - this.enabled, - this.enforced, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - final bool? enforced; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate({ - this.enabled, - this.enforced, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - final bool? enforced; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail({ - this.enabled, - this.sendPasswordByMail, - this.uploadFilesDrop, - this.password, - this.expireDate, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJsonString( - final String data, - ) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - @JsonKey(name: 'send_password_by_mail') - final bool? sendPasswordByMail; - - @JsonKey(name: 'upload_files_drop') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? uploadFilesDrop; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? password; - - @JsonKey(name: 'expire_date') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? expireDate; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing({ - this.apiEnabled, - this.public, - this.resharing, - this.user, - this.groupSharing, - this.group, - this.defaultPermissions, - this.federation, - this.sharee, - this.sharebymail, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - @JsonKey(name: 'api_enabled') - final bool? apiEnabled; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? public; - - final bool? resharing; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? user; - - @JsonKey(name: 'group_sharing') - final bool? groupSharing; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? group; - - @JsonKey(name: 'default_permissions') - final int? defaultPermissions; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? federation; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? sharee; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? sharebymail; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes({ - this.apiVersion, - this.version, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - @JsonKey(name: 'api_version') - final List? apiVersion; - - final String? version; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications({ - this.ocsEndpoints, - this.push, - this.adminNotifications, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - @JsonKey(name: 'ocs-endpoints') - final List? ocsEndpoints; - - final List? push; - - @JsonKey(name: 'admin-notifications') - final List? adminNotifications; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api({ - this.generate, - this.validate, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final String? generate; - - final String? validate; - - // coverage:ignore-start - Map toJson() => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy({ - this.minLength, - this.enforceNonCommonPassword, - this.enforceNumericCharacters, - this.enforceSpecialCharacters, - this.enforceUpperLowerCase, - this.api, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final int? minLength; - - final bool? enforceNonCommonPassword; - - final bool? enforceNumericCharacters; - - final bool? enforceSpecialCharacters; - - final bool? enforceUpperLowerCase; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? api; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi({ - this.version, - this.accountPropertyScopesVersion, - this.accountPropertyScopesFederatedEnabled, - this.accountPropertyScopesPublishedEnabled, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final String? version; - - @JsonKey(name: 'AccountPropertyScopesVersion') - final int? accountPropertyScopesVersion; - - @JsonKey(name: 'AccountPropertyScopesFederatedEnabled') - final bool? accountPropertyScopesFederatedEnabled; - - @JsonKey(name: 'AccountPropertyScopesPublishedEnabled') - final bool? accountPropertyScopesPublishedEnabled; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming({ - this.name, - this.url, - this.slogan, - this.color, - this.colorText, - this.colorElement, - this.colorElementBright, - this.colorElementDark, - this.logo, - this.background, - this.backgroundPlain, - this.backgroundDefault, - this.logoheader, - this.favicon, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String? name; - - final String? url; - - final String? slogan; - - final String? color; - - @JsonKey(name: 'color-text') - final String? colorText; - - @JsonKey(name: 'color-element') - final String? colorElement; - - @JsonKey(name: 'color-element-bright') - final String? colorElementBright; - - @JsonKey(name: 'color-element-dark') - final String? colorElementDark; - - final String? logo; - - final String? background; - - @JsonKey(name: 'background-plain') - final bool? backgroundPlain; - - @JsonKey(name: 'background-default') - final bool? backgroundDefault; - - final String? logoheader; - - final String? favicon; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus({ - this.enabled, - this.supportsEmoji, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - @JsonKey(name: 'supports_emoji') - final bool? supportsEmoji; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus({this.enabled}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( - final Map json, - ) => - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool? enabled; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable(disallowUnrecognizedKeys: false) -class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities { - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities({ - this.core, - this.bruteforce, - this.metadataAvailable, - this.files, - this.activity, - this.circles, - this.ocm, - this.dav, - this.filesSharing, - this.notes, - this.notifications, - this.passwordPolicy, - this.provisioningApi, - this.theming, - this.userStatus, - this.weatherStatus, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? core; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? bruteforce; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? metadataAvailable; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? files; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? activity; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? circles; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? ocm; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? dav; - - @JsonKey(name: 'files_sharing') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? filesSharing; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? notes; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? notifications; - - @JsonKey(name: 'password_policy') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? passwordPolicy; - - @JsonKey(name: 'provisioning_api') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? provisioningApi; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? theming; - - @JsonKey(name: 'user_status') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? userStatus; - - @JsonKey(name: 'weather_status') - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? weatherStatus; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreServerCapabilities_Ocs_Data { - NextcloudCoreServerCapabilities_Ocs_Data({ - required this.version, - required this.capabilities, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_Ocs_DataFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs_Data.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs_Data.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudCoreServerCapabilities_Ocs_Data_Version version; - - final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities capabilities; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_DataToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs_Data? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreServerCapabilities_Ocs { - NextcloudCoreServerCapabilities_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs.fromJson(final Map json) => - _$NextcloudCoreServerCapabilities_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities_Ocs.fromJsonString(final String data) => - NextcloudCoreServerCapabilities_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudCoreServerCapabilities_Ocs_Data data; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilities_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreServerCapabilities { - NextcloudCoreServerCapabilities({required this.ocs}); - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities.fromJson(final Map json) => - _$NextcloudCoreServerCapabilitiesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreServerCapabilities.fromJsonString(final String data) => - NextcloudCoreServerCapabilities.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudCoreServerCapabilities_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreServerCapabilitiesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreServerCapabilities? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudCoreNavigationApps_Ocs_Data_Order { - NextcloudCoreNavigationApps_Ocs_Data_Order( - this._data, { - this.$int, - this.string, - }); - - factory NextcloudCoreNavigationApps_Ocs_Data_Order.fromJson(final dynamic data) { - int? $int; - String? string; - try { - $int = data as int; - } catch (_) {} - try { - string = data as String; - } catch (_) {} - assert([$int, string].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudCoreNavigationApps_Ocs_Data_Order( - data, - $int: $int, - string: string, - ); - } - - // coverage:ignore-start - factory NextcloudCoreNavigationApps_Ocs_Data_Order.fromJsonString(final String data) => - NextcloudCoreNavigationApps_Ocs_Data_Order.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final int? $int; - - final String? string; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudCoreNavigationApps_Ocs_Data { - NextcloudCoreNavigationApps_Ocs_Data({ - required this.id, - required this.order, - required this.href, - required this.icon, - required this.type, - required this.name, - required this.active, - required this.classes, - required this.unread, - }); - - // coverage:ignore-start - factory NextcloudCoreNavigationApps_Ocs_Data.fromJson(final Map json) => - _$NextcloudCoreNavigationApps_Ocs_DataFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreNavigationApps_Ocs_Data.fromJsonString(final String data) => - NextcloudCoreNavigationApps_Ocs_Data.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String id; - - /// Should always be an integer, but there is a bug. See https://github.com/nextcloud/server/issues/32828 - final NextcloudCoreNavigationApps_Ocs_Data_Order order; - - final String href; - - final String icon; - - final String type; - - final String name; - - final bool active; - - final String classes; - - final int unread; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreNavigationApps_Ocs_DataToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreNavigationApps_Ocs_Data? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreNavigationApps_Ocs { - NextcloudCoreNavigationApps_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudCoreNavigationApps_Ocs.fromJson(final Map json) => - _$NextcloudCoreNavigationApps_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreNavigationApps_Ocs.fromJsonString(final String data) => - NextcloudCoreNavigationApps_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final List data; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreNavigationApps_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreNavigationApps_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreNavigationApps { - NextcloudCoreNavigationApps({required this.ocs}); - - // coverage:ignore-start - factory NextcloudCoreNavigationApps.fromJson(final Map json) => - _$NextcloudCoreNavigationAppsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreNavigationApps.fromJsonString(final String data) => - NextcloudCoreNavigationApps.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudCoreNavigationApps_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreNavigationAppsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreNavigationApps? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreLoginFlowInit_Poll { - NextcloudCoreLoginFlowInit_Poll({ - required this.token, - required this.endpoint, - }); - - // coverage:ignore-start - factory NextcloudCoreLoginFlowInit_Poll.fromJson(final Map json) => - _$NextcloudCoreLoginFlowInit_PollFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreLoginFlowInit_Poll.fromJsonString(final String data) => - NextcloudCoreLoginFlowInit_Poll.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String token; - - final String endpoint; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreLoginFlowInit_PollToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreLoginFlowInit_Poll? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreLoginFlowInit { - NextcloudCoreLoginFlowInit({ - required this.poll, - required this.login, - }); - - // coverage:ignore-start - factory NextcloudCoreLoginFlowInit.fromJson(final Map json) => - _$NextcloudCoreLoginFlowInitFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreLoginFlowInit.fromJsonString(final String data) => - NextcloudCoreLoginFlowInit.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudCoreLoginFlowInit_Poll poll; - - final String login; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreLoginFlowInitToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreLoginFlowInit? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreLoginFlowResult { - NextcloudCoreLoginFlowResult({ - required this.server, - required this.loginName, - required this.appPassword, - }); - - // coverage:ignore-start - factory NextcloudCoreLoginFlowResult.fromJson(final Map json) => - _$NextcloudCoreLoginFlowResultFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreLoginFlowResult.fromJsonString(final String data) => - NextcloudCoreLoginFlowResult.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String server; - - final String loginName; - - final String appPassword; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreLoginFlowResultToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreLoginFlowResult? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudCoreAutocompleteResult_Ocs_Data_Status { - NextcloudCoreAutocompleteResult_Ocs_Data_Status( - this._data, { - this.listDynamic, - this.string, - }); - - factory NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJson(final dynamic data) { - List? listDynamic; - String? string; - try { - listDynamic = (data as List).map((final e) => e as dynamic).toList(); - } catch (_) {} - try { - string = data as String; - } catch (_) {} - assert([listDynamic, string].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudCoreAutocompleteResult_Ocs_Data_Status( - data, - listDynamic: listDynamic, - string: string, - ); - } - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJsonString(final String data) => - NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final List? listDynamic; - - final String? string; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudCoreAutocompleteResult_Ocs_Data { - NextcloudCoreAutocompleteResult_Ocs_Data({ - required this.id, - required this.label, - required this.icon, - required this.source, - required this.status, - required this.subline, - required this.shareWithDisplayNameUnique, - }); - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(final Map json) => - _$NextcloudCoreAutocompleteResult_Ocs_DataFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult_Ocs_Data.fromJsonString(final String data) => - NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String id; - - final String label; - - final String icon; - - final String source; - - final NextcloudCoreAutocompleteResult_Ocs_Data_Status status; - - final String subline; - - final String shareWithDisplayNameUnique; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreAutocompleteResult_Ocs_DataToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreAutocompleteResult_Ocs_Data? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreAutocompleteResult_Ocs { - NextcloudCoreAutocompleteResult_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult_Ocs.fromJson(final Map json) => - _$NextcloudCoreAutocompleteResult_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult_Ocs.fromJsonString(final String data) => - NextcloudCoreAutocompleteResult_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final List data; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreAutocompleteResult_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreAutocompleteResult_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudCoreAutocompleteResult { - NextcloudCoreAutocompleteResult({required this.ocs}); - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult.fromJson(final Map json) => - _$NextcloudCoreAutocompleteResultFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudCoreAutocompleteResult.fromJsonString(final String data) => - NextcloudCoreAutocompleteResult.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudCoreAutocompleteResult_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudCoreAutocompleteResultToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudCoreAutocompleteResult? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsSupportedAPIVersions { - NextcloudNewsSupportedAPIVersions({this.apiLevels}); - - // coverage:ignore-start - factory NextcloudNewsSupportedAPIVersions.fromJson(final Map json) => - _$NextcloudNewsSupportedAPIVersionsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsSupportedAPIVersions.fromJsonString(final String data) => - NextcloudNewsSupportedAPIVersions.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final List? apiLevels; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsSupportedAPIVersionsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsSupportedAPIVersions? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsArticle { - NextcloudNewsArticle({ - required this.id, - required this.guid, - required this.guidHash, - required this.title, - required this.pubDate, - required this.body, - required this.feedId, - required this.unread, - required this.starred, - required this.lastModified, - required this.rtl, - required this.fingerprint, - required this.contentHash, - this.url, - this.author, - this.updatedDate, - this.enclosureMime, - this.enclosureLink, - this.mediaThumbnail, - this.mediaDescription, - }); - - // coverage:ignore-start - factory NextcloudNewsArticle.fromJson(final Map json) => _$NextcloudNewsArticleFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsArticle.fromJsonString(final String data) => - NextcloudNewsArticle.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int id; - - final String guid; - - final String guidHash; - - final String? url; - - final String title; - - final String? author; - - final int pubDate; - - final int? updatedDate; - - final String body; - - final String? enclosureMime; - - final String? enclosureLink; - - final String? mediaThumbnail; - - final String? mediaDescription; - - final int feedId; - - final bool unread; - - final bool starred; - - final int lastModified; - - final bool rtl; - - final String fingerprint; - - final String contentHash; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsArticleToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsArticle? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsFeed { - NextcloudNewsFeed({ - required this.id, - required this.url, - required this.title, - required this.added, - required this.ordering, - required this.pinned, - required this.updateErrorCount, - required this.items, - this.faviconLink, - this.folderId, - this.unreadCount, - this.link, - this.lastUpdateError, - }); - - // coverage:ignore-start - factory NextcloudNewsFeed.fromJson(final Map json) => _$NextcloudNewsFeedFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsFeed.fromJsonString(final String data) => - NextcloudNewsFeed.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int id; - - final String url; - - final String title; - - final String? faviconLink; - - final int added; - - final int? folderId; - - final int? unreadCount; - - final int ordering; - - final String? link; - - final bool pinned; - - final int updateErrorCount; - - final String? lastUpdateError; - - final List items; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsFeedToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsFeed? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsFolder { - NextcloudNewsFolder({ - required this.id, - required this.name, - required this.opened, - required this.feeds, - }); - - // coverage:ignore-start - factory NextcloudNewsFolder.fromJson(final Map json) => _$NextcloudNewsFolderFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsFolder.fromJsonString(final String data) => - NextcloudNewsFolder.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int id; - - final String name; - - final bool opened; - - /// This seems to be broken. In testing it is always empty - final List feeds; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsFolderToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsFolder? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsListFolders { - NextcloudNewsListFolders({required this.folders}); - - // coverage:ignore-start - factory NextcloudNewsListFolders.fromJson(final Map json) => - _$NextcloudNewsListFoldersFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsListFolders.fromJsonString(final String data) => - NextcloudNewsListFolders.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final List folders; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsListFoldersToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsListFolders? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsListFeeds { - NextcloudNewsListFeeds({ - required this.feeds, - this.starredCount, - this.newestItemId, - }); - - // coverage:ignore-start - factory NextcloudNewsListFeeds.fromJson(final Map json) => _$NextcloudNewsListFeedsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsListFeeds.fromJsonString(final String data) => - NextcloudNewsListFeeds.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int? starredCount; - - final int? newestItemId; - - final List feeds; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsListFeedsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsListFeeds? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNewsListArticles { - NextcloudNewsListArticles({required this.items}); - - // coverage:ignore-start - factory NextcloudNewsListArticles.fromJson(final Map json) => - _$NextcloudNewsListArticlesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNewsListArticles.fromJsonString(final String data) => - NextcloudNewsListArticles.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final List items; - - // coverage:ignore-start - Map toJson() => _$NextcloudNewsListArticlesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNewsListArticles? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotesNote { - NextcloudNotesNote({ - required this.id, - required this.etag, - required this.readonly, - required this.content, - required this.title, - required this.category, - required this.favorite, - required this.modified, - required this.error, - required this.errorType, - }); - - // coverage:ignore-start - factory NextcloudNotesNote.fromJson(final Map json) => _$NextcloudNotesNoteFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotesNote.fromJsonString(final String data) => - NextcloudNotesNote.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int id; - - final String etag; - - final bool readonly; - - final String content; - - final String title; - - final String category; - - final bool favorite; - - final int modified; - - final bool error; - - final String errorType; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotesNoteToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotesNote? data) => data == null ? null : json.encode(data.toJson()); -} - -enum NextcloudNotesSettings_NoteMode { - edit('edit'), - preview('preview'), - rich('rich'); - - const NextcloudNotesSettings_NoteMode(this.value); - - final String value; - - static NextcloudNotesSettings_NoteMode fromValue(final String value) { - switch (value) { - case 'edit': - return NextcloudNotesSettings_NoteMode.edit; - case 'preview': - return NextcloudNotesSettings_NoteMode.preview; - case 'rich': - return NextcloudNotesSettings_NoteMode.rich; - default: - throw Exception('Can not parse NextcloudNotesSettings_NoteMode from "$value"'); - } - } -} - -@JsonSerializable() -class NextcloudNotesSettings { - NextcloudNotesSettings({ - required this.notesPath, - required this.fileSuffix, - required this.noteMode, - }); - - // coverage:ignore-start - factory NextcloudNotesSettings.fromJson(final Map json) => _$NextcloudNotesSettingsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotesSettings.fromJsonString(final String data) => - NextcloudNotesSettings.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String notesPath; - - final String fileSuffix; - - final NextcloudNotesSettings_NoteMode noteMode; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotesSettingsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotesSettings? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsNotificationAction { - NextcloudNotificationsNotificationAction({ - required this.label, - required this.link, - required this.type, - this.primary, - }); - - // coverage:ignore-start - factory NextcloudNotificationsNotificationAction.fromJson(final Map json) => - _$NextcloudNotificationsNotificationActionFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsNotificationAction.fromJsonString(final String data) => - NextcloudNotificationsNotificationAction.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String label; - - final String link; - - final String type; - - final bool? primary; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsNotificationActionToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsNotificationAction? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsNotification { - NextcloudNotificationsNotification({ - required this.notificationId, - required this.app, - required this.user, - required this.datetime, - required this.objectType, - required this.objectId, - required this.subject, - required this.message, - required this.link, - required this.actions, - this.subjectRich, - this.subjectRichParameters, - this.messageRich, - this.messageRichParameters, - this.icon, - this.shouldNotify, - }); - - // coverage:ignore-start - factory NextcloudNotificationsNotification.fromJson(final Map json) => - _$NextcloudNotificationsNotificationFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsNotification.fromJsonString(final String data) => - NextcloudNotificationsNotification.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - @JsonKey(name: 'notification_id') - final int notificationId; - - final String app; - - final String user; - - final String datetime; - - @JsonKey(name: 'object_type') - final String objectType; - - @JsonKey(name: 'object_id') - final String objectId; - - final String subject; - - final String message; - - final String link; - - final String? subjectRich; - - final dynamic subjectRichParameters; - - final String? messageRich; - - final dynamic messageRichParameters; - - final String? icon; - - final bool? shouldNotify; - - final List actions; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsNotificationToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsNotification? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsListNotifications_Ocs { - NextcloudNotificationsListNotifications_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudNotificationsListNotifications_Ocs.fromJson(final Map json) => - _$NextcloudNotificationsListNotifications_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsListNotifications_Ocs.fromJsonString(final String data) => - NextcloudNotificationsListNotifications_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final List data; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsListNotifications_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsListNotifications_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsListNotifications { - NextcloudNotificationsListNotifications({required this.ocs}); - - // coverage:ignore-start - factory NextcloudNotificationsListNotifications.fromJson(final Map json) => - _$NextcloudNotificationsListNotificationsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsListNotifications.fromJsonString(final String data) => - NextcloudNotificationsListNotifications.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudNotificationsListNotifications_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsListNotificationsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsListNotifications? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsGetNotification_Ocs { - NextcloudNotificationsGetNotification_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudNotificationsGetNotification_Ocs.fromJson(final Map json) => - _$NextcloudNotificationsGetNotification_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsGetNotification_Ocs.fromJsonString(final String data) => - NextcloudNotificationsGetNotification_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudNotificationsNotification data; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsGetNotification_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsGetNotification_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsGetNotification { - NextcloudNotificationsGetNotification({required this.ocs}); - - // coverage:ignore-start - factory NextcloudNotificationsGetNotification.fromJson(final Map json) => - _$NextcloudNotificationsGetNotificationFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsGetNotification.fromJsonString(final String data) => - NextcloudNotificationsGetNotification.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudNotificationsGetNotification_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsGetNotificationToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsGetNotification? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudEmptyOCS_Ocs { - NextcloudEmptyOCS_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudEmptyOCS_Ocs.fromJson(final Map json) => _$NextcloudEmptyOCS_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudEmptyOCS_Ocs.fromJsonString(final String data) => - NextcloudEmptyOCS_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final List data; - - // coverage:ignore-start - Map toJson() => _$NextcloudEmptyOCS_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudEmptyOCS_Ocs? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudEmptyOCS { - NextcloudEmptyOCS({required this.ocs}); - - // coverage:ignore-start - factory NextcloudEmptyOCS.fromJson(final Map json) => _$NextcloudEmptyOCSFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudEmptyOCS.fromJsonString(final String data) => - NextcloudEmptyOCS.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudEmptyOCS_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudEmptyOCSToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudEmptyOCS? data) => data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsPushServerSubscription { - NextcloudNotificationsPushServerSubscription({ - required this.publicKey, - required this.deviceIdentifier, - required this.signature, - this.message, - }); - - // coverage:ignore-start - factory NextcloudNotificationsPushServerSubscription.fromJson(final Map json) => - _$NextcloudNotificationsPushServerSubscriptionFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsPushServerSubscription.fromJsonString(final String data) => - NextcloudNotificationsPushServerSubscription.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String publicKey; - - final String deviceIdentifier; - - final String signature; - - final String? message; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsPushServerSubscriptionToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsPushServerSubscription? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsPushServerRegistration_Ocs { - NextcloudNotificationsPushServerRegistration_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudNotificationsPushServerRegistration_Ocs.fromJson(final Map json) => - _$NextcloudNotificationsPushServerRegistration_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsPushServerRegistration_Ocs.fromJsonString(final String data) => - NextcloudNotificationsPushServerRegistration_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudNotificationsPushServerSubscription data; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsPushServerRegistration_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsPushServerRegistration_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsPushServerRegistration { - NextcloudNotificationsPushServerRegistration({required this.ocs}); - - // coverage:ignore-start - factory NextcloudNotificationsPushServerRegistration.fromJson(final Map json) => - _$NextcloudNotificationsPushServerRegistrationFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsPushServerRegistration.fromJsonString(final String data) => - NextcloudNotificationsPushServerRegistration.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudNotificationsPushServerRegistration_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsPushServerRegistrationToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsPushServerRegistration? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudProvisioningApiUserDetails_Quota { - NextcloudProvisioningApiUserDetails_Quota({ - required this.free, - required this.used, - required this.total, - required this.relative, - required this.quota, - }); - - // coverage:ignore-start - factory NextcloudProvisioningApiUserDetails_Quota.fromJson(final Map json) => - _$NextcloudProvisioningApiUserDetails_QuotaFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudProvisioningApiUserDetails_Quota.fromJsonString(final String data) => - NextcloudProvisioningApiUserDetails_Quota.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int free; - - final int used; - - final int total; - - final num relative; - - final int quota; - - // coverage:ignore-start - Map toJson() => _$NextcloudProvisioningApiUserDetails_QuotaToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudProvisioningApiUserDetails_Quota? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudProvisioningApiUserDetails_BackendCapabilities { - NextcloudProvisioningApiUserDetails_BackendCapabilities({ - required this.setDisplayName, - required this.setPassword, - }); - - // coverage:ignore-start - factory NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(final Map json) => - _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJsonString(final String data) => - NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final bool setDisplayName; - - final bool setPassword; - - // coverage:ignore-start - Map toJson() => _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudProvisioningApiUserDetails_BackendCapabilities? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudProvisioningApiUserDetails { - NextcloudProvisioningApiUserDetails({ - required this.displaynameScope, - required this.backendCapabilities, - required this.id, - required this.lastLogin, - required this.backend, - required this.subadmin, - required this.quota, - required this.avatarScope, - required this.locale, - required this.emailScope, - required this.additionalMail, - required this.additionalMailScope, - required this.language, - required this.groups, - required this.phone, - required this.phoneScope, - required this.address, - required this.addressScope, - required this.website, - required this.websiteScope, - required this.twitter, - required this.twitterScope, - required this.organisation, - required this.organisationScope, - required this.role, - required this.fediverseScope, - required this.headline, - required this.headlineScope, - required this.biography, - required this.biographyScope, - required this.profileEnabled, - required this.profileEnabledScope, - required this.fediverse, - required this.roleScope, - this.enabled, - this.displayname, - this.email, - this.notifyEmail, - this.storageLocation, - this.displayName, - }); - - // coverage:ignore-start - factory NextcloudProvisioningApiUserDetails.fromJson(final Map json) => - _$NextcloudProvisioningApiUserDetailsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudProvisioningApiUserDetails.fromJsonString(final String data) => - NextcloudProvisioningApiUserDetails.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final bool? enabled; - - final String? storageLocation; - - final String id; - - final int lastLogin; - - final String backend; - - final List subadmin; - - final NextcloudProvisioningApiUserDetails_Quota quota; - - final String avatarScope; - - final String? email; - - final String emailScope; - - @JsonKey(name: 'additional_mail') - final List additionalMail; - - @JsonKey(name: 'additional_mailScope') - final List additionalMailScope; - - final String? displayname; - - final String displaynameScope; - - final String phone; - - final String phoneScope; - - final String address; - - final String addressScope; - - final String website; - - final String websiteScope; - - final String twitter; - - final String twitterScope; - - final String organisation; - - final String organisationScope; - - final String role; - - final String roleScope; - - final String headline; - - final String headlineScope; - - final String biography; - - final String biographyScope; - - @JsonKey(name: 'profile_enabled') - final String profileEnabled; - - @JsonKey(name: 'profile_enabledScope') - final String profileEnabledScope; - - final String fediverse; - - final String fediverseScope; - - final List groups; - - final String language; - - final String locale; - - @JsonKey(name: 'notify_email') - final String? notifyEmail; - - final NextcloudProvisioningApiUserDetails_BackendCapabilities backendCapabilities; - - @JsonKey(name: 'display-name') - final String? displayName; - - // coverage:ignore-start - Map toJson() => _$NextcloudProvisioningApiUserDetailsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudProvisioningApiUserDetails? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudProvisioningApiUser_Ocs { - NextcloudProvisioningApiUser_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudProvisioningApiUser_Ocs.fromJson(final Map json) => - _$NextcloudProvisioningApiUser_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudProvisioningApiUser_Ocs.fromJsonString(final String data) => - NextcloudProvisioningApiUser_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudProvisioningApiUserDetails data; - - // coverage:ignore-start - Map toJson() => _$NextcloudProvisioningApiUser_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudProvisioningApiUser_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudProvisioningApiUser { - NextcloudProvisioningApiUser({required this.ocs}); - - // coverage:ignore-start - factory NextcloudProvisioningApiUser.fromJson(final Map json) => - _$NextcloudProvisioningApiUserFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudProvisioningApiUser.fromJsonString(final String data) => - NextcloudProvisioningApiUser.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudProvisioningApiUser_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudProvisioningApiUserToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudProvisioningApiUser? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderCheckResponse200ApplicationJson { - NextcloudUnifiedPushProviderCheckResponse200ApplicationJson({required this.success}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.fromJson(final Map json) => - _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final bool success; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderCheckResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson { - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson({required this.success}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool success; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson { - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson({ - required this.success, - required this.deviceId, - }); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool success; - - final String deviceId; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson { - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson({required this.success}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.fromJson(final Map json) => - _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool success; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson { - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson({required this.success}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool success; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson { - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson({ - required this.success, - required this.token, - }); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.fromJson(final Map json) => - _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool success; - - final String token; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson { - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson({required this.success}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.fromJson(final Map json) => - _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final bool success; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush { - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush({required this.version}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJsonString( - final String data, - ) => - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final int version; - - // coverage:ignore-start - Map toJson() => - _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson { - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson({required this.unifiedpush}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.fromJsonString( - final String data, - ) => - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush unifiedpush; - - // coverage:ignore-start - Map toJson() => - _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderPushResponse201ApplicationJson { - NextcloudUnifiedPushProviderPushResponse201ApplicationJson({required this.success}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderPushResponse201ApplicationJson.fromJson(final Map json) => - _$NextcloudUnifiedPushProviderPushResponse201ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderPushResponse201ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderPushResponse201ApplicationJson.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final bool success; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderPushResponse201ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderPushResponse201ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush { - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush({required this.gateway}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJsonString( - final String data, - ) => - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final String gateway; - - // coverage:ignore-start - Map toJson() => - _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson { - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson({required this.unifiedpush}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.fromJsonString( - final String data, - ) => - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush unifiedpush; - - // coverage:ignore-start - Map toJson() => - _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString( - final NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson? data, - ) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson { - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson({required this.rejected}); - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.fromJson( - final Map json, - ) => - _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.fromJsonString(final String data) => - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.fromJson( - json.decode(data) as Map, - ); - // coverage:ignore-end - - final List rejected; - - // coverage:ignore-start - Map toJson() => _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson? data) => - data == null ? null : json.encode(data.toJson()); -} - -enum NextcloudUserStatusClearAt_Type { - period('period'), - @JsonValue('end-of') - endOf('end-of'); - - const NextcloudUserStatusClearAt_Type(this.value); - - final String value; - - static NextcloudUserStatusClearAt_Type fromValue(final String value) { - switch (value) { - case 'period': - return NextcloudUserStatusClearAt_Type.period; - case 'end-of': - return NextcloudUserStatusClearAt_Type.endOf; - default: - throw Exception('Can not parse NextcloudUserStatusClearAt_Type from "$value"'); - } - } -} - -enum NextcloudUserStatusClearAt_Time0 { - day('day'), - week('week'); - - const NextcloudUserStatusClearAt_Time0(this.value); - - final String value; - - static NextcloudUserStatusClearAt_Time0 fromValue(final String value) { - switch (value) { - case 'day': - return NextcloudUserStatusClearAt_Time0.day; - case 'week': - return NextcloudUserStatusClearAt_Time0.week; - default: - throw Exception('Can not parse NextcloudUserStatusClearAt_Time0 from "$value"'); - } - } -} - -class NextcloudUserStatusClearAt_Time { - NextcloudUserStatusClearAt_Time( - this._data, { - this.userStatusClearAtTime0, - this.$int, - }); - - factory NextcloudUserStatusClearAt_Time.fromJson(final dynamic data) { - NextcloudUserStatusClearAt_Time0? userStatusClearAtTime0; - int? $int; - try { - userStatusClearAtTime0 = NextcloudUserStatusClearAt_Time0.fromValue(data as String); - } catch (_) {} - try { - $int = data as int; - } catch (_) {} - assert([userStatusClearAtTime0, $int].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudUserStatusClearAt_Time( - data, - userStatusClearAtTime0: userStatusClearAtTime0, - $int: $int, - ); - } - - // coverage:ignore-start - factory NextcloudUserStatusClearAt_Time.fromJsonString(final String data) => - NextcloudUserStatusClearAt_Time.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final NextcloudUserStatusClearAt_Time0? userStatusClearAtTime0; - - /// Time offset in seconds - final int? $int; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudUserStatusClearAt { - NextcloudUserStatusClearAt({ - required this.type, - required this.time, - }); - - // coverage:ignore-start - factory NextcloudUserStatusClearAt.fromJson(final Map json) => - _$NextcloudUserStatusClearAtFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusClearAt.fromJsonString(final String data) => - NextcloudUserStatusClearAt.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudUserStatusClearAt_Type type; - - final NextcloudUserStatusClearAt_Time time; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusClearAtToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusClearAt? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudUserStatusPublicStatus_ClearAt { - NextcloudUserStatusPublicStatus_ClearAt( - this._data, { - this.userStatusClearAt, - this.$int, - }); - - factory NextcloudUserStatusPublicStatus_ClearAt.fromJson(final dynamic data) { - NextcloudUserStatusClearAt? userStatusClearAt; - int? $int; - try { - userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data as Map); - } catch (_) {} - try { - $int = data as int; - } catch (_) {} - assert([userStatusClearAt, $int].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudUserStatusPublicStatus_ClearAt( - data, - userStatusClearAt: userStatusClearAt, - $int: $int, - ); - } - - // coverage:ignore-start - factory NextcloudUserStatusPublicStatus_ClearAt.fromJsonString(final String data) => - NextcloudUserStatusPublicStatus_ClearAt.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final NextcloudUserStatusClearAt? userStatusClearAt; - - /// Time as unix timestamp - final int? $int; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -enum NextcloudUserStatusType { - online('online'), - offline('offline'), - dnd('dnd'), - away('away'), - invisible('invisible'); - - const NextcloudUserStatusType(this.value); - - final String value; - - static NextcloudUserStatusType fromValue(final String value) { - switch (value) { - case 'online': - return NextcloudUserStatusType.online; - case 'offline': - return NextcloudUserStatusType.offline; - case 'dnd': - return NextcloudUserStatusType.dnd; - case 'away': - return NextcloudUserStatusType.away; - case 'invisible': - return NextcloudUserStatusType.invisible; - default: - throw Exception('Can not parse NextcloudUserStatusType from "$value"'); - } - } -} - -@JsonSerializable() -class NextcloudUserStatusPublicStatus { - NextcloudUserStatusPublicStatus({ - required this.userId, - required this.status, - this.message, - this.icon, - this.clearAt, - }); - - // coverage:ignore-start - factory NextcloudUserStatusPublicStatus.fromJson(final Map json) => - _$NextcloudUserStatusPublicStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusPublicStatus.fromJsonString(final String data) => - NextcloudUserStatusPublicStatus.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String userId; - - final String? message; - - final String? icon; - - final NextcloudUserStatusPublicStatus_ClearAt? clearAt; - - final NextcloudUserStatusType status; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusPublicStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusPublicStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusGetPublicStatuses_Ocs { - NextcloudUserStatusGetPublicStatuses_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(final Map json) => - _$NextcloudUserStatusGetPublicStatuses_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatuses_Ocs.fromJsonString(final String data) => - NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final List data; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusGetPublicStatuses_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusGetPublicStatuses_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusGetPublicStatuses { - NextcloudUserStatusGetPublicStatuses({required this.ocs}); - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatuses.fromJson(final Map json) => - _$NextcloudUserStatusGetPublicStatusesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatuses.fromJsonString(final String data) => - NextcloudUserStatusGetPublicStatuses.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudUserStatusGetPublicStatuses_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusGetPublicStatusesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusGetPublicStatuses? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudUserStatusGetPublicStatus_Ocs_Data { - NextcloudUserStatusGetPublicStatus_Ocs_Data( - this._data, { - this.listDynamic, - this.userStatusPublicStatus, - }); - - factory NextcloudUserStatusGetPublicStatus_Ocs_Data.fromJson(final dynamic data) { - List? listDynamic; - NextcloudUserStatusPublicStatus? userStatusPublicStatus; - try { - listDynamic = (data as List).map((final e) => e as dynamic).toList(); - } catch (_) {} - try { - userStatusPublicStatus = NextcloudUserStatusPublicStatus.fromJson(data as Map); - } catch (_) {} - assert([listDynamic, userStatusPublicStatus].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudUserStatusGetPublicStatus_Ocs_Data( - data, - listDynamic: listDynamic, - userStatusPublicStatus: userStatusPublicStatus, - ); - } - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatus_Ocs_Data.fromJsonString(final String data) => - NextcloudUserStatusGetPublicStatus_Ocs_Data.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final List? listDynamic; - - final NextcloudUserStatusPublicStatus? userStatusPublicStatus; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudUserStatusGetPublicStatus_Ocs { - NextcloudUserStatusGetPublicStatus_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatus_Ocs.fromJson(final Map json) => - _$NextcloudUserStatusGetPublicStatus_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatus_Ocs.fromJsonString(final String data) => - NextcloudUserStatusGetPublicStatus_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudUserStatusGetPublicStatus_Ocs_Data data; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusGetPublicStatus_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusGetPublicStatus_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusGetPublicStatus { - NextcloudUserStatusGetPublicStatus({required this.ocs}); - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatus.fromJson(final Map json) => - _$NextcloudUserStatusGetPublicStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusGetPublicStatus.fromJsonString(final String data) => - NextcloudUserStatusGetPublicStatus.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudUserStatusGetPublicStatus_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusGetPublicStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusGetPublicStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudUserStatusStatus_ClearAt { - NextcloudUserStatusStatus_ClearAt( - this._data, { - this.userStatusClearAt, - this.$int, - }); - - factory NextcloudUserStatusStatus_ClearAt.fromJson(final dynamic data) { - NextcloudUserStatusClearAt? userStatusClearAt; - int? $int; - try { - userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data as Map); - } catch (_) {} - try { - $int = data as int; - } catch (_) {} - assert([userStatusClearAt, $int].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudUserStatusStatus_ClearAt( - data, - userStatusClearAt: userStatusClearAt, - $int: $int, - ); - } - - // coverage:ignore-start - factory NextcloudUserStatusStatus_ClearAt.fromJsonString(final String data) => - NextcloudUserStatusStatus_ClearAt.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final NextcloudUserStatusClearAt? userStatusClearAt; - - /// Time as unix timestamp - final int? $int; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudUserStatusStatus { - NextcloudUserStatusStatus({ - required this.userId, - required this.messageIsPredefined, - required this.status, - required this.statusIsUserDefined, - this.message, - this.messageId, - this.icon, - this.clearAt, - }); - - // coverage:ignore-start - factory NextcloudUserStatusStatus.fromJson(final Map json) => - _$NextcloudUserStatusStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusStatus.fromJsonString(final String data) => - NextcloudUserStatusStatus.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String userId; - - final String? message; - - final String? messageId; - - final bool messageIsPredefined; - - final String? icon; - - final NextcloudUserStatusStatus_ClearAt? clearAt; - - final NextcloudUserStatusType status; - - final bool statusIsUserDefined; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudUserStatusGetStatus_Ocs_Data { - NextcloudUserStatusGetStatus_Ocs_Data( - this._data, { - this.listDynamic, - this.userStatusStatus, - }); - - factory NextcloudUserStatusGetStatus_Ocs_Data.fromJson(final dynamic data) { - List? listDynamic; - NextcloudUserStatusStatus? userStatusStatus; - try { - listDynamic = (data as List).map((final e) => e as dynamic).toList(); - } catch (_) {} - try { - userStatusStatus = NextcloudUserStatusStatus.fromJson(data as Map); - } catch (_) {} - assert([listDynamic, userStatusStatus].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudUserStatusGetStatus_Ocs_Data( - data, - listDynamic: listDynamic, - userStatusStatus: userStatusStatus, - ); - } - - // coverage:ignore-start - factory NextcloudUserStatusGetStatus_Ocs_Data.fromJsonString(final String data) => - NextcloudUserStatusGetStatus_Ocs_Data.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final List? listDynamic; - - final NextcloudUserStatusStatus? userStatusStatus; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudUserStatusGetStatus_Ocs { - NextcloudUserStatusGetStatus_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudUserStatusGetStatus_Ocs.fromJson(final Map json) => - _$NextcloudUserStatusGetStatus_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusGetStatus_Ocs.fromJsonString(final String data) => - NextcloudUserStatusGetStatus_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudUserStatusGetStatus_Ocs_Data data; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusGetStatus_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusGetStatus_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusGetStatus { - NextcloudUserStatusGetStatus({required this.ocs}); - - // coverage:ignore-start - factory NextcloudUserStatusGetStatus.fromJson(final Map json) => - _$NextcloudUserStatusGetStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusGetStatus.fromJsonString(final String data) => - NextcloudUserStatusGetStatus.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudUserStatusGetStatus_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusGetStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusGetStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -class NextcloudUserStatusPredefinedStatus_ClearAt { - NextcloudUserStatusPredefinedStatus_ClearAt( - this._data, { - this.userStatusClearAt, - this.$int, - }); - - factory NextcloudUserStatusPredefinedStatus_ClearAt.fromJson(final dynamic data) { - NextcloudUserStatusClearAt? userStatusClearAt; - int? $int; - try { - userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data as Map); - } catch (_) {} - try { - $int = data as int; - } catch (_) {} - assert([userStatusClearAt, $int].where((final x) => x != null).isNotEmpty, 'Need oneOf for $data'); - return NextcloudUserStatusPredefinedStatus_ClearAt( - data, - userStatusClearAt: userStatusClearAt, - $int: $int, - ); - } - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatus_ClearAt.fromJsonString(final String data) => - NextcloudUserStatusPredefinedStatus_ClearAt.fromJson(json.decode(data)); - // coverage:ignore-end - - final dynamic _data; - - final NextcloudUserStatusClearAt? userStatusClearAt; - - /// Time as unix timestamp - final int? $int; - - // coverage:ignore-start - dynamic toJson() => _data; - // coverage:ignore-end - // coverage:ignore-start - static String toJsonString(final dynamic data) => json.encode(data); - // coverage:ignore-end -} - -@JsonSerializable() -class NextcloudUserStatusPredefinedStatus { - NextcloudUserStatusPredefinedStatus({ - required this.id, - required this.icon, - required this.message, - this.clearAt, - }); - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatus.fromJson(final Map json) => - _$NextcloudUserStatusPredefinedStatusFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatus.fromJsonString(final String data) => - NextcloudUserStatusPredefinedStatus.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final String id; - - final String icon; - - final String message; - - final NextcloudUserStatusPredefinedStatus_ClearAt? clearAt; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusPredefinedStatusToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusPredefinedStatus? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusPredefinedStatuses_Ocs { - NextcloudUserStatusPredefinedStatuses_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(final Map json) => - _$NextcloudUserStatusPredefinedStatuses_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatuses_Ocs.fromJsonString(final String data) => - NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final List data; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusPredefinedStatuses_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusPredefinedStatuses_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusPredefinedStatuses { - NextcloudUserStatusPredefinedStatuses({required this.ocs}); - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatuses.fromJson(final Map json) => - _$NextcloudUserStatusPredefinedStatusesFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusPredefinedStatuses.fromJsonString(final String data) => - NextcloudUserStatusPredefinedStatuses.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudUserStatusPredefinedStatuses_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusPredefinedStatusesToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusPredefinedStatuses? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusHeartbeat_Ocs { - NextcloudUserStatusHeartbeat_Ocs({ - required this.meta, - required this.data, - }); - - // coverage:ignore-start - factory NextcloudUserStatusHeartbeat_Ocs.fromJson(final Map json) => - _$NextcloudUserStatusHeartbeat_OcsFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusHeartbeat_Ocs.fromJsonString(final String data) => - NextcloudUserStatusHeartbeat_Ocs.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudOCSMeta meta; - - final NextcloudUserStatusStatus data; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusHeartbeat_OcsToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusHeartbeat_Ocs? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudUserStatusHeartbeat { - NextcloudUserStatusHeartbeat({required this.ocs}); - - // coverage:ignore-start - factory NextcloudUserStatusHeartbeat.fromJson(final Map json) => - _$NextcloudUserStatusHeartbeatFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudUserStatusHeartbeat.fromJsonString(final String data) => - NextcloudUserStatusHeartbeat.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final NextcloudUserStatusHeartbeat_Ocs ocs; - - // coverage:ignore-start - Map toJson() => _$NextcloudUserStatusHeartbeatToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudUserStatusHeartbeat? data) => - data == null ? null : json.encode(data.toJson()); -} - -@JsonSerializable() -class NextcloudNotificationsNotificationDecryptedSubject { - NextcloudNotificationsNotificationDecryptedSubject({ - this.nid, - this.app, - this.subject, - this.type, - this.id, - this.delete, - this.deleteAll, - }); - - // coverage:ignore-start - factory NextcloudNotificationsNotificationDecryptedSubject.fromJson(final Map json) => - _$NextcloudNotificationsNotificationDecryptedSubjectFromJson(json); - // coverage:ignore-end - - // coverage:ignore-start - factory NextcloudNotificationsNotificationDecryptedSubject.fromJsonString(final String data) => - NextcloudNotificationsNotificationDecryptedSubject.fromJson(json.decode(data) as Map); - // coverage:ignore-end - - final int? nid; - - final String? app; - - final String? subject; - - final String? type; - - final String? id; - - final bool? delete; - - @JsonKey(name: 'delete-all') - final bool? deleteAll; - - // coverage:ignore-start - Map toJson() => _$NextcloudNotificationsNotificationDecryptedSubjectToJson(this); - // coverage:ignore-end - static String? toJsonString(final NextcloudNotificationsNotificationDecryptedSubject? data) => - data == null ? null : json.encode(data.toJson()); -} - -// coverage:ignore-start -final _deserializers = { - NextcloudCoreServerStatus: (final data) => NextcloudCoreServerStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreServerStatus.fromJson(e as Map)).toList(), - NextcloudCoreServerCapabilities: (final data) => - NextcloudCoreServerCapabilities.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreServerCapabilities.fromJson(e as Map)).toList(), - NextcloudCoreServerCapabilities_Ocs: (final data) => - NextcloudCoreServerCapabilities_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreServerCapabilities_Ocs.fromJson(e as Map)).toList(), - NextcloudOCSMeta: (final data) => NextcloudOCSMeta.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudOCSMeta.fromJson(e as Map)).toList(), - NextcloudCoreServerCapabilities_Ocs_Data: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Version: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( - data as Map, - ), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( - data as Map, - ), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( - data as Map, - ), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( - data as Map, - ), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( - data as Map, - ), - List: - (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported - .fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( - data as Map, - ), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(e as Map)) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(e as Map), - ) - .toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(e as Map), - ) - .toList(), - NextcloudCoreNavigationApps: (final data) => NextcloudCoreNavigationApps.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreNavigationApps.fromJson(e as Map)).toList(), - NextcloudCoreNavigationApps_Ocs: (final data) => - NextcloudCoreNavigationApps_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreNavigationApps_Ocs.fromJson(e as Map)).toList(), - NextcloudCoreNavigationApps_Ocs_Data: (final data) => - NextcloudCoreNavigationApps_Ocs_Data.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreNavigationApps_Ocs_Data.fromJson(e as Map)) - .toList(), - NextcloudCoreLoginFlowInit: (final data) => NextcloudCoreLoginFlowInit.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreLoginFlowInit.fromJson(e as Map)).toList(), - NextcloudCoreLoginFlowInit_Poll: (final data) => - NextcloudCoreLoginFlowInit_Poll.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreLoginFlowInit_Poll.fromJson(e as Map)).toList(), - NextcloudCoreLoginFlowResult: (final data) => NextcloudCoreLoginFlowResult.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreLoginFlowResult.fromJson(e as Map)).toList(), - NextcloudCoreAutocompleteResult: (final data) => - NextcloudCoreAutocompleteResult.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreAutocompleteResult.fromJson(e as Map)).toList(), - NextcloudCoreAutocompleteResult_Ocs: (final data) => - NextcloudCoreAutocompleteResult_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudCoreAutocompleteResult_Ocs.fromJson(e as Map)).toList(), - NextcloudCoreAutocompleteResult_Ocs_Data: (final data) => - NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(e as Map)) - .toList(), - NextcloudNewsSupportedAPIVersions: (final data) => - NextcloudNewsSupportedAPIVersions.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsSupportedAPIVersions.fromJson(e as Map)).toList(), - NextcloudNewsListFolders: (final data) => NextcloudNewsListFolders.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsListFolders.fromJson(e as Map)).toList(), - NextcloudNewsFolder: (final data) => NextcloudNewsFolder.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsFolder.fromJson(e as Map)).toList(), - NextcloudNewsFeed: (final data) => NextcloudNewsFeed.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsFeed.fromJson(e as Map)).toList(), - NextcloudNewsArticle: (final data) => NextcloudNewsArticle.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsArticle.fromJson(e as Map)).toList(), - NextcloudNewsListFeeds: (final data) => NextcloudNewsListFeeds.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsListFeeds.fromJson(e as Map)).toList(), - NextcloudNewsListArticles: (final data) => NextcloudNewsListArticles.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNewsListArticles.fromJson(e as Map)).toList(), - NextcloudNotesNote: (final data) => NextcloudNotesNote.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNotesNote.fromJson(e as Map)).toList(), - NextcloudNotesSettings: (final data) => NextcloudNotesSettings.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNotesSettings.fromJson(e as Map)).toList(), - NextcloudNotificationsListNotifications: (final data) => - NextcloudNotificationsListNotifications.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsListNotifications.fromJson(e as Map)) - .toList(), - NextcloudNotificationsListNotifications_Ocs: (final data) => - NextcloudNotificationsListNotifications_Ocs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsListNotifications_Ocs.fromJson(e as Map)) - .toList(), - NextcloudNotificationsNotification: (final data) => - NextcloudNotificationsNotification.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudNotificationsNotification.fromJson(e as Map)).toList(), - NextcloudNotificationsNotificationAction: (final data) => - NextcloudNotificationsNotificationAction.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsNotificationAction.fromJson(e as Map)) - .toList(), - NextcloudNotificationsGetNotification: (final data) => - NextcloudNotificationsGetNotification.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsGetNotification.fromJson(e as Map)) - .toList(), - NextcloudNotificationsGetNotification_Ocs: (final data) => - NextcloudNotificationsGetNotification_Ocs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsGetNotification_Ocs.fromJson(e as Map)) - .toList(), - NextcloudEmptyOCS: (final data) => NextcloudEmptyOCS.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudEmptyOCS.fromJson(e as Map)).toList(), - NextcloudEmptyOCS_Ocs: (final data) => NextcloudEmptyOCS_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudEmptyOCS_Ocs.fromJson(e as Map)).toList(), - NextcloudNotificationsPushServerRegistration: (final data) => - NextcloudNotificationsPushServerRegistration.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsPushServerRegistration.fromJson(e as Map)) - .toList(), - NextcloudNotificationsPushServerRegistration_Ocs: (final data) => - NextcloudNotificationsPushServerRegistration_Ocs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsPushServerRegistration_Ocs.fromJson(e as Map)) - .toList(), - NextcloudNotificationsPushServerSubscription: (final data) => - NextcloudNotificationsPushServerSubscription.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsPushServerSubscription.fromJson(e as Map)) - .toList(), - NextcloudProvisioningApiUser: (final data) => NextcloudProvisioningApiUser.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudProvisioningApiUser.fromJson(e as Map)).toList(), - NextcloudProvisioningApiUser_Ocs: (final data) => - NextcloudProvisioningApiUser_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudProvisioningApiUser_Ocs.fromJson(e as Map)).toList(), - NextcloudProvisioningApiUserDetails: (final data) => - NextcloudProvisioningApiUserDetails.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudProvisioningApiUserDetails.fromJson(e as Map)).toList(), - NextcloudProvisioningApiUserDetails_Quota: (final data) => - NextcloudProvisioningApiUserDetails_Quota.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudProvisioningApiUserDetails_Quota.fromJson(e as Map)) - .toList(), - NextcloudProvisioningApiUserDetails_BackendCapabilities: (final data) => - NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(e as Map)) - .toList(), - NextcloudUnifiedPushProviderCheckResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.fromJson(e as Map)) - .toList(), - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson: (final data) => - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush: (final data) => - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudUnifiedPushProviderPushResponse201ApplicationJson: (final data) => - NextcloudUnifiedPushProviderPushResponse201ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUnifiedPushProviderPushResponse201ApplicationJson.fromJson(e as Map)) - .toList(), - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson( - data as Map, - ), - List: (final data) => (data as List) - .map( - (final e) => NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush: (final data) => - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - data as Map, - ), - List: (final data) => - (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - e as Map, - ), - ) - .toList(), - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson: (final data) => - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.fromJson(e as Map), - ) - .toList(), - NextcloudUserStatusGetPublicStatuses: (final data) => - NextcloudUserStatusGetPublicStatuses.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUserStatusGetPublicStatuses.fromJson(e as Map)) - .toList(), - NextcloudUserStatusGetPublicStatuses_Ocs: (final data) => - NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(e as Map)) - .toList(), - NextcloudUserStatusPublicStatus: (final data) => - NextcloudUserStatusPublicStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusPublicStatus.fromJson(e as Map)).toList(), - NextcloudUserStatusClearAt: (final data) => NextcloudUserStatusClearAt.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusClearAt.fromJson(e as Map)).toList(), - NextcloudUserStatusGetPublicStatus: (final data) => - NextcloudUserStatusGetPublicStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusGetPublicStatus.fromJson(e as Map)).toList(), - NextcloudUserStatusGetPublicStatus_Ocs: (final data) => - NextcloudUserStatusGetPublicStatus_Ocs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUserStatusGetPublicStatus_Ocs.fromJson(e as Map)) - .toList(), - NextcloudUserStatusGetStatus: (final data) => NextcloudUserStatusGetStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusGetStatus.fromJson(e as Map)).toList(), - NextcloudUserStatusGetStatus_Ocs: (final data) => - NextcloudUserStatusGetStatus_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusGetStatus_Ocs.fromJson(e as Map)).toList(), - NextcloudUserStatusStatus: (final data) => NextcloudUserStatusStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusStatus.fromJson(e as Map)).toList(), - NextcloudUserStatusPredefinedStatuses: (final data) => - NextcloudUserStatusPredefinedStatuses.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUserStatusPredefinedStatuses.fromJson(e as Map)) - .toList(), - NextcloudUserStatusPredefinedStatuses_Ocs: (final data) => - NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(e as Map)) - .toList(), - NextcloudUserStatusPredefinedStatus: (final data) => - NextcloudUserStatusPredefinedStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusPredefinedStatus.fromJson(e as Map)).toList(), - NextcloudUserStatusHeartbeat: (final data) => NextcloudUserStatusHeartbeat.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusHeartbeat.fromJson(e as Map)).toList(), - NextcloudUserStatusHeartbeat_Ocs: (final data) => - NextcloudUserStatusHeartbeat_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NextcloudUserStatusHeartbeat_Ocs.fromJson(e as Map)).toList(), - NextcloudNotificationsNotificationDecryptedSubject: (final data) => - NextcloudNotificationsNotificationDecryptedSubject.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NextcloudNotificationsNotificationDecryptedSubject.fromJson(e as Map)) - .toList(), -}; - -final _serializers = { - NextcloudCoreServerStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudOCSMeta: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Version: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => - data.toJson(), - List: - (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudCoreNavigationApps: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreNavigationApps_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreNavigationApps_Ocs_Data: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreLoginFlowInit: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreLoginFlowInit_Poll: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreLoginFlowResult: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreAutocompleteResult: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreAutocompleteResult_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudCoreAutocompleteResult_Ocs_Data: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsSupportedAPIVersions: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsListFolders: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsFolder: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsFeed: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsArticle: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsListFeeds: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNewsListArticles: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotesNote: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotesSettings: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsListNotifications: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsListNotifications_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsNotification: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsNotificationAction: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsGetNotification: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsGetNotification_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudEmptyOCS: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudEmptyOCS_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsPushServerRegistration: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsPushServerRegistration_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsPushServerSubscription: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudProvisioningApiUser: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudProvisioningApiUser_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudProvisioningApiUserDetails: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudProvisioningApiUserDetails_Quota: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudProvisioningApiUserDetails_BackendCapabilities: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderCheckResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderPushResponse201ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush: (final data) => - data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson: (final data) => data.toJson(), - List: (final data) => - data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusGetPublicStatuses: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusGetPublicStatuses_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusPublicStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusClearAt: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusGetPublicStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusGetPublicStatus_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusGetStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusGetStatus_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusPredefinedStatuses: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusPredefinedStatuses_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusPredefinedStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusHeartbeat: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudUserStatusHeartbeat_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NextcloudNotificationsNotificationDecryptedSubject: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), -}; - -T deserializeNextcloud(final dynamic data) => _deserializers[T]!(data) as T; - -dynamic serializeNextcloud(final T data) => _serializers[T]!(data); +Object? serializeNextcloud(final T data) => serializers.serialize(data, specifiedType: FullType(T)); // coverage:ignore-end diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart index fadfea3d..14ae1512 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart @@ -3,2489 +3,23224 @@ part of 'nextcloud.openapi.dart'; // ************************************************************************** -// JsonSerializableGenerator +// BuiltValueGenerator // ************************************************************************** -NextcloudCoreServerStatus _$NextcloudCoreServerStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ +const NextcloudNotesSettings_NoteMode _$nextcloudNotesSettingsNoteModeEdit = NextcloudNotesSettings_NoteMode._('edit'); +const NextcloudNotesSettings_NoteMode _$nextcloudNotesSettingsNoteModePreview = + NextcloudNotesSettings_NoteMode._('preview'); +const NextcloudNotesSettings_NoteMode _$nextcloudNotesSettingsNoteModeRich = NextcloudNotesSettings_NoteMode._('rich'); + +NextcloudNotesSettings_NoteMode _$valueOfNextcloudNotesSettings_NoteMode(String name) { + switch (name) { + case 'edit': + return _$nextcloudNotesSettingsNoteModeEdit; + case 'preview': + return _$nextcloudNotesSettingsNoteModePreview; + case 'rich': + return _$nextcloudNotesSettingsNoteModeRich; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$nextcloudNotesSettingsNoteModeValues = + BuiltSet(const [ + _$nextcloudNotesSettingsNoteModeEdit, + _$nextcloudNotesSettingsNoteModePreview, + _$nextcloudNotesSettingsNoteModeRich, +]); + +const NextcloudUserStatusClearAt_Type _$nextcloudUserStatusClearAtTypePeriod = + NextcloudUserStatusClearAt_Type._('period'); +const NextcloudUserStatusClearAt_Type _$nextcloudUserStatusClearAtTypeEndOf = + NextcloudUserStatusClearAt_Type._('endOf'); + +NextcloudUserStatusClearAt_Type _$valueOfNextcloudUserStatusClearAt_Type(String name) { + switch (name) { + case 'period': + return _$nextcloudUserStatusClearAtTypePeriod; + case 'endOf': + return _$nextcloudUserStatusClearAtTypeEndOf; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$nextcloudUserStatusClearAtTypeValues = + BuiltSet(const [ + _$nextcloudUserStatusClearAtTypePeriod, + _$nextcloudUserStatusClearAtTypeEndOf, +]); + +const NextcloudUserStatusClearAt_Time0 _$nextcloudUserStatusClearAtTime0Day = NextcloudUserStatusClearAt_Time0._('day'); +const NextcloudUserStatusClearAt_Time0 _$nextcloudUserStatusClearAtTime0Week = + NextcloudUserStatusClearAt_Time0._('week'); + +NextcloudUserStatusClearAt_Time0 _$valueOfNextcloudUserStatusClearAt_Time0(String name) { + switch (name) { + case 'day': + return _$nextcloudUserStatusClearAtTime0Day; + case 'week': + return _$nextcloudUserStatusClearAtTime0Week; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$nextcloudUserStatusClearAtTime0Values = + BuiltSet(const [ + _$nextcloudUserStatusClearAtTime0Day, + _$nextcloudUserStatusClearAtTime0Week, +]); + +const NextcloudUserStatusType _$nextcloudUserStatusTypeOnline = NextcloudUserStatusType._('online'); +const NextcloudUserStatusType _$nextcloudUserStatusTypeOffline = NextcloudUserStatusType._('offline'); +const NextcloudUserStatusType _$nextcloudUserStatusTypeDnd = NextcloudUserStatusType._('dnd'); +const NextcloudUserStatusType _$nextcloudUserStatusTypeAway = NextcloudUserStatusType._('away'); +const NextcloudUserStatusType _$nextcloudUserStatusTypeInvisible = NextcloudUserStatusType._('invisible'); + +NextcloudUserStatusType _$valueOfNextcloudUserStatusType(String name) { + switch (name) { + case 'online': + return _$nextcloudUserStatusTypeOnline; + case 'offline': + return _$nextcloudUserStatusTypeOffline; + case 'dnd': + return _$nextcloudUserStatusTypeDnd; + case 'away': + return _$nextcloudUserStatusTypeAway; + case 'invisible': + return _$nextcloudUserStatusTypeInvisible; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$nextcloudUserStatusTypeValues = + BuiltSet(const [ + _$nextcloudUserStatusTypeOnline, + _$nextcloudUserStatusTypeOffline, + _$nextcloudUserStatusTypeDnd, + _$nextcloudUserStatusTypeAway, + _$nextcloudUserStatusTypeInvisible, +]); + +Serializers _$serializers = (Serializers().toBuilder() + ..add(NextcloudCoreAutocompleteResult.serializer) + ..add(NextcloudCoreAutocompleteResult_Ocs.serializer) + ..add(NextcloudCoreAutocompleteResult_Ocs_Data.serializer) + ..add(NextcloudCoreAutocompleteResult_Ocs_Data_Status.serializer) + ..add(NextcloudCoreLoginFlowInit.serializer) + ..add(NextcloudCoreLoginFlowInit_Poll.serializer) + ..add(NextcloudCoreLoginFlowResult.serializer) + ..add(NextcloudCoreNavigationApps.serializer) + ..add(NextcloudCoreNavigationApps_Ocs.serializer) + ..add(NextcloudCoreNavigationApps_Ocs_Data.serializer) + ..add(NextcloudCoreNavigationApps_Ocs_Data_Order.serializer) + ..add(NextcloudCoreServerCapabilities.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.serializer) + ..add( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.serializer) + ..add(NextcloudCoreServerCapabilities_Ocs_Data_Version.serializer) + ..add(NextcloudCoreServerStatus.serializer) + ..add(NextcloudEmptyOCS.serializer) + ..add(NextcloudEmptyOCS_Ocs.serializer) + ..add(NextcloudNewsArticle.serializer) + ..add(NextcloudNewsFeed.serializer) + ..add(NextcloudNewsFolder.serializer) + ..add(NextcloudNewsListArticles.serializer) + ..add(NextcloudNewsListFeeds.serializer) + ..add(NextcloudNewsListFolders.serializer) + ..add(NextcloudNewsSupportedAPIVersions.serializer) + ..add(NextcloudNotesNote.serializer) + ..add(NextcloudNotesSettings.serializer) + ..add(NextcloudNotesSettings_NoteMode.serializer) + ..add(NextcloudNotificationsGetNotification.serializer) + ..add(NextcloudNotificationsGetNotification_Ocs.serializer) + ..add(NextcloudNotificationsListNotifications.serializer) + ..add(NextcloudNotificationsListNotifications_Ocs.serializer) + ..add(NextcloudNotificationsNotification.serializer) + ..add(NextcloudNotificationsNotificationAction.serializer) + ..add(NextcloudNotificationsNotificationDecryptedSubject.serializer) + ..add(NextcloudNotificationsPushServerRegistration.serializer) + ..add(NextcloudNotificationsPushServerRegistration_Ocs.serializer) + ..add(NextcloudNotificationsPushServerSubscription.serializer) + ..add(NextcloudOCSMeta.serializer) + ..add(NextcloudProvisioningApiUser.serializer) + ..add(NextcloudProvisioningApiUserDetails.serializer) + ..add(NextcloudProvisioningApiUserDetails_BackendCapabilities.serializer) + ..add(NextcloudProvisioningApiUserDetails_Quota.serializer) + ..add(NextcloudProvisioningApiUser_Ocs.serializer) + ..add(NextcloudUnifiedPushProviderCheckResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.serializer) + ..add(NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderPushResponse201ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson.serializer) + ..add(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.serializer) + ..add(NextcloudUserStatusClearAt.serializer) + ..add(NextcloudUserStatusClearAt_Time.serializer) + ..add(NextcloudUserStatusClearAt_Time0.serializer) + ..add(NextcloudUserStatusClearAt_Type.serializer) + ..add(NextcloudUserStatusGetPublicStatus.serializer) + ..add(NextcloudUserStatusGetPublicStatus_Ocs.serializer) + ..add(NextcloudUserStatusGetPublicStatus_Ocs_Data.serializer) + ..add(NextcloudUserStatusGetPublicStatuses.serializer) + ..add(NextcloudUserStatusGetPublicStatuses_Ocs.serializer) + ..add(NextcloudUserStatusGetStatus.serializer) + ..add(NextcloudUserStatusGetStatus_Ocs.serializer) + ..add(NextcloudUserStatusGetStatus_Ocs_Data.serializer) + ..add(NextcloudUserStatusHeartbeat.serializer) + ..add(NextcloudUserStatusHeartbeat_Ocs.serializer) + ..add(NextcloudUserStatusPredefinedStatus.serializer) + ..add(NextcloudUserStatusPredefinedStatus_ClearAt.serializer) + ..add(NextcloudUserStatusPredefinedStatuses.serializer) + ..add(NextcloudUserStatusPredefinedStatuses_Ocs.serializer) + ..add(NextcloudUserStatusPublicStatus.serializer) + ..add(NextcloudUserStatusPublicStatus_ClearAt.serializer) + ..add(NextcloudUserStatusStatus.serializer) + ..add(NextcloudUserStatusStatus_ClearAt.serializer) + ..add(NextcloudUserStatusType.serializer) + ..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(NextcloudCoreAutocompleteResult_Ocs_Data)]), + () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(NextcloudCoreNavigationApps_Ocs_Data)]), + () => ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, [FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes)]), + () => ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, [FullType(NextcloudNewsArticle)]), () => ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, [FullType(NextcloudNewsArticle)]), () => ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, [FullType(NextcloudNewsFeed)]), () => ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, [FullType(NextcloudNewsFeed)]), () => ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, [FullType(NextcloudNewsFolder)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(NextcloudNotificationsNotification)]), + () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(NextcloudNotificationsNotificationAction)]), + () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(NextcloudUserStatusPredefinedStatus)]), + () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(NextcloudUserStatusPublicStatus)]), + () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(int)]), () => ListBuilder()) + ..addBuilderFactory(const FullType(BuiltList, [FullType(int)]), () => ListBuilder())) + .build(); +Serializer _$nextcloudCoreServerStatusSerializer = _$NextcloudCoreServerStatusSerializer(); +Serializer _$nextcloudOCSMetaSerializer = _$NextcloudOCSMetaSerializer(); +Serializer _$nextcloudCoreServerCapabilitiesOcsDataVersionSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_VersionSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCoreSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesBruteforceSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailableSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditingSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesActivitySerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivitySerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesStatusSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSourceSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfigSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstantsSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesCirclesSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocolsSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesOcmSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesDavSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPasswordSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternalSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemoteSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDateSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDateSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupportedSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingShareeSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDropSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPasswordSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDateSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesNotesSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesNotificationsSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApiSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicySerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicySerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesThemingSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesUserStatusSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesWeatherStatusSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusSerializer(); +Serializer + _$nextcloudCoreServerCapabilitiesOcsDataCapabilitiesSerializer = + _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesSerializer(); +Serializer _$nextcloudCoreServerCapabilitiesOcsDataSerializer = + _$NextcloudCoreServerCapabilities_Ocs_DataSerializer(); +Serializer _$nextcloudCoreServerCapabilitiesOcsSerializer = + _$NextcloudCoreServerCapabilities_OcsSerializer(); +Serializer _$nextcloudCoreServerCapabilitiesSerializer = + _$NextcloudCoreServerCapabilitiesSerializer(); +Serializer _$nextcloudCoreNavigationAppsOcsDataSerializer = + _$NextcloudCoreNavigationApps_Ocs_DataSerializer(); +Serializer _$nextcloudCoreNavigationAppsOcsSerializer = + _$NextcloudCoreNavigationApps_OcsSerializer(); +Serializer _$nextcloudCoreNavigationAppsSerializer = + _$NextcloudCoreNavigationAppsSerializer(); +Serializer _$nextcloudCoreLoginFlowInitPollSerializer = + _$NextcloudCoreLoginFlowInit_PollSerializer(); +Serializer _$nextcloudCoreLoginFlowInitSerializer = + _$NextcloudCoreLoginFlowInitSerializer(); +Serializer _$nextcloudCoreLoginFlowResultSerializer = + _$NextcloudCoreLoginFlowResultSerializer(); +Serializer _$nextcloudCoreAutocompleteResultOcsDataSerializer = + _$NextcloudCoreAutocompleteResult_Ocs_DataSerializer(); +Serializer _$nextcloudCoreAutocompleteResultOcsSerializer = + _$NextcloudCoreAutocompleteResult_OcsSerializer(); +Serializer _$nextcloudCoreAutocompleteResultSerializer = + _$NextcloudCoreAutocompleteResultSerializer(); +Serializer _$nextcloudNewsSupportedAPIVersionsSerializer = + _$NextcloudNewsSupportedAPIVersionsSerializer(); +Serializer _$nextcloudNewsArticleSerializer = _$NextcloudNewsArticleSerializer(); +Serializer _$nextcloudNewsFeedSerializer = _$NextcloudNewsFeedSerializer(); +Serializer _$nextcloudNewsFolderSerializer = _$NextcloudNewsFolderSerializer(); +Serializer _$nextcloudNewsListFoldersSerializer = _$NextcloudNewsListFoldersSerializer(); +Serializer _$nextcloudNewsListFeedsSerializer = _$NextcloudNewsListFeedsSerializer(); +Serializer _$nextcloudNewsListArticlesSerializer = _$NextcloudNewsListArticlesSerializer(); +Serializer _$nextcloudNotesNoteSerializer = _$NextcloudNotesNoteSerializer(); +Serializer _$nextcloudNotesSettingsNoteModeSerializer = + _$NextcloudNotesSettings_NoteModeSerializer(); +Serializer _$nextcloudNotesSettingsSerializer = _$NextcloudNotesSettingsSerializer(); +Serializer _$nextcloudNotificationsNotificationActionSerializer = + _$NextcloudNotificationsNotificationActionSerializer(); +Serializer _$nextcloudNotificationsNotificationSerializer = + _$NextcloudNotificationsNotificationSerializer(); +Serializer _$nextcloudNotificationsListNotificationsOcsSerializer = + _$NextcloudNotificationsListNotifications_OcsSerializer(); +Serializer _$nextcloudNotificationsListNotificationsSerializer = + _$NextcloudNotificationsListNotificationsSerializer(); +Serializer _$nextcloudNotificationsGetNotificationOcsSerializer = + _$NextcloudNotificationsGetNotification_OcsSerializer(); +Serializer _$nextcloudNotificationsGetNotificationSerializer = + _$NextcloudNotificationsGetNotificationSerializer(); +Serializer _$nextcloudEmptyOCSOcsSerializer = _$NextcloudEmptyOCS_OcsSerializer(); +Serializer _$nextcloudEmptyOCSSerializer = _$NextcloudEmptyOCSSerializer(); +Serializer _$nextcloudNotificationsPushServerSubscriptionSerializer = + _$NextcloudNotificationsPushServerSubscriptionSerializer(); +Serializer + _$nextcloudNotificationsPushServerRegistrationOcsSerializer = + _$NextcloudNotificationsPushServerRegistration_OcsSerializer(); +Serializer _$nextcloudNotificationsPushServerRegistrationSerializer = + _$NextcloudNotificationsPushServerRegistrationSerializer(); +Serializer _$nextcloudProvisioningApiUserDetailsQuotaSerializer = + _$NextcloudProvisioningApiUserDetails_QuotaSerializer(); +Serializer + _$nextcloudProvisioningApiUserDetailsBackendCapabilitiesSerializer = + _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesSerializer(); +Serializer _$nextcloudProvisioningApiUserDetailsSerializer = + _$NextcloudProvisioningApiUserDetailsSerializer(); +Serializer _$nextcloudProvisioningApiUserOcsSerializer = + _$NextcloudProvisioningApiUser_OcsSerializer(); +Serializer _$nextcloudProvisioningApiUserSerializer = + _$NextcloudProvisioningApiUserSerializer(); +Serializer + _$nextcloudUnifiedPushProviderCheckResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonUnifiedpushSerializer = + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushSerializer(); +Serializer + _$nextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderPushResponse201ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderPushResponse201ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonUnifiedpushSerializer = + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushSerializer(); +Serializer + _$nextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonSerializer(); +Serializer + _$nextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonSerializer = + _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonSerializer(); +Serializer _$nextcloudUserStatusClearAtTypeSerializer = + _$NextcloudUserStatusClearAt_TypeSerializer(); +Serializer _$nextcloudUserStatusClearAtTime0Serializer = + _$NextcloudUserStatusClearAt_Time0Serializer(); +Serializer _$nextcloudUserStatusClearAtSerializer = + _$NextcloudUserStatusClearAtSerializer(); +Serializer _$nextcloudUserStatusTypeSerializer = _$NextcloudUserStatusTypeSerializer(); +Serializer _$nextcloudUserStatusPublicStatusSerializer = + _$NextcloudUserStatusPublicStatusSerializer(); +Serializer _$nextcloudUserStatusGetPublicStatusesOcsSerializer = + _$NextcloudUserStatusGetPublicStatuses_OcsSerializer(); +Serializer _$nextcloudUserStatusGetPublicStatusesSerializer = + _$NextcloudUserStatusGetPublicStatusesSerializer(); +Serializer _$nextcloudUserStatusGetPublicStatusOcsSerializer = + _$NextcloudUserStatusGetPublicStatus_OcsSerializer(); +Serializer _$nextcloudUserStatusGetPublicStatusSerializer = + _$NextcloudUserStatusGetPublicStatusSerializer(); +Serializer _$nextcloudUserStatusStatusSerializer = _$NextcloudUserStatusStatusSerializer(); +Serializer _$nextcloudUserStatusGetStatusOcsSerializer = + _$NextcloudUserStatusGetStatus_OcsSerializer(); +Serializer _$nextcloudUserStatusGetStatusSerializer = + _$NextcloudUserStatusGetStatusSerializer(); +Serializer _$nextcloudUserStatusPredefinedStatusSerializer = + _$NextcloudUserStatusPredefinedStatusSerializer(); +Serializer _$nextcloudUserStatusPredefinedStatusesOcsSerializer = + _$NextcloudUserStatusPredefinedStatuses_OcsSerializer(); +Serializer _$nextcloudUserStatusPredefinedStatusesSerializer = + _$NextcloudUserStatusPredefinedStatusesSerializer(); +Serializer _$nextcloudUserStatusHeartbeatOcsSerializer = + _$NextcloudUserStatusHeartbeat_OcsSerializer(); +Serializer _$nextcloudUserStatusHeartbeatSerializer = + _$NextcloudUserStatusHeartbeatSerializer(); +Serializer + _$nextcloudNotificationsNotificationDecryptedSubjectSerializer = + _$NextcloudNotificationsNotificationDecryptedSubjectSerializer(); + +class _$NextcloudCoreServerStatusSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreServerStatus, _$NextcloudCoreServerStatus]; + @override + final String wireName = 'NextcloudCoreServerStatus'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ 'installed', + serializers.serialize(object.installed, specifiedType: const FullType(bool)), 'maintenance', + serializers.serialize(object.maintenance, specifiedType: const FullType(bool)), 'needsDbUpgrade', + serializers.serialize(object.needsDbUpgrade, specifiedType: const FullType(bool)), 'version', + serializers.serialize(object.version, specifiedType: const FullType(String)), 'versionstring', + serializers.serialize(object.versionstring, specifiedType: const FullType(String)), 'edition', + serializers.serialize(object.edition, specifiedType: const FullType(String)), 'productname', - 'extendedSupport' - ], - ); - return NextcloudCoreServerStatus( - installed: json['installed'] as bool, - maintenance: json['maintenance'] as bool, - needsDbUpgrade: json['needsDbUpgrade'] as bool, - version: json['version'] as String, - versionstring: json['versionstring'] as String, - edition: json['edition'] as String, - productname: json['productname'] as String, - extendedSupport: json['extendedSupport'] as bool, - ); -} - -Map _$NextcloudCoreServerStatusToJson(NextcloudCoreServerStatus instance) => { - 'installed': instance.installed, - 'maintenance': instance.maintenance, - 'needsDbUpgrade': instance.needsDbUpgrade, - 'version': instance.version, - 'versionstring': instance.versionstring, - 'edition': instance.edition, - 'productname': instance.productname, - 'extendedSupport': instance.extendedSupport, - }; - -NextcloudOCSMeta _$NextcloudOCSMetaFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['status', 'statuscode', 'message', 'totalitems', 'itemsperpage'], - ); - return NextcloudOCSMeta( - status: json['status'] as String, - statuscode: json['statuscode'] as int, - message: json['message'] as String?, - totalitems: json['totalitems'] as String?, - itemsperpage: json['itemsperpage'] as String?, - ); -} - -Map _$NextcloudOCSMetaToJson(NextcloudOCSMeta instance) => { - 'status': instance.status, - 'statuscode': instance.statuscode, - 'message': instance.message, - 'totalitems': instance.totalitems, - 'itemsperpage': instance.itemsperpage, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Version _$NextcloudCoreServerCapabilities_Ocs_Data_VersionFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['major', 'minor', 'micro', 'string', 'edition', 'extendedSupport'], - ); - return NextcloudCoreServerCapabilities_Ocs_Data_Version( - major: json['major'] as int?, - minor: json['minor'] as int?, - micro: json['micro'] as int?, - string: json['string'] as String?, - edition: json['edition'] as String?, - extendedSupport: json['extendedSupport'] as bool?, - ); -} - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_VersionToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Version instance) => - { - 'major': instance.major, - 'minor': instance.minor, - 'micro': instance.micro, - 'string': instance.string, - 'edition': instance.edition, - 'extendedSupport': instance.extendedSupport, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core( - pollinterval: json['pollinterval'] as int?, - webdavRoot: json['webdav-root'] as String?, - referenceApi: json['reference-api'] as bool?, - referenceRegex: json['reference-regex'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core instance) => - { - 'pollinterval': instance.pollinterval, - 'webdav-root': instance.webdavRoot, - 'reference-api': instance.referenceApi, - 'reference-regex': instance.referenceRegex, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( - delay: json['delay'] as int?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce instance) => - { - 'delay': instance.delay, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( - size: (json['size'] as List?)?.map((e) => e as String).toList(), - gps: (json['gps'] as List?)?.map((e) => e as String).toList(), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) => - { - 'size': instance.size, - 'gps': instance.gps, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing( - url: json['url'] as String?, - etag: json['etag'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing instance) => - { - 'url': instance.url, - 'etag': instance.etag, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files( - bigfilechunking: json['bigfilechunking'] as bool?, - blacklistedFiles: (json['blacklisted_files'] as List?)?.map((e) => e as String).toList(), - directEditing: json['directEditing'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( - json['directEditing'] as Map), - comments: json['comments'] as bool?, - undelete: json['undelete'] as bool?, - versioning: json['versioning'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files instance) => - { - 'bigfilechunking': instance.bigfilechunking, - 'blacklisted_files': instance.blacklistedFiles, - 'directEditing': instance.directEditing?.toJson(), - 'comments': instance.comments, - 'undelete': instance.undelete, - 'versioning': instance.versioning, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity( - apiv2: (json['apiv2'] as List?)?.map((e) => e as String).toList(), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity instance) => - { - 'apiv2': instance.apiv2, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status( - globalScale: json['globalScale'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status instance) => - { - 'globalScale': instance.globalScale, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings( - frontendEnabled: json['frontendEnabled'] as bool?, - allowedCircles: json['allowedCircles'] as int?, - allowedUserTypes: json['allowedUserTypes'] as int?, - membersLimit: json['membersLimit'] as int?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings instance) => - { - 'frontendEnabled': instance.frontendEnabled, - 'allowedCircles': instance.allowedCircles, - 'allowedUserTypes': instance.allowedUserTypes, - 'membersLimit': instance.membersLimit, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source( - core: json['core'], - extra: json['extra'], - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source instance) => - { - 'core': instance.core, - 'extra': instance.extra, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants( - flags: json['flags'], - source: json['source'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( - json['source'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) => - { - 'flags': instance.flags, - 'source': instance.source?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config( - coreFlags: (json['coreFlags'] as List?)?.map((e) => e as int).toList(), - systemFlags: (json['systemFlags'] as List?)?.map((e) => e as int).toList(), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config instance) => - { - 'coreFlags': instance.coreFlags, - 'systemFlags': instance.systemFlags, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle( - constants: json['constants'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( - json['constants'] as Map), - config: json['config'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( - json['config'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) => - { - 'constants': instance.constants?.toJson(), - 'config': instance.config?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants( - level: json['level'], - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants instance) => - { - 'level': instance.level, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( - constants: json['constants'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( - json['constants'] as Map), - type: json['type'], - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) => - { - 'constants': instance.constants?.toJson(), - 'type': instance.type, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles( - version: json['version'] as String?, - status: json['status'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( - json['status'] as Map), - settings: json['settings'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( - json['settings'] as Map), - circle: json['circle'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( - json['circle'] as Map), - member: json['member'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson( - json['member'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) => - { - 'version': instance.version, - 'status': instance.status?.toJson(), - 'settings': instance.settings?.toJson(), - 'circle': instance.circle?.toJson(), - 'member': instance.member?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols( - webdav: json['webdav'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols instance) => - { - 'webdav': instance.webdav, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes( - name: json['name'] as String?, - shareTypes: (json['shareTypes'] as List?)?.map((e) => e as String).toList(), - protocols: json['protocols'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( - json['protocols'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes instance) => - { - 'name': instance.name, - 'shareTypes': instance.shareTypes, - 'protocols': instance.protocols?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm( - enabled: json['enabled'] as bool?, - apiVersion: json['apiVersion'] as String?, - endPoint: json['endPoint'] as String?, - resourceTypes: (json['resourceTypes'] as List?) - ?.map((e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson( - e as Map)) - .toList(), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm instance) => - { - 'enabled': instance.enabled, - 'apiVersion': instance.apiVersion, - 'endPoint': instance.endPoint, - 'resourceTypes': instance.resourceTypes?.map((e) => e.toJson()).toList(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav( - bulkupload: json['bulkupload'] as String?, - chunking: json['chunking'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav instance) => - { - 'bulkupload': instance.bulkupload, - 'chunking': instance.chunking, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( - enforced: json['enforced'] as bool?, - askForOptionalPassword: json['askForOptionalPassword'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password instance) => - { - 'enforced': instance.enforced, - 'askForOptionalPassword': instance.askForOptionalPassword, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( - enabled: json['enabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( - enabled: json['enabled'] as bool?, - ); - -Map - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( - enabled: json['enabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public( - enabled: json['enabled'] as bool?, - password: json['password'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( - json['password'] as Map), - expireDate: json['expire_date'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( - json['expire_date'] as Map), - multipleLinks: json['multiple_links'] as bool?, - expireDateInternal: json['expire_date_internal'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( - json['expire_date_internal'] as Map), - expireDateRemote: json['expire_date_remote'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - json['expire_date_remote'] as Map), - sendMail: json['send_mail'] as bool?, - upload: json['upload'] as bool?, - uploadFilesDrop: json['upload_files_drop'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) => - { - 'enabled': instance.enabled, - 'password': instance.password?.toJson(), - 'expire_date': instance.expireDate?.toJson(), - 'multiple_links': instance.multipleLinks, - 'expire_date_internal': instance.expireDateInternal?.toJson(), - 'expire_date_remote': instance.expireDateRemote?.toJson(), - 'send_mail': instance.sendMail, - 'upload': instance.upload, - 'upload_files_drop': instance.uploadFilesDrop, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( - enabled: json['enabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User( - sendMail: json['send_mail'] as bool?, - expireDate: json['expire_date'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( - json['expire_date'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) => - { - 'send_mail': instance.sendMail, - 'expire_date': instance.expireDate?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate( - enabled: json['enabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group( - enabled: json['enabled'] as bool?, - expireDate: json['expire_date'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( - json['expire_date'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) => - { - 'enabled': instance.enabled, - 'expire_date': instance.expireDate?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( - enabled: json['enabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( - enabled: json['enabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation( - outgoing: json['outgoing'] as bool?, - incoming: json['incoming'] as bool?, - expireDate: json['expire_date'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( - json['expire_date'] as Map), - expireDateSupported: json['expire_date_supported'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported - .fromJson(json['expire_date_supported'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation instance) => - { - 'outgoing': instance.outgoing, - 'incoming': instance.incoming, - 'expire_date': instance.expireDate?.toJson(), - 'expire_date_supported': instance.expireDateSupported?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee( - queryLookupDefault: json['query_lookup_default'] as bool?, - alwaysShowUnique: json['always_show_unique'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee instance) => - { - 'query_lookup_default': instance.queryLookupDefault, - 'always_show_unique': instance.alwaysShowUnique, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( - enabled: json['enabled'] as bool?, - ); - -Map - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( - enabled: json['enabled'] as bool?, - enforced: json['enforced'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password instance) => - { - 'enabled': instance.enabled, - 'enforced': instance.enforced, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( - enabled: json['enabled'] as bool?, - enforced: json['enforced'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate instance) => - { - 'enabled': instance.enabled, - 'enforced': instance.enforced, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail( - enabled: json['enabled'] as bool?, - sendPasswordByMail: json['send_password_by_mail'] as bool?, - uploadFilesDrop: json['upload_files_drop'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( - json['upload_files_drop'] as Map), - password: json['password'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( - json['password'] as Map), - expireDate: json['expire_date'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( - json['expire_date'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail instance) => - { - 'enabled': instance.enabled, - 'send_password_by_mail': instance.sendPasswordByMail, - 'upload_files_drop': instance.uploadFilesDrop?.toJson(), - 'password': instance.password?.toJson(), - 'expire_date': instance.expireDate?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing( - apiEnabled: json['api_enabled'] as bool?, - public: json['public'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( - json['public'] as Map), - resharing: json['resharing'] as bool?, - user: json['user'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( - json['user'] as Map), - groupSharing: json['group_sharing'] as bool?, - group: json['group'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( - json['group'] as Map), - defaultPermissions: json['default_permissions'] as int?, - federation: json['federation'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( - json['federation'] as Map), - sharee: json['sharee'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( - json['sharee'] as Map), - sharebymail: json['sharebymail'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( - json['sharebymail'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) => - { - 'api_enabled': instance.apiEnabled, - 'public': instance.public?.toJson(), - 'resharing': instance.resharing, - 'user': instance.user?.toJson(), - 'group_sharing': instance.groupSharing, - 'group': instance.group?.toJson(), - 'default_permissions': instance.defaultPermissions, - 'federation': instance.federation?.toJson(), - 'sharee': instance.sharee?.toJson(), - 'sharebymail': instance.sharebymail?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes( - apiVersion: (json['api_version'] as List?)?.map((e) => e as String).toList(), - version: json['version'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes instance) => - { - 'api_version': instance.apiVersion, - 'version': instance.version, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications( - ocsEndpoints: (json['ocs-endpoints'] as List?)?.map((e) => e as String).toList(), - push: (json['push'] as List?)?.map((e) => e as String).toList(), - adminNotifications: (json['admin-notifications'] as List?)?.map((e) => e as String).toList(), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications instance) => - { - 'ocs-endpoints': instance.ocsEndpoints, - 'push': instance.push, - 'admin-notifications': instance.adminNotifications, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api( - generate: json['generate'] as String?, - validate: json['validate'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api instance) => - { - 'generate': instance.generate, - 'validate': instance.validate, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy( - minLength: json['minLength'] as int?, - enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool?, - enforceNumericCharacters: json['enforceNumericCharacters'] as bool?, - enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool?, - enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool?, - api: json['api'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( - json['api'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy instance) => - { - 'minLength': instance.minLength, - 'enforceNonCommonPassword': instance.enforceNonCommonPassword, - 'enforceNumericCharacters': instance.enforceNumericCharacters, - 'enforceSpecialCharacters': instance.enforceSpecialCharacters, - 'enforceUpperLowerCase': instance.enforceUpperLowerCase, - 'api': instance.api?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi( - version: json['version'] as String?, - accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int?, - accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool?, - accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi instance) => - { - 'version': instance.version, - 'AccountPropertyScopesVersion': instance.accountPropertyScopesVersion, - 'AccountPropertyScopesFederatedEnabled': instance.accountPropertyScopesFederatedEnabled, - 'AccountPropertyScopesPublishedEnabled': instance.accountPropertyScopesPublishedEnabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming( - name: json['name'] as String?, - url: json['url'] as String?, - slogan: json['slogan'] as String?, - color: json['color'] as String?, - colorText: json['color-text'] as String?, - colorElement: json['color-element'] as String?, - colorElementBright: json['color-element-bright'] as String?, - colorElementDark: json['color-element-dark'] as String?, - logo: json['logo'] as String?, - background: json['background'] as String?, - backgroundPlain: json['background-plain'] as bool?, - backgroundDefault: json['background-default'] as bool?, - logoheader: json['logoheader'] as String?, - favicon: json['favicon'] as String?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming instance) => - { - 'name': instance.name, - 'url': instance.url, - 'slogan': instance.slogan, - 'color': instance.color, - 'color-text': instance.colorText, - 'color-element': instance.colorElement, - 'color-element-bright': instance.colorElementBright, - 'color-element-dark': instance.colorElementDark, - 'logo': instance.logo, - 'background': instance.background, - 'background-plain': instance.backgroundPlain, - 'background-default': instance.backgroundDefault, - 'logoheader': instance.logoheader, - 'favicon': instance.favicon, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus( - enabled: json['enabled'] as bool?, - supportsEmoji: json['supports_emoji'] as bool?, - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus instance) => - { - 'enabled': instance.enabled, - 'supports_emoji': instance.supportsEmoji, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus - _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['enabled'], - ); - return NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( - enabled: json['enabled'] as bool?, - ); -} - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus instance) => - { - 'enabled': instance.enabled, - }; - -NextcloudCoreServerCapabilities_Ocs_Data_Capabilities _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesFromJson( - Map json) => - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities( - core: json['core'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map), - bruteforce: json['bruteforce'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson( - json['bruteforce'] as Map), - metadataAvailable: json['metadataAvailable'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( - json['metadataAvailable'] as Map), - files: json['files'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map), - activity: json['activity'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson( - json['activity'] as Map), - circles: json['circles'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson( - json['circles'] as Map), - ocm: json['ocm'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map), - dav: json['dav'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map), - filesSharing: json['files_sharing'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( - json['files_sharing'] as Map), - notes: json['notes'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json['notes'] as Map), - notifications: json['notifications'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( - json['notifications'] as Map), - passwordPolicy: json['password_policy'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( - json['password_policy'] as Map), - provisioningApi: json['provisioning_api'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( - json['provisioning_api'] as Map), - theming: json['theming'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson( - json['theming'] as Map), - userStatus: json['user_status'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson( - json['user_status'] as Map), - weatherStatus: json['weather_status'] == null - ? null - : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( - json['weather_status'] as Map), - ); - -Map _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesToJson( - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities instance) => - { - 'core': instance.core?.toJson(), - 'bruteforce': instance.bruteforce?.toJson(), - 'metadataAvailable': instance.metadataAvailable?.toJson(), - 'files': instance.files?.toJson(), - 'activity': instance.activity?.toJson(), - 'circles': instance.circles?.toJson(), - 'ocm': instance.ocm?.toJson(), - 'dav': instance.dav?.toJson(), - 'files_sharing': instance.filesSharing?.toJson(), - 'notes': instance.notes?.toJson(), - 'notifications': instance.notifications?.toJson(), - 'password_policy': instance.passwordPolicy?.toJson(), - 'provisioning_api': instance.provisioningApi?.toJson(), - 'theming': instance.theming?.toJson(), - 'user_status': instance.userStatus?.toJson(), - 'weather_status': instance.weatherStatus?.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs_Data _$NextcloudCoreServerCapabilities_Ocs_DataFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['version', 'capabilities'], - ); - return NextcloudCoreServerCapabilities_Ocs_Data( - version: NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(json['version'] as Map), - capabilities: - NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json['capabilities'] as Map), - ); -} - -Map _$NextcloudCoreServerCapabilities_Ocs_DataToJson( - NextcloudCoreServerCapabilities_Ocs_Data instance) => - { - 'version': instance.version.toJson(), - 'capabilities': instance.capabilities.toJson(), - }; - -NextcloudCoreServerCapabilities_Ocs _$NextcloudCoreServerCapabilities_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudCoreServerCapabilities_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudCoreServerCapabilities_Ocs_Data.fromJson(json['data'] as Map), - ); -} - -Map _$NextcloudCoreServerCapabilities_OcsToJson(NextcloudCoreServerCapabilities_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudCoreServerCapabilities _$NextcloudCoreServerCapabilitiesFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudCoreServerCapabilities( - ocs: NextcloudCoreServerCapabilities_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudCoreServerCapabilitiesToJson(NextcloudCoreServerCapabilities instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudCoreNavigationApps_Ocs_Data _$NextcloudCoreNavigationApps_Ocs_DataFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['id', 'order', 'href', 'icon', 'type', 'name', 'active', 'classes', 'unread'], - ); - return NextcloudCoreNavigationApps_Ocs_Data( - id: json['id'] as String, - order: NextcloudCoreNavigationApps_Ocs_Data_Order.fromJson(json['order']), - href: json['href'] as String, - icon: json['icon'] as String, - type: json['type'] as String, - name: json['name'] as String, - active: json['active'] as bool, - classes: json['classes'] as String, - unread: json['unread'] as int, - ); -} - -Map _$NextcloudCoreNavigationApps_Ocs_DataToJson(NextcloudCoreNavigationApps_Ocs_Data instance) => - { - 'id': instance.id, - 'order': instance.order.toJson(), - 'href': instance.href, - 'icon': instance.icon, - 'type': instance.type, - 'name': instance.name, - 'active': instance.active, - 'classes': instance.classes, - 'unread': instance.unread, - }; - -NextcloudCoreNavigationApps_Ocs _$NextcloudCoreNavigationApps_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudCoreNavigationApps_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List) - .map((e) => NextcloudCoreNavigationApps_Ocs_Data.fromJson(e as Map)) - .toList(), - ); -} - -Map _$NextcloudCoreNavigationApps_OcsToJson(NextcloudCoreNavigationApps_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.map((e) => e.toJson()).toList(), - }; - -NextcloudCoreNavigationApps _$NextcloudCoreNavigationAppsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudCoreNavigationApps( - ocs: NextcloudCoreNavigationApps_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudCoreNavigationAppsToJson(NextcloudCoreNavigationApps instance) => { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudCoreLoginFlowInit_Poll _$NextcloudCoreLoginFlowInit_PollFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['token', 'endpoint'], - ); - return NextcloudCoreLoginFlowInit_Poll( - token: json['token'] as String, - endpoint: json['endpoint'] as String, - ); -} - -Map _$NextcloudCoreLoginFlowInit_PollToJson(NextcloudCoreLoginFlowInit_Poll instance) => - { - 'token': instance.token, - 'endpoint': instance.endpoint, - }; - -NextcloudCoreLoginFlowInit _$NextcloudCoreLoginFlowInitFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['poll', 'login'], - ); - return NextcloudCoreLoginFlowInit( - poll: NextcloudCoreLoginFlowInit_Poll.fromJson(json['poll'] as Map), - login: json['login'] as String, - ); -} - -Map _$NextcloudCoreLoginFlowInitToJson(NextcloudCoreLoginFlowInit instance) => { - 'poll': instance.poll.toJson(), - 'login': instance.login, - }; - -NextcloudCoreLoginFlowResult _$NextcloudCoreLoginFlowResultFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['server', 'loginName', 'appPassword'], - ); - return NextcloudCoreLoginFlowResult( - server: json['server'] as String, - loginName: json['loginName'] as String, - appPassword: json['appPassword'] as String, - ); -} - -Map _$NextcloudCoreLoginFlowResultToJson(NextcloudCoreLoginFlowResult instance) => { - 'server': instance.server, - 'loginName': instance.loginName, - 'appPassword': instance.appPassword, - }; - -NextcloudCoreAutocompleteResult_Ocs_Data _$NextcloudCoreAutocompleteResult_Ocs_DataFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['id', 'label', 'icon', 'source', 'status', 'subline', 'shareWithDisplayNameUnique'], - ); - return NextcloudCoreAutocompleteResult_Ocs_Data( - id: json['id'] as String, - label: json['label'] as String, - icon: json['icon'] as String, - source: json['source'] as String, - status: NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJson(json['status']), - subline: json['subline'] as String, - shareWithDisplayNameUnique: json['shareWithDisplayNameUnique'] as String, - ); -} - -Map _$NextcloudCoreAutocompleteResult_Ocs_DataToJson( - NextcloudCoreAutocompleteResult_Ocs_Data instance) => - { - 'id': instance.id, - 'label': instance.label, - 'icon': instance.icon, - 'source': instance.source, - 'status': instance.status.toJson(), - 'subline': instance.subline, - 'shareWithDisplayNameUnique': instance.shareWithDisplayNameUnique, - }; - -NextcloudCoreAutocompleteResult_Ocs _$NextcloudCoreAutocompleteResult_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudCoreAutocompleteResult_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List) - .map((e) => NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(e as Map)) - .toList(), - ); -} - -Map _$NextcloudCoreAutocompleteResult_OcsToJson(NextcloudCoreAutocompleteResult_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.map((e) => e.toJson()).toList(), - }; - -NextcloudCoreAutocompleteResult _$NextcloudCoreAutocompleteResultFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudCoreAutocompleteResult( - ocs: NextcloudCoreAutocompleteResult_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudCoreAutocompleteResultToJson(NextcloudCoreAutocompleteResult instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudNewsSupportedAPIVersions _$NextcloudNewsSupportedAPIVersionsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['apiLevels'], - ); - return NextcloudNewsSupportedAPIVersions( - apiLevels: (json['apiLevels'] as List?)?.map((e) => e as String).toList(), - ); -} - -Map _$NextcloudNewsSupportedAPIVersionsToJson(NextcloudNewsSupportedAPIVersions instance) => - { - 'apiLevels': instance.apiLevels, - }; - -NextcloudNewsArticle _$NextcloudNewsArticleFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ - 'id', - 'guid', - 'guidHash', - 'url', - 'title', - 'author', - 'pubDate', - 'updatedDate', - 'body', - 'enclosureMime', - 'enclosureLink', - 'mediaThumbnail', - 'mediaDescription', - 'feedId', - 'unread', - 'starred', - 'lastModified', - 'rtl', - 'fingerprint', - 'contentHash' - ], - ); - return NextcloudNewsArticle( - id: json['id'] as int, - guid: json['guid'] as String, - guidHash: json['guidHash'] as String, - title: json['title'] as String, - pubDate: json['pubDate'] as int, - body: json['body'] as String, - feedId: json['feedId'] as int, - unread: json['unread'] as bool, - starred: json['starred'] as bool, - lastModified: json['lastModified'] as int, - rtl: json['rtl'] as bool, - fingerprint: json['fingerprint'] as String, - contentHash: json['contentHash'] as String, - url: json['url'] as String?, - author: json['author'] as String?, - updatedDate: json['updatedDate'] as int?, - enclosureMime: json['enclosureMime'] as String?, - enclosureLink: json['enclosureLink'] as String?, - mediaThumbnail: json['mediaThumbnail'] as String?, - mediaDescription: json['mediaDescription'] as String?, - ); -} - -Map _$NextcloudNewsArticleToJson(NextcloudNewsArticle instance) => { - 'id': instance.id, - 'guid': instance.guid, - 'guidHash': instance.guidHash, - 'url': instance.url, - 'title': instance.title, - 'author': instance.author, - 'pubDate': instance.pubDate, - 'updatedDate': instance.updatedDate, - 'body': instance.body, - 'enclosureMime': instance.enclosureMime, - 'enclosureLink': instance.enclosureLink, - 'mediaThumbnail': instance.mediaThumbnail, - 'mediaDescription': instance.mediaDescription, - 'feedId': instance.feedId, - 'unread': instance.unread, - 'starred': instance.starred, - 'lastModified': instance.lastModified, - 'rtl': instance.rtl, - 'fingerprint': instance.fingerprint, - 'contentHash': instance.contentHash, - }; - -NextcloudNewsFeed _$NextcloudNewsFeedFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ - 'id', - 'url', - 'title', - 'faviconLink', - 'added', - 'folderId', - 'unreadCount', - 'ordering', - 'link', - 'pinned', - 'updateErrorCount', - 'lastUpdateError', - 'items' - ], - ); - return NextcloudNewsFeed( - id: json['id'] as int, - url: json['url'] as String, - title: json['title'] as String, - added: json['added'] as int, - ordering: json['ordering'] as int, - pinned: json['pinned'] as bool, - updateErrorCount: json['updateErrorCount'] as int, - items: - (json['items'] as List).map((e) => NextcloudNewsArticle.fromJson(e as Map)).toList(), - faviconLink: json['faviconLink'] as String?, - folderId: json['folderId'] as int?, - unreadCount: json['unreadCount'] as int?, - link: json['link'] as String?, - lastUpdateError: json['lastUpdateError'] as String?, - ); -} - -Map _$NextcloudNewsFeedToJson(NextcloudNewsFeed instance) => { - 'id': instance.id, - 'url': instance.url, - 'title': instance.title, - 'faviconLink': instance.faviconLink, - 'added': instance.added, - 'folderId': instance.folderId, - 'unreadCount': instance.unreadCount, - 'ordering': instance.ordering, - 'link': instance.link, - 'pinned': instance.pinned, - 'updateErrorCount': instance.updateErrorCount, - 'lastUpdateError': instance.lastUpdateError, - 'items': instance.items.map((e) => e.toJson()).toList(), - }; - -NextcloudNewsFolder _$NextcloudNewsFolderFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['id', 'name', 'opened', 'feeds'], - ); - return NextcloudNewsFolder( - id: json['id'] as int, - name: json['name'] as String, - opened: json['opened'] as bool, - feeds: (json['feeds'] as List).map((e) => NextcloudNewsFeed.fromJson(e as Map)).toList(), - ); -} - -Map _$NextcloudNewsFolderToJson(NextcloudNewsFolder instance) => { - 'id': instance.id, - 'name': instance.name, - 'opened': instance.opened, - 'feeds': instance.feeds.map((e) => e.toJson()).toList(), - }; - -NextcloudNewsListFolders _$NextcloudNewsListFoldersFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['folders'], - ); - return NextcloudNewsListFolders( - folders: - (json['folders'] as List).map((e) => NextcloudNewsFolder.fromJson(e as Map)).toList(), - ); -} - -Map _$NextcloudNewsListFoldersToJson(NextcloudNewsListFolders instance) => { - 'folders': instance.folders.map((e) => e.toJson()).toList(), - }; - -NextcloudNewsListFeeds _$NextcloudNewsListFeedsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['starredCount', 'newestItemId', 'feeds'], - ); - return NextcloudNewsListFeeds( - feeds: (json['feeds'] as List).map((e) => NextcloudNewsFeed.fromJson(e as Map)).toList(), - starredCount: json['starredCount'] as int?, - newestItemId: json['newestItemId'] as int?, - ); -} - -Map _$NextcloudNewsListFeedsToJson(NextcloudNewsListFeeds instance) => { - 'starredCount': instance.starredCount, - 'newestItemId': instance.newestItemId, - 'feeds': instance.feeds.map((e) => e.toJson()).toList(), - }; - -NextcloudNewsListArticles _$NextcloudNewsListArticlesFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['items'], - ); - return NextcloudNewsListArticles( - items: - (json['items'] as List).map((e) => NextcloudNewsArticle.fromJson(e as Map)).toList(), - ); -} - -Map _$NextcloudNewsListArticlesToJson(NextcloudNewsListArticles instance) => { - 'items': instance.items.map((e) => e.toJson()).toList(), - }; - -NextcloudNotesNote _$NextcloudNotesNoteFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ - 'id', - 'etag', - 'readonly', - 'content', - 'title', - 'category', - 'favorite', - 'modified', - 'error', - 'errorType' - ], - ); - return NextcloudNotesNote( - id: json['id'] as int, - etag: json['etag'] as String, - readonly: json['readonly'] as bool, - content: json['content'] as String, - title: json['title'] as String, - category: json['category'] as String, - favorite: json['favorite'] as bool, - modified: json['modified'] as int, - error: json['error'] as bool, - errorType: json['errorType'] as String, - ); -} - -Map _$NextcloudNotesNoteToJson(NextcloudNotesNote instance) => { - 'id': instance.id, - 'etag': instance.etag, - 'readonly': instance.readonly, - 'content': instance.content, - 'title': instance.title, - 'category': instance.category, - 'favorite': instance.favorite, - 'modified': instance.modified, - 'error': instance.error, - 'errorType': instance.errorType, - }; - -NextcloudNotesSettings _$NextcloudNotesSettingsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['notesPath', 'fileSuffix', 'noteMode'], - ); - return NextcloudNotesSettings( - notesPath: json['notesPath'] as String, - fileSuffix: json['fileSuffix'] as String, - noteMode: $enumDecode(_$NextcloudNotesSettings_NoteModeEnumMap, json['noteMode']), - ); -} - -Map _$NextcloudNotesSettingsToJson(NextcloudNotesSettings instance) => { - 'notesPath': instance.notesPath, - 'fileSuffix': instance.fileSuffix, - 'noteMode': _$NextcloudNotesSettings_NoteModeEnumMap[instance.noteMode]!, - }; - -const _$NextcloudNotesSettings_NoteModeEnumMap = { - NextcloudNotesSettings_NoteMode.edit: 'edit', - NextcloudNotesSettings_NoteMode.preview: 'preview', - NextcloudNotesSettings_NoteMode.rich: 'rich', -}; - -NextcloudNotificationsNotificationAction _$NextcloudNotificationsNotificationActionFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['label', 'link', 'type', 'primary'], - ); - return NextcloudNotificationsNotificationAction( - label: json['label'] as String, - link: json['link'] as String, - type: json['type'] as String, - primary: json['primary'] as bool?, - ); -} - -Map _$NextcloudNotificationsNotificationActionToJson( - NextcloudNotificationsNotificationAction instance) => - { - 'label': instance.label, - 'link': instance.link, - 'type': instance.type, - 'primary': instance.primary, - }; - -NextcloudNotificationsNotification _$NextcloudNotificationsNotificationFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ - 'notification_id', - 'app', - 'user', - 'datetime', - 'object_type', - 'object_id', - 'subject', - 'message', - 'link', - 'subjectRich', - 'subjectRichParameters', - 'messageRich', - 'messageRichParameters', - 'icon', - 'shouldNotify', - 'actions' - ], - ); - return NextcloudNotificationsNotification( - notificationId: json['notification_id'] as int, - app: json['app'] as String, - user: json['user'] as String, - datetime: json['datetime'] as String, - objectType: json['object_type'] as String, - objectId: json['object_id'] as String, - subject: json['subject'] as String, - message: json['message'] as String, - link: json['link'] as String, - actions: (json['actions'] as List) - .map((e) => NextcloudNotificationsNotificationAction.fromJson(e as Map)) - .toList(), - subjectRich: json['subjectRich'] as String?, - subjectRichParameters: json['subjectRichParameters'], - messageRich: json['messageRich'] as String?, - messageRichParameters: json['messageRichParameters'], - icon: json['icon'] as String?, - shouldNotify: json['shouldNotify'] as bool?, - ); -} - -Map _$NextcloudNotificationsNotificationToJson(NextcloudNotificationsNotification instance) => - { - 'notification_id': instance.notificationId, - 'app': instance.app, - 'user': instance.user, - 'datetime': instance.datetime, - 'object_type': instance.objectType, - 'object_id': instance.objectId, - 'subject': instance.subject, - 'message': instance.message, - 'link': instance.link, - 'subjectRich': instance.subjectRich, - 'subjectRichParameters': instance.subjectRichParameters, - 'messageRich': instance.messageRich, - 'messageRichParameters': instance.messageRichParameters, - 'icon': instance.icon, - 'shouldNotify': instance.shouldNotify, - 'actions': instance.actions.map((e) => e.toJson()).toList(), - }; - -NextcloudNotificationsListNotifications_Ocs _$NextcloudNotificationsListNotifications_OcsFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudNotificationsListNotifications_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List) - .map((e) => NextcloudNotificationsNotification.fromJson(e as Map)) - .toList(), - ); -} - -Map _$NextcloudNotificationsListNotifications_OcsToJson( - NextcloudNotificationsListNotifications_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.map((e) => e.toJson()).toList(), - }; - -NextcloudNotificationsListNotifications _$NextcloudNotificationsListNotificationsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudNotificationsListNotifications( - ocs: NextcloudNotificationsListNotifications_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudNotificationsListNotificationsToJson( - NextcloudNotificationsListNotifications instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudNotificationsGetNotification_Ocs _$NextcloudNotificationsGetNotification_OcsFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudNotificationsGetNotification_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudNotificationsNotification.fromJson(json['data'] as Map), - ); -} - -Map _$NextcloudNotificationsGetNotification_OcsToJson( - NextcloudNotificationsGetNotification_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudNotificationsGetNotification _$NextcloudNotificationsGetNotificationFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudNotificationsGetNotification( - ocs: NextcloudNotificationsGetNotification_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudNotificationsGetNotificationToJson(NextcloudNotificationsGetNotification instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudEmptyOCS_Ocs _$NextcloudEmptyOCS_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudEmptyOCS_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: json['data'] as List, - ); -} - -Map _$NextcloudEmptyOCS_OcsToJson(NextcloudEmptyOCS_Ocs instance) => { - 'meta': instance.meta.toJson(), - 'data': instance.data, - }; - -NextcloudEmptyOCS _$NextcloudEmptyOCSFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudEmptyOCS( - ocs: NextcloudEmptyOCS_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudEmptyOCSToJson(NextcloudEmptyOCS instance) => { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudNotificationsPushServerSubscription _$NextcloudNotificationsPushServerSubscriptionFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['publicKey', 'deviceIdentifier', 'signature', 'message'], - ); - return NextcloudNotificationsPushServerSubscription( - publicKey: json['publicKey'] as String, - deviceIdentifier: json['deviceIdentifier'] as String, - signature: json['signature'] as String, - message: json['message'] as String?, - ); -} - -Map _$NextcloudNotificationsPushServerSubscriptionToJson( - NextcloudNotificationsPushServerSubscription instance) => - { - 'publicKey': instance.publicKey, - 'deviceIdentifier': instance.deviceIdentifier, - 'signature': instance.signature, - 'message': instance.message, - }; - -NextcloudNotificationsPushServerRegistration_Ocs _$NextcloudNotificationsPushServerRegistration_OcsFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudNotificationsPushServerRegistration_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudNotificationsPushServerSubscription.fromJson(json['data'] as Map), - ); -} - -Map _$NextcloudNotificationsPushServerRegistration_OcsToJson( - NextcloudNotificationsPushServerRegistration_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudNotificationsPushServerRegistration _$NextcloudNotificationsPushServerRegistrationFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudNotificationsPushServerRegistration( - ocs: NextcloudNotificationsPushServerRegistration_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudNotificationsPushServerRegistrationToJson( - NextcloudNotificationsPushServerRegistration instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudProvisioningApiUserDetails_Quota _$NextcloudProvisioningApiUserDetails_QuotaFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['free', 'used', 'total', 'relative', 'quota'], - ); - return NextcloudProvisioningApiUserDetails_Quota( - free: json['free'] as int, - used: json['used'] as int, - total: json['total'] as int, - relative: json['relative'] as num, - quota: json['quota'] as int, - ); -} - -Map _$NextcloudProvisioningApiUserDetails_QuotaToJson( - NextcloudProvisioningApiUserDetails_Quota instance) => - { - 'free': instance.free, - 'used': instance.used, - 'total': instance.total, - 'relative': instance.relative, - 'quota': instance.quota, - }; - -NextcloudProvisioningApiUserDetails_BackendCapabilities - _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['setDisplayName', 'setPassword'], - ); - return NextcloudProvisioningApiUserDetails_BackendCapabilities( - setDisplayName: json['setDisplayName'] as bool, - setPassword: json['setPassword'] as bool, - ); -} - -Map _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesToJson( - NextcloudProvisioningApiUserDetails_BackendCapabilities instance) => - { - 'setDisplayName': instance.setDisplayName, - 'setPassword': instance.setPassword, - }; - -NextcloudProvisioningApiUserDetails _$NextcloudProvisioningApiUserDetailsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ - 'enabled', - 'storageLocation', - 'id', - 'lastLogin', - 'backend', - 'subadmin', - 'quota', - 'avatarScope', - 'email', - 'emailScope', - 'additional_mail', - 'additional_mailScope', - 'displayname', - 'displaynameScope', - 'phone', - 'phoneScope', - 'address', - 'addressScope', - 'website', - 'websiteScope', - 'twitter', - 'twitterScope', - 'organisation', - 'organisationScope', - 'role', - 'roleScope', - 'headline', - 'headlineScope', - 'biography', - 'biographyScope', - 'profile_enabled', - 'profile_enabledScope', - 'fediverse', - 'fediverseScope', - 'groups', - 'language', - 'locale', - 'notify_email', - 'backendCapabilities', - 'display-name' - ], - ); - return NextcloudProvisioningApiUserDetails( - displaynameScope: json['displaynameScope'] as String, - backendCapabilities: NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson( - json['backendCapabilities'] as Map), - id: json['id'] as String, - lastLogin: json['lastLogin'] as int, - backend: json['backend'] as String, - subadmin: (json['subadmin'] as List).map((e) => e as String).toList(), - quota: NextcloudProvisioningApiUserDetails_Quota.fromJson(json['quota'] as Map), - avatarScope: json['avatarScope'] as String, - locale: json['locale'] as String, - emailScope: json['emailScope'] as String, - additionalMail: (json['additional_mail'] as List).map((e) => e as String).toList(), - additionalMailScope: (json['additional_mailScope'] as List).map((e) => e as String).toList(), - language: json['language'] as String, - groups: (json['groups'] as List).map((e) => e as String).toList(), - phone: json['phone'] as String, - phoneScope: json['phoneScope'] as String, - address: json['address'] as String, - addressScope: json['addressScope'] as String, - website: json['website'] as String, - websiteScope: json['websiteScope'] as String, - twitter: json['twitter'] as String, - twitterScope: json['twitterScope'] as String, - organisation: json['organisation'] as String, - organisationScope: json['organisationScope'] as String, - role: json['role'] as String, - fediverseScope: json['fediverseScope'] as String, - headline: json['headline'] as String, - headlineScope: json['headlineScope'] as String, - biography: json['biography'] as String, - biographyScope: json['biographyScope'] as String, - profileEnabled: json['profile_enabled'] as String, - profileEnabledScope: json['profile_enabledScope'] as String, - fediverse: json['fediverse'] as String, - roleScope: json['roleScope'] as String, - enabled: json['enabled'] as bool?, - displayname: json['displayname'] as String?, - email: json['email'] as String?, - notifyEmail: json['notify_email'] as String?, - storageLocation: json['storageLocation'] as String?, - displayName: json['display-name'] as String?, - ); -} - -Map _$NextcloudProvisioningApiUserDetailsToJson(NextcloudProvisioningApiUserDetails instance) => - { - 'enabled': instance.enabled, - 'storageLocation': instance.storageLocation, - 'id': instance.id, - 'lastLogin': instance.lastLogin, - 'backend': instance.backend, - 'subadmin': instance.subadmin, - 'quota': instance.quota.toJson(), - 'avatarScope': instance.avatarScope, - 'email': instance.email, - 'emailScope': instance.emailScope, - 'additional_mail': instance.additionalMail, - 'additional_mailScope': instance.additionalMailScope, - 'displayname': instance.displayname, - 'displaynameScope': instance.displaynameScope, - 'phone': instance.phone, - 'phoneScope': instance.phoneScope, - 'address': instance.address, - 'addressScope': instance.addressScope, - 'website': instance.website, - 'websiteScope': instance.websiteScope, - 'twitter': instance.twitter, - 'twitterScope': instance.twitterScope, - 'organisation': instance.organisation, - 'organisationScope': instance.organisationScope, - 'role': instance.role, - 'roleScope': instance.roleScope, - 'headline': instance.headline, - 'headlineScope': instance.headlineScope, - 'biography': instance.biography, - 'biographyScope': instance.biographyScope, - 'profile_enabled': instance.profileEnabled, - 'profile_enabledScope': instance.profileEnabledScope, - 'fediverse': instance.fediverse, - 'fediverseScope': instance.fediverseScope, - 'groups': instance.groups, - 'language': instance.language, - 'locale': instance.locale, - 'notify_email': instance.notifyEmail, - 'backendCapabilities': instance.backendCapabilities.toJson(), - 'display-name': instance.displayName, - }; - -NextcloudProvisioningApiUser_Ocs _$NextcloudProvisioningApiUser_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudProvisioningApiUser_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudProvisioningApiUserDetails.fromJson(json['data'] as Map), - ); -} - -Map _$NextcloudProvisioningApiUser_OcsToJson(NextcloudProvisioningApiUser_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudProvisioningApiUser _$NextcloudProvisioningApiUserFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudProvisioningApiUser( - ocs: NextcloudProvisioningApiUser_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudProvisioningApiUserToJson(NextcloudProvisioningApiUser instance) => { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudUnifiedPushProviderCheckResponse200ApplicationJson - _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success'], - ); - return NextcloudUnifiedPushProviderCheckResponse200ApplicationJson( - success: json['success'] as bool, - ); -} - -Map _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderCheckResponse200ApplicationJson instance) => - { - 'success': instance.success, - }; - -NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson - _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success'], - ); - return NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson( - success: json['success'] as bool, - ); -} - -Map _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson instance) => - { - 'success': instance.success, - }; - -NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson - _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success', 'deviceId'], - ); - return NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson( - success: json['success'] as bool, - deviceId: json['deviceId'] as String, - ); -} - -Map _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson instance) => - { - 'success': instance.success, - 'deviceId': instance.deviceId, - }; - -NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson - _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success'], - ); - return NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson( - success: json['success'] as bool, - ); -} - -Map _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonToJson( - NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson instance) => - { - 'success': instance.success, - }; - -NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson - _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success'], - ); - return NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson( - success: json['success'] as bool, - ); -} - -Map _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson instance) => - { - 'success': instance.success, - }; - -NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson - _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success', 'token'], - ); - return NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson( - success: json['success'] as bool, - token: json['token'] as String, - ); -} - -Map _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson instance) => - { - 'success': instance.success, - 'token': instance.token, - }; - -NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson - _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success'], - ); - return NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson( - success: json['success'] as bool, - ); -} - -Map _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson instance) => - { - 'success': instance.success, - }; - -NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush - _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['version'], - ); - return NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush( - version: json['version'] as int, - ); -} - -Map _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushToJson( - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush instance) => - { - 'version': instance.version, - }; - -NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson - _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['unifiedpush'], - ); - return NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson( - unifiedpush: NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - json['unifiedpush'] as Map), - ); -} - -Map _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson instance) => - { - 'unifiedpush': instance.unifiedpush.toJson(), - }; - -NextcloudUnifiedPushProviderPushResponse201ApplicationJson - _$NextcloudUnifiedPushProviderPushResponse201ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['success'], - ); - return NextcloudUnifiedPushProviderPushResponse201ApplicationJson( - success: json['success'] as bool, - ); -} - -Map _$NextcloudUnifiedPushProviderPushResponse201ApplicationJsonToJson( - NextcloudUnifiedPushProviderPushResponse201ApplicationJson instance) => - { - 'success': instance.success, - }; - -NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush - _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['gateway'], - ); - return NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush( - gateway: json['gateway'] as String, - ); -} - -Map _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushToJson( - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush instance) => - { - 'gateway': instance.gateway, - }; - -NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson - _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['unifiedpush'], - ); - return NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson( - unifiedpush: NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( - json['unifiedpush'] as Map), - ); -} - -Map _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson instance) => - { - 'unifiedpush': instance.unifiedpush.toJson(), - }; - -NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson - _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['rejected'], - ); - return NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson( - rejected: (json['rejected'] as List).map((e) => e as String).toList(), - ); -} - -Map _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonToJson( - NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson instance) => - { - 'rejected': instance.rejected, - }; - -NextcloudUserStatusClearAt _$NextcloudUserStatusClearAtFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['type', 'time'], - ); - return NextcloudUserStatusClearAt( - type: $enumDecode(_$NextcloudUserStatusClearAt_TypeEnumMap, json['type']), - time: NextcloudUserStatusClearAt_Time.fromJson(json['time']), - ); -} - -Map _$NextcloudUserStatusClearAtToJson(NextcloudUserStatusClearAt instance) => { - 'type': _$NextcloudUserStatusClearAt_TypeEnumMap[instance.type]!, - 'time': instance.time.toJson(), - }; - -const _$NextcloudUserStatusClearAt_TypeEnumMap = { - NextcloudUserStatusClearAt_Type.period: 'period', - NextcloudUserStatusClearAt_Type.endOf: 'end-of', -}; - -NextcloudUserStatusPublicStatus _$NextcloudUserStatusPublicStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['userId', 'message', 'icon', 'clearAt', 'status'], - ); - return NextcloudUserStatusPublicStatus( - userId: json['userId'] as String, - status: $enumDecode(_$NextcloudUserStatusTypeEnumMap, json['status']), - message: json['message'] as String?, - icon: json['icon'] as String?, - clearAt: json['clearAt'] == null ? null : NextcloudUserStatusPublicStatus_ClearAt.fromJson(json['clearAt']), - ); -} - -Map _$NextcloudUserStatusPublicStatusToJson(NextcloudUserStatusPublicStatus instance) => - { - 'userId': instance.userId, - 'message': instance.message, - 'icon': instance.icon, - 'clearAt': instance.clearAt?.toJson(), - 'status': _$NextcloudUserStatusTypeEnumMap[instance.status]!, - }; - -const _$NextcloudUserStatusTypeEnumMap = { - NextcloudUserStatusType.online: 'online', - NextcloudUserStatusType.offline: 'offline', - NextcloudUserStatusType.dnd: 'dnd', - NextcloudUserStatusType.away: 'away', - NextcloudUserStatusType.invisible: 'invisible', -}; - -NextcloudUserStatusGetPublicStatuses_Ocs _$NextcloudUserStatusGetPublicStatuses_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudUserStatusGetPublicStatuses_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List) - .map((e) => NextcloudUserStatusPublicStatus.fromJson(e as Map)) - .toList(), - ); -} - -Map _$NextcloudUserStatusGetPublicStatuses_OcsToJson( - NextcloudUserStatusGetPublicStatuses_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.map((e) => e.toJson()).toList(), - }; - -NextcloudUserStatusGetPublicStatuses _$NextcloudUserStatusGetPublicStatusesFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudUserStatusGetPublicStatuses( - ocs: NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudUserStatusGetPublicStatusesToJson(NextcloudUserStatusGetPublicStatuses instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudUserStatusGetPublicStatus_Ocs _$NextcloudUserStatusGetPublicStatus_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudUserStatusGetPublicStatus_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudUserStatusGetPublicStatus_Ocs_Data.fromJson(json['data']), - ); -} - -Map _$NextcloudUserStatusGetPublicStatus_OcsToJson(NextcloudUserStatusGetPublicStatus_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudUserStatusGetPublicStatus _$NextcloudUserStatusGetPublicStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudUserStatusGetPublicStatus( - ocs: NextcloudUserStatusGetPublicStatus_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudUserStatusGetPublicStatusToJson(NextcloudUserStatusGetPublicStatus instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudUserStatusStatus _$NextcloudUserStatusStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const [ - 'userId', - 'message', - 'messageId', - 'messageIsPredefined', - 'icon', - 'clearAt', + serializers.serialize(object.productname, specifiedType: const FullType(String)), + 'extendedSupport', + serializers.serialize(object.extendedSupport, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudCoreServerStatus deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'installed': + result.installed = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'maintenance': + result.maintenance = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'needsDbUpgrade': + result.needsDbUpgrade = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'versionstring': + result.versionstring = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'edition': + result.edition = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'productname': + result.productname = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'extendedSupport': + result.extendedSupport = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudOCSMetaSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudOCSMeta, _$NextcloudOCSMeta]; + @override + final String wireName = 'NextcloudOCSMeta'; + + @override + Iterable serialize(Serializers serializers, NextcloudOCSMeta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ 'status', - 'statusIsUserDefined' - ], - ); - return NextcloudUserStatusStatus( - userId: json['userId'] as String, - messageIsPredefined: json['messageIsPredefined'] as bool, - status: $enumDecode(_$NextcloudUserStatusTypeEnumMap, json['status']), - statusIsUserDefined: json['statusIsUserDefined'] as bool, - message: json['message'] as String?, - messageId: json['messageId'] as String?, - icon: json['icon'] as String?, - clearAt: json['clearAt'] == null ? null : NextcloudUserStatusStatus_ClearAt.fromJson(json['clearAt']), - ); -} - -Map _$NextcloudUserStatusStatusToJson(NextcloudUserStatusStatus instance) => { - 'userId': instance.userId, - 'message': instance.message, - 'messageId': instance.messageId, - 'messageIsPredefined': instance.messageIsPredefined, - 'icon': instance.icon, - 'clearAt': instance.clearAt?.toJson(), - 'status': _$NextcloudUserStatusTypeEnumMap[instance.status]!, - 'statusIsUserDefined': instance.statusIsUserDefined, - }; - -NextcloudUserStatusGetStatus_Ocs _$NextcloudUserStatusGetStatus_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudUserStatusGetStatus_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudUserStatusGetStatus_Ocs_Data.fromJson(json['data']), - ); -} - -Map _$NextcloudUserStatusGetStatus_OcsToJson(NextcloudUserStatusGetStatus_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudUserStatusGetStatus _$NextcloudUserStatusGetStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudUserStatusGetStatus( - ocs: NextcloudUserStatusGetStatus_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudUserStatusGetStatusToJson(NextcloudUserStatusGetStatus instance) => { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudUserStatusPredefinedStatus _$NextcloudUserStatusPredefinedStatusFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['id', 'icon', 'message', 'clearAt'], - ); - return NextcloudUserStatusPredefinedStatus( - id: json['id'] as String, - icon: json['icon'] as String, - message: json['message'] as String, - clearAt: json['clearAt'] == null ? null : NextcloudUserStatusPredefinedStatus_ClearAt.fromJson(json['clearAt']), - ); -} - -Map _$NextcloudUserStatusPredefinedStatusToJson(NextcloudUserStatusPredefinedStatus instance) => - { - 'id': instance.id, - 'icon': instance.icon, - 'message': instance.message, - 'clearAt': instance.clearAt?.toJson(), - }; - -NextcloudUserStatusPredefinedStatuses_Ocs _$NextcloudUserStatusPredefinedStatuses_OcsFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudUserStatusPredefinedStatuses_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List) - .map((e) => NextcloudUserStatusPredefinedStatus.fromJson(e as Map)) - .toList(), - ); -} - -Map _$NextcloudUserStatusPredefinedStatuses_OcsToJson( - NextcloudUserStatusPredefinedStatuses_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.map((e) => e.toJson()).toList(), - }; - -NextcloudUserStatusPredefinedStatuses _$NextcloudUserStatusPredefinedStatusesFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudUserStatusPredefinedStatuses( - ocs: NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudUserStatusPredefinedStatusesToJson(NextcloudUserStatusPredefinedStatuses instance) => - { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudUserStatusHeartbeat_Ocs _$NextcloudUserStatusHeartbeat_OcsFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['meta', 'data'], - ); - return NextcloudUserStatusHeartbeat_Ocs( - meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), - data: NextcloudUserStatusStatus.fromJson(json['data'] as Map), - ); -} - -Map _$NextcloudUserStatusHeartbeat_OcsToJson(NextcloudUserStatusHeartbeat_Ocs instance) => - { - 'meta': instance.meta.toJson(), - 'data': instance.data.toJson(), - }; - -NextcloudUserStatusHeartbeat _$NextcloudUserStatusHeartbeatFromJson(Map json) { - $checkKeys( - json, - allowedKeys: const ['ocs'], - ); - return NextcloudUserStatusHeartbeat( - ocs: NextcloudUserStatusHeartbeat_Ocs.fromJson(json['ocs'] as Map), - ); -} - -Map _$NextcloudUserStatusHeartbeatToJson(NextcloudUserStatusHeartbeat instance) => { - 'ocs': instance.ocs.toJson(), - }; - -NextcloudNotificationsNotificationDecryptedSubject _$NextcloudNotificationsNotificationDecryptedSubjectFromJson( - Map json) { - $checkKeys( - json, - allowedKeys: const ['nid', 'app', 'subject', 'type', 'id', 'delete', 'delete-all'], - ); - return NextcloudNotificationsNotificationDecryptedSubject( - nid: json['nid'] as int?, - app: json['app'] as String?, - subject: json['subject'] as String?, - type: json['type'] as String?, - id: json['id'] as String?, - delete: json['delete'] as bool?, - deleteAll: json['delete-all'] as bool?, - ); -} - -Map _$NextcloudNotificationsNotificationDecryptedSubjectToJson( - NextcloudNotificationsNotificationDecryptedSubject instance) => - { - 'nid': instance.nid, - 'app': instance.app, - 'subject': instance.subject, - 'type': instance.type, - 'id': instance.id, - 'delete': instance.delete, - 'delete-all': instance.deleteAll, - }; + serializers.serialize(object.status, specifiedType: const FullType(String)), + 'statuscode', + serializers.serialize(object.statuscode, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.message; + if (value != null) { + result + ..add('message') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.totalitems; + if (value != null) { + result + ..add('totalitems') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.itemsperpage; + if (value != null) { + result + ..add('itemsperpage') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudOCSMeta deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudOCSMetaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'statuscode': + result.statuscode = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'totalitems': + result.totalitems = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'itemsperpage': + result.itemsperpage = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_VersionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Version, + _$NextcloudCoreServerCapabilities_Ocs_Data_Version + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Version'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Version object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.major; + if (value != null) { + result + ..add('major') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.minor; + if (value != null) { + result + ..add('minor') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.micro; + if (value != null) { + result + ..add('micro') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.string; + if (value != null) { + result + ..add('string') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.edition; + if (value != null) { + result + ..add('edition') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.extendedSupport; + if (value != null) { + result + ..add('extendedSupport') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Version deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'major': + result.major = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'minor': + result.minor = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'micro': + result.micro = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'string': + result.string = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'edition': + result.edition = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'extendedSupport': + result.extendedSupport = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.pollinterval; + if (value != null) { + result + ..add('pollinterval') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.webdavRoot; + if (value != null) { + result + ..add('webdav-root') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.referenceApi; + if (value != null) { + result + ..add('reference-api') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.referenceRegex; + if (value != null) { + result + ..add('reference-regex') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'pollinterval': + result.pollinterval = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'webdav-root': + result.webdavRoot = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'reference-api': + result.referenceApi = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'reference-regex': + result.referenceRegex = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.delay; + if (value != null) { + result + ..add('delay') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'delay': + result.delay = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.size; + if (value != null) { + result + ..add('size') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + value = object.gps; + if (value != null) { + result + ..add('gps') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'size': + result.size.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'gps': + result.gps.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.etag; + if (value != null) { + result + ..add('etag') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'etag': + result.etag = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.bigfilechunking; + if (value != null) { + result + ..add('bigfilechunking') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.blacklistedFiles; + if (value != null) { + result + ..add('blacklisted_files') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + value = object.directEditing; + if (value != null) { + result + ..add('directEditing') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing))); + } + value = object.comments; + if (value != null) { + result + ..add('comments') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.undelete; + if (value != null) { + result + ..add('undelete') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.versioning; + if (value != null) { + result + ..add('versioning') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'bigfilechunking': + result.bigfilechunking = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'blacklisted_files': + result.blacklistedFiles.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'directEditing': + result.directEditing.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing); + break; + case 'comments': + result.comments = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'undelete': + result.undelete = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'versioning': + result.versioning = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivitySerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.apiv2; + if (value != null) { + result + ..add('apiv2') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'apiv2': + result.apiv2.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.globalScale; + if (value != null) { + result + ..add('globalScale') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'globalScale': + result.globalScale = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.frontendEnabled; + if (value != null) { + result + ..add('frontendEnabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.allowedCircles; + if (value != null) { + result + ..add('allowedCircles') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.allowedUserTypes; + if (value != null) { + result + ..add('allowedUserTypes') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.membersLimit; + if (value != null) { + result + ..add('membersLimit') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'frontendEnabled': + result.frontendEnabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'allowedCircles': + result.allowedCircles = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'allowedUserTypes': + result.allowedUserTypes = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'membersLimit': + result.membersLimit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.core; + if (value != null) { + result + ..add('core') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + value = object.extra; + if (value != null) { + result + ..add('extra') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'core': + result.core = serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + case 'extra': + result.extra = serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flags; + if (value != null) { + result + ..add('flags') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + value = object.source; + if (value != null) { + result + ..add('source') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flags': + result.flags = serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.coreFlags; + if (value != null) { + result + ..add('coreFlags') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(int)]))); + } + value = object.systemFlags; + if (value != null) { + result + ..add('systemFlags') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(int)]))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'coreFlags': + result.coreFlags.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(int)]))! as BuiltList); + break; + case 'systemFlags': + result.systemFlags.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(int)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.constants; + if (value != null) { + result + ..add('constants') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants))); + } + value = object.config; + if (value != null) { + result + ..add('config') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'constants': + result.constants.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants); + break; + case 'config': + result.config.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.level; + if (value != null) { + result + ..add('level') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'level': + result.level = serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.constants; + if (value != null) { + result + ..add('constants') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants))); + } + value = object.type; + if (value != null) { + result + ..add('type') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'constants': + result.constants.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants); + break; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.version; + if (value != null) { + result + ..add('version') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status))); + } + value = object.settings; + if (value != null) { + result + ..add('settings') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings))); + } + value = object.circle; + if (value != null) { + result + ..add('circle') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle))); + } + value = object.member; + if (value != null) { + result + ..add('member') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status); + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings); + break; + case 'circle': + result.circle.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle); + break; + case 'member': + result.member.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.webdav; + if (value != null) { + result + ..add('webdav') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'webdav': + result.webdav = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.shareTypes; + if (value != null) { + result + ..add('shareTypes') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + value = object.protocols; + if (value != null) { + result + ..add('protocols') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'shareTypes': + result.shareTypes.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'protocols': + result.protocols.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.apiVersion; + if (value != null) { + result + ..add('apiVersion') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.endPoint; + if (value != null) { + result + ..add('endPoint') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.resourceTypes; + if (value != null) { + result + ..add('resourceTypes') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, [FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes)]))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'apiVersion': + result.apiVersion = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'endPoint': + result.endPoint = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'resourceTypes': + result.resourceTypes.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, [FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.bulkupload; + if (value != null) { + result + ..add('bulkupload') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.chunking; + if (value != null) { + result + ..add('chunking') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'bulkupload': + result.bulkupload = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'chunking': + result.chunking = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enforced; + if (value != null) { + result + ..add('enforced') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.askForOptionalPassword; + if (value != null) { + result + ..add('askForOptionalPassword') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'askForOptionalPassword': + result.askForOptionalPassword = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalSerializer + implements + StructuredSerializer< + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal> { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal + ]; + @override + final String wireName = + 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteSerializer + implements + StructuredSerializer< + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote> { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.password; + if (value != null) { + result + ..add('password') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password))); + } + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate))); + } + value = object.multipleLinks; + if (value != null) { + result + ..add('multiple_links') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.expireDateInternal; + if (value != null) { + result + ..add('expire_date_internal') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal))); + } + value = object.expireDateRemote; + if (value != null) { + result + ..add('expire_date_remote') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote))); + } + value = object.sendMail; + if (value != null) { + result + ..add('send_mail') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.upload; + if (value != null) { + result + ..add('upload') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.uploadFilesDrop; + if (value != null) { + result + ..add('upload_files_drop') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'password': + result.password.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password); + break; + case 'expire_date': + result.expireDate.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate); + break; + case 'multiple_links': + result.multipleLinks = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'expire_date_internal': + result.expireDateInternal.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal); + break; + case 'expire_date_remote': + result.expireDateRemote.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote); + break; + case 'send_mail': + result.sendMail = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'upload': + result.upload = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'upload_files_drop': + result.uploadFilesDrop = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.sendMail; + if (value != null) { + result + ..add('send_mail') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'send_mail': + result.sendMail = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'expire_date': + result.expireDate.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'expire_date': + result.expireDate.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedSerializer + implements + StructuredSerializer< + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported> { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + ]; + @override + final String wireName = + 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.outgoing; + if (value != null) { + result + ..add('outgoing') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.incoming; + if (value != null) { + result + ..add('incoming') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate))); + } + value = object.expireDateSupported; + if (value != null) { + result + ..add('expire_date_supported') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'outgoing': + result.outgoing = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'incoming': + result.incoming = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'expire_date': + result.expireDate.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate); + break; + case 'expire_date_supported': + result.expireDateSupported.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.queryLookupDefault; + if (value != null) { + result + ..add('query_lookup_default') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.alwaysShowUnique; + if (value != null) { + result + ..add('always_show_unique') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'query_lookup_default': + result.queryLookupDefault = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'always_show_unique': + result.alwaysShowUnique = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropSerializer + implements + StructuredSerializer< + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop> { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop + ]; + @override + final String wireName = + 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.enforced; + if (value != null) { + result + ..add('enforced') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateSerializer + implements + StructuredSerializer< + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate> { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate'; + + @override + Iterable serialize(Serializers serializers, + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.enforced; + if (value != null) { + result + ..add('enforced') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.sendPasswordByMail; + if (value != null) { + result + ..add('send_password_by_mail') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.uploadFilesDrop; + if (value != null) { + result + ..add('upload_files_drop') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop))); + } + value = object.password; + if (value != null) { + result + ..add('password') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password))); + } + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add(serializers.serialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'send_password_by_mail': + result.sendPasswordByMail = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'upload_files_drop': + result.uploadFilesDrop.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop); + break; + case 'password': + result.password.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password); + break; + case 'expire_date': + result.expireDate.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.apiEnabled; + if (value != null) { + result + ..add('api_enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.public; + if (value != null) { + result + ..add('public') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public))); + } + value = object.resharing; + if (value != null) { + result + ..add('resharing') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.user; + if (value != null) { + result + ..add('user') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User))); + } + value = object.groupSharing; + if (value != null) { + result + ..add('group_sharing') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.group; + if (value != null) { + result + ..add('group') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group))); + } + value = object.defaultPermissions; + if (value != null) { + result + ..add('default_permissions') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.federation; + if (value != null) { + result + ..add('federation') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation))); + } + value = object.sharee; + if (value != null) { + result + ..add('sharee') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee))); + } + value = object.sharebymail; + if (value != null) { + result + ..add('sharebymail') + ..add(serializers.serialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'api_enabled': + result.apiEnabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'public': + result.public.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public); + break; + case 'resharing': + result.resharing = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'user': + result.user.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User); + break; + case 'group_sharing': + result.groupSharing = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'group': + result.group.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group); + break; + case 'default_permissions': + result.defaultPermissions = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'federation': + result.federation.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation); + break; + case 'sharee': + result.sharee.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee); + break; + case 'sharebymail': + result.sharebymail.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.apiVersion; + if (value != null) { + result + ..add('api_version') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + value = object.version; + if (value != null) { + result + ..add('version') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'api_version': + result.apiVersion.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.ocsEndpoints; + if (value != null) { + result + ..add('ocs-endpoints') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + value = object.push; + if (value != null) { + result + ..add('push') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + value = object.adminNotifications; + if (value != null) { + result + ..add('admin-notifications') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs-endpoints': + result.ocsEndpoints.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'push': + result.push.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'admin-notifications': + result.adminNotifications.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.generate; + if (value != null) { + result + ..add('generate') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.validate; + if (value != null) { + result + ..add('validate') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'generate': + result.generate = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'validate': + result.validate = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicySerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.minLength; + if (value != null) { + result + ..add('minLength') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.enforceNonCommonPassword; + if (value != null) { + result + ..add('enforceNonCommonPassword') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.enforceNumericCharacters; + if (value != null) { + result + ..add('enforceNumericCharacters') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.enforceSpecialCharacters; + if (value != null) { + result + ..add('enforceSpecialCharacters') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.enforceUpperLowerCase; + if (value != null) { + result + ..add('enforceUpperLowerCase') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.api; + if (value != null) { + result + ..add('api') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'minLength': + result.minLength = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'enforceNonCommonPassword': + result.enforceNonCommonPassword = + serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'enforceNumericCharacters': + result.enforceNumericCharacters = + serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'enforceSpecialCharacters': + result.enforceSpecialCharacters = + serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'enforceUpperLowerCase': + result.enforceUpperLowerCase = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'api': + result.api.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.version; + if (value != null) { + result + ..add('version') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.accountPropertyScopesVersion; + if (value != null) { + result + ..add('AccountPropertyScopesVersion') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.accountPropertyScopesFederatedEnabled; + if (value != null) { + result + ..add('AccountPropertyScopesFederatedEnabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.accountPropertyScopesPublishedEnabled; + if (value != null) { + result + ..add('AccountPropertyScopesPublishedEnabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'AccountPropertyScopesVersion': + result.accountPropertyScopesVersion = + serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'AccountPropertyScopesFederatedEnabled': + result.accountPropertyScopesFederatedEnabled = + serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'AccountPropertyScopesPublishedEnabled': + result.accountPropertyScopesPublishedEnabled = + serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.slogan; + if (value != null) { + result + ..add('slogan') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.color; + if (value != null) { + result + ..add('color') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.colorText; + if (value != null) { + result + ..add('color-text') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.colorElement; + if (value != null) { + result + ..add('color-element') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.colorElementBright; + if (value != null) { + result + ..add('color-element-bright') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.colorElementDark; + if (value != null) { + result + ..add('color-element-dark') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.logo; + if (value != null) { + result + ..add('logo') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.background; + if (value != null) { + result + ..add('background') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.backgroundPlain; + if (value != null) { + result + ..add('background-plain') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.backgroundDefault; + if (value != null) { + result + ..add('background-default') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.logoheader; + if (value != null) { + result + ..add('logoheader') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.favicon; + if (value != null) { + result + ..add('favicon') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'slogan': + result.slogan = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'color': + result.color = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'color-text': + result.colorText = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'color-element': + result.colorElement = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'color-element-bright': + result.colorElementBright = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'color-element-dark': + result.colorElementDark = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'logo': + result.logo = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'background': + result.background = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'background-plain': + result.backgroundPlain = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'background-default': + result.backgroundDefault = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'logoheader': + result.logoheader = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'favicon': + result.favicon = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.supportsEmoji; + if (value != null) { + result + ..add('supports_emoji') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'supports_emoji': + result.supportsEmoji = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus'; + + @override + Iterable serialize( + Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities, + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data_Capabilities object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.core; + if (value != null) { + result + ..add('core') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core))); + } + value = object.bruteforce; + if (value != null) { + result + ..add('bruteforce') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce))); + } + value = object.metadataAvailable; + if (value != null) { + result + ..add('metadataAvailable') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable))); + } + value = object.files; + if (value != null) { + result + ..add('files') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files))); + } + value = object.activity; + if (value != null) { + result + ..add('activity') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity))); + } + value = object.circles; + if (value != null) { + result + ..add('circles') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles))); + } + value = object.ocm; + if (value != null) { + result + ..add('ocm') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm))); + } + value = object.dav; + if (value != null) { + result + ..add('dav') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav))); + } + value = object.filesSharing; + if (value != null) { + result + ..add('files_sharing') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing))); + } + value = object.notes; + if (value != null) { + result + ..add('notes') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes))); + } + value = object.notifications; + if (value != null) { + result + ..add('notifications') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications))); + } + value = object.passwordPolicy; + if (value != null) { + result + ..add('password_policy') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy))); + } + value = object.provisioningApi; + if (value != null) { + result + ..add('provisioning_api') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi))); + } + value = object.theming; + if (value != null) { + result + ..add('theming') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming))); + } + value = object.userStatus; + if (value != null) { + result + ..add('user_status') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus))); + } + value = object.weatherStatus; + if (value != null) { + result + ..add('weather_status') + ..add(serializers.serialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus))); + } + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'core': + result.core.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core); + break; + case 'bruteforce': + result.bruteforce.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce); + break; + case 'metadataAvailable': + result.metadataAvailable.replace(serializers.deserialize(value, + specifiedType: + const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable); + break; + case 'files': + result.files.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files); + break; + case 'activity': + result.activity.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity); + break; + case 'circles': + result.circles.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles); + break; + case 'ocm': + result.ocm.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm); + break; + case 'dav': + result.dav.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav); + break; + case 'files_sharing': + result.filesSharing.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing); + break; + case 'notes': + result.notes.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes); + break; + case 'notifications': + result.notifications.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications); + break; + case 'password_policy': + result.passwordPolicy.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy); + break; + case 'provisioning_api': + result.provisioningApi.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi); + break; + case 'theming': + result.theming.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming); + break; + case 'user_status': + result.userStatus.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus); + break; + case 'weather_status': + result.weatherStatus.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_DataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreServerCapabilities_Ocs_Data, + _$NextcloudCoreServerCapabilities_Ocs_Data + ]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs_Data'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities_Ocs_Data object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'version', + serializers.serialize(object.version, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Version)), + 'capabilities', + serializers.serialize(object.capabilities, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities)), + ]; + + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'version': + result.version.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Version))! + as NextcloudCoreServerCapabilities_Ocs_Data_Version); + break; + case 'capabilities': + result.capabilities.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities))! + as NextcloudCoreServerCapabilities_Ocs_Data_Capabilities); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilities_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreServerCapabilities_Ocs, _$NextcloudCoreServerCapabilities_Ocs]; + @override + final String wireName = 'NextcloudCoreServerCapabilities_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data)), + ]; + + return result; + } + + @override + NextcloudCoreServerCapabilities_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilities_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs_Data))! + as NextcloudCoreServerCapabilities_Ocs_Data); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerCapabilitiesSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreServerCapabilities, _$NextcloudCoreServerCapabilities]; + @override + final String wireName = 'NextcloudCoreServerCapabilities'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreServerCapabilities object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs)), + ]; + + return result; + } + + @override + NextcloudCoreServerCapabilities deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreServerCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudCoreServerCapabilities_Ocs))! + as NextcloudCoreServerCapabilities_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreNavigationApps_Ocs_DataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreNavigationApps_Ocs_Data, _$NextcloudCoreNavigationApps_Ocs_Data]; + @override + final String wireName = 'NextcloudCoreNavigationApps_Ocs_Data'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreNavigationApps_Ocs_Data object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(NextcloudCoreNavigationApps_Ocs_Data_Order)), + 'href', + serializers.serialize(object.href, specifiedType: const FullType(String)), + 'icon', + serializers.serialize(object.icon, specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'active', + serializers.serialize(object.active, specifiedType: const FullType(bool)), + 'classes', + serializers.serialize(object.classes, specifiedType: const FullType(String)), + 'unread', + serializers.serialize(object.unread, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + NextcloudCoreNavigationApps_Ocs_Data deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreNavigationApps_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudCoreNavigationApps_Ocs_Data_Order))! + as NextcloudCoreNavigationApps_Ocs_Data_Order); + break; + case 'href': + result.href = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'active': + result.active = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'classes': + result.classes = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'unread': + result.unread = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreNavigationApps_OcsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreNavigationApps_Ocs, _$NextcloudCoreNavigationApps_Ocs]; + @override + final String wireName = 'NextcloudCoreNavigationApps_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreNavigationApps_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, + specifiedType: const FullType(BuiltList, [FullType(NextcloudCoreNavigationApps_Ocs_Data)])), + ]; + + return result; + } + + @override + NextcloudCoreNavigationApps_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreNavigationApps_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudCoreNavigationApps_Ocs_Data)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreNavigationAppsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreNavigationApps, _$NextcloudCoreNavigationApps]; + @override + final String wireName = 'NextcloudCoreNavigationApps'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreNavigationApps object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudCoreNavigationApps_Ocs)), + ]; + + return result; + } + + @override + NextcloudCoreNavigationApps deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreNavigationAppsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreNavigationApps_Ocs))! as NextcloudCoreNavigationApps_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreLoginFlowInit_PollSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreLoginFlowInit_Poll, _$NextcloudCoreLoginFlowInit_Poll]; + @override + final String wireName = 'NextcloudCoreLoginFlowInit_Poll'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreLoginFlowInit_Poll object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'token', + serializers.serialize(object.token, specifiedType: const FullType(String)), + 'endpoint', + serializers.serialize(object.endpoint, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudCoreLoginFlowInit_Poll deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreLoginFlowInit_PollBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'token': + result.token = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'endpoint': + result.endpoint = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreLoginFlowInitSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreLoginFlowInit, _$NextcloudCoreLoginFlowInit]; + @override + final String wireName = 'NextcloudCoreLoginFlowInit'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreLoginFlowInit object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'poll', + serializers.serialize(object.poll, specifiedType: const FullType(NextcloudCoreLoginFlowInit_Poll)), + 'login', + serializers.serialize(object.login, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudCoreLoginFlowInit deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreLoginFlowInitBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'poll': + result.poll.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreLoginFlowInit_Poll))! as NextcloudCoreLoginFlowInit_Poll); + break; + case 'login': + result.login = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreLoginFlowResultSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreLoginFlowResult, _$NextcloudCoreLoginFlowResult]; + @override + final String wireName = 'NextcloudCoreLoginFlowResult'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreLoginFlowResult object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'server', + serializers.serialize(object.server, specifiedType: const FullType(String)), + 'loginName', + serializers.serialize(object.loginName, specifiedType: const FullType(String)), + 'appPassword', + serializers.serialize(object.appPassword, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudCoreLoginFlowResult deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreLoginFlowResultBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'server': + result.server = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'loginName': + result.loginName = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'appPassword': + result.appPassword = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreAutocompleteResult_Ocs_DataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudCoreAutocompleteResult_Ocs_Data, + _$NextcloudCoreAutocompleteResult_Ocs_Data + ]; + @override + final String wireName = 'NextcloudCoreAutocompleteResult_Ocs_Data'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreAutocompleteResult_Ocs_Data object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'label', + serializers.serialize(object.label, specifiedType: const FullType(String)), + 'icon', + serializers.serialize(object.icon, specifiedType: const FullType(String)), + 'source', + serializers.serialize(object.source, specifiedType: const FullType(String)), + 'status', + serializers.serialize(object.status, + specifiedType: const FullType(NextcloudCoreAutocompleteResult_Ocs_Data_Status)), + 'subline', + serializers.serialize(object.subline, specifiedType: const FullType(String)), + 'shareWithDisplayNameUnique', + serializers.serialize(object.shareWithDisplayNameUnique, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudCoreAutocompleteResult_Ocs_Data deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreAutocompleteResult_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'label': + result.label = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'source': + result.source = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudCoreAutocompleteResult_Ocs_Data_Status))! + as NextcloudCoreAutocompleteResult_Ocs_Data_Status); + break; + case 'subline': + result.subline = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'shareWithDisplayNameUnique': + result.shareWithDisplayNameUnique = + serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreAutocompleteResult_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreAutocompleteResult_Ocs, _$NextcloudCoreAutocompleteResult_Ocs]; + @override + final String wireName = 'NextcloudCoreAutocompleteResult_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreAutocompleteResult_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, + specifiedType: const FullType(BuiltList, [FullType(NextcloudCoreAutocompleteResult_Ocs_Data)])), + ]; + + return result; + } + + @override + NextcloudCoreAutocompleteResult_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreAutocompleteResult_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudCoreAutocompleteResult_Ocs_Data)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreAutocompleteResultSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudCoreAutocompleteResult, _$NextcloudCoreAutocompleteResult]; + @override + final String wireName = 'NextcloudCoreAutocompleteResult'; + + @override + Iterable serialize(Serializers serializers, NextcloudCoreAutocompleteResult object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudCoreAutocompleteResult_Ocs)), + ]; + + return result; + } + + @override + NextcloudCoreAutocompleteResult deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudCoreAutocompleteResultBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudCoreAutocompleteResult_Ocs))! + as NextcloudCoreAutocompleteResult_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsSupportedAPIVersionsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsSupportedAPIVersions, _$NextcloudNewsSupportedAPIVersions]; + @override + final String wireName = 'NextcloudNewsSupportedAPIVersions'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsSupportedAPIVersions object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.apiLevels; + if (value != null) { + result + ..add('apiLevels') + ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); + } + return result; + } + + @override + NextcloudNewsSupportedAPIVersions deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsSupportedAPIVersionsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'apiLevels': + result.apiLevels.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsArticleSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsArticle, _$NextcloudNewsArticle]; + @override + final String wireName = 'NextcloudNewsArticle'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsArticle object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'guid', + serializers.serialize(object.guid, specifiedType: const FullType(String)), + 'guidHash', + serializers.serialize(object.guidHash, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'pubDate', + serializers.serialize(object.pubDate, specifiedType: const FullType(int)), + 'body', + serializers.serialize(object.body, specifiedType: const FullType(String)), + 'feedId', + serializers.serialize(object.feedId, specifiedType: const FullType(int)), + 'unread', + serializers.serialize(object.unread, specifiedType: const FullType(bool)), + 'starred', + serializers.serialize(object.starred, specifiedType: const FullType(bool)), + 'lastModified', + serializers.serialize(object.lastModified, specifiedType: const FullType(int)), + 'rtl', + serializers.serialize(object.rtl, specifiedType: const FullType(bool)), + 'fingerprint', + serializers.serialize(object.fingerprint, specifiedType: const FullType(String)), + 'contentHash', + serializers.serialize(object.contentHash, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.updatedDate; + if (value != null) { + result + ..add('updatedDate') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.enclosureMime; + if (value != null) { + result + ..add('enclosureMime') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.enclosureLink; + if (value != null) { + result + ..add('enclosureLink') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.mediaThumbnail; + if (value != null) { + result + ..add('mediaThumbnail') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.mediaDescription; + if (value != null) { + result + ..add('mediaDescription') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudNewsArticle deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsArticleBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'guid': + result.guid = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'guidHash': + result.guidHash = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'author': + result.author = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'pubDate': + result.pubDate = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'updatedDate': + result.updatedDate = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'body': + result.body = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'enclosureMime': + result.enclosureMime = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'enclosureLink': + result.enclosureLink = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'mediaThumbnail': + result.mediaThumbnail = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'mediaDescription': + result.mediaDescription = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'feedId': + result.feedId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'unread': + result.unread = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'starred': + result.starred = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'lastModified': + result.lastModified = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'rtl': + result.rtl = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'fingerprint': + result.fingerprint = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'contentHash': + result.contentHash = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsFeedSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsFeed, _$NextcloudNewsFeed]; + @override + final String wireName = 'NextcloudNewsFeed'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsFeed object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'added', + serializers.serialize(object.added, specifiedType: const FullType(int)), + 'ordering', + serializers.serialize(object.ordering, specifiedType: const FullType(int)), + 'pinned', + serializers.serialize(object.pinned, specifiedType: const FullType(bool)), + 'updateErrorCount', + serializers.serialize(object.updateErrorCount, specifiedType: const FullType(int)), + 'items', + serializers.serialize(object.items, specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsArticle)])), + ]; + Object? value; + value = object.faviconLink; + if (value != null) { + result + ..add('faviconLink') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.folderId; + if (value != null) { + result + ..add('folderId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.unreadCount; + if (value != null) { + result + ..add('unreadCount') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.link; + if (value != null) { + result + ..add('link') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.lastUpdateError; + if (value != null) { + result + ..add('lastUpdateError') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudNewsFeed deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsFeedBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'faviconLink': + result.faviconLink = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'added': + result.added = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'folderId': + result.folderId = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'unreadCount': + result.unreadCount = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'ordering': + result.ordering = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'link': + result.link = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'pinned': + result.pinned = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'updateErrorCount': + result.updateErrorCount = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'lastUpdateError': + result.lastUpdateError = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'items': + result.items.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsArticle)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsFolderSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsFolder, _$NextcloudNewsFolder]; + @override + final String wireName = 'NextcloudNewsFolder'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsFolder object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'opened', + serializers.serialize(object.opened, specifiedType: const FullType(bool)), + 'feeds', + serializers.serialize(object.feeds, specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsFeed)])), + ]; + + return result; + } + + @override + NextcloudNewsFolder deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsFolderBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'opened': + result.opened = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'feeds': + result.feeds.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsFeed)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsListFoldersSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsListFolders, _$NextcloudNewsListFolders]; + @override + final String wireName = 'NextcloudNewsListFolders'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsListFolders object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'folders', + serializers.serialize(object.folders, specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsFolder)])), + ]; + + return result; + } + + @override + NextcloudNewsListFolders deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsListFoldersBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'folders': + result.folders.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsFolder)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsListFeedsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsListFeeds, _$NextcloudNewsListFeeds]; + @override + final String wireName = 'NextcloudNewsListFeeds'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsListFeeds object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'feeds', + serializers.serialize(object.feeds, specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsFeed)])), + ]; + Object? value; + value = object.starredCount; + if (value != null) { + result + ..add('starredCount') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.newestItemId; + if (value != null) { + result + ..add('newestItemId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + NextcloudNewsListFeeds deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsListFeedsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'starredCount': + result.starredCount = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'newestItemId': + result.newestItemId = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'feeds': + result.feeds.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsFeed)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNewsListArticlesSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNewsListArticles, _$NextcloudNewsListArticles]; + @override + final String wireName = 'NextcloudNewsListArticles'; + + @override + Iterable serialize(Serializers serializers, NextcloudNewsListArticles object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'items', + serializers.serialize(object.items, specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsArticle)])), + ]; + + return result; + } + + @override + NextcloudNewsListArticles deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNewsListArticlesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'items': + result.items.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNewsArticle)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotesNoteSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNotesNote, _$NextcloudNotesNote]; + @override + final String wireName = 'NextcloudNotesNote'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotesNote object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'etag', + serializers.serialize(object.etag, specifiedType: const FullType(String)), + 'readonly', + serializers.serialize(object.readonly, specifiedType: const FullType(bool)), + 'content', + serializers.serialize(object.content, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'category', + serializers.serialize(object.category, specifiedType: const FullType(String)), + 'favorite', + serializers.serialize(object.favorite, specifiedType: const FullType(bool)), + 'modified', + serializers.serialize(object.modified, specifiedType: const FullType(int)), + 'error', + serializers.serialize(object.error, specifiedType: const FullType(bool)), + 'errorType', + serializers.serialize(object.errorType, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudNotesNote deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotesNoteBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'etag': + result.etag = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'readonly': + result.readonly = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'content': + result.content = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'category': + result.category = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'favorite': + result.favorite = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'modified': + result.modified = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'error': + result.error = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'errorType': + result.errorType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotesSettings_NoteModeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [NextcloudNotesSettings_NoteMode]; + @override + final String wireName = 'NextcloudNotesSettings_NoteMode'; + + @override + Object serialize(Serializers serializers, NextcloudNotesSettings_NoteMode object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + NextcloudNotesSettings_NoteMode deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + NextcloudNotesSettings_NoteMode.valueOf(serialized as String); +} + +class _$NextcloudNotesSettingsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNotesSettings, _$NextcloudNotesSettings]; + @override + final String wireName = 'NextcloudNotesSettings'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotesSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'notesPath', + serializers.serialize(object.notesPath, specifiedType: const FullType(String)), + 'fileSuffix', + serializers.serialize(object.fileSuffix, specifiedType: const FullType(String)), + 'noteMode', + serializers.serialize(object.noteMode, specifiedType: const FullType(NextcloudNotesSettings_NoteMode)), + ]; + + return result; + } + + @override + NextcloudNotesSettings deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotesSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'notesPath': + result.notesPath = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'fileSuffix': + result.fileSuffix = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'noteMode': + result.noteMode = serializers.deserialize(value, + specifiedType: const FullType(NextcloudNotesSettings_NoteMode))! as NextcloudNotesSettings_NoteMode; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsNotificationActionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsNotificationAction, + _$NextcloudNotificationsNotificationAction + ]; + @override + final String wireName = 'NextcloudNotificationsNotificationAction'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsNotificationAction object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'label', + serializers.serialize(object.label, specifiedType: const FullType(String)), + 'link', + serializers.serialize(object.link, specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.primary; + if (value != null) { + result + ..add('primary') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudNotificationsNotificationAction deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsNotificationActionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'label': + result.label = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'link': + result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'primary': + result.primary = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsNotificationSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNotificationsNotification, _$NextcloudNotificationsNotification]; + @override + final String wireName = 'NextcloudNotificationsNotification'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsNotification object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'notification_id', + serializers.serialize(object.notificationId, specifiedType: const FullType(int)), + 'app', + serializers.serialize(object.app, specifiedType: const FullType(String)), + 'user', + serializers.serialize(object.user, specifiedType: const FullType(String)), + 'datetime', + serializers.serialize(object.datetime, specifiedType: const FullType(String)), + 'object_type', + serializers.serialize(object.objectType, specifiedType: const FullType(String)), + 'object_id', + serializers.serialize(object.objectId, specifiedType: const FullType(String)), + 'subject', + serializers.serialize(object.subject, specifiedType: const FullType(String)), + 'message', + serializers.serialize(object.message, specifiedType: const FullType(String)), + 'link', + serializers.serialize(object.link, specifiedType: const FullType(String)), + 'actions', + serializers.serialize(object.actions, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNotificationsNotificationAction)])), + ]; + Object? value; + value = object.subjectRich; + if (value != null) { + result + ..add('subjectRich') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.subjectRichParameters; + if (value != null) { + result + ..add('subjectRichParameters') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + value = object.messageRich; + if (value != null) { + result + ..add('messageRich') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.messageRichParameters; + if (value != null) { + result + ..add('messageRichParameters') + ..add(serializers.serialize(value, specifiedType: const FullType(JsonObject))); + } + value = object.icon; + if (value != null) { + result + ..add('icon') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.shouldNotify; + if (value != null) { + result + ..add('shouldNotify') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudNotificationsNotification deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsNotificationBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'notification_id': + result.notificationId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'app': + result.app = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'user': + result.user = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'datetime': + result.datetime = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'object_type': + result.objectType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'object_id': + result.objectId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'subject': + result.subject = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'link': + result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'subjectRich': + result.subjectRich = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'subjectRichParameters': + result.subjectRichParameters = + serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + case 'messageRich': + result.messageRich = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'messageRichParameters': + result.messageRichParameters = + serializers.deserialize(value, specifiedType: const FullType(JsonObject)) as JsonObject?; + break; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'shouldNotify': + result.shouldNotify = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'actions': + result.actions.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNotificationsNotificationAction)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsListNotifications_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsListNotifications_Ocs, + _$NextcloudNotificationsListNotifications_Ocs + ]; + @override + final String wireName = 'NextcloudNotificationsListNotifications_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsListNotifications_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNotificationsNotification)])), + ]; + + return result; + } + + @override + NextcloudNotificationsListNotifications_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsListNotifications_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudNotificationsNotification)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsListNotificationsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsListNotifications, + _$NextcloudNotificationsListNotifications + ]; + @override + final String wireName = 'NextcloudNotificationsListNotifications'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsListNotifications object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudNotificationsListNotifications_Ocs)), + ]; + + return result; + } + + @override + NextcloudNotificationsListNotifications deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsListNotificationsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudNotificationsListNotifications_Ocs))! + as NextcloudNotificationsListNotifications_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsGetNotification_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsGetNotification_Ocs, + _$NextcloudNotificationsGetNotification_Ocs + ]; + @override + final String wireName = 'NextcloudNotificationsGetNotification_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsGetNotification_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudNotificationsNotification)), + ]; + + return result; + } + + @override + NextcloudNotificationsGetNotification_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsGetNotification_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudNotificationsNotification))! + as NextcloudNotificationsNotification); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsGetNotificationSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudNotificationsGetNotification, _$NextcloudNotificationsGetNotification]; + @override + final String wireName = 'NextcloudNotificationsGetNotification'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsGetNotification object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudNotificationsGetNotification_Ocs)), + ]; + + return result; + } + + @override + NextcloudNotificationsGetNotification deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsGetNotificationBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudNotificationsGetNotification_Ocs))! + as NextcloudNotificationsGetNotification_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudEmptyOCS_OcsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudEmptyOCS_Ocs, _$NextcloudEmptyOCS_Ocs]; + @override + final String wireName = 'NextcloudEmptyOCS_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudEmptyOCS_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(JsonObject)])), + ]; + + return result; + } + + @override + NextcloudEmptyOCS_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudEmptyOCS_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(JsonObject)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudEmptyOCSSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudEmptyOCS, _$NextcloudEmptyOCS]; + @override + final String wireName = 'NextcloudEmptyOCS'; + + @override + Iterable serialize(Serializers serializers, NextcloudEmptyOCS object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudEmptyOCS_Ocs)), + ]; + + return result; + } + + @override + NextcloudEmptyOCS deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudEmptyOCSBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, specifiedType: const FullType(NextcloudEmptyOCS_Ocs))! + as NextcloudEmptyOCS_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsPushServerSubscriptionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsPushServerSubscription, + _$NextcloudNotificationsPushServerSubscription + ]; + @override + final String wireName = 'NextcloudNotificationsPushServerSubscription'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsPushServerSubscription object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'publicKey', + serializers.serialize(object.publicKey, specifiedType: const FullType(String)), + 'deviceIdentifier', + serializers.serialize(object.deviceIdentifier, specifiedType: const FullType(String)), + 'signature', + serializers.serialize(object.signature, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.message; + if (value != null) { + result + ..add('message') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudNotificationsPushServerSubscription deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsPushServerSubscriptionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'publicKey': + result.publicKey = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'deviceIdentifier': + result.deviceIdentifier = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'signature': + result.signature = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsPushServerRegistration_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsPushServerRegistration_Ocs, + _$NextcloudNotificationsPushServerRegistration_Ocs + ]; + @override + final String wireName = 'NextcloudNotificationsPushServerRegistration_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsPushServerRegistration_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudNotificationsPushServerSubscription)), + ]; + + return result; + } + + @override + NextcloudNotificationsPushServerRegistration_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsPushServerRegistration_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudNotificationsPushServerSubscription))! + as NextcloudNotificationsPushServerSubscription); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsPushServerRegistrationSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsPushServerRegistration, + _$NextcloudNotificationsPushServerRegistration + ]; + @override + final String wireName = 'NextcloudNotificationsPushServerRegistration'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsPushServerRegistration object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, + specifiedType: const FullType(NextcloudNotificationsPushServerRegistration_Ocs)), + ]; + + return result; + } + + @override + NextcloudNotificationsPushServerRegistration deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsPushServerRegistrationBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudNotificationsPushServerRegistration_Ocs))! + as NextcloudNotificationsPushServerRegistration_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudProvisioningApiUserDetails_QuotaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudProvisioningApiUserDetails_Quota, + _$NextcloudProvisioningApiUserDetails_Quota + ]; + @override + final String wireName = 'NextcloudProvisioningApiUserDetails_Quota'; + + @override + Iterable serialize(Serializers serializers, NextcloudProvisioningApiUserDetails_Quota object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'free', + serializers.serialize(object.free, specifiedType: const FullType(int)), + 'used', + serializers.serialize(object.used, specifiedType: const FullType(int)), + 'total', + serializers.serialize(object.total, specifiedType: const FullType(int)), + 'relative', + serializers.serialize(object.relative, specifiedType: const FullType(num)), + 'quota', + serializers.serialize(object.quota, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + NextcloudProvisioningApiUserDetails_Quota deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudProvisioningApiUserDetails_QuotaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'free': + result.free = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'used': + result.used = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'total': + result.total = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'relative': + result.relative = serializers.deserialize(value, specifiedType: const FullType(num))! as num; + break; + case 'quota': + result.quota = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudProvisioningApiUserDetails_BackendCapabilities, + _$NextcloudProvisioningApiUserDetails_BackendCapabilities + ]; + @override + final String wireName = 'NextcloudProvisioningApiUserDetails_BackendCapabilities'; + + @override + Iterable serialize(Serializers serializers, NextcloudProvisioningApiUserDetails_BackendCapabilities object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'setDisplayName', + serializers.serialize(object.setDisplayName, specifiedType: const FullType(bool)), + 'setPassword', + serializers.serialize(object.setPassword, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudProvisioningApiUserDetails_BackendCapabilities deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'setDisplayName': + result.setDisplayName = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'setPassword': + result.setPassword = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudProvisioningApiUserDetailsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudProvisioningApiUserDetails, _$NextcloudProvisioningApiUserDetails]; + @override + final String wireName = 'NextcloudProvisioningApiUserDetails'; + + @override + Iterable serialize(Serializers serializers, NextcloudProvisioningApiUserDetails object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'lastLogin', + serializers.serialize(object.lastLogin, specifiedType: const FullType(int)), + 'backend', + serializers.serialize(object.backend, specifiedType: const FullType(String)), + 'subadmin', + serializers.serialize(object.subadmin, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'quota', + serializers.serialize(object.quota, specifiedType: const FullType(NextcloudProvisioningApiUserDetails_Quota)), + 'avatarScope', + serializers.serialize(object.avatarScope, specifiedType: const FullType(String)), + 'emailScope', + serializers.serialize(object.emailScope, specifiedType: const FullType(String)), + 'additional_mail', + serializers.serialize(object.additionalMail, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'additional_mailScope', + serializers.serialize(object.additionalMailScope, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'displaynameScope', + serializers.serialize(object.displaynameScope, specifiedType: const FullType(String)), + 'phone', + serializers.serialize(object.phone, specifiedType: const FullType(String)), + 'phoneScope', + serializers.serialize(object.phoneScope, specifiedType: const FullType(String)), + 'address', + serializers.serialize(object.address, specifiedType: const FullType(String)), + 'addressScope', + serializers.serialize(object.addressScope, specifiedType: const FullType(String)), + 'website', + serializers.serialize(object.website, specifiedType: const FullType(String)), + 'websiteScope', + serializers.serialize(object.websiteScope, specifiedType: const FullType(String)), + 'twitter', + serializers.serialize(object.twitter, specifiedType: const FullType(String)), + 'twitterScope', + serializers.serialize(object.twitterScope, specifiedType: const FullType(String)), + 'organisation', + serializers.serialize(object.organisation, specifiedType: const FullType(String)), + 'organisationScope', + serializers.serialize(object.organisationScope, specifiedType: const FullType(String)), + 'role', + serializers.serialize(object.role, specifiedType: const FullType(String)), + 'roleScope', + serializers.serialize(object.roleScope, specifiedType: const FullType(String)), + 'headline', + serializers.serialize(object.headline, specifiedType: const FullType(String)), + 'headlineScope', + serializers.serialize(object.headlineScope, specifiedType: const FullType(String)), + 'biography', + serializers.serialize(object.biography, specifiedType: const FullType(String)), + 'biographyScope', + serializers.serialize(object.biographyScope, specifiedType: const FullType(String)), + 'profile_enabled', + serializers.serialize(object.profileEnabled, specifiedType: const FullType(String)), + 'profile_enabledScope', + serializers.serialize(object.profileEnabledScope, specifiedType: const FullType(String)), + 'fediverse', + serializers.serialize(object.fediverse, specifiedType: const FullType(String)), + 'fediverseScope', + serializers.serialize(object.fediverseScope, specifiedType: const FullType(String)), + 'groups', + serializers.serialize(object.groups, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'language', + serializers.serialize(object.language, specifiedType: const FullType(String)), + 'locale', + serializers.serialize(object.locale, specifiedType: const FullType(String)), + 'backendCapabilities', + serializers.serialize(object.backendCapabilities, + specifiedType: const FullType(NextcloudProvisioningApiUserDetails_BackendCapabilities)), + ]; + Object? value; + value = object.enabled; + if (value != null) { + result + ..add('enabled') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.storageLocation; + if (value != null) { + result + ..add('storageLocation') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.email; + if (value != null) { + result + ..add('email') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.displayname; + if (value != null) { + result + ..add('displayname') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.notifyEmail; + if (value != null) { + result + ..add('notify_email') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.displayName; + if (value != null) { + result + ..add('display-name') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + return result; + } + + @override + NextcloudProvisioningApiUserDetails deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudProvisioningApiUserDetailsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'storageLocation': + result.storageLocation = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'lastLogin': + result.lastLogin = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + case 'backend': + result.backend = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'subadmin': + result.subadmin.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'quota': + result.quota.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudProvisioningApiUserDetails_Quota))! + as NextcloudProvisioningApiUserDetails_Quota); + break; + case 'avatarScope': + result.avatarScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'email': + result.email = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'emailScope': + result.emailScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'additional_mail': + result.additionalMail.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'additional_mailScope': + result.additionalMailScope.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'displayname': + result.displayname = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'displaynameScope': + result.displaynameScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'phone': + result.phone = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'phoneScope': + result.phoneScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'address': + result.address = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'addressScope': + result.addressScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'website': + result.website = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'websiteScope': + result.websiteScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'twitter': + result.twitter = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'twitterScope': + result.twitterScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'organisation': + result.organisation = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'organisationScope': + result.organisationScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'role': + result.role = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'roleScope': + result.roleScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'headline': + result.headline = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'headlineScope': + result.headlineScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'biography': + result.biography = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'biographyScope': + result.biographyScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'profile_enabled': + result.profileEnabled = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'profile_enabledScope': + result.profileEnabledScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'fediverse': + result.fediverse = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'fediverseScope': + result.fediverseScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'groups': + result.groups.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + case 'language': + result.language = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'locale': + result.locale = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'notify_email': + result.notifyEmail = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'backendCapabilities': + result.backendCapabilities.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudProvisioningApiUserDetails_BackendCapabilities))! + as NextcloudProvisioningApiUserDetails_BackendCapabilities); + break; + case 'display-name': + result.displayName = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudProvisioningApiUser_OcsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudProvisioningApiUser_Ocs, _$NextcloudProvisioningApiUser_Ocs]; + @override + final String wireName = 'NextcloudProvisioningApiUser_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudProvisioningApiUser_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudProvisioningApiUserDetails)), + ]; + + return result; + } + + @override + NextcloudProvisioningApiUser_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudProvisioningApiUser_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudProvisioningApiUserDetails))! + as NextcloudProvisioningApiUserDetails); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudProvisioningApiUserSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudProvisioningApiUser, _$NextcloudProvisioningApiUser]; + @override + final String wireName = 'NextcloudProvisioningApiUser'; + + @override + Iterable serialize(Serializers serializers, NextcloudProvisioningApiUser object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudProvisioningApiUser_Ocs)), + ]; + + return result; + } + + @override + NextcloudProvisioningApiUser deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudProvisioningApiUserBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudProvisioningApiUser_Ocs))! as NextcloudProvisioningApiUser_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderCheckResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderCheckResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderCheckResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderCheckResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + 'deviceId', + serializers.serialize(object.deviceId, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'deviceId': + result.deviceId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson, + _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + 'token', + serializers.serialize(object.token, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'token': + result.token = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush, + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush'; + + @override + Iterable serialize(Serializers serializers, + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'version', + serializers.serialize(object.version, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'unifiedpush', + serializers.serialize(object.unifiedpush, + specifiedType: + const FullType(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'unifiedpush': + result.unifiedpush.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush))! + as NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderPushResponse201ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderPushResponse201ApplicationJson, + _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderPushResponse201ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderPushResponse201ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderPushResponse201ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush, + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush'; + + @override + Iterable serialize(Serializers serializers, + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'gateway', + serializers.serialize(object.gateway, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'gateway': + result.gateway = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'unifiedpush', + serializers.serialize(object.unifiedpush, + specifiedType: + const FullType(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush)), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'unifiedpush': + result.unifiedpush.replace(serializers.deserialize(value, + specifiedType: const FullType( + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush))! + as NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson, + _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson + ]; + @override + final String wireName = 'NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson'; + + @override + Iterable serialize( + Serializers serializers, NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'rejected', + serializers.serialize(object.rejected, specifiedType: const FullType(BuiltList, [FullType(String)])), + ]; + + return result; + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'rejected': + result.rejected.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusClearAt_TypeSerializer implements PrimitiveSerializer { + static const Map _toWire = { + 'endOf': 'end-of', + }; + static const Map _fromWire = { + 'end-of': 'endOf', + }; + + @override + final Iterable types = const [NextcloudUserStatusClearAt_Type]; + @override + final String wireName = 'NextcloudUserStatusClearAt_Type'; + + @override + Object serialize(Serializers serializers, NextcloudUserStatusClearAt_Type object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + NextcloudUserStatusClearAt_Type deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + NextcloudUserStatusClearAt_Type.valueOf(_fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$NextcloudUserStatusClearAt_Time0Serializer implements PrimitiveSerializer { + @override + final Iterable types = const [NextcloudUserStatusClearAt_Time0]; + @override + final String wireName = 'NextcloudUserStatusClearAt_Time0'; + + @override + Object serialize(Serializers serializers, NextcloudUserStatusClearAt_Time0 object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + NextcloudUserStatusClearAt_Time0 deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + NextcloudUserStatusClearAt_Time0.valueOf(serialized as String); +} + +class _$NextcloudUserStatusClearAtSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusClearAt, _$NextcloudUserStatusClearAt]; + @override + final String wireName = 'NextcloudUserStatusClearAt'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusClearAt object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'type', + serializers.serialize(object.type, specifiedType: const FullType(NextcloudUserStatusClearAt_Type)), + 'time', + serializers.serialize(object.time, specifiedType: const FullType(NextcloudUserStatusClearAt_Time)), + ]; + + return result; + } + + @override + NextcloudUserStatusClearAt deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusClearAtBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusClearAt_Type))! + as NextcloudUserStatusClearAt_Type; + break; + case 'time': + result.time.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudUserStatusClearAt_Time))! as NextcloudUserStatusClearAt_Time); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusTypeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [NextcloudUserStatusType]; + @override + final String wireName = 'NextcloudUserStatusType'; + + @override + Object serialize(Serializers serializers, NextcloudUserStatusType object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + NextcloudUserStatusType deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + NextcloudUserStatusType.valueOf(serialized as String); +} + +class _$NextcloudUserStatusPublicStatusSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusPublicStatus, _$NextcloudUserStatusPublicStatus]; + @override + final String wireName = 'NextcloudUserStatusPublicStatus'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusPublicStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'userId', + serializers.serialize(object.userId, specifiedType: const FullType(String)), + 'status', + serializers.serialize(object.status, specifiedType: const FullType(NextcloudUserStatusType)), + ]; + Object? value; + value = object.message; + if (value != null) { + result + ..add('message') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.icon; + if (value != null) { + result + ..add('icon') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.clearAt; + if (value != null) { + result + ..add('clearAt') + ..add(serializers.serialize(value, specifiedType: const FullType(NextcloudUserStatusPublicStatus_ClearAt))); + } + return result; + } + + @override + NextcloudUserStatusPublicStatus deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusPublicStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'clearAt': + result.clearAt.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusPublicStatus_ClearAt))! + as NextcloudUserStatusPublicStatus_ClearAt); + break; + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusType))! + as NextcloudUserStatusType; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusGetPublicStatuses_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUserStatusGetPublicStatuses_Ocs, + _$NextcloudUserStatusGetPublicStatuses_Ocs + ]; + @override + final String wireName = 'NextcloudUserStatusGetPublicStatuses_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusGetPublicStatuses_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, + specifiedType: const FullType(BuiltList, [FullType(NextcloudUserStatusPublicStatus)])), + ]; + + return result; + } + + @override + NextcloudUserStatusGetPublicStatuses_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusGetPublicStatuses_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudUserStatusPublicStatus)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusGetPublicStatusesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusGetPublicStatuses, _$NextcloudUserStatusGetPublicStatuses]; + @override + final String wireName = 'NextcloudUserStatusGetPublicStatuses'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusGetPublicStatuses object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudUserStatusGetPublicStatuses_Ocs)), + ]; + + return result; + } + + @override + NextcloudUserStatusGetPublicStatuses deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusGetPublicStatusesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusGetPublicStatuses_Ocs))! + as NextcloudUserStatusGetPublicStatuses_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusGetPublicStatus_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusGetPublicStatus_Ocs, _$NextcloudUserStatusGetPublicStatus_Ocs]; + @override + final String wireName = 'NextcloudUserStatusGetPublicStatus_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusGetPublicStatus_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudUserStatusGetPublicStatus_Ocs_Data)), + ]; + + return result; + } + + @override + NextcloudUserStatusGetPublicStatus_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusGetPublicStatus_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudUserStatusGetPublicStatus_Ocs_Data))! + as NextcloudUserStatusGetPublicStatus_Ocs_Data); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusGetPublicStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusGetPublicStatus, _$NextcloudUserStatusGetPublicStatus]; + @override + final String wireName = 'NextcloudUserStatusGetPublicStatus'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusGetPublicStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudUserStatusGetPublicStatus_Ocs)), + ]; + + return result; + } + + @override + NextcloudUserStatusGetPublicStatus deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusGetPublicStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusGetPublicStatus_Ocs))! + as NextcloudUserStatusGetPublicStatus_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusStatusSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusStatus, _$NextcloudUserStatusStatus]; + @override + final String wireName = 'NextcloudUserStatusStatus'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'userId', + serializers.serialize(object.userId, specifiedType: const FullType(String)), + 'messageIsPredefined', + serializers.serialize(object.messageIsPredefined, specifiedType: const FullType(bool)), + 'status', + serializers.serialize(object.status, specifiedType: const FullType(NextcloudUserStatusType)), + 'statusIsUserDefined', + serializers.serialize(object.statusIsUserDefined, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.message; + if (value != null) { + result + ..add('message') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.messageId; + if (value != null) { + result + ..add('messageId') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.icon; + if (value != null) { + result + ..add('icon') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.clearAt; + if (value != null) { + result + ..add('clearAt') + ..add(serializers.serialize(value, specifiedType: const FullType(NextcloudUserStatusStatus_ClearAt))); + } + return result; + } + + @override + NextcloudUserStatusStatus deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'messageId': + result.messageId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'messageIsPredefined': + result.messageIsPredefined = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'clearAt': + result.clearAt.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudUserStatusStatus_ClearAt))! as NextcloudUserStatusStatus_ClearAt); + break; + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusType))! + as NextcloudUserStatusType; + break; + case 'statusIsUserDefined': + result.statusIsUserDefined = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusGetStatus_OcsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusGetStatus_Ocs, _$NextcloudUserStatusGetStatus_Ocs]; + @override + final String wireName = 'NextcloudUserStatusGetStatus_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusGetStatus_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudUserStatusGetStatus_Ocs_Data)), + ]; + + return result; + } + + @override + NextcloudUserStatusGetStatus_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusGetStatus_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusGetStatus_Ocs_Data))! + as NextcloudUserStatusGetStatus_Ocs_Data); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusGetStatusSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusGetStatus, _$NextcloudUserStatusGetStatus]; + @override + final String wireName = 'NextcloudUserStatusGetStatus'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusGetStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudUserStatusGetStatus_Ocs)), + ]; + + return result; + } + + @override + NextcloudUserStatusGetStatus deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusGetStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudUserStatusGetStatus_Ocs))! as NextcloudUserStatusGetStatus_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusPredefinedStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusPredefinedStatus, _$NextcloudUserStatusPredefinedStatus]; + @override + final String wireName = 'NextcloudUserStatusPredefinedStatus'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusPredefinedStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'icon', + serializers.serialize(object.icon, specifiedType: const FullType(String)), + 'message', + serializers.serialize(object.message, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clearAt; + if (value != null) { + result + ..add('clearAt') + ..add(serializers.serialize(value, specifiedType: const FullType(NextcloudUserStatusPredefinedStatus_ClearAt))); + } + return result; + } + + @override + NextcloudUserStatusPredefinedStatus deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusPredefinedStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + break; + case 'clearAt': + result.clearAt.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudUserStatusPredefinedStatus_ClearAt))! + as NextcloudUserStatusPredefinedStatus_ClearAt); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusPredefinedStatuses_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudUserStatusPredefinedStatuses_Ocs, + _$NextcloudUserStatusPredefinedStatuses_Ocs + ]; + @override + final String wireName = 'NextcloudUserStatusPredefinedStatuses_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusPredefinedStatuses_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, + specifiedType: const FullType(BuiltList, [FullType(NextcloudUserStatusPredefinedStatus)])), + ]; + + return result; + } + + @override + NextcloudUserStatusPredefinedStatuses_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusPredefinedStatuses_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(NextcloudUserStatusPredefinedStatus)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusPredefinedStatusesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusPredefinedStatuses, _$NextcloudUserStatusPredefinedStatuses]; + @override + final String wireName = 'NextcloudUserStatusPredefinedStatuses'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusPredefinedStatuses object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudUserStatusPredefinedStatuses_Ocs)), + ]; + + return result; + } + + @override + NextcloudUserStatusPredefinedStatuses deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusPredefinedStatusesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusPredefinedStatuses_Ocs))! + as NextcloudUserStatusPredefinedStatuses_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusHeartbeat_OcsSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusHeartbeat_Ocs, _$NextcloudUserStatusHeartbeat_Ocs]; + @override + final String wireName = 'NextcloudUserStatusHeartbeat_Ocs'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusHeartbeat_Ocs object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(NextcloudOCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(NextcloudUserStatusStatus)), + ]; + + return result; + } + + @override + NextcloudUserStatusHeartbeat_Ocs deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusHeartbeat_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(NextcloudOCSMeta))! as NextcloudOCSMeta); + break; + case 'data': + result.data.replace(serializers.deserialize(value, specifiedType: const FullType(NextcloudUserStatusStatus))! + as NextcloudUserStatusStatus); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudUserStatusHeartbeatSerializer implements StructuredSerializer { + @override + final Iterable types = const [NextcloudUserStatusHeartbeat, _$NextcloudUserStatusHeartbeat]; + @override + final String wireName = 'NextcloudUserStatusHeartbeat'; + + @override + Iterable serialize(Serializers serializers, NextcloudUserStatusHeartbeat object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(NextcloudUserStatusHeartbeat_Ocs)), + ]; + + return result; + } + + @override + NextcloudUserStatusHeartbeat deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudUserStatusHeartbeatBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(NextcloudUserStatusHeartbeat_Ocs))! as NextcloudUserStatusHeartbeat_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$NextcloudNotificationsNotificationDecryptedSubjectSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + NextcloudNotificationsNotificationDecryptedSubject, + _$NextcloudNotificationsNotificationDecryptedSubject + ]; + @override + final String wireName = 'NextcloudNotificationsNotificationDecryptedSubject'; + + @override + Iterable serialize(Serializers serializers, NextcloudNotificationsNotificationDecryptedSubject object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.nid; + if (value != null) { + result + ..add('nid') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.app; + if (value != null) { + result + ..add('app') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.subject; + if (value != null) { + result + ..add('subject') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.type; + if (value != null) { + result + ..add('type') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(String))); + } + value = object.delete; + if (value != null) { + result + ..add('delete') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.deleteAll; + if (value != null) { + result + ..add('delete-all') + ..add(serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + NextcloudNotificationsNotificationDecryptedSubject deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = NextcloudNotificationsNotificationDecryptedSubjectBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'nid': + result.nid = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; + break; + case 'app': + result.app = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'subject': + result.subject = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; + break; + case 'delete': + result.delete = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + case 'delete-all': + result.deleteAll = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$NextcloudCoreServerStatus extends NextcloudCoreServerStatus { + @override + final bool installed; + @override + final bool maintenance; + @override + final bool needsDbUpgrade; + @override + final String version; + @override + final String versionstring; + @override + final String edition; + @override + final String productname; + @override + final bool extendedSupport; + + factory _$NextcloudCoreServerStatus([void Function(NextcloudCoreServerStatusBuilder)? updates]) => + (NextcloudCoreServerStatusBuilder()..update(updates))._build(); + + _$NextcloudCoreServerStatus._( + {required this.installed, + required this.maintenance, + required this.needsDbUpgrade, + required this.version, + required this.versionstring, + required this.edition, + required this.productname, + required this.extendedSupport}) + : super._() { + BuiltValueNullFieldError.checkNotNull(installed, r'NextcloudCoreServerStatus', 'installed'); + BuiltValueNullFieldError.checkNotNull(maintenance, r'NextcloudCoreServerStatus', 'maintenance'); + BuiltValueNullFieldError.checkNotNull(needsDbUpgrade, r'NextcloudCoreServerStatus', 'needsDbUpgrade'); + BuiltValueNullFieldError.checkNotNull(version, r'NextcloudCoreServerStatus', 'version'); + BuiltValueNullFieldError.checkNotNull(versionstring, r'NextcloudCoreServerStatus', 'versionstring'); + BuiltValueNullFieldError.checkNotNull(edition, r'NextcloudCoreServerStatus', 'edition'); + BuiltValueNullFieldError.checkNotNull(productname, r'NextcloudCoreServerStatus', 'productname'); + BuiltValueNullFieldError.checkNotNull(extendedSupport, r'NextcloudCoreServerStatus', 'extendedSupport'); + } + + @override + NextcloudCoreServerStatus rebuild(void Function(NextcloudCoreServerStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerStatusBuilder toBuilder() => NextcloudCoreServerStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerStatus && + installed == other.installed && + maintenance == other.maintenance && + needsDbUpgrade == other.needsDbUpgrade && + version == other.version && + versionstring == other.versionstring && + edition == other.edition && + productname == other.productname && + extendedSupport == other.extendedSupport; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, installed.hashCode); + _$hash = $jc(_$hash, maintenance.hashCode); + _$hash = $jc(_$hash, needsDbUpgrade.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jc(_$hash, versionstring.hashCode); + _$hash = $jc(_$hash, edition.hashCode); + _$hash = $jc(_$hash, productname.hashCode); + _$hash = $jc(_$hash, extendedSupport.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerStatus') + ..add('installed', installed) + ..add('maintenance', maintenance) + ..add('needsDbUpgrade', needsDbUpgrade) + ..add('version', version) + ..add('versionstring', versionstring) + ..add('edition', edition) + ..add('productname', productname) + ..add('extendedSupport', extendedSupport)) + .toString(); + } +} + +class NextcloudCoreServerStatusBuilder implements Builder { + _$NextcloudCoreServerStatus? _$v; + + bool? _installed; + bool? get installed => _$this._installed; + set installed(bool? installed) => _$this._installed = installed; + + bool? _maintenance; + bool? get maintenance => _$this._maintenance; + set maintenance(bool? maintenance) => _$this._maintenance = maintenance; + + bool? _needsDbUpgrade; + bool? get needsDbUpgrade => _$this._needsDbUpgrade; + set needsDbUpgrade(bool? needsDbUpgrade) => _$this._needsDbUpgrade = needsDbUpgrade; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + String? _versionstring; + String? get versionstring => _$this._versionstring; + set versionstring(String? versionstring) => _$this._versionstring = versionstring; + + String? _edition; + String? get edition => _$this._edition; + set edition(String? edition) => _$this._edition = edition; + + String? _productname; + String? get productname => _$this._productname; + set productname(String? productname) => _$this._productname = productname; + + bool? _extendedSupport; + bool? get extendedSupport => _$this._extendedSupport; + set extendedSupport(bool? extendedSupport) => _$this._extendedSupport = extendedSupport; + + NextcloudCoreServerStatusBuilder(); + + NextcloudCoreServerStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _installed = $v.installed; + _maintenance = $v.maintenance; + _needsDbUpgrade = $v.needsDbUpgrade; + _version = $v.version; + _versionstring = $v.versionstring; + _edition = $v.edition; + _productname = $v.productname; + _extendedSupport = $v.extendedSupport; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerStatus; + } + + @override + void update(void Function(NextcloudCoreServerStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerStatus build() => _build(); + + _$NextcloudCoreServerStatus _build() { + final _$result = _$v ?? + _$NextcloudCoreServerStatus._( + installed: BuiltValueNullFieldError.checkNotNull(installed, r'NextcloudCoreServerStatus', 'installed'), + maintenance: + BuiltValueNullFieldError.checkNotNull(maintenance, r'NextcloudCoreServerStatus', 'maintenance'), + needsDbUpgrade: + BuiltValueNullFieldError.checkNotNull(needsDbUpgrade, r'NextcloudCoreServerStatus', 'needsDbUpgrade'), + version: BuiltValueNullFieldError.checkNotNull(version, r'NextcloudCoreServerStatus', 'version'), + versionstring: + BuiltValueNullFieldError.checkNotNull(versionstring, r'NextcloudCoreServerStatus', 'versionstring'), + edition: BuiltValueNullFieldError.checkNotNull(edition, r'NextcloudCoreServerStatus', 'edition'), + productname: + BuiltValueNullFieldError.checkNotNull(productname, r'NextcloudCoreServerStatus', 'productname'), + extendedSupport: BuiltValueNullFieldError.checkNotNull( + extendedSupport, r'NextcloudCoreServerStatus', 'extendedSupport')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudOCSMeta extends NextcloudOCSMeta { + @override + final String status; + @override + final int statuscode; + @override + final String? message; + @override + final String? totalitems; + @override + final String? itemsperpage; + + factory _$NextcloudOCSMeta([void Function(NextcloudOCSMetaBuilder)? updates]) => + (NextcloudOCSMetaBuilder()..update(updates))._build(); + + _$NextcloudOCSMeta._( + {required this.status, required this.statuscode, this.message, this.totalitems, this.itemsperpage}) + : super._() { + BuiltValueNullFieldError.checkNotNull(status, r'NextcloudOCSMeta', 'status'); + BuiltValueNullFieldError.checkNotNull(statuscode, r'NextcloudOCSMeta', 'statuscode'); + } + + @override + NextcloudOCSMeta rebuild(void Function(NextcloudOCSMetaBuilder) updates) => (toBuilder()..update(updates)).build(); + + @override + NextcloudOCSMetaBuilder toBuilder() => NextcloudOCSMetaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudOCSMeta && + status == other.status && + statuscode == other.statuscode && + message == other.message && + totalitems == other.totalitems && + itemsperpage == other.itemsperpage; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, statuscode.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, totalitems.hashCode); + _$hash = $jc(_$hash, itemsperpage.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudOCSMeta') + ..add('status', status) + ..add('statuscode', statuscode) + ..add('message', message) + ..add('totalitems', totalitems) + ..add('itemsperpage', itemsperpage)) + .toString(); + } +} + +class NextcloudOCSMetaBuilder implements Builder { + _$NextcloudOCSMeta? _$v; + + String? _status; + String? get status => _$this._status; + set status(String? status) => _$this._status = status; + + int? _statuscode; + int? get statuscode => _$this._statuscode; + set statuscode(int? statuscode) => _$this._statuscode = statuscode; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + String? _totalitems; + String? get totalitems => _$this._totalitems; + set totalitems(String? totalitems) => _$this._totalitems = totalitems; + + String? _itemsperpage; + String? get itemsperpage => _$this._itemsperpage; + set itemsperpage(String? itemsperpage) => _$this._itemsperpage = itemsperpage; + + NextcloudOCSMetaBuilder(); + + NextcloudOCSMetaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _status = $v.status; + _statuscode = $v.statuscode; + _message = $v.message; + _totalitems = $v.totalitems; + _itemsperpage = $v.itemsperpage; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudOCSMeta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudOCSMeta; + } + + @override + void update(void Function(NextcloudOCSMetaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudOCSMeta build() => _build(); + + _$NextcloudOCSMeta _build() { + final _$result = _$v ?? + _$NextcloudOCSMeta._( + status: BuiltValueNullFieldError.checkNotNull(status, r'NextcloudOCSMeta', 'status'), + statuscode: BuiltValueNullFieldError.checkNotNull(statuscode, r'NextcloudOCSMeta', 'statuscode'), + message: message, + totalitems: totalitems, + itemsperpage: itemsperpage); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Version extends NextcloudCoreServerCapabilities_Ocs_Data_Version { + @override + final int? major; + @override + final int? minor; + @override + final int? micro; + @override + final String? string; + @override + final String? edition; + @override + final bool? extendedSupport; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Version( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Version._( + {this.major, this.minor, this.micro, this.string, this.edition, this.extendedSupport}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Version rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Version && + major == other.major && + minor == other.minor && + micro == other.micro && + string == other.string && + edition == other.edition && + extendedSupport == other.extendedSupport; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, major.hashCode); + _$hash = $jc(_$hash, minor.hashCode); + _$hash = $jc(_$hash, micro.hashCode); + _$hash = $jc(_$hash, string.hashCode); + _$hash = $jc(_$hash, edition.hashCode); + _$hash = $jc(_$hash, extendedSupport.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Version') + ..add('major', major) + ..add('minor', minor) + ..add('micro', micro) + ..add('string', string) + ..add('edition', edition) + ..add('extendedSupport', extendedSupport)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Version? _$v; + + int? _major; + int? get major => _$this._major; + set major(int? major) => _$this._major = major; + + int? _minor; + int? get minor => _$this._minor; + set minor(int? minor) => _$this._minor = minor; + + int? _micro; + int? get micro => _$this._micro; + set micro(int? micro) => _$this._micro = micro; + + String? _string; + String? get string => _$this._string; + set string(String? string) => _$this._string = string; + + String? _edition; + String? get edition => _$this._edition; + set edition(String? edition) => _$this._edition = edition; + + bool? _extendedSupport; + bool? get extendedSupport => _$this._extendedSupport; + set extendedSupport(bool? extendedSupport) => _$this._extendedSupport = extendedSupport; + + NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _major = $v.major; + _minor = $v.minor; + _micro = $v.micro; + _string = $v.string; + _edition = $v.edition; + _extendedSupport = $v.extendedSupport; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Version other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Version; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Version build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Version _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Version._( + major: major, + minor: minor, + micro: micro, + string: string, + edition: edition, + extendedSupport: extendedSupport); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core { + @override + final int? pollinterval; + @override + final String? webdavRoot; + @override + final bool? referenceApi; + @override + final String? referenceRegex; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core._( + {this.pollinterval, this.webdavRoot, this.referenceApi, this.referenceRegex}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core && + pollinterval == other.pollinterval && + webdavRoot == other.webdavRoot && + referenceApi == other.referenceApi && + referenceRegex == other.referenceRegex; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, pollinterval.hashCode); + _$hash = $jc(_$hash, webdavRoot.hashCode); + _$hash = $jc(_$hash, referenceApi.hashCode); + _$hash = $jc(_$hash, referenceRegex.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core') + ..add('pollinterval', pollinterval) + ..add('webdavRoot', webdavRoot) + ..add('referenceApi', referenceApi) + ..add('referenceRegex', referenceRegex)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? _$v; + + int? _pollinterval; + int? get pollinterval => _$this._pollinterval; + set pollinterval(int? pollinterval) => _$this._pollinterval = pollinterval; + + String? _webdavRoot; + String? get webdavRoot => _$this._webdavRoot; + set webdavRoot(String? webdavRoot) => _$this._webdavRoot = webdavRoot; + + bool? _referenceApi; + bool? get referenceApi => _$this._referenceApi; + set referenceApi(bool? referenceApi) => _$this._referenceApi = referenceApi; + + String? _referenceRegex; + String? get referenceRegex => _$this._referenceRegex; + set referenceRegex(String? referenceRegex) => _$this._referenceRegex = referenceRegex; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder get _$this { + final $v = _$v; + if ($v != null) { + _pollinterval = $v.pollinterval; + _webdavRoot = $v.webdavRoot; + _referenceApi = $v.referenceApi; + _referenceRegex = $v.referenceRegex; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core._( + pollinterval: pollinterval, + webdavRoot: webdavRoot, + referenceApi: referenceApi, + referenceRegex: referenceRegex); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce { + @override + final int? delay; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce._({this.delay}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce && delay == other.delay; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, delay.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce') + ..add('delay', delay)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? _$v; + + int? _delay; + int? get delay => _$this._delay; + set delay(int? delay) => _$this._delay = delay; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _delay = $v.delay; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce _build() { + final _$result = _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce._(delay: delay); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { + @override + final BuiltList? size; + @override + final BuiltList? gps; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable._({this.size, this.gps}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable && + size == other.size && + gps == other.gps; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, size.hashCode); + _$hash = $jc(_$hash, gps.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable') + ..add('size', size) + ..add('gps', gps)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? _$v; + + ListBuilder? _size; + ListBuilder get size => _$this._size ??= ListBuilder(); + set size(ListBuilder? size) => _$this._size = size; + + ListBuilder? _gps; + ListBuilder get gps => _$this._gps ??= ListBuilder(); + set gps(ListBuilder? gps) => _$this._gps = gps; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder get _$this { + final $v = _$v; + if ($v != null) { + _size = $v.size?.toBuilder(); + _gps = $v.gps?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable._( + size: _size?.build(), gps: _gps?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'size'; + _size?.build(); + _$failedField = 'gps'; + _gps?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing { + @override + final String? url; + @override + final String? etag; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing._({this.url, this.etag}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing && + url == other.url && + etag == other.etag; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, etag.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing') + ..add('url', url) + ..add('etag', etag)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? _$v; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _etag; + String? get etag => _$this._etag; + set etag(String? etag) => _$this._etag = etag; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder get _$this { + final $v = _$v; + if ($v != null) { + _url = $v.url; + _etag = $v.etag; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing _build() { + final _$result = + _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing._(url: url, etag: etag); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files { + @override + final bool? bigfilechunking; + @override + final BuiltList? blacklistedFiles; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? directEditing; + @override + final bool? comments; + @override + final bool? undelete; + @override + final bool? versioning; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files._( + {this.bigfilechunking, this.blacklistedFiles, this.directEditing, this.comments, this.undelete, this.versioning}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files && + bigfilechunking == other.bigfilechunking && + blacklistedFiles == other.blacklistedFiles && + directEditing == other.directEditing && + comments == other.comments && + undelete == other.undelete && + versioning == other.versioning; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, bigfilechunking.hashCode); + _$hash = $jc(_$hash, blacklistedFiles.hashCode); + _$hash = $jc(_$hash, directEditing.hashCode); + _$hash = $jc(_$hash, comments.hashCode); + _$hash = $jc(_$hash, undelete.hashCode); + _$hash = $jc(_$hash, versioning.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files') + ..add('bigfilechunking', bigfilechunking) + ..add('blacklistedFiles', blacklistedFiles) + ..add('directEditing', directEditing) + ..add('comments', comments) + ..add('undelete', undelete) + ..add('versioning', versioning)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? _$v; + + bool? _bigfilechunking; + bool? get bigfilechunking => _$this._bigfilechunking; + set bigfilechunking(bool? bigfilechunking) => _$this._bigfilechunking = bigfilechunking; + + ListBuilder? _blacklistedFiles; + ListBuilder get blacklistedFiles => _$this._blacklistedFiles ??= ListBuilder(); + set blacklistedFiles(ListBuilder? blacklistedFiles) => _$this._blacklistedFiles = blacklistedFiles; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder? _directEditing; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder get directEditing => + _$this._directEditing ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder(); + set directEditing(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingBuilder? directEditing) => + _$this._directEditing = directEditing; + + bool? _comments; + bool? get comments => _$this._comments; + set comments(bool? comments) => _$this._comments = comments; + + bool? _undelete; + bool? get undelete => _$this._undelete; + set undelete(bool? undelete) => _$this._undelete = undelete; + + bool? _versioning; + bool? get versioning => _$this._versioning; + set versioning(bool? versioning) => _$this._versioning = versioning; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _bigfilechunking = $v.bigfilechunking; + _blacklistedFiles = $v.blacklistedFiles?.toBuilder(); + _directEditing = $v.directEditing?.toBuilder(); + _comments = $v.comments; + _undelete = $v.undelete; + _versioning = $v.versioning; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files._( + bigfilechunking: bigfilechunking, + blacklistedFiles: _blacklistedFiles?.build(), + directEditing: _directEditing?.build(), + comments: comments, + undelete: undelete, + versioning: versioning); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'blacklistedFiles'; + _blacklistedFiles?.build(); + _$failedField = 'directEditing'; + _directEditing?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity { + @override + final BuiltList? apiv2; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity._({this.apiv2}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity && apiv2 == other.apiv2; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, apiv2.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity') + ..add('apiv2', apiv2)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? _$v; + + ListBuilder? _apiv2; + ListBuilder get apiv2 => _$this._apiv2 ??= ListBuilder(); + set apiv2(ListBuilder? apiv2) => _$this._apiv2 = apiv2; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder get _$this { + final $v = _$v; + if ($v != null) { + _apiv2 = $v.apiv2?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity _$result; + try { + _$result = _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity._(apiv2: _apiv2?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'apiv2'; + _apiv2?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status { + @override + final bool? globalScale; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status._({this.globalScale}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status && + globalScale == other.globalScale; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, globalScale.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status') + ..add('globalScale', globalScale)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? _$v; + + bool? _globalScale; + bool? get globalScale => _$this._globalScale; + set globalScale(bool? globalScale) => _$this._globalScale = globalScale; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _globalScale = $v.globalScale; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status _build() { + final _$result = + _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status._(globalScale: globalScale); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { + @override + final bool? frontendEnabled; + @override + final int? allowedCircles; + @override + final int? allowedUserTypes; + @override + final int? membersLimit; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings._( + {this.frontendEnabled, this.allowedCircles, this.allowedUserTypes, this.membersLimit}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings && + frontendEnabled == other.frontendEnabled && + allowedCircles == other.allowedCircles && + allowedUserTypes == other.allowedUserTypes && + membersLimit == other.membersLimit; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, frontendEnabled.hashCode); + _$hash = $jc(_$hash, allowedCircles.hashCode); + _$hash = $jc(_$hash, allowedUserTypes.hashCode); + _$hash = $jc(_$hash, membersLimit.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings') + ..add('frontendEnabled', frontendEnabled) + ..add('allowedCircles', allowedCircles) + ..add('allowedUserTypes', allowedUserTypes) + ..add('membersLimit', membersLimit)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? _$v; + + bool? _frontendEnabled; + bool? get frontendEnabled => _$this._frontendEnabled; + set frontendEnabled(bool? frontendEnabled) => _$this._frontendEnabled = frontendEnabled; + + int? _allowedCircles; + int? get allowedCircles => _$this._allowedCircles; + set allowedCircles(int? allowedCircles) => _$this._allowedCircles = allowedCircles; + + int? _allowedUserTypes; + int? get allowedUserTypes => _$this._allowedUserTypes; + set allowedUserTypes(int? allowedUserTypes) => _$this._allowedUserTypes = allowedUserTypes; + + int? _membersLimit; + int? get membersLimit => _$this._membersLimit; + set membersLimit(int? membersLimit) => _$this._membersLimit = membersLimit; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _frontendEnabled = $v.frontendEnabled; + _allowedCircles = $v.allowedCircles; + _allowedUserTypes = $v.allowedUserTypes; + _membersLimit = $v.membersLimit; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings._( + frontendEnabled: frontendEnabled, + allowedCircles: allowedCircles, + allowedUserTypes: allowedUserTypes, + membersLimit: membersLimit); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source { + @override + final JsonObject? core; + @override + final JsonObject? extra; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source._({this.core, this.extra}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source && + core == other.core && + extra == other.extra; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, core.hashCode); + _$hash = $jc(_$hash, extra.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source') + ..add('core', core) + ..add('extra', extra)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? _$v; + + JsonObject? _core; + JsonObject? get core => _$this._core; + set core(JsonObject? core) => _$this._core = core; + + JsonObject? _extra; + JsonObject? get extra => _$this._extra; + set extra(JsonObject? extra) => _$this._extra = extra; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _core = $v.core; + _extra = $v.extra; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source._( + core: core, extra: extra); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants { + @override + final JsonObject? flags; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? source; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants._({this.flags, this.source}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants && + flags == other.flags && + source == other.source; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flags.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants') + ..add('flags', flags) + ..add('source', source)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? _$v; + + JsonObject? _flags; + JsonObject? get flags => _$this._flags; + set flags(JsonObject? flags) => _$this._flags = flags; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder? _source; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder get source => + _$this._source ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder(); + set source(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceBuilder? source) => + _$this._source = source; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flags = $v.flags; + _source = $v.source?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants._( + flags: flags, source: _source?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'source'; + _source?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config { + @override + final BuiltList? coreFlags; + @override + final BuiltList? systemFlags; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config._({this.coreFlags, this.systemFlags}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config && + coreFlags == other.coreFlags && + systemFlags == other.systemFlags; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, coreFlags.hashCode); + _$hash = $jc(_$hash, systemFlags.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config') + ..add('coreFlags', coreFlags) + ..add('systemFlags', systemFlags)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? _$v; + + ListBuilder? _coreFlags; + ListBuilder get coreFlags => _$this._coreFlags ??= ListBuilder(); + set coreFlags(ListBuilder? coreFlags) => _$this._coreFlags = coreFlags; + + ListBuilder? _systemFlags; + ListBuilder get systemFlags => _$this._systemFlags ??= ListBuilder(); + set systemFlags(ListBuilder? systemFlags) => _$this._systemFlags = systemFlags; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder get _$this { + final $v = _$v; + if ($v != null) { + _coreFlags = $v.coreFlags?.toBuilder(); + _systemFlags = $v.systemFlags?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config._( + coreFlags: _coreFlags?.build(), systemFlags: _systemFlags?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'coreFlags'; + _coreFlags?.build(); + _$failedField = 'systemFlags'; + _systemFlags?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config', + _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle { + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? constants; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? config; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle._({this.constants, this.config}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle && + constants == other.constants && + config == other.config; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, constants.hashCode); + _$hash = $jc(_$hash, config.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle') + ..add('constants', constants) + ..add('config', config)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? _$v; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder? _constants; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder get constants => + _$this._constants ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder(); + set constants(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsBuilder? constants) => + _$this._constants = constants; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder? _config; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder get config => + _$this._config ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder(); + set config(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigBuilder? config) => + _$this._config = config; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder get _$this { + final $v = _$v; + if ($v != null) { + _constants = $v.constants?.toBuilder(); + _config = $v.config?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle._( + constants: _constants?.build(), config: _config?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'constants'; + _constants?.build(); + _$failedField = 'config'; + _config?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants { + @override + final JsonObject? level; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants._({this.level}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants && + level == other.level; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, level.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants') + ..add('level', level)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? _$v; + + JsonObject? _level; + JsonObject? get level => _$this._level; + set level(JsonObject? level) => _$this._level = level; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _level = $v.level; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants _build() { + final _$result = + _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants._(level: level); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member { + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? constants; + @override + final JsonObject? type; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member._({this.constants, this.type}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member && + constants == other.constants && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, constants.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member') + ..add('constants', constants) + ..add('type', type)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? _$v; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder? _constants; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder get constants => + _$this._constants ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder(); + set constants(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsBuilder? constants) => + _$this._constants = constants; + + JsonObject? _type; + JsonObject? get type => _$this._type; + set type(JsonObject? type) => _$this._type = type; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder get _$this { + final $v = _$v; + if ($v != null) { + _constants = $v.constants?.toBuilder(); + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member._( + constants: _constants?.build(), type: type); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'constants'; + _constants?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles { + @override + final String? version; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? status; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? settings; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? circle; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? member; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles._( + {this.version, this.status, this.settings, this.circle, this.member}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles && + version == other.version && + status == other.status && + settings == other.settings && + circle == other.circle && + member == other.member; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jc(_$hash, circle.hashCode); + _$hash = $jc(_$hash, member.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles') + ..add('version', version) + ..add('status', status) + ..add('settings', settings) + ..add('circle', circle) + ..add('member', member)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? _$v; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder? _status; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder get status => + _$this._status ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder(); + set status(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusBuilder? status) => + _$this._status = status; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder? _settings; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder get settings => + _$this._settings ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder(); + set settings(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsBuilder? settings) => + _$this._settings = settings; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder? _circle; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder get circle => + _$this._circle ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder(); + set circle(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleBuilder? circle) => + _$this._circle = circle; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder? _member; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder get member => + _$this._member ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder(); + set member(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberBuilder? member) => + _$this._member = member; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _version = $v.version; + _status = $v.status?.toBuilder(); + _settings = $v.settings?.toBuilder(); + _circle = $v.circle?.toBuilder(); + _member = $v.member?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles._( + version: version, + status: _status?.build(), + settings: _settings?.build(), + circle: _circle?.build(), + member: _member?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'status'; + _status?.build(); + _$failedField = 'settings'; + _settings?.build(); + _$failedField = 'circle'; + _circle?.build(); + _$failedField = 'member'; + _member?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols { + @override + final String? webdav; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols._({this.webdav}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols && + webdav == other.webdav; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, webdav.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols') + ..add('webdav', webdav)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? _$v; + + String? _webdav; + String? get webdav => _$this._webdav; + set webdav(String? webdav) => _$this._webdav = webdav; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _webdav = $v.webdav; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols _build() { + final _$result = + _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols._(webdav: webdav); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes { + @override + final String? name; + @override + final BuiltList? shareTypes; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? protocols; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes._( + {this.name, this.shareTypes, this.protocols}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes && + name == other.name && + shareTypes == other.shareTypes && + protocols == other.protocols; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, shareTypes.hashCode); + _$hash = $jc(_$hash, protocols.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes') + ..add('name', name) + ..add('shareTypes', shareTypes) + ..add('protocols', protocols)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes? _$v; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _shareTypes; + ListBuilder get shareTypes => _$this._shareTypes ??= ListBuilder(); + set shareTypes(ListBuilder? shareTypes) => _$this._shareTypes = shareTypes; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder? _protocols; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder get protocols => + _$this._protocols ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder(); + set protocols(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsBuilder? protocols) => + _$this._protocols = protocols; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _name = $v.name; + _shareTypes = $v.shareTypes?.toBuilder(); + _protocols = $v.protocols?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes._( + name: name, shareTypes: _shareTypes?.build(), protocols: _protocols?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'shareTypes'; + _shareTypes?.build(); + _$failedField = 'protocols'; + _protocols?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm { + @override + final bool? enabled; + @override + final String? apiVersion; + @override + final String? endPoint; + @override + final BuiltList? resourceTypes; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm._( + {this.enabled, this.apiVersion, this.endPoint, this.resourceTypes}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm && + enabled == other.enabled && + apiVersion == other.apiVersion && + endPoint == other.endPoint && + resourceTypes == other.resourceTypes; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, apiVersion.hashCode); + _$hash = $jc(_$hash, endPoint.hashCode); + _$hash = $jc(_$hash, resourceTypes.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm') + ..add('enabled', enabled) + ..add('apiVersion', apiVersion) + ..add('endPoint', endPoint) + ..add('resourceTypes', resourceTypes)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + String? _apiVersion; + String? get apiVersion => _$this._apiVersion; + set apiVersion(String? apiVersion) => _$this._apiVersion = apiVersion; + + String? _endPoint; + String? get endPoint => _$this._endPoint; + set endPoint(String? endPoint) => _$this._endPoint = endPoint; + + ListBuilder? _resourceTypes; + ListBuilder get resourceTypes => + _$this._resourceTypes ??= ListBuilder(); + set resourceTypes( + ListBuilder? resourceTypes) => + _$this._resourceTypes = resourceTypes; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _apiVersion = $v.apiVersion; + _endPoint = $v.endPoint; + _resourceTypes = $v.resourceTypes?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm._( + enabled: enabled, apiVersion: apiVersion, endPoint: endPoint, resourceTypes: _resourceTypes?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'resourceTypes'; + _resourceTypes?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav { + @override + final String? bulkupload; + @override + final String? chunking; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav._({this.bulkupload, this.chunking}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav && + bulkupload == other.bulkupload && + chunking == other.chunking; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, bulkupload.hashCode); + _$hash = $jc(_$hash, chunking.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav') + ..add('bulkupload', bulkupload) + ..add('chunking', chunking)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? _$v; + + String? _bulkupload; + String? get bulkupload => _$this._bulkupload; + set bulkupload(String? bulkupload) => _$this._bulkupload = bulkupload; + + String? _chunking; + String? get chunking => _$this._chunking; + set chunking(String? chunking) => _$this._chunking = chunking; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder get _$this { + final $v = _$v; + if ($v != null) { + _bulkupload = $v.bulkupload; + _chunking = $v.chunking; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav._(bulkupload: bulkupload, chunking: chunking); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password { + @override + final bool? enforced; + @override + final bool? askForOptionalPassword; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password._( + {this.enforced, this.askForOptionalPassword}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password && + enforced == other.enforced && + askForOptionalPassword == other.askForOptionalPassword; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enforced.hashCode); + _$hash = $jc(_$hash, askForOptionalPassword.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password') + ..add('enforced', enforced) + ..add('askForOptionalPassword', askForOptionalPassword)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? _$v; + + bool? _enforced; + bool? get enforced => _$this._enforced; + set enforced(bool? enforced) => _$this._enforced = enforced; + + bool? _askForOptionalPassword; + bool? get askForOptionalPassword => _$this._askForOptionalPassword; + set askForOptionalPassword(bool? askForOptionalPassword) => _$this._askForOptionalPassword = askForOptionalPassword; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enforced = $v.enforced; + _askForOptionalPassword = $v.askForOptionalPassword; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password._( + enforced: enforced, askForOptionalPassword: askForOptionalPassword); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate._({this.enabled}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate._(enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal._({this.enabled}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal rebuild( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal; + } + + @override + void update( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal._( + enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote._({this.enabled}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote rebuild( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote._( + enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { + @override + final bool? enabled; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? password; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? expireDate; + @override + final bool? multipleLinks; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? + expireDateInternal; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? expireDateRemote; + @override + final bool? sendMail; + @override + final bool? upload; + @override + final bool? uploadFilesDrop; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public._( + {this.enabled, + this.password, + this.expireDate, + this.multipleLinks, + this.expireDateInternal, + this.expireDateRemote, + this.sendMail, + this.upload, + this.uploadFilesDrop}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public && + enabled == other.enabled && + password == other.password && + expireDate == other.expireDate && + multipleLinks == other.multipleLinks && + expireDateInternal == other.expireDateInternal && + expireDateRemote == other.expireDateRemote && + sendMail == other.sendMail && + upload == other.upload && + uploadFilesDrop == other.uploadFilesDrop; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, password.hashCode); + _$hash = $jc(_$hash, expireDate.hashCode); + _$hash = $jc(_$hash, multipleLinks.hashCode); + _$hash = $jc(_$hash, expireDateInternal.hashCode); + _$hash = $jc(_$hash, expireDateRemote.hashCode); + _$hash = $jc(_$hash, sendMail.hashCode); + _$hash = $jc(_$hash, upload.hashCode); + _$hash = $jc(_$hash, uploadFilesDrop.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public') + ..add('enabled', enabled) + ..add('password', password) + ..add('expireDate', expireDate) + ..add('multipleLinks', multipleLinks) + ..add('expireDateInternal', expireDateInternal) + ..add('expireDateRemote', expireDateRemote) + ..add('sendMail', sendMail) + ..add('upload', upload) + ..add('uploadFilesDrop', uploadFilesDrop)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder? _password; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder get password => + _$this._password ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder(); + set password(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordBuilder? password) => + _$this._password = password; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder? _expireDate; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder get expireDate => + _$this._expireDate ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder(); + set expireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateBuilder? expireDate) => + _$this._expireDate = expireDate; + + bool? _multipleLinks; + bool? get multipleLinks => _$this._multipleLinks; + set multipleLinks(bool? multipleLinks) => _$this._multipleLinks = multipleLinks; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder? + _expireDateInternal; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder + get expireDateInternal => _$this._expireDateInternal ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder(); + set expireDateInternal( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalBuilder? + expireDateInternal) => + _$this._expireDateInternal = expireDateInternal; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder? _expireDateRemote; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder + get expireDateRemote => _$this._expireDateRemote ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder(); + set expireDateRemote( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteBuilder? + expireDateRemote) => + _$this._expireDateRemote = expireDateRemote; + + bool? _sendMail; + bool? get sendMail => _$this._sendMail; + set sendMail(bool? sendMail) => _$this._sendMail = sendMail; + + bool? _upload; + bool? get upload => _$this._upload; + set upload(bool? upload) => _$this._upload = upload; + + bool? _uploadFilesDrop; + bool? get uploadFilesDrop => _$this._uploadFilesDrop; + set uploadFilesDrop(bool? uploadFilesDrop) => _$this._uploadFilesDrop = uploadFilesDrop; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _password = $v.password?.toBuilder(); + _expireDate = $v.expireDate?.toBuilder(); + _multipleLinks = $v.multipleLinks; + _expireDateInternal = $v.expireDateInternal?.toBuilder(); + _expireDateRemote = $v.expireDateRemote?.toBuilder(); + _sendMail = $v.sendMail; + _upload = $v.upload; + _uploadFilesDrop = $v.uploadFilesDrop; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public._( + enabled: enabled, + password: _password?.build(), + expireDate: _expireDate?.build(), + multipleLinks: multipleLinks, + expireDateInternal: _expireDateInternal?.build(), + expireDateRemote: _expireDateRemote?.build(), + sendMail: sendMail, + upload: upload, + uploadFilesDrop: uploadFilesDrop); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'password'; + _password?.build(); + _$failedField = 'expireDate'; + _expireDate?.build(); + + _$failedField = 'expireDateInternal'; + _expireDateInternal?.build(); + _$failedField = 'expireDateRemote'; + _expireDateRemote?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate._({this.enabled}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate _build() { + final _$result = + _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate._(enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User { + @override + final bool? sendMail; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? expireDate; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User._({this.sendMail, this.expireDate}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User && + sendMail == other.sendMail && + expireDate == other.expireDate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, sendMail.hashCode); + _$hash = $jc(_$hash, expireDate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User') + ..add('sendMail', sendMail) + ..add('expireDate', expireDate)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? _$v; + + bool? _sendMail; + bool? get sendMail => _$this._sendMail; + set sendMail(bool? sendMail) => _$this._sendMail = sendMail; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder? _expireDate; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder get expireDate => + _$this._expireDate ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder(); + set expireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateBuilder? expireDate) => + _$this._expireDate = expireDate; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder get _$this { + final $v = _$v; + if ($v != null) { + _sendMail = $v.sendMail; + _expireDate = $v.expireDate?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User._( + sendMail: sendMail, expireDate: _expireDate?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'expireDate'; + _expireDate?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate._({this.enabled}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate._(enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group { + @override + final bool? enabled; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? expireDate; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group._({this.enabled, this.expireDate}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group && + enabled == other.enabled && + expireDate == other.expireDate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, expireDate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group') + ..add('enabled', enabled) + ..add('expireDate', expireDate)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder? _expireDate; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder get expireDate => + _$this._expireDate ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder(); + set expireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateBuilder? expireDate) => + _$this._expireDate = expireDate; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _expireDate = $v.expireDate?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group._( + enabled: enabled, expireDate: _expireDate?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'expireDate'; + _expireDate?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate._({this.enabled}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate._(enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported._({this.enabled}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported rebuild( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder + toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported; + } + + @override + void update( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported._( + enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { + @override + final bool? outgoing; + @override + final bool? incoming; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? expireDate; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? + expireDateSupported; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation._( + {this.outgoing, this.incoming, this.expireDate, this.expireDateSupported}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation && + outgoing == other.outgoing && + incoming == other.incoming && + expireDate == other.expireDate && + expireDateSupported == other.expireDateSupported; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, outgoing.hashCode); + _$hash = $jc(_$hash, incoming.hashCode); + _$hash = $jc(_$hash, expireDate.hashCode); + _$hash = $jc(_$hash, expireDateSupported.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation') + ..add('outgoing', outgoing) + ..add('incoming', incoming) + ..add('expireDate', expireDate) + ..add('expireDateSupported', expireDateSupported)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? _$v; + + bool? _outgoing; + bool? get outgoing => _$this._outgoing; + set outgoing(bool? outgoing) => _$this._outgoing = outgoing; + + bool? _incoming; + bool? get incoming => _$this._incoming; + set incoming(bool? incoming) => _$this._incoming = incoming; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder? _expireDate; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder get expireDate => + _$this._expireDate ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder(); + set expireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateBuilder? + expireDate) => + _$this._expireDate = expireDate; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder? + _expireDateSupported; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder + get expireDateSupported => _$this._expireDateSupported ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder(); + set expireDateSupported( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedBuilder? + expireDateSupported) => + _$this._expireDateSupported = expireDateSupported; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder get _$this { + final $v = _$v; + if ($v != null) { + _outgoing = $v.outgoing; + _incoming = $v.incoming; + _expireDate = $v.expireDate?.toBuilder(); + _expireDateSupported = $v.expireDateSupported?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation._( + outgoing: outgoing, + incoming: incoming, + expireDate: _expireDate?.build(), + expireDateSupported: _expireDateSupported?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'expireDate'; + _expireDate?.build(); + _$failedField = 'expireDateSupported'; + _expireDateSupported?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee { + @override + final bool? queryLookupDefault; + @override + final bool? alwaysShowUnique; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee._( + {this.queryLookupDefault, this.alwaysShowUnique}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee && + queryLookupDefault == other.queryLookupDefault && + alwaysShowUnique == other.alwaysShowUnique; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, queryLookupDefault.hashCode); + _$hash = $jc(_$hash, alwaysShowUnique.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee') + ..add('queryLookupDefault', queryLookupDefault) + ..add('alwaysShowUnique', alwaysShowUnique)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? _$v; + + bool? _queryLookupDefault; + bool? get queryLookupDefault => _$this._queryLookupDefault; + set queryLookupDefault(bool? queryLookupDefault) => _$this._queryLookupDefault = queryLookupDefault; + + bool? _alwaysShowUnique; + bool? get alwaysShowUnique => _$this._alwaysShowUnique; + set alwaysShowUnique(bool? alwaysShowUnique) => _$this._alwaysShowUnique = alwaysShowUnique; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder get _$this { + final $v = _$v; + if ($v != null) { + _queryLookupDefault = $v.queryLookupDefault; + _alwaysShowUnique = $v.alwaysShowUnique; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee._( + queryLookupDefault: queryLookupDefault, alwaysShowUnique: alwaysShowUnique); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop._({this.enabled}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop rebuild( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop && + enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop; + } + + @override + void update( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop._( + enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password { + @override + final bool? enabled; + @override + final bool? enforced; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password._( + {this.enabled, this.enforced}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password && + enabled == other.enabled && + enforced == other.enforced; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, enforced.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password') + ..add('enabled', enabled) + ..add('enforced', enforced)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + bool? _enforced; + bool? get enforced => _$this._enforced; + set enforced(bool? enforced) => _$this._enforced = enforced; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _enforced = $v.enforced; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password._( + enabled: enabled, enforced: enforced); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate { + @override + final bool? enabled; + @override + final bool? enforced; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( + [void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder() + ..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate._( + {this.enabled, this.enforced}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate rebuild( + void Function( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate && + enabled == other.enabled && + enforced == other.enforced; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, enforced.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate') + ..add('enabled', enabled) + ..add('enforced', enforced)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + bool? _enforced; + bool? get enforced => _$this._enforced; + set enforced(bool? enforced) => _$this._enforced = enforced; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _enforced = $v.enforced; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate._( + enabled: enabled, enforced: enforced); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { + @override + final bool? enabled; + @override + final bool? sendPasswordByMail; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? uploadFilesDrop; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? password; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? expireDate; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder)? + updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder()..update(updates)) + ._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail._( + {this.enabled, this.sendPasswordByMail, this.uploadFilesDrop, this.password, this.expireDate}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail && + enabled == other.enabled && + sendPasswordByMail == other.sendPasswordByMail && + uploadFilesDrop == other.uploadFilesDrop && + password == other.password && + expireDate == other.expireDate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, sendPasswordByMail.hashCode); + _$hash = $jc(_$hash, uploadFilesDrop.hashCode); + _$hash = $jc(_$hash, password.hashCode); + _$hash = $jc(_$hash, expireDate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail') + ..add('enabled', enabled) + ..add('sendPasswordByMail', sendPasswordByMail) + ..add('uploadFilesDrop', uploadFilesDrop) + ..add('password', password) + ..add('expireDate', expireDate)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + bool? _sendPasswordByMail; + bool? get sendPasswordByMail => _$this._sendPasswordByMail; + set sendPasswordByMail(bool? sendPasswordByMail) => _$this._sendPasswordByMail = sendPasswordByMail; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder? + _uploadFilesDrop; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder + get uploadFilesDrop => _$this._uploadFilesDrop ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder(); + set uploadFilesDrop( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder? + uploadFilesDrop) => + _$this._uploadFilesDrop = uploadFilesDrop; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder? _password; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder get password => + _$this._password ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder(); + set password( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordBuilder? password) => + _$this._password = password; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder? _expireDate; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder get expireDate => + _$this._expireDate ??= + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder(); + set expireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder? + expireDate) => + _$this._expireDate = expireDate; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _sendPasswordByMail = $v.sendPasswordByMail; + _uploadFilesDrop = $v.uploadFilesDrop?.toBuilder(); + _password = $v.password?.toBuilder(); + _expireDate = $v.expireDate?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail; + } + + @override + void update( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail._( + enabled: enabled, + sendPasswordByMail: sendPasswordByMail, + uploadFilesDrop: _uploadFilesDrop?.build(), + password: _password?.build(), + expireDate: _expireDate?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'uploadFilesDrop'; + _uploadFilesDrop?.build(); + _$failedField = 'password'; + _password?.build(); + _$failedField = 'expireDate'; + _expireDate?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing { + @override + final bool? apiEnabled; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? public; + @override + final bool? resharing; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? user; + @override + final bool? groupSharing; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? group; + @override + final int? defaultPermissions; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? federation; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? sharee; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? sharebymail; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing._( + {this.apiEnabled, + this.public, + this.resharing, + this.user, + this.groupSharing, + this.group, + this.defaultPermissions, + this.federation, + this.sharee, + this.sharebymail}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing && + apiEnabled == other.apiEnabled && + public == other.public && + resharing == other.resharing && + user == other.user && + groupSharing == other.groupSharing && + group == other.group && + defaultPermissions == other.defaultPermissions && + federation == other.federation && + sharee == other.sharee && + sharebymail == other.sharebymail; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, apiEnabled.hashCode); + _$hash = $jc(_$hash, public.hashCode); + _$hash = $jc(_$hash, resharing.hashCode); + _$hash = $jc(_$hash, user.hashCode); + _$hash = $jc(_$hash, groupSharing.hashCode); + _$hash = $jc(_$hash, group.hashCode); + _$hash = $jc(_$hash, defaultPermissions.hashCode); + _$hash = $jc(_$hash, federation.hashCode); + _$hash = $jc(_$hash, sharee.hashCode); + _$hash = $jc(_$hash, sharebymail.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing') + ..add('apiEnabled', apiEnabled) + ..add('public', public) + ..add('resharing', resharing) + ..add('user', user) + ..add('groupSharing', groupSharing) + ..add('group', group) + ..add('defaultPermissions', defaultPermissions) + ..add('federation', federation) + ..add('sharee', sharee) + ..add('sharebymail', sharebymail)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? _$v; + + bool? _apiEnabled; + bool? get apiEnabled => _$this._apiEnabled; + set apiEnabled(bool? apiEnabled) => _$this._apiEnabled = apiEnabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder? _public; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder get public => + _$this._public ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder(); + set public(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicBuilder? public) => + _$this._public = public; + + bool? _resharing; + bool? get resharing => _$this._resharing; + set resharing(bool? resharing) => _$this._resharing = resharing; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder? _user; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder get user => + _$this._user ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder(); + set user(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserBuilder? user) => _$this._user = user; + + bool? _groupSharing; + bool? get groupSharing => _$this._groupSharing; + set groupSharing(bool? groupSharing) => _$this._groupSharing = groupSharing; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder? _group; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder get group => + _$this._group ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder(); + set group(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupBuilder? group) => + _$this._group = group; + + int? _defaultPermissions; + int? get defaultPermissions => _$this._defaultPermissions; + set defaultPermissions(int? defaultPermissions) => _$this._defaultPermissions = defaultPermissions; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder? _federation; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder get federation => + _$this._federation ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder(); + set federation(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationBuilder? federation) => + _$this._federation = federation; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder? _sharee; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder get sharee => + _$this._sharee ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder(); + set sharee(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeBuilder? sharee) => + _$this._sharee = sharee; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder? _sharebymail; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder get sharebymail => + _$this._sharebymail ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder(); + set sharebymail(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailBuilder? sharebymail) => + _$this._sharebymail = sharebymail; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder get _$this { + final $v = _$v; + if ($v != null) { + _apiEnabled = $v.apiEnabled; + _public = $v.public?.toBuilder(); + _resharing = $v.resharing; + _user = $v.user?.toBuilder(); + _groupSharing = $v.groupSharing; + _group = $v.group?.toBuilder(); + _defaultPermissions = $v.defaultPermissions; + _federation = $v.federation?.toBuilder(); + _sharee = $v.sharee?.toBuilder(); + _sharebymail = $v.sharebymail?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing._( + apiEnabled: apiEnabled, + public: _public?.build(), + resharing: resharing, + user: _user?.build(), + groupSharing: groupSharing, + group: _group?.build(), + defaultPermissions: defaultPermissions, + federation: _federation?.build(), + sharee: _sharee?.build(), + sharebymail: _sharebymail?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'public'; + _public?.build(); + + _$failedField = 'user'; + _user?.build(); + + _$failedField = 'group'; + _group?.build(); + + _$failedField = 'federation'; + _federation?.build(); + _$failedField = 'sharee'; + _sharee?.build(); + _$failedField = 'sharebymail'; + _sharebymail?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes { + @override + final BuiltList? apiVersion; + @override + final String? version; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes._({this.apiVersion, this.version}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes && + apiVersion == other.apiVersion && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, apiVersion.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes') + ..add('apiVersion', apiVersion) + ..add('version', version)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? _$v; + + ListBuilder? _apiVersion; + ListBuilder get apiVersion => _$this._apiVersion ??= ListBuilder(); + set apiVersion(ListBuilder? apiVersion) => _$this._apiVersion = apiVersion; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _apiVersion = $v.apiVersion?.toBuilder(); + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes._( + apiVersion: _apiVersion?.build(), version: version); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'apiVersion'; + _apiVersion?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications { + @override + final BuiltList? ocsEndpoints; + @override + final BuiltList? push; + @override + final BuiltList? adminNotifications; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications._( + {this.ocsEndpoints, this.push, this.adminNotifications}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications && + ocsEndpoints == other.ocsEndpoints && + push == other.push && + adminNotifications == other.adminNotifications; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocsEndpoints.hashCode); + _$hash = $jc(_$hash, push.hashCode); + _$hash = $jc(_$hash, adminNotifications.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications') + ..add('ocsEndpoints', ocsEndpoints) + ..add('push', push) + ..add('adminNotifications', adminNotifications)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? _$v; + + ListBuilder? _ocsEndpoints; + ListBuilder get ocsEndpoints => _$this._ocsEndpoints ??= ListBuilder(); + set ocsEndpoints(ListBuilder? ocsEndpoints) => _$this._ocsEndpoints = ocsEndpoints; + + ListBuilder? _push; + ListBuilder get push => _$this._push ??= ListBuilder(); + set push(ListBuilder? push) => _$this._push = push; + + ListBuilder? _adminNotifications; + ListBuilder get adminNotifications => _$this._adminNotifications ??= ListBuilder(); + set adminNotifications(ListBuilder? adminNotifications) => _$this._adminNotifications = adminNotifications; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocsEndpoints = $v.ocsEndpoints?.toBuilder(); + _push = $v.push?.toBuilder(); + _adminNotifications = $v.adminNotifications?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications._( + ocsEndpoints: _ocsEndpoints?.build(), + push: _push?.build(), + adminNotifications: _adminNotifications?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocsEndpoints'; + _ocsEndpoints?.build(); + _$failedField = 'push'; + _push?.build(); + _$failedField = 'adminNotifications'; + _adminNotifications?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api { + @override + final String? generate; + @override + final String? validate; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api._({this.generate, this.validate}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api && + generate == other.generate && + validate == other.validate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, generate.hashCode); + _$hash = $jc(_$hash, validate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api') + ..add('generate', generate) + ..add('validate', validate)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? _$v; + + String? _generate; + String? get generate => _$this._generate; + set generate(String? generate) => _$this._generate = generate; + + String? _validate; + String? get validate => _$this._validate; + set validate(String? validate) => _$this._validate = validate; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder get _$this { + final $v = _$v; + if ($v != null) { + _generate = $v.generate; + _validate = $v.validate; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api._( + generate: generate, validate: validate); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { + @override + final int? minLength; + @override + final bool? enforceNonCommonPassword; + @override + final bool? enforceNumericCharacters; + @override + final bool? enforceSpecialCharacters; + @override + final bool? enforceUpperLowerCase; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? api; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy._( + {this.minLength, + this.enforceNonCommonPassword, + this.enforceNumericCharacters, + this.enforceSpecialCharacters, + this.enforceUpperLowerCase, + this.api}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy && + minLength == other.minLength && + enforceNonCommonPassword == other.enforceNonCommonPassword && + enforceNumericCharacters == other.enforceNumericCharacters && + enforceSpecialCharacters == other.enforceSpecialCharacters && + enforceUpperLowerCase == other.enforceUpperLowerCase && + api == other.api; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, minLength.hashCode); + _$hash = $jc(_$hash, enforceNonCommonPassword.hashCode); + _$hash = $jc(_$hash, enforceNumericCharacters.hashCode); + _$hash = $jc(_$hash, enforceSpecialCharacters.hashCode); + _$hash = $jc(_$hash, enforceUpperLowerCase.hashCode); + _$hash = $jc(_$hash, api.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy') + ..add('minLength', minLength) + ..add('enforceNonCommonPassword', enforceNonCommonPassword) + ..add('enforceNumericCharacters', enforceNumericCharacters) + ..add('enforceSpecialCharacters', enforceSpecialCharacters) + ..add('enforceUpperLowerCase', enforceUpperLowerCase) + ..add('api', api)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? _$v; + + int? _minLength; + int? get minLength => _$this._minLength; + set minLength(int? minLength) => _$this._minLength = minLength; + + bool? _enforceNonCommonPassword; + bool? get enforceNonCommonPassword => _$this._enforceNonCommonPassword; + set enforceNonCommonPassword(bool? enforceNonCommonPassword) => + _$this._enforceNonCommonPassword = enforceNonCommonPassword; + + bool? _enforceNumericCharacters; + bool? get enforceNumericCharacters => _$this._enforceNumericCharacters; + set enforceNumericCharacters(bool? enforceNumericCharacters) => + _$this._enforceNumericCharacters = enforceNumericCharacters; + + bool? _enforceSpecialCharacters; + bool? get enforceSpecialCharacters => _$this._enforceSpecialCharacters; + set enforceSpecialCharacters(bool? enforceSpecialCharacters) => + _$this._enforceSpecialCharacters = enforceSpecialCharacters; + + bool? _enforceUpperLowerCase; + bool? get enforceUpperLowerCase => _$this._enforceUpperLowerCase; + set enforceUpperLowerCase(bool? enforceUpperLowerCase) => _$this._enforceUpperLowerCase = enforceUpperLowerCase; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder? _api; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder get api => + _$this._api ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder(); + set api(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiBuilder? api) => _$this._api = api; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder get _$this { + final $v = _$v; + if ($v != null) { + _minLength = $v.minLength; + _enforceNonCommonPassword = $v.enforceNonCommonPassword; + _enforceNumericCharacters = $v.enforceNumericCharacters; + _enforceSpecialCharacters = $v.enforceSpecialCharacters; + _enforceUpperLowerCase = $v.enforceUpperLowerCase; + _api = $v.api?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy._( + minLength: minLength, + enforceNonCommonPassword: enforceNonCommonPassword, + enforceNumericCharacters: enforceNumericCharacters, + enforceSpecialCharacters: enforceSpecialCharacters, + enforceUpperLowerCase: enforceUpperLowerCase, + api: _api?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'api'; + _api?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { + @override + final String? version; + @override + final int? accountPropertyScopesVersion; + @override + final bool? accountPropertyScopesFederatedEnabled; + @override + final bool? accountPropertyScopesPublishedEnabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi._( + {this.version, + this.accountPropertyScopesVersion, + this.accountPropertyScopesFederatedEnabled, + this.accountPropertyScopesPublishedEnabled}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi && + version == other.version && + accountPropertyScopesVersion == other.accountPropertyScopesVersion && + accountPropertyScopesFederatedEnabled == other.accountPropertyScopesFederatedEnabled && + accountPropertyScopesPublishedEnabled == other.accountPropertyScopesPublishedEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jc(_$hash, accountPropertyScopesVersion.hashCode); + _$hash = $jc(_$hash, accountPropertyScopesFederatedEnabled.hashCode); + _$hash = $jc(_$hash, accountPropertyScopesPublishedEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi') + ..add('version', version) + ..add('accountPropertyScopesVersion', accountPropertyScopesVersion) + ..add('accountPropertyScopesFederatedEnabled', accountPropertyScopesFederatedEnabled) + ..add('accountPropertyScopesPublishedEnabled', accountPropertyScopesPublishedEnabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? _$v; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + int? _accountPropertyScopesVersion; + int? get accountPropertyScopesVersion => _$this._accountPropertyScopesVersion; + set accountPropertyScopesVersion(int? accountPropertyScopesVersion) => + _$this._accountPropertyScopesVersion = accountPropertyScopesVersion; + + bool? _accountPropertyScopesFederatedEnabled; + bool? get accountPropertyScopesFederatedEnabled => _$this._accountPropertyScopesFederatedEnabled; + set accountPropertyScopesFederatedEnabled(bool? accountPropertyScopesFederatedEnabled) => + _$this._accountPropertyScopesFederatedEnabled = accountPropertyScopesFederatedEnabled; + + bool? _accountPropertyScopesPublishedEnabled; + bool? get accountPropertyScopesPublishedEnabled => _$this._accountPropertyScopesPublishedEnabled; + set accountPropertyScopesPublishedEnabled(bool? accountPropertyScopesPublishedEnabled) => + _$this._accountPropertyScopesPublishedEnabled = accountPropertyScopesPublishedEnabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder get _$this { + final $v = _$v; + if ($v != null) { + _version = $v.version; + _accountPropertyScopesVersion = $v.accountPropertyScopesVersion; + _accountPropertyScopesFederatedEnabled = $v.accountPropertyScopesFederatedEnabled; + _accountPropertyScopesPublishedEnabled = $v.accountPropertyScopesPublishedEnabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi._( + version: version, + accountPropertyScopesVersion: accountPropertyScopesVersion, + accountPropertyScopesFederatedEnabled: accountPropertyScopesFederatedEnabled, + accountPropertyScopesPublishedEnabled: accountPropertyScopesPublishedEnabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming { + @override + final String? name; + @override + final String? url; + @override + final String? slogan; + @override + final String? color; + @override + final String? colorText; + @override + final String? colorElement; + @override + final String? colorElementBright; + @override + final String? colorElementDark; + @override + final String? logo; + @override + final String? background; + @override + final bool? backgroundPlain; + @override + final bool? backgroundDefault; + @override + final String? logoheader; + @override + final String? favicon; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming._( + {this.name, + this.url, + this.slogan, + this.color, + this.colorText, + this.colorElement, + this.colorElementBright, + this.colorElementDark, + this.logo, + this.background, + this.backgroundPlain, + this.backgroundDefault, + this.logoheader, + this.favicon}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming && + name == other.name && + url == other.url && + slogan == other.slogan && + color == other.color && + colorText == other.colorText && + colorElement == other.colorElement && + colorElementBright == other.colorElementBright && + colorElementDark == other.colorElementDark && + logo == other.logo && + background == other.background && + backgroundPlain == other.backgroundPlain && + backgroundDefault == other.backgroundDefault && + logoheader == other.logoheader && + favicon == other.favicon; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, slogan.hashCode); + _$hash = $jc(_$hash, color.hashCode); + _$hash = $jc(_$hash, colorText.hashCode); + _$hash = $jc(_$hash, colorElement.hashCode); + _$hash = $jc(_$hash, colorElementBright.hashCode); + _$hash = $jc(_$hash, colorElementDark.hashCode); + _$hash = $jc(_$hash, logo.hashCode); + _$hash = $jc(_$hash, background.hashCode); + _$hash = $jc(_$hash, backgroundPlain.hashCode); + _$hash = $jc(_$hash, backgroundDefault.hashCode); + _$hash = $jc(_$hash, logoheader.hashCode); + _$hash = $jc(_$hash, favicon.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming') + ..add('name', name) + ..add('url', url) + ..add('slogan', slogan) + ..add('color', color) + ..add('colorText', colorText) + ..add('colorElement', colorElement) + ..add('colorElementBright', colorElementBright) + ..add('colorElementDark', colorElementDark) + ..add('logo', logo) + ..add('background', background) + ..add('backgroundPlain', backgroundPlain) + ..add('backgroundDefault', backgroundDefault) + ..add('logoheader', logoheader) + ..add('favicon', favicon)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? _$v; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _slogan; + String? get slogan => _$this._slogan; + set slogan(String? slogan) => _$this._slogan = slogan; + + String? _color; + String? get color => _$this._color; + set color(String? color) => _$this._color = color; + + String? _colorText; + String? get colorText => _$this._colorText; + set colorText(String? colorText) => _$this._colorText = colorText; + + String? _colorElement; + String? get colorElement => _$this._colorElement; + set colorElement(String? colorElement) => _$this._colorElement = colorElement; + + String? _colorElementBright; + String? get colorElementBright => _$this._colorElementBright; + set colorElementBright(String? colorElementBright) => _$this._colorElementBright = colorElementBright; + + String? _colorElementDark; + String? get colorElementDark => _$this._colorElementDark; + set colorElementDark(String? colorElementDark) => _$this._colorElementDark = colorElementDark; + + String? _logo; + String? get logo => _$this._logo; + set logo(String? logo) => _$this._logo = logo; + + String? _background; + String? get background => _$this._background; + set background(String? background) => _$this._background = background; + + bool? _backgroundPlain; + bool? get backgroundPlain => _$this._backgroundPlain; + set backgroundPlain(bool? backgroundPlain) => _$this._backgroundPlain = backgroundPlain; + + bool? _backgroundDefault; + bool? get backgroundDefault => _$this._backgroundDefault; + set backgroundDefault(bool? backgroundDefault) => _$this._backgroundDefault = backgroundDefault; + + String? _logoheader; + String? get logoheader => _$this._logoheader; + set logoheader(String? logoheader) => _$this._logoheader = logoheader; + + String? _favicon; + String? get favicon => _$this._favicon; + set favicon(String? favicon) => _$this._favicon = favicon; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder get _$this { + final $v = _$v; + if ($v != null) { + _name = $v.name; + _url = $v.url; + _slogan = $v.slogan; + _color = $v.color; + _colorText = $v.colorText; + _colorElement = $v.colorElement; + _colorElementBright = $v.colorElementBright; + _colorElementDark = $v.colorElementDark; + _logo = $v.logo; + _background = $v.background; + _backgroundPlain = $v.backgroundPlain; + _backgroundDefault = $v.backgroundDefault; + _logoheader = $v.logoheader; + _favicon = $v.favicon; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming._( + name: name, + url: url, + slogan: slogan, + color: color, + colorText: colorText, + colorElement: colorElement, + colorElementBright: colorElementBright, + colorElementDark: colorElementDark, + logo: logo, + background: background, + backgroundPlain: backgroundPlain, + backgroundDefault: backgroundDefault, + logoheader: logoheader, + favicon: favicon); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { + @override + final bool? enabled; + @override + final bool? supportsEmoji; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._({this.enabled, this.supportsEmoji}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus && + enabled == other.enabled && + supportsEmoji == other.supportsEmoji; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, supportsEmoji.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus') + ..add('enabled', enabled) + ..add('supportsEmoji', supportsEmoji)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + bool? _supportsEmoji; + bool? get supportsEmoji => _$this._supportsEmoji; + set supportsEmoji(bool? supportsEmoji) => _$this._supportsEmoji = supportsEmoji; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _supportsEmoji = $v.supportsEmoji; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus _build() { + final _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._( + enabled: enabled, supportsEmoji: supportsEmoji); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus { + @override + final bool? enabled; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus._({this.enabled}) : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus && enabled == other.enabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus') + ..add('enabled', enabled)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus _build() { + final _$result = _$v ?? _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus._(enabled: enabled); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities + extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities { + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? core; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? bruteforce; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? metadataAvailable; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? files; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? activity; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? circles; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? ocm; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? dav; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? filesSharing; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? notes; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? notifications; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? passwordPolicy; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? provisioningApi; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? theming; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? userStatus; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? weatherStatus; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities( + [void Function(NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities._( + {this.core, + this.bruteforce, + this.metadataAvailable, + this.files, + this.activity, + this.circles, + this.ocm, + this.dav, + this.filesSharing, + this.notes, + this.notifications, + this.passwordPolicy, + this.provisioningApi, + this.theming, + this.userStatus, + this.weatherStatus}) + : super._(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities && + core == other.core && + bruteforce == other.bruteforce && + metadataAvailable == other.metadataAvailable && + files == other.files && + activity == other.activity && + circles == other.circles && + ocm == other.ocm && + dav == other.dav && + filesSharing == other.filesSharing && + notes == other.notes && + notifications == other.notifications && + passwordPolicy == other.passwordPolicy && + provisioningApi == other.provisioningApi && + theming == other.theming && + userStatus == other.userStatus && + weatherStatus == other.weatherStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, core.hashCode); + _$hash = $jc(_$hash, bruteforce.hashCode); + _$hash = $jc(_$hash, metadataAvailable.hashCode); + _$hash = $jc(_$hash, files.hashCode); + _$hash = $jc(_$hash, activity.hashCode); + _$hash = $jc(_$hash, circles.hashCode); + _$hash = $jc(_$hash, ocm.hashCode); + _$hash = $jc(_$hash, dav.hashCode); + _$hash = $jc(_$hash, filesSharing.hashCode); + _$hash = $jc(_$hash, notes.hashCode); + _$hash = $jc(_$hash, notifications.hashCode); + _$hash = $jc(_$hash, passwordPolicy.hashCode); + _$hash = $jc(_$hash, provisioningApi.hashCode); + _$hash = $jc(_$hash, theming.hashCode); + _$hash = $jc(_$hash, userStatus.hashCode); + _$hash = $jc(_$hash, weatherStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities') + ..add('core', core) + ..add('bruteforce', bruteforce) + ..add('metadataAvailable', metadataAvailable) + ..add('files', files) + ..add('activity', activity) + ..add('circles', circles) + ..add('ocm', ocm) + ..add('dav', dav) + ..add('filesSharing', filesSharing) + ..add('notes', notes) + ..add('notifications', notifications) + ..add('passwordPolicy', passwordPolicy) + ..add('provisioningApi', provisioningApi) + ..add('theming', theming) + ..add('userStatus', userStatus) + ..add('weatherStatus', weatherStatus)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder + implements + Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities? _$v; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder? _core; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder get core => + _$this._core ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder(); + set core(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreBuilder? core) => _$this._core = core; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder? _bruteforce; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder get bruteforce => + _$this._bruteforce ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder(); + set bruteforce(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceBuilder? bruteforce) => + _$this._bruteforce = bruteforce; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder? _metadataAvailable; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder get metadataAvailable => + _$this._metadataAvailable ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder(); + set metadataAvailable( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableBuilder? metadataAvailable) => + _$this._metadataAvailable = metadataAvailable; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder? _files; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder get files => + _$this._files ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder(); + set files(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesBuilder? files) => _$this._files = files; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder? _activity; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder get activity => + _$this._activity ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder(); + set activity(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityBuilder? activity) => + _$this._activity = activity; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder? _circles; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder get circles => + _$this._circles ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder(); + set circles(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesBuilder? circles) => + _$this._circles = circles; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder? _ocm; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder get ocm => + _$this._ocm ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder(); + set ocm(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmBuilder? ocm) => _$this._ocm = ocm; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder? _dav; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder get dav => + _$this._dav ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder(); + set dav(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavBuilder? dav) => _$this._dav = dav; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder? _filesSharing; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder get filesSharing => + _$this._filesSharing ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder(); + set filesSharing(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingBuilder? filesSharing) => + _$this._filesSharing = filesSharing; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder? _notes; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder get notes => + _$this._notes ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder(); + set notes(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesBuilder? notes) => _$this._notes = notes; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder? _notifications; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder get notifications => + _$this._notifications ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder(); + set notifications(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsBuilder? notifications) => + _$this._notifications = notifications; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder? _passwordPolicy; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder get passwordPolicy => + _$this._passwordPolicy ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder(); + set passwordPolicy(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyBuilder? passwordPolicy) => + _$this._passwordPolicy = passwordPolicy; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder? _provisioningApi; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder get provisioningApi => + _$this._provisioningApi ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder(); + set provisioningApi(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiBuilder? provisioningApi) => + _$this._provisioningApi = provisioningApi; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder? _theming; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder get theming => + _$this._theming ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder(); + set theming(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder? theming) => + _$this._theming = theming; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder? _userStatus; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder get userStatus => + _$this._userStatus ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder(); + set userStatus(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder? userStatus) => + _$this._userStatus = userStatus; + + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder? _weatherStatus; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder get weatherStatus => + _$this._weatherStatus ??= NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder(); + set weatherStatus(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusBuilder? weatherStatus) => + _$this._weatherStatus = weatherStatus; + + NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder(); + + NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _core = $v.core?.toBuilder(); + _bruteforce = $v.bruteforce?.toBuilder(); + _metadataAvailable = $v.metadataAvailable?.toBuilder(); + _files = $v.files?.toBuilder(); + _activity = $v.activity?.toBuilder(); + _circles = $v.circles?.toBuilder(); + _ocm = $v.ocm?.toBuilder(); + _dav = $v.dav?.toBuilder(); + _filesSharing = $v.filesSharing?.toBuilder(); + _notes = $v.notes?.toBuilder(); + _notifications = $v.notifications?.toBuilder(); + _passwordPolicy = $v.passwordPolicy?.toBuilder(); + _provisioningApi = $v.provisioningApi?.toBuilder(); + _theming = $v.theming?.toBuilder(); + _userStatus = $v.userStatus?.toBuilder(); + _weatherStatus = $v.weatherStatus?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities._( + core: _core?.build(), + bruteforce: _bruteforce?.build(), + metadataAvailable: _metadataAvailable?.build(), + files: _files?.build(), + activity: _activity?.build(), + circles: _circles?.build(), + ocm: _ocm?.build(), + dav: _dav?.build(), + filesSharing: _filesSharing?.build(), + notes: _notes?.build(), + notifications: _notifications?.build(), + passwordPolicy: _passwordPolicy?.build(), + provisioningApi: _provisioningApi?.build(), + theming: _theming?.build(), + userStatus: _userStatus?.build(), + weatherStatus: _weatherStatus?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'core'; + _core?.build(); + _$failedField = 'bruteforce'; + _bruteforce?.build(); + _$failedField = 'metadataAvailable'; + _metadataAvailable?.build(); + _$failedField = 'files'; + _files?.build(); + _$failedField = 'activity'; + _activity?.build(); + _$failedField = 'circles'; + _circles?.build(); + _$failedField = 'ocm'; + _ocm?.build(); + _$failedField = 'dav'; + _dav?.build(); + _$failedField = 'filesSharing'; + _filesSharing?.build(); + _$failedField = 'notes'; + _notes?.build(); + _$failedField = 'notifications'; + _notifications?.build(); + _$failedField = 'passwordPolicy'; + _passwordPolicy?.build(); + _$failedField = 'provisioningApi'; + _provisioningApi?.build(); + _$failedField = 'theming'; + _theming?.build(); + _$failedField = 'userStatus'; + _userStatus?.build(); + _$failedField = 'weatherStatus'; + _weatherStatus?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs_Data extends NextcloudCoreServerCapabilities_Ocs_Data { + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Version version; + @override + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities capabilities; + + factory _$NextcloudCoreServerCapabilities_Ocs_Data( + [void Function(NextcloudCoreServerCapabilities_Ocs_DataBuilder)? updates]) => + (NextcloudCoreServerCapabilities_Ocs_DataBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data._({required this.version, required this.capabilities}) : super._() { + BuiltValueNullFieldError.checkNotNull(version, r'NextcloudCoreServerCapabilities_Ocs_Data', 'version'); + BuiltValueNullFieldError.checkNotNull(capabilities, r'NextcloudCoreServerCapabilities_Ocs_Data', 'capabilities'); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data rebuild( + void Function(NextcloudCoreServerCapabilities_Ocs_DataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_Ocs_DataBuilder toBuilder() => + NextcloudCoreServerCapabilities_Ocs_DataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs_Data && + version == other.version && + capabilities == other.capabilities; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jc(_$hash, capabilities.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data') + ..add('version', version) + ..add('capabilities', capabilities)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_Ocs_DataBuilder + implements Builder { + _$NextcloudCoreServerCapabilities_Ocs_Data? _$v; + + NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder? _version; + NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder get version => + _$this._version ??= NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder(); + set version(NextcloudCoreServerCapabilities_Ocs_Data_VersionBuilder? version) => _$this._version = version; + + NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder? _capabilities; + NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder get capabilities => + _$this._capabilities ??= NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder(); + set capabilities(NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesBuilder? capabilities) => + _$this._capabilities = capabilities; + + NextcloudCoreServerCapabilities_Ocs_DataBuilder(); + + NextcloudCoreServerCapabilities_Ocs_DataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _version = $v.version.toBuilder(); + _capabilities = $v.capabilities.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs_Data other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs_Data; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_Ocs_DataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs_Data build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs_Data _build() { + _$NextcloudCoreServerCapabilities_Ocs_Data _$result; + try { + _$result = _$v ?? + _$NextcloudCoreServerCapabilities_Ocs_Data._(version: version.build(), capabilities: capabilities.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'version'; + version.build(); + _$failedField = 'capabilities'; + capabilities.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreServerCapabilities_Ocs_Data', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities_Ocs extends NextcloudCoreServerCapabilities_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudCoreServerCapabilities_Ocs_Data data; + + factory _$NextcloudCoreServerCapabilities_Ocs([void Function(NextcloudCoreServerCapabilities_OcsBuilder)? updates]) => + (NextcloudCoreServerCapabilities_OcsBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudCoreServerCapabilities_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudCoreServerCapabilities_Ocs', 'data'); + } + + @override + NextcloudCoreServerCapabilities_Ocs rebuild(void Function(NextcloudCoreServerCapabilities_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilities_OcsBuilder toBuilder() => NextcloudCoreServerCapabilities_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudCoreServerCapabilities_OcsBuilder + implements Builder { + _$NextcloudCoreServerCapabilities_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudCoreServerCapabilities_Ocs_DataBuilder? _data; + NextcloudCoreServerCapabilities_Ocs_DataBuilder get data => + _$this._data ??= NextcloudCoreServerCapabilities_Ocs_DataBuilder(); + set data(NextcloudCoreServerCapabilities_Ocs_DataBuilder? data) => _$this._data = data; + + NextcloudCoreServerCapabilities_OcsBuilder(); + + NextcloudCoreServerCapabilities_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities_Ocs; + } + + @override + void update(void Function(NextcloudCoreServerCapabilities_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities_Ocs build() => _build(); + + _$NextcloudCoreServerCapabilities_Ocs _build() { + _$NextcloudCoreServerCapabilities_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudCoreServerCapabilities_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreServerCapabilities_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreServerCapabilities extends NextcloudCoreServerCapabilities { + @override + final NextcloudCoreServerCapabilities_Ocs ocs; + + factory _$NextcloudCoreServerCapabilities([void Function(NextcloudCoreServerCapabilitiesBuilder)? updates]) => + (NextcloudCoreServerCapabilitiesBuilder()..update(updates))._build(); + + _$NextcloudCoreServerCapabilities._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudCoreServerCapabilities', 'ocs'); + } + + @override + NextcloudCoreServerCapabilities rebuild(void Function(NextcloudCoreServerCapabilitiesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreServerCapabilitiesBuilder toBuilder() => NextcloudCoreServerCapabilitiesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreServerCapabilities && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities')..add('ocs', ocs)).toString(); + } +} + +class NextcloudCoreServerCapabilitiesBuilder + implements Builder { + _$NextcloudCoreServerCapabilities? _$v; + + NextcloudCoreServerCapabilities_OcsBuilder? _ocs; + NextcloudCoreServerCapabilities_OcsBuilder get ocs => _$this._ocs ??= NextcloudCoreServerCapabilities_OcsBuilder(); + set ocs(NextcloudCoreServerCapabilities_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudCoreServerCapabilitiesBuilder(); + + NextcloudCoreServerCapabilitiesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreServerCapabilities other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreServerCapabilities; + } + + @override + void update(void Function(NextcloudCoreServerCapabilitiesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreServerCapabilities build() => _build(); + + _$NextcloudCoreServerCapabilities _build() { + _$NextcloudCoreServerCapabilities _$result; + try { + _$result = _$v ?? _$NextcloudCoreServerCapabilities._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreServerCapabilities', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreNavigationApps_Ocs_Data_Order extends NextcloudCoreNavigationApps_Ocs_Data_Order { + @override + final JsonObject data; + @override + final int? $int; + @override + final String? string; + + factory _$NextcloudCoreNavigationApps_Ocs_Data_Order( + [void Function(NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder)? updates]) => + (NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder()..update(updates))._build(); + + _$NextcloudCoreNavigationApps_Ocs_Data_Order._({required this.data, this.$int, this.string}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudCoreNavigationApps_Ocs_Data_Order', 'data'); + } + + @override + NextcloudCoreNavigationApps_Ocs_Data_Order rebuild( + void Function(NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder toBuilder() => + NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreNavigationApps_Ocs_Data_Order && + data == other.data && + $int == other.$int && + string == other.string; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jc(_$hash, string.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreNavigationApps_Ocs_Data_Order') + ..add('data', data) + ..add('\$int', $int) + ..add('string', string)) + .toString(); + } +} + +class NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder + implements Builder { + _$NextcloudCoreNavigationApps_Ocs_Data_Order? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + int? _$int; + int? get $int => _$this._$int; + set $int(int? $int) => _$this._$int = $int; + + String? _string; + String? get string => _$this._string; + set string(String? string) => _$this._string = string; + + NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder(); + + NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _$int = $v.$int; + _string = $v.string; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreNavigationApps_Ocs_Data_Order other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreNavigationApps_Ocs_Data_Order; + } + + @override + void update(void Function(NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreNavigationApps_Ocs_Data_Order build() => _build(); + + _$NextcloudCoreNavigationApps_Ocs_Data_Order _build() { + final _$result = _$v ?? + _$NextcloudCoreNavigationApps_Ocs_Data_Order._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudCoreNavigationApps_Ocs_Data_Order', 'data'), + $int: $int, + string: string); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreNavigationApps_Ocs_Data extends NextcloudCoreNavigationApps_Ocs_Data { + @override + final String id; + @override + final NextcloudCoreNavigationApps_Ocs_Data_Order order; + @override + final String href; + @override + final String icon; + @override + final String type; + @override + final String name; + @override + final bool active; + @override + final String classes; + @override + final int unread; + + factory _$NextcloudCoreNavigationApps_Ocs_Data( + [void Function(NextcloudCoreNavigationApps_Ocs_DataBuilder)? updates]) => + (NextcloudCoreNavigationApps_Ocs_DataBuilder()..update(updates))._build(); + + _$NextcloudCoreNavigationApps_Ocs_Data._( + {required this.id, + required this.order, + required this.href, + required this.icon, + required this.type, + required this.name, + required this.active, + required this.classes, + required this.unread}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudCoreNavigationApps_Ocs_Data', 'id'); + BuiltValueNullFieldError.checkNotNull(order, r'NextcloudCoreNavigationApps_Ocs_Data', 'order'); + BuiltValueNullFieldError.checkNotNull(href, r'NextcloudCoreNavigationApps_Ocs_Data', 'href'); + BuiltValueNullFieldError.checkNotNull(icon, r'NextcloudCoreNavigationApps_Ocs_Data', 'icon'); + BuiltValueNullFieldError.checkNotNull(type, r'NextcloudCoreNavigationApps_Ocs_Data', 'type'); + BuiltValueNullFieldError.checkNotNull(name, r'NextcloudCoreNavigationApps_Ocs_Data', 'name'); + BuiltValueNullFieldError.checkNotNull(active, r'NextcloudCoreNavigationApps_Ocs_Data', 'active'); + BuiltValueNullFieldError.checkNotNull(classes, r'NextcloudCoreNavigationApps_Ocs_Data', 'classes'); + BuiltValueNullFieldError.checkNotNull(unread, r'NextcloudCoreNavigationApps_Ocs_Data', 'unread'); + } + + @override + NextcloudCoreNavigationApps_Ocs_Data rebuild(void Function(NextcloudCoreNavigationApps_Ocs_DataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreNavigationApps_Ocs_DataBuilder toBuilder() => + NextcloudCoreNavigationApps_Ocs_DataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreNavigationApps_Ocs_Data && + id == other.id && + order == other.order && + href == other.href && + icon == other.icon && + type == other.type && + name == other.name && + active == other.active && + classes == other.classes && + unread == other.unread; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jc(_$hash, href.hashCode); + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, classes.hashCode); + _$hash = $jc(_$hash, unread.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreNavigationApps_Ocs_Data') + ..add('id', id) + ..add('order', order) + ..add('href', href) + ..add('icon', icon) + ..add('type', type) + ..add('name', name) + ..add('active', active) + ..add('classes', classes) + ..add('unread', unread)) + .toString(); + } +} + +class NextcloudCoreNavigationApps_Ocs_DataBuilder + implements Builder { + _$NextcloudCoreNavigationApps_Ocs_Data? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder? _order; + NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder get order => + _$this._order ??= NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder(); + set order(NextcloudCoreNavigationApps_Ocs_Data_OrderBuilder? order) => _$this._order = order; + + String? _href; + String? get href => _$this._href; + set href(String? href) => _$this._href = href; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _active; + bool? get active => _$this._active; + set active(bool? active) => _$this._active = active; + + String? _classes; + String? get classes => _$this._classes; + set classes(String? classes) => _$this._classes = classes; + + int? _unread; + int? get unread => _$this._unread; + set unread(int? unread) => _$this._unread = unread; + + NextcloudCoreNavigationApps_Ocs_DataBuilder(); + + NextcloudCoreNavigationApps_Ocs_DataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _order = $v.order.toBuilder(); + _href = $v.href; + _icon = $v.icon; + _type = $v.type; + _name = $v.name; + _active = $v.active; + _classes = $v.classes; + _unread = $v.unread; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreNavigationApps_Ocs_Data other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreNavigationApps_Ocs_Data; + } + + @override + void update(void Function(NextcloudCoreNavigationApps_Ocs_DataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreNavigationApps_Ocs_Data build() => _build(); + + _$NextcloudCoreNavigationApps_Ocs_Data _build() { + _$NextcloudCoreNavigationApps_Ocs_Data _$result; + try { + _$result = _$v ?? + _$NextcloudCoreNavigationApps_Ocs_Data._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudCoreNavigationApps_Ocs_Data', 'id'), + order: order.build(), + href: BuiltValueNullFieldError.checkNotNull(href, r'NextcloudCoreNavigationApps_Ocs_Data', 'href'), + icon: BuiltValueNullFieldError.checkNotNull(icon, r'NextcloudCoreNavigationApps_Ocs_Data', 'icon'), + type: BuiltValueNullFieldError.checkNotNull(type, r'NextcloudCoreNavigationApps_Ocs_Data', 'type'), + name: BuiltValueNullFieldError.checkNotNull(name, r'NextcloudCoreNavigationApps_Ocs_Data', 'name'), + active: BuiltValueNullFieldError.checkNotNull(active, r'NextcloudCoreNavigationApps_Ocs_Data', 'active'), + classes: + BuiltValueNullFieldError.checkNotNull(classes, r'NextcloudCoreNavigationApps_Ocs_Data', 'classes'), + unread: BuiltValueNullFieldError.checkNotNull(unread, r'NextcloudCoreNavigationApps_Ocs_Data', 'unread')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'order'; + order.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreNavigationApps_Ocs_Data', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreNavigationApps_Ocs extends NextcloudCoreNavigationApps_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final BuiltList data; + + factory _$NextcloudCoreNavigationApps_Ocs([void Function(NextcloudCoreNavigationApps_OcsBuilder)? updates]) => + (NextcloudCoreNavigationApps_OcsBuilder()..update(updates))._build(); + + _$NextcloudCoreNavigationApps_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudCoreNavigationApps_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudCoreNavigationApps_Ocs', 'data'); + } + + @override + NextcloudCoreNavigationApps_Ocs rebuild(void Function(NextcloudCoreNavigationApps_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreNavigationApps_OcsBuilder toBuilder() => NextcloudCoreNavigationApps_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreNavigationApps_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreNavigationApps_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudCoreNavigationApps_OcsBuilder + implements Builder { + _$NextcloudCoreNavigationApps_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + NextcloudCoreNavigationApps_OcsBuilder(); + + NextcloudCoreNavigationApps_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreNavigationApps_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreNavigationApps_Ocs; + } + + @override + void update(void Function(NextcloudCoreNavigationApps_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreNavigationApps_Ocs build() => _build(); + + _$NextcloudCoreNavigationApps_Ocs _build() { + _$NextcloudCoreNavigationApps_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudCoreNavigationApps_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreNavigationApps_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreNavigationApps extends NextcloudCoreNavigationApps { + @override + final NextcloudCoreNavigationApps_Ocs ocs; + + factory _$NextcloudCoreNavigationApps([void Function(NextcloudCoreNavigationAppsBuilder)? updates]) => + (NextcloudCoreNavigationAppsBuilder()..update(updates))._build(); + + _$NextcloudCoreNavigationApps._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudCoreNavigationApps', 'ocs'); + } + + @override + NextcloudCoreNavigationApps rebuild(void Function(NextcloudCoreNavigationAppsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreNavigationAppsBuilder toBuilder() => NextcloudCoreNavigationAppsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreNavigationApps && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreNavigationApps')..add('ocs', ocs)).toString(); + } +} + +class NextcloudCoreNavigationAppsBuilder + implements Builder { + _$NextcloudCoreNavigationApps? _$v; + + NextcloudCoreNavigationApps_OcsBuilder? _ocs; + NextcloudCoreNavigationApps_OcsBuilder get ocs => _$this._ocs ??= NextcloudCoreNavigationApps_OcsBuilder(); + set ocs(NextcloudCoreNavigationApps_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudCoreNavigationAppsBuilder(); + + NextcloudCoreNavigationAppsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreNavigationApps other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreNavigationApps; + } + + @override + void update(void Function(NextcloudCoreNavigationAppsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreNavigationApps build() => _build(); + + _$NextcloudCoreNavigationApps _build() { + _$NextcloudCoreNavigationApps _$result; + try { + _$result = _$v ?? _$NextcloudCoreNavigationApps._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreNavigationApps', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreLoginFlowInit_Poll extends NextcloudCoreLoginFlowInit_Poll { + @override + final String token; + @override + final String endpoint; + + factory _$NextcloudCoreLoginFlowInit_Poll([void Function(NextcloudCoreLoginFlowInit_PollBuilder)? updates]) => + (NextcloudCoreLoginFlowInit_PollBuilder()..update(updates))._build(); + + _$NextcloudCoreLoginFlowInit_Poll._({required this.token, required this.endpoint}) : super._() { + BuiltValueNullFieldError.checkNotNull(token, r'NextcloudCoreLoginFlowInit_Poll', 'token'); + BuiltValueNullFieldError.checkNotNull(endpoint, r'NextcloudCoreLoginFlowInit_Poll', 'endpoint'); + } + + @override + NextcloudCoreLoginFlowInit_Poll rebuild(void Function(NextcloudCoreLoginFlowInit_PollBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreLoginFlowInit_PollBuilder toBuilder() => NextcloudCoreLoginFlowInit_PollBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreLoginFlowInit_Poll && token == other.token && endpoint == other.endpoint; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, token.hashCode); + _$hash = $jc(_$hash, endpoint.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreLoginFlowInit_Poll') + ..add('token', token) + ..add('endpoint', endpoint)) + .toString(); + } +} + +class NextcloudCoreLoginFlowInit_PollBuilder + implements Builder { + _$NextcloudCoreLoginFlowInit_Poll? _$v; + + String? _token; + String? get token => _$this._token; + set token(String? token) => _$this._token = token; + + String? _endpoint; + String? get endpoint => _$this._endpoint; + set endpoint(String? endpoint) => _$this._endpoint = endpoint; + + NextcloudCoreLoginFlowInit_PollBuilder(); + + NextcloudCoreLoginFlowInit_PollBuilder get _$this { + final $v = _$v; + if ($v != null) { + _token = $v.token; + _endpoint = $v.endpoint; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreLoginFlowInit_Poll other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreLoginFlowInit_Poll; + } + + @override + void update(void Function(NextcloudCoreLoginFlowInit_PollBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreLoginFlowInit_Poll build() => _build(); + + _$NextcloudCoreLoginFlowInit_Poll _build() { + final _$result = _$v ?? + _$NextcloudCoreLoginFlowInit_Poll._( + token: BuiltValueNullFieldError.checkNotNull(token, r'NextcloudCoreLoginFlowInit_Poll', 'token'), + endpoint: BuiltValueNullFieldError.checkNotNull(endpoint, r'NextcloudCoreLoginFlowInit_Poll', 'endpoint')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreLoginFlowInit extends NextcloudCoreLoginFlowInit { + @override + final NextcloudCoreLoginFlowInit_Poll poll; + @override + final String login; + + factory _$NextcloudCoreLoginFlowInit([void Function(NextcloudCoreLoginFlowInitBuilder)? updates]) => + (NextcloudCoreLoginFlowInitBuilder()..update(updates))._build(); + + _$NextcloudCoreLoginFlowInit._({required this.poll, required this.login}) : super._() { + BuiltValueNullFieldError.checkNotNull(poll, r'NextcloudCoreLoginFlowInit', 'poll'); + BuiltValueNullFieldError.checkNotNull(login, r'NextcloudCoreLoginFlowInit', 'login'); + } + + @override + NextcloudCoreLoginFlowInit rebuild(void Function(NextcloudCoreLoginFlowInitBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreLoginFlowInitBuilder toBuilder() => NextcloudCoreLoginFlowInitBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreLoginFlowInit && poll == other.poll && login == other.login; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, poll.hashCode); + _$hash = $jc(_$hash, login.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreLoginFlowInit') + ..add('poll', poll) + ..add('login', login)) + .toString(); + } +} + +class NextcloudCoreLoginFlowInitBuilder + implements Builder { + _$NextcloudCoreLoginFlowInit? _$v; + + NextcloudCoreLoginFlowInit_PollBuilder? _poll; + NextcloudCoreLoginFlowInit_PollBuilder get poll => _$this._poll ??= NextcloudCoreLoginFlowInit_PollBuilder(); + set poll(NextcloudCoreLoginFlowInit_PollBuilder? poll) => _$this._poll = poll; + + String? _login; + String? get login => _$this._login; + set login(String? login) => _$this._login = login; + + NextcloudCoreLoginFlowInitBuilder(); + + NextcloudCoreLoginFlowInitBuilder get _$this { + final $v = _$v; + if ($v != null) { + _poll = $v.poll.toBuilder(); + _login = $v.login; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreLoginFlowInit other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreLoginFlowInit; + } + + @override + void update(void Function(NextcloudCoreLoginFlowInitBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreLoginFlowInit build() => _build(); + + _$NextcloudCoreLoginFlowInit _build() { + _$NextcloudCoreLoginFlowInit _$result; + try { + _$result = _$v ?? + _$NextcloudCoreLoginFlowInit._( + poll: poll.build(), + login: BuiltValueNullFieldError.checkNotNull(login, r'NextcloudCoreLoginFlowInit', 'login')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'poll'; + poll.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreLoginFlowInit', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreLoginFlowResult extends NextcloudCoreLoginFlowResult { + @override + final String server; + @override + final String loginName; + @override + final String appPassword; + + factory _$NextcloudCoreLoginFlowResult([void Function(NextcloudCoreLoginFlowResultBuilder)? updates]) => + (NextcloudCoreLoginFlowResultBuilder()..update(updates))._build(); + + _$NextcloudCoreLoginFlowResult._({required this.server, required this.loginName, required this.appPassword}) + : super._() { + BuiltValueNullFieldError.checkNotNull(server, r'NextcloudCoreLoginFlowResult', 'server'); + BuiltValueNullFieldError.checkNotNull(loginName, r'NextcloudCoreLoginFlowResult', 'loginName'); + BuiltValueNullFieldError.checkNotNull(appPassword, r'NextcloudCoreLoginFlowResult', 'appPassword'); + } + + @override + NextcloudCoreLoginFlowResult rebuild(void Function(NextcloudCoreLoginFlowResultBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreLoginFlowResultBuilder toBuilder() => NextcloudCoreLoginFlowResultBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreLoginFlowResult && + server == other.server && + loginName == other.loginName && + appPassword == other.appPassword; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, server.hashCode); + _$hash = $jc(_$hash, loginName.hashCode); + _$hash = $jc(_$hash, appPassword.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreLoginFlowResult') + ..add('server', server) + ..add('loginName', loginName) + ..add('appPassword', appPassword)) + .toString(); + } +} + +class NextcloudCoreLoginFlowResultBuilder + implements Builder { + _$NextcloudCoreLoginFlowResult? _$v; + + String? _server; + String? get server => _$this._server; + set server(String? server) => _$this._server = server; + + String? _loginName; + String? get loginName => _$this._loginName; + set loginName(String? loginName) => _$this._loginName = loginName; + + String? _appPassword; + String? get appPassword => _$this._appPassword; + set appPassword(String? appPassword) => _$this._appPassword = appPassword; + + NextcloudCoreLoginFlowResultBuilder(); + + NextcloudCoreLoginFlowResultBuilder get _$this { + final $v = _$v; + if ($v != null) { + _server = $v.server; + _loginName = $v.loginName; + _appPassword = $v.appPassword; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreLoginFlowResult other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreLoginFlowResult; + } + + @override + void update(void Function(NextcloudCoreLoginFlowResultBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreLoginFlowResult build() => _build(); + + _$NextcloudCoreLoginFlowResult _build() { + final _$result = _$v ?? + _$NextcloudCoreLoginFlowResult._( + server: BuiltValueNullFieldError.checkNotNull(server, r'NextcloudCoreLoginFlowResult', 'server'), + loginName: BuiltValueNullFieldError.checkNotNull(loginName, r'NextcloudCoreLoginFlowResult', 'loginName'), + appPassword: + BuiltValueNullFieldError.checkNotNull(appPassword, r'NextcloudCoreLoginFlowResult', 'appPassword')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreAutocompleteResult_Ocs_Data_Status extends NextcloudCoreAutocompleteResult_Ocs_Data_Status { + @override + final JsonObject data; + @override + final BuiltList? builtListJsonObject; + @override + final String? string; + + factory _$NextcloudCoreAutocompleteResult_Ocs_Data_Status( + [void Function(NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder)? updates]) => + (NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder()..update(updates))._build(); + + _$NextcloudCoreAutocompleteResult_Ocs_Data_Status._({required this.data, this.builtListJsonObject, this.string}) + : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudCoreAutocompleteResult_Ocs_Data_Status', 'data'); + } + + @override + NextcloudCoreAutocompleteResult_Ocs_Data_Status rebuild( + void Function(NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder toBuilder() => + NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreAutocompleteResult_Ocs_Data_Status && + data == other.data && + builtListJsonObject == other.builtListJsonObject && + string == other.string; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, builtListJsonObject.hashCode); + _$hash = $jc(_$hash, string.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreAutocompleteResult_Ocs_Data_Status') + ..add('data', data) + ..add('builtListJsonObject', builtListJsonObject) + ..add('string', string)) + .toString(); + } +} + +class NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder + implements + Builder { + _$NextcloudCoreAutocompleteResult_Ocs_Data_Status? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + ListBuilder? _builtListJsonObject; + ListBuilder get builtListJsonObject => _$this._builtListJsonObject ??= ListBuilder(); + set builtListJsonObject(ListBuilder? builtListJsonObject) => + _$this._builtListJsonObject = builtListJsonObject; + + String? _string; + String? get string => _$this._string; + set string(String? string) => _$this._string = string; + + NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder(); + + NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _builtListJsonObject = $v.builtListJsonObject?.toBuilder(); + _string = $v.string; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreAutocompleteResult_Ocs_Data_Status other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreAutocompleteResult_Ocs_Data_Status; + } + + @override + void update(void Function(NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreAutocompleteResult_Ocs_Data_Status build() => _build(); + + _$NextcloudCoreAutocompleteResult_Ocs_Data_Status _build() { + _$NextcloudCoreAutocompleteResult_Ocs_Data_Status _$result; + try { + _$result = _$v ?? + _$NextcloudCoreAutocompleteResult_Ocs_Data_Status._( + data: BuiltValueNullFieldError.checkNotNull( + data, r'NextcloudCoreAutocompleteResult_Ocs_Data_Status', 'data'), + builtListJsonObject: _builtListJsonObject?.build(), + string: string); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'builtListJsonObject'; + _builtListJsonObject?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudCoreAutocompleteResult_Ocs_Data_Status', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreAutocompleteResult_Ocs_Data extends NextcloudCoreAutocompleteResult_Ocs_Data { + @override + final String id; + @override + final String label; + @override + final String icon; + @override + final String source; + @override + final NextcloudCoreAutocompleteResult_Ocs_Data_Status status; + @override + final String subline; + @override + final String shareWithDisplayNameUnique; + + factory _$NextcloudCoreAutocompleteResult_Ocs_Data( + [void Function(NextcloudCoreAutocompleteResult_Ocs_DataBuilder)? updates]) => + (NextcloudCoreAutocompleteResult_Ocs_DataBuilder()..update(updates))._build(); + + _$NextcloudCoreAutocompleteResult_Ocs_Data._( + {required this.id, + required this.label, + required this.icon, + required this.source, + required this.status, + required this.subline, + required this.shareWithDisplayNameUnique}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'id'); + BuiltValueNullFieldError.checkNotNull(label, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'label'); + BuiltValueNullFieldError.checkNotNull(icon, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'icon'); + BuiltValueNullFieldError.checkNotNull(source, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'source'); + BuiltValueNullFieldError.checkNotNull(status, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'status'); + BuiltValueNullFieldError.checkNotNull(subline, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'subline'); + BuiltValueNullFieldError.checkNotNull( + shareWithDisplayNameUnique, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'shareWithDisplayNameUnique'); + } + + @override + NextcloudCoreAutocompleteResult_Ocs_Data rebuild( + void Function(NextcloudCoreAutocompleteResult_Ocs_DataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreAutocompleteResult_Ocs_DataBuilder toBuilder() => + NextcloudCoreAutocompleteResult_Ocs_DataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreAutocompleteResult_Ocs_Data && + id == other.id && + label == other.label && + icon == other.icon && + source == other.source && + status == other.status && + subline == other.subline && + shareWithDisplayNameUnique == other.shareWithDisplayNameUnique; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, label.hashCode); + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, subline.hashCode); + _$hash = $jc(_$hash, shareWithDisplayNameUnique.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreAutocompleteResult_Ocs_Data') + ..add('id', id) + ..add('label', label) + ..add('icon', icon) + ..add('source', source) + ..add('status', status) + ..add('subline', subline) + ..add('shareWithDisplayNameUnique', shareWithDisplayNameUnique)) + .toString(); + } +} + +class NextcloudCoreAutocompleteResult_Ocs_DataBuilder + implements Builder { + _$NextcloudCoreAutocompleteResult_Ocs_Data? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _label; + String? get label => _$this._label; + set label(String? label) => _$this._label = label; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + String? _source; + String? get source => _$this._source; + set source(String? source) => _$this._source = source; + + NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder? _status; + NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder get status => + _$this._status ??= NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder(); + set status(NextcloudCoreAutocompleteResult_Ocs_Data_StatusBuilder? status) => _$this._status = status; + + String? _subline; + String? get subline => _$this._subline; + set subline(String? subline) => _$this._subline = subline; + + String? _shareWithDisplayNameUnique; + String? get shareWithDisplayNameUnique => _$this._shareWithDisplayNameUnique; + set shareWithDisplayNameUnique(String? shareWithDisplayNameUnique) => + _$this._shareWithDisplayNameUnique = shareWithDisplayNameUnique; + + NextcloudCoreAutocompleteResult_Ocs_DataBuilder(); + + NextcloudCoreAutocompleteResult_Ocs_DataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _label = $v.label; + _icon = $v.icon; + _source = $v.source; + _status = $v.status.toBuilder(); + _subline = $v.subline; + _shareWithDisplayNameUnique = $v.shareWithDisplayNameUnique; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreAutocompleteResult_Ocs_Data other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreAutocompleteResult_Ocs_Data; + } + + @override + void update(void Function(NextcloudCoreAutocompleteResult_Ocs_DataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreAutocompleteResult_Ocs_Data build() => _build(); + + _$NextcloudCoreAutocompleteResult_Ocs_Data _build() { + _$NextcloudCoreAutocompleteResult_Ocs_Data _$result; + try { + _$result = _$v ?? + _$NextcloudCoreAutocompleteResult_Ocs_Data._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'id'), + label: BuiltValueNullFieldError.checkNotNull(label, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'label'), + icon: BuiltValueNullFieldError.checkNotNull(icon, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'icon'), + source: + BuiltValueNullFieldError.checkNotNull(source, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'source'), + status: status.build(), + subline: BuiltValueNullFieldError.checkNotNull( + subline, r'NextcloudCoreAutocompleteResult_Ocs_Data', 'subline'), + shareWithDisplayNameUnique: BuiltValueNullFieldError.checkNotNull(shareWithDisplayNameUnique, + r'NextcloudCoreAutocompleteResult_Ocs_Data', 'shareWithDisplayNameUnique')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'status'; + status.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreAutocompleteResult_Ocs_Data', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreAutocompleteResult_Ocs extends NextcloudCoreAutocompleteResult_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final BuiltList data; + + factory _$NextcloudCoreAutocompleteResult_Ocs([void Function(NextcloudCoreAutocompleteResult_OcsBuilder)? updates]) => + (NextcloudCoreAutocompleteResult_OcsBuilder()..update(updates))._build(); + + _$NextcloudCoreAutocompleteResult_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudCoreAutocompleteResult_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudCoreAutocompleteResult_Ocs', 'data'); + } + + @override + NextcloudCoreAutocompleteResult_Ocs rebuild(void Function(NextcloudCoreAutocompleteResult_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreAutocompleteResult_OcsBuilder toBuilder() => NextcloudCoreAutocompleteResult_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreAutocompleteResult_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreAutocompleteResult_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudCoreAutocompleteResult_OcsBuilder + implements Builder { + _$NextcloudCoreAutocompleteResult_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + NextcloudCoreAutocompleteResult_OcsBuilder(); + + NextcloudCoreAutocompleteResult_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreAutocompleteResult_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreAutocompleteResult_Ocs; + } + + @override + void update(void Function(NextcloudCoreAutocompleteResult_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreAutocompleteResult_Ocs build() => _build(); + + _$NextcloudCoreAutocompleteResult_Ocs _build() { + _$NextcloudCoreAutocompleteResult_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudCoreAutocompleteResult_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreAutocompleteResult_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudCoreAutocompleteResult extends NextcloudCoreAutocompleteResult { + @override + final NextcloudCoreAutocompleteResult_Ocs ocs; + + factory _$NextcloudCoreAutocompleteResult([void Function(NextcloudCoreAutocompleteResultBuilder)? updates]) => + (NextcloudCoreAutocompleteResultBuilder()..update(updates))._build(); + + _$NextcloudCoreAutocompleteResult._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudCoreAutocompleteResult', 'ocs'); + } + + @override + NextcloudCoreAutocompleteResult rebuild(void Function(NextcloudCoreAutocompleteResultBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudCoreAutocompleteResultBuilder toBuilder() => NextcloudCoreAutocompleteResultBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudCoreAutocompleteResult && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudCoreAutocompleteResult')..add('ocs', ocs)).toString(); + } +} + +class NextcloudCoreAutocompleteResultBuilder + implements Builder { + _$NextcloudCoreAutocompleteResult? _$v; + + NextcloudCoreAutocompleteResult_OcsBuilder? _ocs; + NextcloudCoreAutocompleteResult_OcsBuilder get ocs => _$this._ocs ??= NextcloudCoreAutocompleteResult_OcsBuilder(); + set ocs(NextcloudCoreAutocompleteResult_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudCoreAutocompleteResultBuilder(); + + NextcloudCoreAutocompleteResultBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudCoreAutocompleteResult other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudCoreAutocompleteResult; + } + + @override + void update(void Function(NextcloudCoreAutocompleteResultBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudCoreAutocompleteResult build() => _build(); + + _$NextcloudCoreAutocompleteResult _build() { + _$NextcloudCoreAutocompleteResult _$result; + try { + _$result = _$v ?? _$NextcloudCoreAutocompleteResult._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudCoreAutocompleteResult', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsSupportedAPIVersions extends NextcloudNewsSupportedAPIVersions { + @override + final BuiltList? apiLevels; + + factory _$NextcloudNewsSupportedAPIVersions([void Function(NextcloudNewsSupportedAPIVersionsBuilder)? updates]) => + (NextcloudNewsSupportedAPIVersionsBuilder()..update(updates))._build(); + + _$NextcloudNewsSupportedAPIVersions._({this.apiLevels}) : super._(); + + @override + NextcloudNewsSupportedAPIVersions rebuild(void Function(NextcloudNewsSupportedAPIVersionsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsSupportedAPIVersionsBuilder toBuilder() => NextcloudNewsSupportedAPIVersionsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsSupportedAPIVersions && apiLevels == other.apiLevels; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, apiLevels.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsSupportedAPIVersions')..add('apiLevels', apiLevels)).toString(); + } +} + +class NextcloudNewsSupportedAPIVersionsBuilder + implements Builder { + _$NextcloudNewsSupportedAPIVersions? _$v; + + ListBuilder? _apiLevels; + ListBuilder get apiLevels => _$this._apiLevels ??= ListBuilder(); + set apiLevels(ListBuilder? apiLevels) => _$this._apiLevels = apiLevels; + + NextcloudNewsSupportedAPIVersionsBuilder(); + + NextcloudNewsSupportedAPIVersionsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _apiLevels = $v.apiLevels?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsSupportedAPIVersions other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsSupportedAPIVersions; + } + + @override + void update(void Function(NextcloudNewsSupportedAPIVersionsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsSupportedAPIVersions build() => _build(); + + _$NextcloudNewsSupportedAPIVersions _build() { + _$NextcloudNewsSupportedAPIVersions _$result; + try { + _$result = _$v ?? _$NextcloudNewsSupportedAPIVersions._(apiLevels: _apiLevels?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'apiLevels'; + _apiLevels?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNewsSupportedAPIVersions', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsArticle extends NextcloudNewsArticle { + @override + final int id; + @override + final String guid; + @override + final String guidHash; + @override + final String? url; + @override + final String title; + @override + final String? author; + @override + final int pubDate; + @override + final int? updatedDate; + @override + final String body; + @override + final String? enclosureMime; + @override + final String? enclosureLink; + @override + final String? mediaThumbnail; + @override + final String? mediaDescription; + @override + final int feedId; + @override + final bool unread; + @override + final bool starred; + @override + final int lastModified; + @override + final bool rtl; + @override + final String fingerprint; + @override + final String contentHash; + + factory _$NextcloudNewsArticle([void Function(NextcloudNewsArticleBuilder)? updates]) => + (NextcloudNewsArticleBuilder()..update(updates))._build(); + + _$NextcloudNewsArticle._( + {required this.id, + required this.guid, + required this.guidHash, + this.url, + required this.title, + this.author, + required this.pubDate, + this.updatedDate, + required this.body, + this.enclosureMime, + this.enclosureLink, + this.mediaThumbnail, + this.mediaDescription, + required this.feedId, + required this.unread, + required this.starred, + required this.lastModified, + required this.rtl, + required this.fingerprint, + required this.contentHash}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNewsArticle', 'id'); + BuiltValueNullFieldError.checkNotNull(guid, r'NextcloudNewsArticle', 'guid'); + BuiltValueNullFieldError.checkNotNull(guidHash, r'NextcloudNewsArticle', 'guidHash'); + BuiltValueNullFieldError.checkNotNull(title, r'NextcloudNewsArticle', 'title'); + BuiltValueNullFieldError.checkNotNull(pubDate, r'NextcloudNewsArticle', 'pubDate'); + BuiltValueNullFieldError.checkNotNull(body, r'NextcloudNewsArticle', 'body'); + BuiltValueNullFieldError.checkNotNull(feedId, r'NextcloudNewsArticle', 'feedId'); + BuiltValueNullFieldError.checkNotNull(unread, r'NextcloudNewsArticle', 'unread'); + BuiltValueNullFieldError.checkNotNull(starred, r'NextcloudNewsArticle', 'starred'); + BuiltValueNullFieldError.checkNotNull(lastModified, r'NextcloudNewsArticle', 'lastModified'); + BuiltValueNullFieldError.checkNotNull(rtl, r'NextcloudNewsArticle', 'rtl'); + BuiltValueNullFieldError.checkNotNull(fingerprint, r'NextcloudNewsArticle', 'fingerprint'); + BuiltValueNullFieldError.checkNotNull(contentHash, r'NextcloudNewsArticle', 'contentHash'); + } + + @override + NextcloudNewsArticle rebuild(void Function(NextcloudNewsArticleBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsArticleBuilder toBuilder() => NextcloudNewsArticleBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsArticle && + id == other.id && + guid == other.guid && + guidHash == other.guidHash && + url == other.url && + title == other.title && + author == other.author && + pubDate == other.pubDate && + updatedDate == other.updatedDate && + body == other.body && + enclosureMime == other.enclosureMime && + enclosureLink == other.enclosureLink && + mediaThumbnail == other.mediaThumbnail && + mediaDescription == other.mediaDescription && + feedId == other.feedId && + unread == other.unread && + starred == other.starred && + lastModified == other.lastModified && + rtl == other.rtl && + fingerprint == other.fingerprint && + contentHash == other.contentHash; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, guid.hashCode); + _$hash = $jc(_$hash, guidHash.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, pubDate.hashCode); + _$hash = $jc(_$hash, updatedDate.hashCode); + _$hash = $jc(_$hash, body.hashCode); + _$hash = $jc(_$hash, enclosureMime.hashCode); + _$hash = $jc(_$hash, enclosureLink.hashCode); + _$hash = $jc(_$hash, mediaThumbnail.hashCode); + _$hash = $jc(_$hash, mediaDescription.hashCode); + _$hash = $jc(_$hash, feedId.hashCode); + _$hash = $jc(_$hash, unread.hashCode); + _$hash = $jc(_$hash, starred.hashCode); + _$hash = $jc(_$hash, lastModified.hashCode); + _$hash = $jc(_$hash, rtl.hashCode); + _$hash = $jc(_$hash, fingerprint.hashCode); + _$hash = $jc(_$hash, contentHash.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsArticle') + ..add('id', id) + ..add('guid', guid) + ..add('guidHash', guidHash) + ..add('url', url) + ..add('title', title) + ..add('author', author) + ..add('pubDate', pubDate) + ..add('updatedDate', updatedDate) + ..add('body', body) + ..add('enclosureMime', enclosureMime) + ..add('enclosureLink', enclosureLink) + ..add('mediaThumbnail', mediaThumbnail) + ..add('mediaDescription', mediaDescription) + ..add('feedId', feedId) + ..add('unread', unread) + ..add('starred', starred) + ..add('lastModified', lastModified) + ..add('rtl', rtl) + ..add('fingerprint', fingerprint) + ..add('contentHash', contentHash)) + .toString(); + } +} + +class NextcloudNewsArticleBuilder implements Builder { + _$NextcloudNewsArticle? _$v; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + String? _guid; + String? get guid => _$this._guid; + set guid(String? guid) => _$this._guid = guid; + + String? _guidHash; + String? get guidHash => _$this._guidHash; + set guidHash(String? guidHash) => _$this._guidHash = guidHash; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + int? _pubDate; + int? get pubDate => _$this._pubDate; + set pubDate(int? pubDate) => _$this._pubDate = pubDate; + + int? _updatedDate; + int? get updatedDate => _$this._updatedDate; + set updatedDate(int? updatedDate) => _$this._updatedDate = updatedDate; + + String? _body; + String? get body => _$this._body; + set body(String? body) => _$this._body = body; + + String? _enclosureMime; + String? get enclosureMime => _$this._enclosureMime; + set enclosureMime(String? enclosureMime) => _$this._enclosureMime = enclosureMime; + + String? _enclosureLink; + String? get enclosureLink => _$this._enclosureLink; + set enclosureLink(String? enclosureLink) => _$this._enclosureLink = enclosureLink; + + String? _mediaThumbnail; + String? get mediaThumbnail => _$this._mediaThumbnail; + set mediaThumbnail(String? mediaThumbnail) => _$this._mediaThumbnail = mediaThumbnail; + + String? _mediaDescription; + String? get mediaDescription => _$this._mediaDescription; + set mediaDescription(String? mediaDescription) => _$this._mediaDescription = mediaDescription; + + int? _feedId; + int? get feedId => _$this._feedId; + set feedId(int? feedId) => _$this._feedId = feedId; + + bool? _unread; + bool? get unread => _$this._unread; + set unread(bool? unread) => _$this._unread = unread; + + bool? _starred; + bool? get starred => _$this._starred; + set starred(bool? starred) => _$this._starred = starred; + + int? _lastModified; + int? get lastModified => _$this._lastModified; + set lastModified(int? lastModified) => _$this._lastModified = lastModified; + + bool? _rtl; + bool? get rtl => _$this._rtl; + set rtl(bool? rtl) => _$this._rtl = rtl; + + String? _fingerprint; + String? get fingerprint => _$this._fingerprint; + set fingerprint(String? fingerprint) => _$this._fingerprint = fingerprint; + + String? _contentHash; + String? get contentHash => _$this._contentHash; + set contentHash(String? contentHash) => _$this._contentHash = contentHash; + + NextcloudNewsArticleBuilder(); + + NextcloudNewsArticleBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _guid = $v.guid; + _guidHash = $v.guidHash; + _url = $v.url; + _title = $v.title; + _author = $v.author; + _pubDate = $v.pubDate; + _updatedDate = $v.updatedDate; + _body = $v.body; + _enclosureMime = $v.enclosureMime; + _enclosureLink = $v.enclosureLink; + _mediaThumbnail = $v.mediaThumbnail; + _mediaDescription = $v.mediaDescription; + _feedId = $v.feedId; + _unread = $v.unread; + _starred = $v.starred; + _lastModified = $v.lastModified; + _rtl = $v.rtl; + _fingerprint = $v.fingerprint; + _contentHash = $v.contentHash; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsArticle other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsArticle; + } + + @override + void update(void Function(NextcloudNewsArticleBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsArticle build() => _build(); + + _$NextcloudNewsArticle _build() { + final _$result = _$v ?? + _$NextcloudNewsArticle._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNewsArticle', 'id'), + guid: BuiltValueNullFieldError.checkNotNull(guid, r'NextcloudNewsArticle', 'guid'), + guidHash: BuiltValueNullFieldError.checkNotNull(guidHash, r'NextcloudNewsArticle', 'guidHash'), + url: url, + title: BuiltValueNullFieldError.checkNotNull(title, r'NextcloudNewsArticle', 'title'), + author: author, + pubDate: BuiltValueNullFieldError.checkNotNull(pubDate, r'NextcloudNewsArticle', 'pubDate'), + updatedDate: updatedDate, + body: BuiltValueNullFieldError.checkNotNull(body, r'NextcloudNewsArticle', 'body'), + enclosureMime: enclosureMime, + enclosureLink: enclosureLink, + mediaThumbnail: mediaThumbnail, + mediaDescription: mediaDescription, + feedId: BuiltValueNullFieldError.checkNotNull(feedId, r'NextcloudNewsArticle', 'feedId'), + unread: BuiltValueNullFieldError.checkNotNull(unread, r'NextcloudNewsArticle', 'unread'), + starred: BuiltValueNullFieldError.checkNotNull(starred, r'NextcloudNewsArticle', 'starred'), + lastModified: BuiltValueNullFieldError.checkNotNull(lastModified, r'NextcloudNewsArticle', 'lastModified'), + rtl: BuiltValueNullFieldError.checkNotNull(rtl, r'NextcloudNewsArticle', 'rtl'), + fingerprint: BuiltValueNullFieldError.checkNotNull(fingerprint, r'NextcloudNewsArticle', 'fingerprint'), + contentHash: BuiltValueNullFieldError.checkNotNull(contentHash, r'NextcloudNewsArticle', 'contentHash')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsFeed extends NextcloudNewsFeed { + @override + final int id; + @override + final String url; + @override + final String title; + @override + final String? faviconLink; + @override + final int added; + @override + final int? folderId; + @override + final int? unreadCount; + @override + final int ordering; + @override + final String? link; + @override + final bool pinned; + @override + final int updateErrorCount; + @override + final String? lastUpdateError; + @override + final BuiltList items; + + factory _$NextcloudNewsFeed([void Function(NextcloudNewsFeedBuilder)? updates]) => + (NextcloudNewsFeedBuilder()..update(updates))._build(); + + _$NextcloudNewsFeed._( + {required this.id, + required this.url, + required this.title, + this.faviconLink, + required this.added, + this.folderId, + this.unreadCount, + required this.ordering, + this.link, + required this.pinned, + required this.updateErrorCount, + this.lastUpdateError, + required this.items}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNewsFeed', 'id'); + BuiltValueNullFieldError.checkNotNull(url, r'NextcloudNewsFeed', 'url'); + BuiltValueNullFieldError.checkNotNull(title, r'NextcloudNewsFeed', 'title'); + BuiltValueNullFieldError.checkNotNull(added, r'NextcloudNewsFeed', 'added'); + BuiltValueNullFieldError.checkNotNull(ordering, r'NextcloudNewsFeed', 'ordering'); + BuiltValueNullFieldError.checkNotNull(pinned, r'NextcloudNewsFeed', 'pinned'); + BuiltValueNullFieldError.checkNotNull(updateErrorCount, r'NextcloudNewsFeed', 'updateErrorCount'); + BuiltValueNullFieldError.checkNotNull(items, r'NextcloudNewsFeed', 'items'); + } + + @override + NextcloudNewsFeed rebuild(void Function(NextcloudNewsFeedBuilder) updates) => (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsFeedBuilder toBuilder() => NextcloudNewsFeedBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsFeed && + id == other.id && + url == other.url && + title == other.title && + faviconLink == other.faviconLink && + added == other.added && + folderId == other.folderId && + unreadCount == other.unreadCount && + ordering == other.ordering && + link == other.link && + pinned == other.pinned && + updateErrorCount == other.updateErrorCount && + lastUpdateError == other.lastUpdateError && + items == other.items; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, faviconLink.hashCode); + _$hash = $jc(_$hash, added.hashCode); + _$hash = $jc(_$hash, folderId.hashCode); + _$hash = $jc(_$hash, unreadCount.hashCode); + _$hash = $jc(_$hash, ordering.hashCode); + _$hash = $jc(_$hash, link.hashCode); + _$hash = $jc(_$hash, pinned.hashCode); + _$hash = $jc(_$hash, updateErrorCount.hashCode); + _$hash = $jc(_$hash, lastUpdateError.hashCode); + _$hash = $jc(_$hash, items.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsFeed') + ..add('id', id) + ..add('url', url) + ..add('title', title) + ..add('faviconLink', faviconLink) + ..add('added', added) + ..add('folderId', folderId) + ..add('unreadCount', unreadCount) + ..add('ordering', ordering) + ..add('link', link) + ..add('pinned', pinned) + ..add('updateErrorCount', updateErrorCount) + ..add('lastUpdateError', lastUpdateError) + ..add('items', items)) + .toString(); + } +} + +class NextcloudNewsFeedBuilder implements Builder { + _$NextcloudNewsFeed? _$v; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _faviconLink; + String? get faviconLink => _$this._faviconLink; + set faviconLink(String? faviconLink) => _$this._faviconLink = faviconLink; + + int? _added; + int? get added => _$this._added; + set added(int? added) => _$this._added = added; + + int? _folderId; + int? get folderId => _$this._folderId; + set folderId(int? folderId) => _$this._folderId = folderId; + + int? _unreadCount; + int? get unreadCount => _$this._unreadCount; + set unreadCount(int? unreadCount) => _$this._unreadCount = unreadCount; + + int? _ordering; + int? get ordering => _$this._ordering; + set ordering(int? ordering) => _$this._ordering = ordering; + + String? _link; + String? get link => _$this._link; + set link(String? link) => _$this._link = link; + + bool? _pinned; + bool? get pinned => _$this._pinned; + set pinned(bool? pinned) => _$this._pinned = pinned; + + int? _updateErrorCount; + int? get updateErrorCount => _$this._updateErrorCount; + set updateErrorCount(int? updateErrorCount) => _$this._updateErrorCount = updateErrorCount; + + String? _lastUpdateError; + String? get lastUpdateError => _$this._lastUpdateError; + set lastUpdateError(String? lastUpdateError) => _$this._lastUpdateError = lastUpdateError; + + ListBuilder? _items; + ListBuilder get items => _$this._items ??= ListBuilder(); + set items(ListBuilder? items) => _$this._items = items; + + NextcloudNewsFeedBuilder(); + + NextcloudNewsFeedBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _url = $v.url; + _title = $v.title; + _faviconLink = $v.faviconLink; + _added = $v.added; + _folderId = $v.folderId; + _unreadCount = $v.unreadCount; + _ordering = $v.ordering; + _link = $v.link; + _pinned = $v.pinned; + _updateErrorCount = $v.updateErrorCount; + _lastUpdateError = $v.lastUpdateError; + _items = $v.items.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsFeed other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsFeed; + } + + @override + void update(void Function(NextcloudNewsFeedBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsFeed build() => _build(); + + _$NextcloudNewsFeed _build() { + _$NextcloudNewsFeed _$result; + try { + _$result = _$v ?? + _$NextcloudNewsFeed._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNewsFeed', 'id'), + url: BuiltValueNullFieldError.checkNotNull(url, r'NextcloudNewsFeed', 'url'), + title: BuiltValueNullFieldError.checkNotNull(title, r'NextcloudNewsFeed', 'title'), + faviconLink: faviconLink, + added: BuiltValueNullFieldError.checkNotNull(added, r'NextcloudNewsFeed', 'added'), + folderId: folderId, + unreadCount: unreadCount, + ordering: BuiltValueNullFieldError.checkNotNull(ordering, r'NextcloudNewsFeed', 'ordering'), + link: link, + pinned: BuiltValueNullFieldError.checkNotNull(pinned, r'NextcloudNewsFeed', 'pinned'), + updateErrorCount: + BuiltValueNullFieldError.checkNotNull(updateErrorCount, r'NextcloudNewsFeed', 'updateErrorCount'), + lastUpdateError: lastUpdateError, + items: items.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'items'; + items.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNewsFeed', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsFolder extends NextcloudNewsFolder { + @override + final int id; + @override + final String name; + @override + final bool opened; + @override + final BuiltList feeds; + + factory _$NextcloudNewsFolder([void Function(NextcloudNewsFolderBuilder)? updates]) => + (NextcloudNewsFolderBuilder()..update(updates))._build(); + + _$NextcloudNewsFolder._({required this.id, required this.name, required this.opened, required this.feeds}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNewsFolder', 'id'); + BuiltValueNullFieldError.checkNotNull(name, r'NextcloudNewsFolder', 'name'); + BuiltValueNullFieldError.checkNotNull(opened, r'NextcloudNewsFolder', 'opened'); + BuiltValueNullFieldError.checkNotNull(feeds, r'NextcloudNewsFolder', 'feeds'); + } + + @override + NextcloudNewsFolder rebuild(void Function(NextcloudNewsFolderBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsFolderBuilder toBuilder() => NextcloudNewsFolderBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsFolder && + id == other.id && + name == other.name && + opened == other.opened && + feeds == other.feeds; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, opened.hashCode); + _$hash = $jc(_$hash, feeds.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsFolder') + ..add('id', id) + ..add('name', name) + ..add('opened', opened) + ..add('feeds', feeds)) + .toString(); + } +} + +class NextcloudNewsFolderBuilder implements Builder { + _$NextcloudNewsFolder? _$v; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _opened; + bool? get opened => _$this._opened; + set opened(bool? opened) => _$this._opened = opened; + + ListBuilder? _feeds; + ListBuilder get feeds => _$this._feeds ??= ListBuilder(); + set feeds(ListBuilder? feeds) => _$this._feeds = feeds; + + NextcloudNewsFolderBuilder(); + + NextcloudNewsFolderBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _name = $v.name; + _opened = $v.opened; + _feeds = $v.feeds.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsFolder other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsFolder; + } + + @override + void update(void Function(NextcloudNewsFolderBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsFolder build() => _build(); + + _$NextcloudNewsFolder _build() { + _$NextcloudNewsFolder _$result; + try { + _$result = _$v ?? + _$NextcloudNewsFolder._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNewsFolder', 'id'), + name: BuiltValueNullFieldError.checkNotNull(name, r'NextcloudNewsFolder', 'name'), + opened: BuiltValueNullFieldError.checkNotNull(opened, r'NextcloudNewsFolder', 'opened'), + feeds: feeds.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'feeds'; + feeds.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNewsFolder', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsListFolders extends NextcloudNewsListFolders { + @override + final BuiltList folders; + + factory _$NextcloudNewsListFolders([void Function(NextcloudNewsListFoldersBuilder)? updates]) => + (NextcloudNewsListFoldersBuilder()..update(updates))._build(); + + _$NextcloudNewsListFolders._({required this.folders}) : super._() { + BuiltValueNullFieldError.checkNotNull(folders, r'NextcloudNewsListFolders', 'folders'); + } + + @override + NextcloudNewsListFolders rebuild(void Function(NextcloudNewsListFoldersBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsListFoldersBuilder toBuilder() => NextcloudNewsListFoldersBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsListFolders && folders == other.folders; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, folders.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsListFolders')..add('folders', folders)).toString(); + } +} + +class NextcloudNewsListFoldersBuilder implements Builder { + _$NextcloudNewsListFolders? _$v; + + ListBuilder? _folders; + ListBuilder get folders => _$this._folders ??= ListBuilder(); + set folders(ListBuilder? folders) => _$this._folders = folders; + + NextcloudNewsListFoldersBuilder(); + + NextcloudNewsListFoldersBuilder get _$this { + final $v = _$v; + if ($v != null) { + _folders = $v.folders.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsListFolders other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsListFolders; + } + + @override + void update(void Function(NextcloudNewsListFoldersBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsListFolders build() => _build(); + + _$NextcloudNewsListFolders _build() { + _$NextcloudNewsListFolders _$result; + try { + _$result = _$v ?? _$NextcloudNewsListFolders._(folders: folders.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'folders'; + folders.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNewsListFolders', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsListFeeds extends NextcloudNewsListFeeds { + @override + final int? starredCount; + @override + final int? newestItemId; + @override + final BuiltList feeds; + + factory _$NextcloudNewsListFeeds([void Function(NextcloudNewsListFeedsBuilder)? updates]) => + (NextcloudNewsListFeedsBuilder()..update(updates))._build(); + + _$NextcloudNewsListFeeds._({this.starredCount, this.newestItemId, required this.feeds}) : super._() { + BuiltValueNullFieldError.checkNotNull(feeds, r'NextcloudNewsListFeeds', 'feeds'); + } + + @override + NextcloudNewsListFeeds rebuild(void Function(NextcloudNewsListFeedsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsListFeedsBuilder toBuilder() => NextcloudNewsListFeedsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsListFeeds && + starredCount == other.starredCount && + newestItemId == other.newestItemId && + feeds == other.feeds; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, starredCount.hashCode); + _$hash = $jc(_$hash, newestItemId.hashCode); + _$hash = $jc(_$hash, feeds.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsListFeeds') + ..add('starredCount', starredCount) + ..add('newestItemId', newestItemId) + ..add('feeds', feeds)) + .toString(); + } +} + +class NextcloudNewsListFeedsBuilder implements Builder { + _$NextcloudNewsListFeeds? _$v; + + int? _starredCount; + int? get starredCount => _$this._starredCount; + set starredCount(int? starredCount) => _$this._starredCount = starredCount; + + int? _newestItemId; + int? get newestItemId => _$this._newestItemId; + set newestItemId(int? newestItemId) => _$this._newestItemId = newestItemId; + + ListBuilder? _feeds; + ListBuilder get feeds => _$this._feeds ??= ListBuilder(); + set feeds(ListBuilder? feeds) => _$this._feeds = feeds; + + NextcloudNewsListFeedsBuilder(); + + NextcloudNewsListFeedsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _starredCount = $v.starredCount; + _newestItemId = $v.newestItemId; + _feeds = $v.feeds.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsListFeeds other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsListFeeds; + } + + @override + void update(void Function(NextcloudNewsListFeedsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsListFeeds build() => _build(); + + _$NextcloudNewsListFeeds _build() { + _$NextcloudNewsListFeeds _$result; + try { + _$result = _$v ?? + _$NextcloudNewsListFeeds._(starredCount: starredCount, newestItemId: newestItemId, feeds: feeds.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'feeds'; + feeds.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNewsListFeeds', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNewsListArticles extends NextcloudNewsListArticles { + @override + final BuiltList items; + + factory _$NextcloudNewsListArticles([void Function(NextcloudNewsListArticlesBuilder)? updates]) => + (NextcloudNewsListArticlesBuilder()..update(updates))._build(); + + _$NextcloudNewsListArticles._({required this.items}) : super._() { + BuiltValueNullFieldError.checkNotNull(items, r'NextcloudNewsListArticles', 'items'); + } + + @override + NextcloudNewsListArticles rebuild(void Function(NextcloudNewsListArticlesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNewsListArticlesBuilder toBuilder() => NextcloudNewsListArticlesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNewsListArticles && items == other.items; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, items.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNewsListArticles')..add('items', items)).toString(); + } +} + +class NextcloudNewsListArticlesBuilder implements Builder { + _$NextcloudNewsListArticles? _$v; + + ListBuilder? _items; + ListBuilder get items => _$this._items ??= ListBuilder(); + set items(ListBuilder? items) => _$this._items = items; + + NextcloudNewsListArticlesBuilder(); + + NextcloudNewsListArticlesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _items = $v.items.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNewsListArticles other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNewsListArticles; + } + + @override + void update(void Function(NextcloudNewsListArticlesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNewsListArticles build() => _build(); + + _$NextcloudNewsListArticles _build() { + _$NextcloudNewsListArticles _$result; + try { + _$result = _$v ?? _$NextcloudNewsListArticles._(items: items.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'items'; + items.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNewsListArticles', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotesNote extends NextcloudNotesNote { + @override + final int id; + @override + final String etag; + @override + final bool readonly; + @override + final String content; + @override + final String title; + @override + final String category; + @override + final bool favorite; + @override + final int modified; + @override + final bool error; + @override + final String errorType; + + factory _$NextcloudNotesNote([void Function(NextcloudNotesNoteBuilder)? updates]) => + (NextcloudNotesNoteBuilder()..update(updates))._build(); + + _$NextcloudNotesNote._( + {required this.id, + required this.etag, + required this.readonly, + required this.content, + required this.title, + required this.category, + required this.favorite, + required this.modified, + required this.error, + required this.errorType}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNotesNote', 'id'); + BuiltValueNullFieldError.checkNotNull(etag, r'NextcloudNotesNote', 'etag'); + BuiltValueNullFieldError.checkNotNull(readonly, r'NextcloudNotesNote', 'readonly'); + BuiltValueNullFieldError.checkNotNull(content, r'NextcloudNotesNote', 'content'); + BuiltValueNullFieldError.checkNotNull(title, r'NextcloudNotesNote', 'title'); + BuiltValueNullFieldError.checkNotNull(category, r'NextcloudNotesNote', 'category'); + BuiltValueNullFieldError.checkNotNull(favorite, r'NextcloudNotesNote', 'favorite'); + BuiltValueNullFieldError.checkNotNull(modified, r'NextcloudNotesNote', 'modified'); + BuiltValueNullFieldError.checkNotNull(error, r'NextcloudNotesNote', 'error'); + BuiltValueNullFieldError.checkNotNull(errorType, r'NextcloudNotesNote', 'errorType'); + } + + @override + NextcloudNotesNote rebuild(void Function(NextcloudNotesNoteBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotesNoteBuilder toBuilder() => NextcloudNotesNoteBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotesNote && + id == other.id && + etag == other.etag && + readonly == other.readonly && + content == other.content && + title == other.title && + category == other.category && + favorite == other.favorite && + modified == other.modified && + error == other.error && + errorType == other.errorType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, etag.hashCode); + _$hash = $jc(_$hash, readonly.hashCode); + _$hash = $jc(_$hash, content.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, category.hashCode); + _$hash = $jc(_$hash, favorite.hashCode); + _$hash = $jc(_$hash, modified.hashCode); + _$hash = $jc(_$hash, error.hashCode); + _$hash = $jc(_$hash, errorType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotesNote') + ..add('id', id) + ..add('etag', etag) + ..add('readonly', readonly) + ..add('content', content) + ..add('title', title) + ..add('category', category) + ..add('favorite', favorite) + ..add('modified', modified) + ..add('error', error) + ..add('errorType', errorType)) + .toString(); + } +} + +class NextcloudNotesNoteBuilder implements Builder { + _$NextcloudNotesNote? _$v; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + String? _etag; + String? get etag => _$this._etag; + set etag(String? etag) => _$this._etag = etag; + + bool? _readonly; + bool? get readonly => _$this._readonly; + set readonly(bool? readonly) => _$this._readonly = readonly; + + String? _content; + String? get content => _$this._content; + set content(String? content) => _$this._content = content; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _category; + String? get category => _$this._category; + set category(String? category) => _$this._category = category; + + bool? _favorite; + bool? get favorite => _$this._favorite; + set favorite(bool? favorite) => _$this._favorite = favorite; + + int? _modified; + int? get modified => _$this._modified; + set modified(int? modified) => _$this._modified = modified; + + bool? _error; + bool? get error => _$this._error; + set error(bool? error) => _$this._error = error; + + String? _errorType; + String? get errorType => _$this._errorType; + set errorType(String? errorType) => _$this._errorType = errorType; + + NextcloudNotesNoteBuilder(); + + NextcloudNotesNoteBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _etag = $v.etag; + _readonly = $v.readonly; + _content = $v.content; + _title = $v.title; + _category = $v.category; + _favorite = $v.favorite; + _modified = $v.modified; + _error = $v.error; + _errorType = $v.errorType; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotesNote other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotesNote; + } + + @override + void update(void Function(NextcloudNotesNoteBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotesNote build() => _build(); + + _$NextcloudNotesNote _build() { + final _$result = _$v ?? + _$NextcloudNotesNote._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudNotesNote', 'id'), + etag: BuiltValueNullFieldError.checkNotNull(etag, r'NextcloudNotesNote', 'etag'), + readonly: BuiltValueNullFieldError.checkNotNull(readonly, r'NextcloudNotesNote', 'readonly'), + content: BuiltValueNullFieldError.checkNotNull(content, r'NextcloudNotesNote', 'content'), + title: BuiltValueNullFieldError.checkNotNull(title, r'NextcloudNotesNote', 'title'), + category: BuiltValueNullFieldError.checkNotNull(category, r'NextcloudNotesNote', 'category'), + favorite: BuiltValueNullFieldError.checkNotNull(favorite, r'NextcloudNotesNote', 'favorite'), + modified: BuiltValueNullFieldError.checkNotNull(modified, r'NextcloudNotesNote', 'modified'), + error: BuiltValueNullFieldError.checkNotNull(error, r'NextcloudNotesNote', 'error'), + errorType: BuiltValueNullFieldError.checkNotNull(errorType, r'NextcloudNotesNote', 'errorType')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotesSettings extends NextcloudNotesSettings { + @override + final String notesPath; + @override + final String fileSuffix; + @override + final NextcloudNotesSettings_NoteMode noteMode; + + factory _$NextcloudNotesSettings([void Function(NextcloudNotesSettingsBuilder)? updates]) => + (NextcloudNotesSettingsBuilder()..update(updates))._build(); + + _$NextcloudNotesSettings._({required this.notesPath, required this.fileSuffix, required this.noteMode}) : super._() { + BuiltValueNullFieldError.checkNotNull(notesPath, r'NextcloudNotesSettings', 'notesPath'); + BuiltValueNullFieldError.checkNotNull(fileSuffix, r'NextcloudNotesSettings', 'fileSuffix'); + BuiltValueNullFieldError.checkNotNull(noteMode, r'NextcloudNotesSettings', 'noteMode'); + } + + @override + NextcloudNotesSettings rebuild(void Function(NextcloudNotesSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotesSettingsBuilder toBuilder() => NextcloudNotesSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotesSettings && + notesPath == other.notesPath && + fileSuffix == other.fileSuffix && + noteMode == other.noteMode; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, notesPath.hashCode); + _$hash = $jc(_$hash, fileSuffix.hashCode); + _$hash = $jc(_$hash, noteMode.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotesSettings') + ..add('notesPath', notesPath) + ..add('fileSuffix', fileSuffix) + ..add('noteMode', noteMode)) + .toString(); + } +} + +class NextcloudNotesSettingsBuilder implements Builder { + _$NextcloudNotesSettings? _$v; + + String? _notesPath; + String? get notesPath => _$this._notesPath; + set notesPath(String? notesPath) => _$this._notesPath = notesPath; + + String? _fileSuffix; + String? get fileSuffix => _$this._fileSuffix; + set fileSuffix(String? fileSuffix) => _$this._fileSuffix = fileSuffix; + + NextcloudNotesSettings_NoteMode? _noteMode; + NextcloudNotesSettings_NoteMode? get noteMode => _$this._noteMode; + set noteMode(NextcloudNotesSettings_NoteMode? noteMode) => _$this._noteMode = noteMode; + + NextcloudNotesSettingsBuilder(); + + NextcloudNotesSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _notesPath = $v.notesPath; + _fileSuffix = $v.fileSuffix; + _noteMode = $v.noteMode; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotesSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotesSettings; + } + + @override + void update(void Function(NextcloudNotesSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotesSettings build() => _build(); + + _$NextcloudNotesSettings _build() { + final _$result = _$v ?? + _$NextcloudNotesSettings._( + notesPath: BuiltValueNullFieldError.checkNotNull(notesPath, r'NextcloudNotesSettings', 'notesPath'), + fileSuffix: BuiltValueNullFieldError.checkNotNull(fileSuffix, r'NextcloudNotesSettings', 'fileSuffix'), + noteMode: BuiltValueNullFieldError.checkNotNull(noteMode, r'NextcloudNotesSettings', 'noteMode')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsNotificationAction extends NextcloudNotificationsNotificationAction { + @override + final String label; + @override + final String link; + @override + final String type; + @override + final bool? primary; + + factory _$NextcloudNotificationsNotificationAction( + [void Function(NextcloudNotificationsNotificationActionBuilder)? updates]) => + (NextcloudNotificationsNotificationActionBuilder()..update(updates))._build(); + + _$NextcloudNotificationsNotificationAction._( + {required this.label, required this.link, required this.type, this.primary}) + : super._() { + BuiltValueNullFieldError.checkNotNull(label, r'NextcloudNotificationsNotificationAction', 'label'); + BuiltValueNullFieldError.checkNotNull(link, r'NextcloudNotificationsNotificationAction', 'link'); + BuiltValueNullFieldError.checkNotNull(type, r'NextcloudNotificationsNotificationAction', 'type'); + } + + @override + NextcloudNotificationsNotificationAction rebuild( + void Function(NextcloudNotificationsNotificationActionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsNotificationActionBuilder toBuilder() => + NextcloudNotificationsNotificationActionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsNotificationAction && + label == other.label && + link == other.link && + type == other.type && + primary == other.primary; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, label.hashCode); + _$hash = $jc(_$hash, link.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, primary.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsNotificationAction') + ..add('label', label) + ..add('link', link) + ..add('type', type) + ..add('primary', primary)) + .toString(); + } +} + +class NextcloudNotificationsNotificationActionBuilder + implements Builder { + _$NextcloudNotificationsNotificationAction? _$v; + + String? _label; + String? get label => _$this._label; + set label(String? label) => _$this._label = label; + + String? _link; + String? get link => _$this._link; + set link(String? link) => _$this._link = link; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + bool? _primary; + bool? get primary => _$this._primary; + set primary(bool? primary) => _$this._primary = primary; + + NextcloudNotificationsNotificationActionBuilder(); + + NextcloudNotificationsNotificationActionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _label = $v.label; + _link = $v.link; + _type = $v.type; + _primary = $v.primary; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsNotificationAction other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsNotificationAction; + } + + @override + void update(void Function(NextcloudNotificationsNotificationActionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsNotificationAction build() => _build(); + + _$NextcloudNotificationsNotificationAction _build() { + final _$result = _$v ?? + _$NextcloudNotificationsNotificationAction._( + label: BuiltValueNullFieldError.checkNotNull(label, r'NextcloudNotificationsNotificationAction', 'label'), + link: BuiltValueNullFieldError.checkNotNull(link, r'NextcloudNotificationsNotificationAction', 'link'), + type: BuiltValueNullFieldError.checkNotNull(type, r'NextcloudNotificationsNotificationAction', 'type'), + primary: primary); + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsNotification extends NextcloudNotificationsNotification { + @override + final int notificationId; + @override + final String app; + @override + final String user; + @override + final String datetime; + @override + final String objectType; + @override + final String objectId; + @override + final String subject; + @override + final String message; + @override + final String link; + @override + final String? subjectRich; + @override + final JsonObject? subjectRichParameters; + @override + final String? messageRich; + @override + final JsonObject? messageRichParameters; + @override + final String? icon; + @override + final bool? shouldNotify; + @override + final BuiltList actions; + + factory _$NextcloudNotificationsNotification([void Function(NextcloudNotificationsNotificationBuilder)? updates]) => + (NextcloudNotificationsNotificationBuilder()..update(updates))._build(); + + _$NextcloudNotificationsNotification._( + {required this.notificationId, + required this.app, + required this.user, + required this.datetime, + required this.objectType, + required this.objectId, + required this.subject, + required this.message, + required this.link, + this.subjectRich, + this.subjectRichParameters, + this.messageRich, + this.messageRichParameters, + this.icon, + this.shouldNotify, + required this.actions}) + : super._() { + BuiltValueNullFieldError.checkNotNull(notificationId, r'NextcloudNotificationsNotification', 'notificationId'); + BuiltValueNullFieldError.checkNotNull(app, r'NextcloudNotificationsNotification', 'app'); + BuiltValueNullFieldError.checkNotNull(user, r'NextcloudNotificationsNotification', 'user'); + BuiltValueNullFieldError.checkNotNull(datetime, r'NextcloudNotificationsNotification', 'datetime'); + BuiltValueNullFieldError.checkNotNull(objectType, r'NextcloudNotificationsNotification', 'objectType'); + BuiltValueNullFieldError.checkNotNull(objectId, r'NextcloudNotificationsNotification', 'objectId'); + BuiltValueNullFieldError.checkNotNull(subject, r'NextcloudNotificationsNotification', 'subject'); + BuiltValueNullFieldError.checkNotNull(message, r'NextcloudNotificationsNotification', 'message'); + BuiltValueNullFieldError.checkNotNull(link, r'NextcloudNotificationsNotification', 'link'); + BuiltValueNullFieldError.checkNotNull(actions, r'NextcloudNotificationsNotification', 'actions'); + } + + @override + NextcloudNotificationsNotification rebuild(void Function(NextcloudNotificationsNotificationBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsNotificationBuilder toBuilder() => NextcloudNotificationsNotificationBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsNotification && + notificationId == other.notificationId && + app == other.app && + user == other.user && + datetime == other.datetime && + objectType == other.objectType && + objectId == other.objectId && + subject == other.subject && + message == other.message && + link == other.link && + subjectRich == other.subjectRich && + subjectRichParameters == other.subjectRichParameters && + messageRich == other.messageRich && + messageRichParameters == other.messageRichParameters && + icon == other.icon && + shouldNotify == other.shouldNotify && + actions == other.actions; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, notificationId.hashCode); + _$hash = $jc(_$hash, app.hashCode); + _$hash = $jc(_$hash, user.hashCode); + _$hash = $jc(_$hash, datetime.hashCode); + _$hash = $jc(_$hash, objectType.hashCode); + _$hash = $jc(_$hash, objectId.hashCode); + _$hash = $jc(_$hash, subject.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, link.hashCode); + _$hash = $jc(_$hash, subjectRich.hashCode); + _$hash = $jc(_$hash, subjectRichParameters.hashCode); + _$hash = $jc(_$hash, messageRich.hashCode); + _$hash = $jc(_$hash, messageRichParameters.hashCode); + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, shouldNotify.hashCode); + _$hash = $jc(_$hash, actions.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsNotification') + ..add('notificationId', notificationId) + ..add('app', app) + ..add('user', user) + ..add('datetime', datetime) + ..add('objectType', objectType) + ..add('objectId', objectId) + ..add('subject', subject) + ..add('message', message) + ..add('link', link) + ..add('subjectRich', subjectRich) + ..add('subjectRichParameters', subjectRichParameters) + ..add('messageRich', messageRich) + ..add('messageRichParameters', messageRichParameters) + ..add('icon', icon) + ..add('shouldNotify', shouldNotify) + ..add('actions', actions)) + .toString(); + } +} + +class NextcloudNotificationsNotificationBuilder + implements Builder { + _$NextcloudNotificationsNotification? _$v; + + int? _notificationId; + int? get notificationId => _$this._notificationId; + set notificationId(int? notificationId) => _$this._notificationId = notificationId; + + String? _app; + String? get app => _$this._app; + set app(String? app) => _$this._app = app; + + String? _user; + String? get user => _$this._user; + set user(String? user) => _$this._user = user; + + String? _datetime; + String? get datetime => _$this._datetime; + set datetime(String? datetime) => _$this._datetime = datetime; + + String? _objectType; + String? get objectType => _$this._objectType; + set objectType(String? objectType) => _$this._objectType = objectType; + + String? _objectId; + String? get objectId => _$this._objectId; + set objectId(String? objectId) => _$this._objectId = objectId; + + String? _subject; + String? get subject => _$this._subject; + set subject(String? subject) => _$this._subject = subject; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + String? _link; + String? get link => _$this._link; + set link(String? link) => _$this._link = link; + + String? _subjectRich; + String? get subjectRich => _$this._subjectRich; + set subjectRich(String? subjectRich) => _$this._subjectRich = subjectRich; + + JsonObject? _subjectRichParameters; + JsonObject? get subjectRichParameters => _$this._subjectRichParameters; + set subjectRichParameters(JsonObject? subjectRichParameters) => _$this._subjectRichParameters = subjectRichParameters; + + String? _messageRich; + String? get messageRich => _$this._messageRich; + set messageRich(String? messageRich) => _$this._messageRich = messageRich; + + JsonObject? _messageRichParameters; + JsonObject? get messageRichParameters => _$this._messageRichParameters; + set messageRichParameters(JsonObject? messageRichParameters) => _$this._messageRichParameters = messageRichParameters; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + bool? _shouldNotify; + bool? get shouldNotify => _$this._shouldNotify; + set shouldNotify(bool? shouldNotify) => _$this._shouldNotify = shouldNotify; + + ListBuilder? _actions; + ListBuilder get actions => + _$this._actions ??= ListBuilder(); + set actions(ListBuilder? actions) => _$this._actions = actions; + + NextcloudNotificationsNotificationBuilder(); + + NextcloudNotificationsNotificationBuilder get _$this { + final $v = _$v; + if ($v != null) { + _notificationId = $v.notificationId; + _app = $v.app; + _user = $v.user; + _datetime = $v.datetime; + _objectType = $v.objectType; + _objectId = $v.objectId; + _subject = $v.subject; + _message = $v.message; + _link = $v.link; + _subjectRich = $v.subjectRich; + _subjectRichParameters = $v.subjectRichParameters; + _messageRich = $v.messageRich; + _messageRichParameters = $v.messageRichParameters; + _icon = $v.icon; + _shouldNotify = $v.shouldNotify; + _actions = $v.actions.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsNotification other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsNotification; + } + + @override + void update(void Function(NextcloudNotificationsNotificationBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsNotification build() => _build(); + + _$NextcloudNotificationsNotification _build() { + _$NextcloudNotificationsNotification _$result; + try { + _$result = _$v ?? + _$NextcloudNotificationsNotification._( + notificationId: BuiltValueNullFieldError.checkNotNull( + notificationId, r'NextcloudNotificationsNotification', 'notificationId'), + app: BuiltValueNullFieldError.checkNotNull(app, r'NextcloudNotificationsNotification', 'app'), + user: BuiltValueNullFieldError.checkNotNull(user, r'NextcloudNotificationsNotification', 'user'), + datetime: + BuiltValueNullFieldError.checkNotNull(datetime, r'NextcloudNotificationsNotification', 'datetime'), + objectType: BuiltValueNullFieldError.checkNotNull( + objectType, r'NextcloudNotificationsNotification', 'objectType'), + objectId: + BuiltValueNullFieldError.checkNotNull(objectId, r'NextcloudNotificationsNotification', 'objectId'), + subject: BuiltValueNullFieldError.checkNotNull(subject, r'NextcloudNotificationsNotification', 'subject'), + message: BuiltValueNullFieldError.checkNotNull(message, r'NextcloudNotificationsNotification', 'message'), + link: BuiltValueNullFieldError.checkNotNull(link, r'NextcloudNotificationsNotification', 'link'), + subjectRich: subjectRich, + subjectRichParameters: subjectRichParameters, + messageRich: messageRich, + messageRichParameters: messageRichParameters, + icon: icon, + shouldNotify: shouldNotify, + actions: actions.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'actions'; + actions.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNotificationsNotification', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsListNotifications_Ocs extends NextcloudNotificationsListNotifications_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final BuiltList data; + + factory _$NextcloudNotificationsListNotifications_Ocs( + [void Function(NextcloudNotificationsListNotifications_OcsBuilder)? updates]) => + (NextcloudNotificationsListNotifications_OcsBuilder()..update(updates))._build(); + + _$NextcloudNotificationsListNotifications_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudNotificationsListNotifications_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudNotificationsListNotifications_Ocs', 'data'); + } + + @override + NextcloudNotificationsListNotifications_Ocs rebuild( + void Function(NextcloudNotificationsListNotifications_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsListNotifications_OcsBuilder toBuilder() => + NextcloudNotificationsListNotifications_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsListNotifications_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsListNotifications_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudNotificationsListNotifications_OcsBuilder + implements + Builder { + _$NextcloudNotificationsListNotifications_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + NextcloudNotificationsListNotifications_OcsBuilder(); + + NextcloudNotificationsListNotifications_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsListNotifications_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsListNotifications_Ocs; + } + + @override + void update(void Function(NextcloudNotificationsListNotifications_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsListNotifications_Ocs build() => _build(); + + _$NextcloudNotificationsListNotifications_Ocs _build() { + _$NextcloudNotificationsListNotifications_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudNotificationsListNotifications_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNotificationsListNotifications_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsListNotifications extends NextcloudNotificationsListNotifications { + @override + final NextcloudNotificationsListNotifications_Ocs ocs; + + factory _$NextcloudNotificationsListNotifications( + [void Function(NextcloudNotificationsListNotificationsBuilder)? updates]) => + (NextcloudNotificationsListNotificationsBuilder()..update(updates))._build(); + + _$NextcloudNotificationsListNotifications._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudNotificationsListNotifications', 'ocs'); + } + + @override + NextcloudNotificationsListNotifications rebuild( + void Function(NextcloudNotificationsListNotificationsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsListNotificationsBuilder toBuilder() => + NextcloudNotificationsListNotificationsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsListNotifications && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsListNotifications')..add('ocs', ocs)).toString(); + } +} + +class NextcloudNotificationsListNotificationsBuilder + implements Builder { + _$NextcloudNotificationsListNotifications? _$v; + + NextcloudNotificationsListNotifications_OcsBuilder? _ocs; + NextcloudNotificationsListNotifications_OcsBuilder get ocs => + _$this._ocs ??= NextcloudNotificationsListNotifications_OcsBuilder(); + set ocs(NextcloudNotificationsListNotifications_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudNotificationsListNotificationsBuilder(); + + NextcloudNotificationsListNotificationsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsListNotifications other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsListNotifications; + } + + @override + void update(void Function(NextcloudNotificationsListNotificationsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsListNotifications build() => _build(); + + _$NextcloudNotificationsListNotifications _build() { + _$NextcloudNotificationsListNotifications _$result; + try { + _$result = _$v ?? _$NextcloudNotificationsListNotifications._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNotificationsListNotifications', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsGetNotification_Ocs extends NextcloudNotificationsGetNotification_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudNotificationsNotification data; + + factory _$NextcloudNotificationsGetNotification_Ocs( + [void Function(NextcloudNotificationsGetNotification_OcsBuilder)? updates]) => + (NextcloudNotificationsGetNotification_OcsBuilder()..update(updates))._build(); + + _$NextcloudNotificationsGetNotification_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudNotificationsGetNotification_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudNotificationsGetNotification_Ocs', 'data'); + } + + @override + NextcloudNotificationsGetNotification_Ocs rebuild( + void Function(NextcloudNotificationsGetNotification_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsGetNotification_OcsBuilder toBuilder() => + NextcloudNotificationsGetNotification_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsGetNotification_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsGetNotification_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudNotificationsGetNotification_OcsBuilder + implements Builder { + _$NextcloudNotificationsGetNotification_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudNotificationsNotificationBuilder? _data; + NextcloudNotificationsNotificationBuilder get data => _$this._data ??= NextcloudNotificationsNotificationBuilder(); + set data(NextcloudNotificationsNotificationBuilder? data) => _$this._data = data; + + NextcloudNotificationsGetNotification_OcsBuilder(); + + NextcloudNotificationsGetNotification_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsGetNotification_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsGetNotification_Ocs; + } + + @override + void update(void Function(NextcloudNotificationsGetNotification_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsGetNotification_Ocs build() => _build(); + + _$NextcloudNotificationsGetNotification_Ocs _build() { + _$NextcloudNotificationsGetNotification_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudNotificationsGetNotification_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNotificationsGetNotification_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsGetNotification extends NextcloudNotificationsGetNotification { + @override + final NextcloudNotificationsGetNotification_Ocs ocs; + + factory _$NextcloudNotificationsGetNotification( + [void Function(NextcloudNotificationsGetNotificationBuilder)? updates]) => + (NextcloudNotificationsGetNotificationBuilder()..update(updates))._build(); + + _$NextcloudNotificationsGetNotification._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudNotificationsGetNotification', 'ocs'); + } + + @override + NextcloudNotificationsGetNotification rebuild(void Function(NextcloudNotificationsGetNotificationBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsGetNotificationBuilder toBuilder() => + NextcloudNotificationsGetNotificationBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsGetNotification && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsGetNotification')..add('ocs', ocs)).toString(); + } +} + +class NextcloudNotificationsGetNotificationBuilder + implements Builder { + _$NextcloudNotificationsGetNotification? _$v; + + NextcloudNotificationsGetNotification_OcsBuilder? _ocs; + NextcloudNotificationsGetNotification_OcsBuilder get ocs => + _$this._ocs ??= NextcloudNotificationsGetNotification_OcsBuilder(); + set ocs(NextcloudNotificationsGetNotification_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudNotificationsGetNotificationBuilder(); + + NextcloudNotificationsGetNotificationBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsGetNotification other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsGetNotification; + } + + @override + void update(void Function(NextcloudNotificationsGetNotificationBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsGetNotification build() => _build(); + + _$NextcloudNotificationsGetNotification _build() { + _$NextcloudNotificationsGetNotification _$result; + try { + _$result = _$v ?? _$NextcloudNotificationsGetNotification._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNotificationsGetNotification', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudEmptyOCS_Ocs extends NextcloudEmptyOCS_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final BuiltList data; + + factory _$NextcloudEmptyOCS_Ocs([void Function(NextcloudEmptyOCS_OcsBuilder)? updates]) => + (NextcloudEmptyOCS_OcsBuilder()..update(updates))._build(); + + _$NextcloudEmptyOCS_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudEmptyOCS_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudEmptyOCS_Ocs', 'data'); + } + + @override + NextcloudEmptyOCS_Ocs rebuild(void Function(NextcloudEmptyOCS_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudEmptyOCS_OcsBuilder toBuilder() => NextcloudEmptyOCS_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudEmptyOCS_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudEmptyOCS_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudEmptyOCS_OcsBuilder implements Builder { + _$NextcloudEmptyOCS_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + ListBuilder? _data; + ListBuilder get data => _$this._data ??= ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + NextcloudEmptyOCS_OcsBuilder(); + + NextcloudEmptyOCS_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudEmptyOCS_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudEmptyOCS_Ocs; + } + + @override + void update(void Function(NextcloudEmptyOCS_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudEmptyOCS_Ocs build() => _build(); + + _$NextcloudEmptyOCS_Ocs _build() { + _$NextcloudEmptyOCS_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudEmptyOCS_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudEmptyOCS_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudEmptyOCS extends NextcloudEmptyOCS { + @override + final NextcloudEmptyOCS_Ocs ocs; + + factory _$NextcloudEmptyOCS([void Function(NextcloudEmptyOCSBuilder)? updates]) => + (NextcloudEmptyOCSBuilder()..update(updates))._build(); + + _$NextcloudEmptyOCS._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudEmptyOCS', 'ocs'); + } + + @override + NextcloudEmptyOCS rebuild(void Function(NextcloudEmptyOCSBuilder) updates) => (toBuilder()..update(updates)).build(); + + @override + NextcloudEmptyOCSBuilder toBuilder() => NextcloudEmptyOCSBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudEmptyOCS && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudEmptyOCS')..add('ocs', ocs)).toString(); + } +} + +class NextcloudEmptyOCSBuilder implements Builder { + _$NextcloudEmptyOCS? _$v; + + NextcloudEmptyOCS_OcsBuilder? _ocs; + NextcloudEmptyOCS_OcsBuilder get ocs => _$this._ocs ??= NextcloudEmptyOCS_OcsBuilder(); + set ocs(NextcloudEmptyOCS_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudEmptyOCSBuilder(); + + NextcloudEmptyOCSBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudEmptyOCS other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudEmptyOCS; + } + + @override + void update(void Function(NextcloudEmptyOCSBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudEmptyOCS build() => _build(); + + _$NextcloudEmptyOCS _build() { + _$NextcloudEmptyOCS _$result; + try { + _$result = _$v ?? _$NextcloudEmptyOCS._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudEmptyOCS', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsPushServerSubscription extends NextcloudNotificationsPushServerSubscription { + @override + final String publicKey; + @override + final String deviceIdentifier; + @override + final String signature; + @override + final String? message; + + factory _$NextcloudNotificationsPushServerSubscription( + [void Function(NextcloudNotificationsPushServerSubscriptionBuilder)? updates]) => + (NextcloudNotificationsPushServerSubscriptionBuilder()..update(updates))._build(); + + _$NextcloudNotificationsPushServerSubscription._( + {required this.publicKey, required this.deviceIdentifier, required this.signature, this.message}) + : super._() { + BuiltValueNullFieldError.checkNotNull(publicKey, r'NextcloudNotificationsPushServerSubscription', 'publicKey'); + BuiltValueNullFieldError.checkNotNull( + deviceIdentifier, r'NextcloudNotificationsPushServerSubscription', 'deviceIdentifier'); + BuiltValueNullFieldError.checkNotNull(signature, r'NextcloudNotificationsPushServerSubscription', 'signature'); + } + + @override + NextcloudNotificationsPushServerSubscription rebuild( + void Function(NextcloudNotificationsPushServerSubscriptionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsPushServerSubscriptionBuilder toBuilder() => + NextcloudNotificationsPushServerSubscriptionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsPushServerSubscription && + publicKey == other.publicKey && + deviceIdentifier == other.deviceIdentifier && + signature == other.signature && + message == other.message; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, publicKey.hashCode); + _$hash = $jc(_$hash, deviceIdentifier.hashCode); + _$hash = $jc(_$hash, signature.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsPushServerSubscription') + ..add('publicKey', publicKey) + ..add('deviceIdentifier', deviceIdentifier) + ..add('signature', signature) + ..add('message', message)) + .toString(); + } +} + +class NextcloudNotificationsPushServerSubscriptionBuilder + implements + Builder { + _$NextcloudNotificationsPushServerSubscription? _$v; + + String? _publicKey; + String? get publicKey => _$this._publicKey; + set publicKey(String? publicKey) => _$this._publicKey = publicKey; + + String? _deviceIdentifier; + String? get deviceIdentifier => _$this._deviceIdentifier; + set deviceIdentifier(String? deviceIdentifier) => _$this._deviceIdentifier = deviceIdentifier; + + String? _signature; + String? get signature => _$this._signature; + set signature(String? signature) => _$this._signature = signature; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + NextcloudNotificationsPushServerSubscriptionBuilder(); + + NextcloudNotificationsPushServerSubscriptionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _publicKey = $v.publicKey; + _deviceIdentifier = $v.deviceIdentifier; + _signature = $v.signature; + _message = $v.message; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsPushServerSubscription other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsPushServerSubscription; + } + + @override + void update(void Function(NextcloudNotificationsPushServerSubscriptionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsPushServerSubscription build() => _build(); + + _$NextcloudNotificationsPushServerSubscription _build() { + final _$result = _$v ?? + _$NextcloudNotificationsPushServerSubscription._( + publicKey: BuiltValueNullFieldError.checkNotNull( + publicKey, r'NextcloudNotificationsPushServerSubscription', 'publicKey'), + deviceIdentifier: BuiltValueNullFieldError.checkNotNull( + deviceIdentifier, r'NextcloudNotificationsPushServerSubscription', 'deviceIdentifier'), + signature: BuiltValueNullFieldError.checkNotNull( + signature, r'NextcloudNotificationsPushServerSubscription', 'signature'), + message: message); + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsPushServerRegistration_Ocs extends NextcloudNotificationsPushServerRegistration_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudNotificationsPushServerSubscription data; + + factory _$NextcloudNotificationsPushServerRegistration_Ocs( + [void Function(NextcloudNotificationsPushServerRegistration_OcsBuilder)? updates]) => + (NextcloudNotificationsPushServerRegistration_OcsBuilder()..update(updates))._build(); + + _$NextcloudNotificationsPushServerRegistration_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudNotificationsPushServerRegistration_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudNotificationsPushServerRegistration_Ocs', 'data'); + } + + @override + NextcloudNotificationsPushServerRegistration_Ocs rebuild( + void Function(NextcloudNotificationsPushServerRegistration_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsPushServerRegistration_OcsBuilder toBuilder() => + NextcloudNotificationsPushServerRegistration_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsPushServerRegistration_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsPushServerRegistration_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudNotificationsPushServerRegistration_OcsBuilder + implements + Builder { + _$NextcloudNotificationsPushServerRegistration_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudNotificationsPushServerSubscriptionBuilder? _data; + NextcloudNotificationsPushServerSubscriptionBuilder get data => + _$this._data ??= NextcloudNotificationsPushServerSubscriptionBuilder(); + set data(NextcloudNotificationsPushServerSubscriptionBuilder? data) => _$this._data = data; + + NextcloudNotificationsPushServerRegistration_OcsBuilder(); + + NextcloudNotificationsPushServerRegistration_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsPushServerRegistration_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsPushServerRegistration_Ocs; + } + + @override + void update(void Function(NextcloudNotificationsPushServerRegistration_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsPushServerRegistration_Ocs build() => _build(); + + _$NextcloudNotificationsPushServerRegistration_Ocs _build() { + _$NextcloudNotificationsPushServerRegistration_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudNotificationsPushServerRegistration_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudNotificationsPushServerRegistration_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsPushServerRegistration extends NextcloudNotificationsPushServerRegistration { + @override + final NextcloudNotificationsPushServerRegistration_Ocs ocs; + + factory _$NextcloudNotificationsPushServerRegistration( + [void Function(NextcloudNotificationsPushServerRegistrationBuilder)? updates]) => + (NextcloudNotificationsPushServerRegistrationBuilder()..update(updates))._build(); + + _$NextcloudNotificationsPushServerRegistration._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudNotificationsPushServerRegistration', 'ocs'); + } + + @override + NextcloudNotificationsPushServerRegistration rebuild( + void Function(NextcloudNotificationsPushServerRegistrationBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsPushServerRegistrationBuilder toBuilder() => + NextcloudNotificationsPushServerRegistrationBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsPushServerRegistration && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsPushServerRegistration')..add('ocs', ocs)).toString(); + } +} + +class NextcloudNotificationsPushServerRegistrationBuilder + implements + Builder { + _$NextcloudNotificationsPushServerRegistration? _$v; + + NextcloudNotificationsPushServerRegistration_OcsBuilder? _ocs; + NextcloudNotificationsPushServerRegistration_OcsBuilder get ocs => + _$this._ocs ??= NextcloudNotificationsPushServerRegistration_OcsBuilder(); + set ocs(NextcloudNotificationsPushServerRegistration_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudNotificationsPushServerRegistrationBuilder(); + + NextcloudNotificationsPushServerRegistrationBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsPushServerRegistration other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsPushServerRegistration; + } + + @override + void update(void Function(NextcloudNotificationsPushServerRegistrationBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsPushServerRegistration build() => _build(); + + _$NextcloudNotificationsPushServerRegistration _build() { + _$NextcloudNotificationsPushServerRegistration _$result; + try { + _$result = _$v ?? _$NextcloudNotificationsPushServerRegistration._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudNotificationsPushServerRegistration', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudProvisioningApiUserDetails_Quota extends NextcloudProvisioningApiUserDetails_Quota { + @override + final int free; + @override + final int used; + @override + final int total; + @override + final num relative; + @override + final int quota; + + factory _$NextcloudProvisioningApiUserDetails_Quota( + [void Function(NextcloudProvisioningApiUserDetails_QuotaBuilder)? updates]) => + (NextcloudProvisioningApiUserDetails_QuotaBuilder()..update(updates))._build(); + + _$NextcloudProvisioningApiUserDetails_Quota._( + {required this.free, required this.used, required this.total, required this.relative, required this.quota}) + : super._() { + BuiltValueNullFieldError.checkNotNull(free, r'NextcloudProvisioningApiUserDetails_Quota', 'free'); + BuiltValueNullFieldError.checkNotNull(used, r'NextcloudProvisioningApiUserDetails_Quota', 'used'); + BuiltValueNullFieldError.checkNotNull(total, r'NextcloudProvisioningApiUserDetails_Quota', 'total'); + BuiltValueNullFieldError.checkNotNull(relative, r'NextcloudProvisioningApiUserDetails_Quota', 'relative'); + BuiltValueNullFieldError.checkNotNull(quota, r'NextcloudProvisioningApiUserDetails_Quota', 'quota'); + } + + @override + NextcloudProvisioningApiUserDetails_Quota rebuild( + void Function(NextcloudProvisioningApiUserDetails_QuotaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudProvisioningApiUserDetails_QuotaBuilder toBuilder() => + NextcloudProvisioningApiUserDetails_QuotaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudProvisioningApiUserDetails_Quota && + free == other.free && + used == other.used && + total == other.total && + relative == other.relative && + quota == other.quota; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, free.hashCode); + _$hash = $jc(_$hash, used.hashCode); + _$hash = $jc(_$hash, total.hashCode); + _$hash = $jc(_$hash, relative.hashCode); + _$hash = $jc(_$hash, quota.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudProvisioningApiUserDetails_Quota') + ..add('free', free) + ..add('used', used) + ..add('total', total) + ..add('relative', relative) + ..add('quota', quota)) + .toString(); + } +} + +class NextcloudProvisioningApiUserDetails_QuotaBuilder + implements Builder { + _$NextcloudProvisioningApiUserDetails_Quota? _$v; + + int? _free; + int? get free => _$this._free; + set free(int? free) => _$this._free = free; + + int? _used; + int? get used => _$this._used; + set used(int? used) => _$this._used = used; + + int? _total; + int? get total => _$this._total; + set total(int? total) => _$this._total = total; + + num? _relative; + num? get relative => _$this._relative; + set relative(num? relative) => _$this._relative = relative; + + int? _quota; + int? get quota => _$this._quota; + set quota(int? quota) => _$this._quota = quota; + + NextcloudProvisioningApiUserDetails_QuotaBuilder(); + + NextcloudProvisioningApiUserDetails_QuotaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _free = $v.free; + _used = $v.used; + _total = $v.total; + _relative = $v.relative; + _quota = $v.quota; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudProvisioningApiUserDetails_Quota other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudProvisioningApiUserDetails_Quota; + } + + @override + void update(void Function(NextcloudProvisioningApiUserDetails_QuotaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudProvisioningApiUserDetails_Quota build() => _build(); + + _$NextcloudProvisioningApiUserDetails_Quota _build() { + final _$result = _$v ?? + _$NextcloudProvisioningApiUserDetails_Quota._( + free: BuiltValueNullFieldError.checkNotNull(free, r'NextcloudProvisioningApiUserDetails_Quota', 'free'), + used: BuiltValueNullFieldError.checkNotNull(used, r'NextcloudProvisioningApiUserDetails_Quota', 'used'), + total: BuiltValueNullFieldError.checkNotNull(total, r'NextcloudProvisioningApiUserDetails_Quota', 'total'), + relative: BuiltValueNullFieldError.checkNotNull( + relative, r'NextcloudProvisioningApiUserDetails_Quota', 'relative'), + quota: BuiltValueNullFieldError.checkNotNull(quota, r'NextcloudProvisioningApiUserDetails_Quota', 'quota')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudProvisioningApiUserDetails_BackendCapabilities + extends NextcloudProvisioningApiUserDetails_BackendCapabilities { + @override + final bool setDisplayName; + @override + final bool setPassword; + + factory _$NextcloudProvisioningApiUserDetails_BackendCapabilities( + [void Function(NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder)? updates]) => + (NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder()..update(updates))._build(); + + _$NextcloudProvisioningApiUserDetails_BackendCapabilities._({required this.setDisplayName, required this.setPassword}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + setDisplayName, r'NextcloudProvisioningApiUserDetails_BackendCapabilities', 'setDisplayName'); + BuiltValueNullFieldError.checkNotNull( + setPassword, r'NextcloudProvisioningApiUserDetails_BackendCapabilities', 'setPassword'); + } + + @override + NextcloudProvisioningApiUserDetails_BackendCapabilities rebuild( + void Function(NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder toBuilder() => + NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudProvisioningApiUserDetails_BackendCapabilities && + setDisplayName == other.setDisplayName && + setPassword == other.setPassword; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, setDisplayName.hashCode); + _$hash = $jc(_$hash, setPassword.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudProvisioningApiUserDetails_BackendCapabilities') + ..add('setDisplayName', setDisplayName) + ..add('setPassword', setPassword)) + .toString(); + } +} + +class NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder + implements + Builder { + _$NextcloudProvisioningApiUserDetails_BackendCapabilities? _$v; + + bool? _setDisplayName; + bool? get setDisplayName => _$this._setDisplayName; + set setDisplayName(bool? setDisplayName) => _$this._setDisplayName = setDisplayName; + + bool? _setPassword; + bool? get setPassword => _$this._setPassword; + set setPassword(bool? setPassword) => _$this._setPassword = setPassword; + + NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder(); + + NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _setDisplayName = $v.setDisplayName; + _setPassword = $v.setPassword; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudProvisioningApiUserDetails_BackendCapabilities other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudProvisioningApiUserDetails_BackendCapabilities; + } + + @override + void update(void Function(NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudProvisioningApiUserDetails_BackendCapabilities build() => _build(); + + _$NextcloudProvisioningApiUserDetails_BackendCapabilities _build() { + final _$result = _$v ?? + _$NextcloudProvisioningApiUserDetails_BackendCapabilities._( + setDisplayName: BuiltValueNullFieldError.checkNotNull( + setDisplayName, r'NextcloudProvisioningApiUserDetails_BackendCapabilities', 'setDisplayName'), + setPassword: BuiltValueNullFieldError.checkNotNull( + setPassword, r'NextcloudProvisioningApiUserDetails_BackendCapabilities', 'setPassword')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUserDetails { + @override + final bool? enabled; + @override + final String? storageLocation; + @override + final String id; + @override + final int lastLogin; + @override + final String backend; + @override + final BuiltList subadmin; + @override + final NextcloudProvisioningApiUserDetails_Quota quota; + @override + final String avatarScope; + @override + final String? email; + @override + final String emailScope; + @override + final BuiltList additionalMail; + @override + final BuiltList additionalMailScope; + @override + final String? displayname; + @override + final String displaynameScope; + @override + final String phone; + @override + final String phoneScope; + @override + final String address; + @override + final String addressScope; + @override + final String website; + @override + final String websiteScope; + @override + final String twitter; + @override + final String twitterScope; + @override + final String organisation; + @override + final String organisationScope; + @override + final String role; + @override + final String roleScope; + @override + final String headline; + @override + final String headlineScope; + @override + final String biography; + @override + final String biographyScope; + @override + final String profileEnabled; + @override + final String profileEnabledScope; + @override + final String fediverse; + @override + final String fediverseScope; + @override + final BuiltList groups; + @override + final String language; + @override + final String locale; + @override + final String? notifyEmail; + @override + final NextcloudProvisioningApiUserDetails_BackendCapabilities backendCapabilities; + @override + final String? displayName; + + factory _$NextcloudProvisioningApiUserDetails([void Function(NextcloudProvisioningApiUserDetailsBuilder)? updates]) => + (NextcloudProvisioningApiUserDetailsBuilder()..update(updates))._build(); + + _$NextcloudProvisioningApiUserDetails._( + {this.enabled, + this.storageLocation, + required this.id, + required this.lastLogin, + required this.backend, + required this.subadmin, + required this.quota, + required this.avatarScope, + this.email, + required this.emailScope, + required this.additionalMail, + required this.additionalMailScope, + this.displayname, + required this.displaynameScope, + required this.phone, + required this.phoneScope, + required this.address, + required this.addressScope, + required this.website, + required this.websiteScope, + required this.twitter, + required this.twitterScope, + required this.organisation, + required this.organisationScope, + required this.role, + required this.roleScope, + required this.headline, + required this.headlineScope, + required this.biography, + required this.biographyScope, + required this.profileEnabled, + required this.profileEnabledScope, + required this.fediverse, + required this.fediverseScope, + required this.groups, + required this.language, + required this.locale, + this.notifyEmail, + required this.backendCapabilities, + this.displayName}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudProvisioningApiUserDetails', 'id'); + BuiltValueNullFieldError.checkNotNull(lastLogin, r'NextcloudProvisioningApiUserDetails', 'lastLogin'); + BuiltValueNullFieldError.checkNotNull(backend, r'NextcloudProvisioningApiUserDetails', 'backend'); + BuiltValueNullFieldError.checkNotNull(subadmin, r'NextcloudProvisioningApiUserDetails', 'subadmin'); + BuiltValueNullFieldError.checkNotNull(quota, r'NextcloudProvisioningApiUserDetails', 'quota'); + BuiltValueNullFieldError.checkNotNull(avatarScope, r'NextcloudProvisioningApiUserDetails', 'avatarScope'); + BuiltValueNullFieldError.checkNotNull(emailScope, r'NextcloudProvisioningApiUserDetails', 'emailScope'); + BuiltValueNullFieldError.checkNotNull(additionalMail, r'NextcloudProvisioningApiUserDetails', 'additionalMail'); + BuiltValueNullFieldError.checkNotNull( + additionalMailScope, r'NextcloudProvisioningApiUserDetails', 'additionalMailScope'); + BuiltValueNullFieldError.checkNotNull(displaynameScope, r'NextcloudProvisioningApiUserDetails', 'displaynameScope'); + BuiltValueNullFieldError.checkNotNull(phone, r'NextcloudProvisioningApiUserDetails', 'phone'); + BuiltValueNullFieldError.checkNotNull(phoneScope, r'NextcloudProvisioningApiUserDetails', 'phoneScope'); + BuiltValueNullFieldError.checkNotNull(address, r'NextcloudProvisioningApiUserDetails', 'address'); + BuiltValueNullFieldError.checkNotNull(addressScope, r'NextcloudProvisioningApiUserDetails', 'addressScope'); + BuiltValueNullFieldError.checkNotNull(website, r'NextcloudProvisioningApiUserDetails', 'website'); + BuiltValueNullFieldError.checkNotNull(websiteScope, r'NextcloudProvisioningApiUserDetails', 'websiteScope'); + BuiltValueNullFieldError.checkNotNull(twitter, r'NextcloudProvisioningApiUserDetails', 'twitter'); + BuiltValueNullFieldError.checkNotNull(twitterScope, r'NextcloudProvisioningApiUserDetails', 'twitterScope'); + BuiltValueNullFieldError.checkNotNull(organisation, r'NextcloudProvisioningApiUserDetails', 'organisation'); + BuiltValueNullFieldError.checkNotNull( + organisationScope, r'NextcloudProvisioningApiUserDetails', 'organisationScope'); + BuiltValueNullFieldError.checkNotNull(role, r'NextcloudProvisioningApiUserDetails', 'role'); + BuiltValueNullFieldError.checkNotNull(roleScope, r'NextcloudProvisioningApiUserDetails', 'roleScope'); + BuiltValueNullFieldError.checkNotNull(headline, r'NextcloudProvisioningApiUserDetails', 'headline'); + BuiltValueNullFieldError.checkNotNull(headlineScope, r'NextcloudProvisioningApiUserDetails', 'headlineScope'); + BuiltValueNullFieldError.checkNotNull(biography, r'NextcloudProvisioningApiUserDetails', 'biography'); + BuiltValueNullFieldError.checkNotNull(biographyScope, r'NextcloudProvisioningApiUserDetails', 'biographyScope'); + BuiltValueNullFieldError.checkNotNull(profileEnabled, r'NextcloudProvisioningApiUserDetails', 'profileEnabled'); + BuiltValueNullFieldError.checkNotNull( + profileEnabledScope, r'NextcloudProvisioningApiUserDetails', 'profileEnabledScope'); + BuiltValueNullFieldError.checkNotNull(fediverse, r'NextcloudProvisioningApiUserDetails', 'fediverse'); + BuiltValueNullFieldError.checkNotNull(fediverseScope, r'NextcloudProvisioningApiUserDetails', 'fediverseScope'); + BuiltValueNullFieldError.checkNotNull(groups, r'NextcloudProvisioningApiUserDetails', 'groups'); + BuiltValueNullFieldError.checkNotNull(language, r'NextcloudProvisioningApiUserDetails', 'language'); + BuiltValueNullFieldError.checkNotNull(locale, r'NextcloudProvisioningApiUserDetails', 'locale'); + BuiltValueNullFieldError.checkNotNull( + backendCapabilities, r'NextcloudProvisioningApiUserDetails', 'backendCapabilities'); + } + + @override + NextcloudProvisioningApiUserDetails rebuild(void Function(NextcloudProvisioningApiUserDetailsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudProvisioningApiUserDetailsBuilder toBuilder() => NextcloudProvisioningApiUserDetailsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudProvisioningApiUserDetails && + enabled == other.enabled && + storageLocation == other.storageLocation && + id == other.id && + lastLogin == other.lastLogin && + backend == other.backend && + subadmin == other.subadmin && + quota == other.quota && + avatarScope == other.avatarScope && + email == other.email && + emailScope == other.emailScope && + additionalMail == other.additionalMail && + additionalMailScope == other.additionalMailScope && + displayname == other.displayname && + displaynameScope == other.displaynameScope && + phone == other.phone && + phoneScope == other.phoneScope && + address == other.address && + addressScope == other.addressScope && + website == other.website && + websiteScope == other.websiteScope && + twitter == other.twitter && + twitterScope == other.twitterScope && + organisation == other.organisation && + organisationScope == other.organisationScope && + role == other.role && + roleScope == other.roleScope && + headline == other.headline && + headlineScope == other.headlineScope && + biography == other.biography && + biographyScope == other.biographyScope && + profileEnabled == other.profileEnabled && + profileEnabledScope == other.profileEnabledScope && + fediverse == other.fediverse && + fediverseScope == other.fediverseScope && + groups == other.groups && + language == other.language && + locale == other.locale && + notifyEmail == other.notifyEmail && + backendCapabilities == other.backendCapabilities && + displayName == other.displayName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, storageLocation.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastLogin.hashCode); + _$hash = $jc(_$hash, backend.hashCode); + _$hash = $jc(_$hash, subadmin.hashCode); + _$hash = $jc(_$hash, quota.hashCode); + _$hash = $jc(_$hash, avatarScope.hashCode); + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, emailScope.hashCode); + _$hash = $jc(_$hash, additionalMail.hashCode); + _$hash = $jc(_$hash, additionalMailScope.hashCode); + _$hash = $jc(_$hash, displayname.hashCode); + _$hash = $jc(_$hash, displaynameScope.hashCode); + _$hash = $jc(_$hash, phone.hashCode); + _$hash = $jc(_$hash, phoneScope.hashCode); + _$hash = $jc(_$hash, address.hashCode); + _$hash = $jc(_$hash, addressScope.hashCode); + _$hash = $jc(_$hash, website.hashCode); + _$hash = $jc(_$hash, websiteScope.hashCode); + _$hash = $jc(_$hash, twitter.hashCode); + _$hash = $jc(_$hash, twitterScope.hashCode); + _$hash = $jc(_$hash, organisation.hashCode); + _$hash = $jc(_$hash, organisationScope.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jc(_$hash, roleScope.hashCode); + _$hash = $jc(_$hash, headline.hashCode); + _$hash = $jc(_$hash, headlineScope.hashCode); + _$hash = $jc(_$hash, biography.hashCode); + _$hash = $jc(_$hash, biographyScope.hashCode); + _$hash = $jc(_$hash, profileEnabled.hashCode); + _$hash = $jc(_$hash, profileEnabledScope.hashCode); + _$hash = $jc(_$hash, fediverse.hashCode); + _$hash = $jc(_$hash, fediverseScope.hashCode); + _$hash = $jc(_$hash, groups.hashCode); + _$hash = $jc(_$hash, language.hashCode); + _$hash = $jc(_$hash, locale.hashCode); + _$hash = $jc(_$hash, notifyEmail.hashCode); + _$hash = $jc(_$hash, backendCapabilities.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudProvisioningApiUserDetails') + ..add('enabled', enabled) + ..add('storageLocation', storageLocation) + ..add('id', id) + ..add('lastLogin', lastLogin) + ..add('backend', backend) + ..add('subadmin', subadmin) + ..add('quota', quota) + ..add('avatarScope', avatarScope) + ..add('email', email) + ..add('emailScope', emailScope) + ..add('additionalMail', additionalMail) + ..add('additionalMailScope', additionalMailScope) + ..add('displayname', displayname) + ..add('displaynameScope', displaynameScope) + ..add('phone', phone) + ..add('phoneScope', phoneScope) + ..add('address', address) + ..add('addressScope', addressScope) + ..add('website', website) + ..add('websiteScope', websiteScope) + ..add('twitter', twitter) + ..add('twitterScope', twitterScope) + ..add('organisation', organisation) + ..add('organisationScope', organisationScope) + ..add('role', role) + ..add('roleScope', roleScope) + ..add('headline', headline) + ..add('headlineScope', headlineScope) + ..add('biography', biography) + ..add('biographyScope', biographyScope) + ..add('profileEnabled', profileEnabled) + ..add('profileEnabledScope', profileEnabledScope) + ..add('fediverse', fediverse) + ..add('fediverseScope', fediverseScope) + ..add('groups', groups) + ..add('language', language) + ..add('locale', locale) + ..add('notifyEmail', notifyEmail) + ..add('backendCapabilities', backendCapabilities) + ..add('displayName', displayName)) + .toString(); + } +} + +class NextcloudProvisioningApiUserDetailsBuilder + implements Builder { + _$NextcloudProvisioningApiUserDetails? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + String? _storageLocation; + String? get storageLocation => _$this._storageLocation; + set storageLocation(String? storageLocation) => _$this._storageLocation = storageLocation; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + int? _lastLogin; + int? get lastLogin => _$this._lastLogin; + set lastLogin(int? lastLogin) => _$this._lastLogin = lastLogin; + + String? _backend; + String? get backend => _$this._backend; + set backend(String? backend) => _$this._backend = backend; + + ListBuilder? _subadmin; + ListBuilder get subadmin => _$this._subadmin ??= ListBuilder(); + set subadmin(ListBuilder? subadmin) => _$this._subadmin = subadmin; + + NextcloudProvisioningApiUserDetails_QuotaBuilder? _quota; + NextcloudProvisioningApiUserDetails_QuotaBuilder get quota => + _$this._quota ??= NextcloudProvisioningApiUserDetails_QuotaBuilder(); + set quota(NextcloudProvisioningApiUserDetails_QuotaBuilder? quota) => _$this._quota = quota; + + String? _avatarScope; + String? get avatarScope => _$this._avatarScope; + set avatarScope(String? avatarScope) => _$this._avatarScope = avatarScope; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _emailScope; + String? get emailScope => _$this._emailScope; + set emailScope(String? emailScope) => _$this._emailScope = emailScope; + + ListBuilder? _additionalMail; + ListBuilder get additionalMail => _$this._additionalMail ??= ListBuilder(); + set additionalMail(ListBuilder? additionalMail) => _$this._additionalMail = additionalMail; + + ListBuilder? _additionalMailScope; + ListBuilder get additionalMailScope => _$this._additionalMailScope ??= ListBuilder(); + set additionalMailScope(ListBuilder? additionalMailScope) => + _$this._additionalMailScope = additionalMailScope; + + String? _displayname; + String? get displayname => _$this._displayname; + set displayname(String? displayname) => _$this._displayname = displayname; + + String? _displaynameScope; + String? get displaynameScope => _$this._displaynameScope; + set displaynameScope(String? displaynameScope) => _$this._displaynameScope = displaynameScope; + + String? _phone; + String? get phone => _$this._phone; + set phone(String? phone) => _$this._phone = phone; + + String? _phoneScope; + String? get phoneScope => _$this._phoneScope; + set phoneScope(String? phoneScope) => _$this._phoneScope = phoneScope; + + String? _address; + String? get address => _$this._address; + set address(String? address) => _$this._address = address; + + String? _addressScope; + String? get addressScope => _$this._addressScope; + set addressScope(String? addressScope) => _$this._addressScope = addressScope; + + String? _website; + String? get website => _$this._website; + set website(String? website) => _$this._website = website; + + String? _websiteScope; + String? get websiteScope => _$this._websiteScope; + set websiteScope(String? websiteScope) => _$this._websiteScope = websiteScope; + + String? _twitter; + String? get twitter => _$this._twitter; + set twitter(String? twitter) => _$this._twitter = twitter; + + String? _twitterScope; + String? get twitterScope => _$this._twitterScope; + set twitterScope(String? twitterScope) => _$this._twitterScope = twitterScope; + + String? _organisation; + String? get organisation => _$this._organisation; + set organisation(String? organisation) => _$this._organisation = organisation; + + String? _organisationScope; + String? get organisationScope => _$this._organisationScope; + set organisationScope(String? organisationScope) => _$this._organisationScope = organisationScope; + + String? _role; + String? get role => _$this._role; + set role(String? role) => _$this._role = role; + + String? _roleScope; + String? get roleScope => _$this._roleScope; + set roleScope(String? roleScope) => _$this._roleScope = roleScope; + + String? _headline; + String? get headline => _$this._headline; + set headline(String? headline) => _$this._headline = headline; + + String? _headlineScope; + String? get headlineScope => _$this._headlineScope; + set headlineScope(String? headlineScope) => _$this._headlineScope = headlineScope; + + String? _biography; + String? get biography => _$this._biography; + set biography(String? biography) => _$this._biography = biography; + + String? _biographyScope; + String? get biographyScope => _$this._biographyScope; + set biographyScope(String? biographyScope) => _$this._biographyScope = biographyScope; + + String? _profileEnabled; + String? get profileEnabled => _$this._profileEnabled; + set profileEnabled(String? profileEnabled) => _$this._profileEnabled = profileEnabled; + + String? _profileEnabledScope; + String? get profileEnabledScope => _$this._profileEnabledScope; + set profileEnabledScope(String? profileEnabledScope) => _$this._profileEnabledScope = profileEnabledScope; + + String? _fediverse; + String? get fediverse => _$this._fediverse; + set fediverse(String? fediverse) => _$this._fediverse = fediverse; + + String? _fediverseScope; + String? get fediverseScope => _$this._fediverseScope; + set fediverseScope(String? fediverseScope) => _$this._fediverseScope = fediverseScope; + + ListBuilder? _groups; + ListBuilder get groups => _$this._groups ??= ListBuilder(); + set groups(ListBuilder? groups) => _$this._groups = groups; + + String? _language; + String? get language => _$this._language; + set language(String? language) => _$this._language = language; + + String? _locale; + String? get locale => _$this._locale; + set locale(String? locale) => _$this._locale = locale; + + String? _notifyEmail; + String? get notifyEmail => _$this._notifyEmail; + set notifyEmail(String? notifyEmail) => _$this._notifyEmail = notifyEmail; + + NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder? _backendCapabilities; + NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder get backendCapabilities => + _$this._backendCapabilities ??= NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder(); + set backendCapabilities(NextcloudProvisioningApiUserDetails_BackendCapabilitiesBuilder? backendCapabilities) => + _$this._backendCapabilities = backendCapabilities; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + NextcloudProvisioningApiUserDetailsBuilder(); + + NextcloudProvisioningApiUserDetailsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _storageLocation = $v.storageLocation; + _id = $v.id; + _lastLogin = $v.lastLogin; + _backend = $v.backend; + _subadmin = $v.subadmin.toBuilder(); + _quota = $v.quota.toBuilder(); + _avatarScope = $v.avatarScope; + _email = $v.email; + _emailScope = $v.emailScope; + _additionalMail = $v.additionalMail.toBuilder(); + _additionalMailScope = $v.additionalMailScope.toBuilder(); + _displayname = $v.displayname; + _displaynameScope = $v.displaynameScope; + _phone = $v.phone; + _phoneScope = $v.phoneScope; + _address = $v.address; + _addressScope = $v.addressScope; + _website = $v.website; + _websiteScope = $v.websiteScope; + _twitter = $v.twitter; + _twitterScope = $v.twitterScope; + _organisation = $v.organisation; + _organisationScope = $v.organisationScope; + _role = $v.role; + _roleScope = $v.roleScope; + _headline = $v.headline; + _headlineScope = $v.headlineScope; + _biography = $v.biography; + _biographyScope = $v.biographyScope; + _profileEnabled = $v.profileEnabled; + _profileEnabledScope = $v.profileEnabledScope; + _fediverse = $v.fediverse; + _fediverseScope = $v.fediverseScope; + _groups = $v.groups.toBuilder(); + _language = $v.language; + _locale = $v.locale; + _notifyEmail = $v.notifyEmail; + _backendCapabilities = $v.backendCapabilities.toBuilder(); + _displayName = $v.displayName; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudProvisioningApiUserDetails other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudProvisioningApiUserDetails; + } + + @override + void update(void Function(NextcloudProvisioningApiUserDetailsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudProvisioningApiUserDetails build() => _build(); + + _$NextcloudProvisioningApiUserDetails _build() { + _$NextcloudProvisioningApiUserDetails _$result; + try { + _$result = _$v ?? + _$NextcloudProvisioningApiUserDetails._( + enabled: enabled, + storageLocation: storageLocation, + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudProvisioningApiUserDetails', 'id'), + lastLogin: + BuiltValueNullFieldError.checkNotNull(lastLogin, r'NextcloudProvisioningApiUserDetails', 'lastLogin'), + backend: + BuiltValueNullFieldError.checkNotNull(backend, r'NextcloudProvisioningApiUserDetails', 'backend'), + subadmin: subadmin.build(), + quota: quota.build(), + avatarScope: BuiltValueNullFieldError.checkNotNull( + avatarScope, r'NextcloudProvisioningApiUserDetails', 'avatarScope'), + email: email, + emailScope: BuiltValueNullFieldError.checkNotNull( + emailScope, r'NextcloudProvisioningApiUserDetails', 'emailScope'), + additionalMail: additionalMail.build(), + additionalMailScope: additionalMailScope.build(), + displayname: displayname, + displaynameScope: BuiltValueNullFieldError.checkNotNull( + displaynameScope, r'NextcloudProvisioningApiUserDetails', 'displaynameScope'), + phone: BuiltValueNullFieldError.checkNotNull(phone, r'NextcloudProvisioningApiUserDetails', 'phone'), + phoneScope: BuiltValueNullFieldError.checkNotNull( + phoneScope, r'NextcloudProvisioningApiUserDetails', 'phoneScope'), + address: + BuiltValueNullFieldError.checkNotNull(address, r'NextcloudProvisioningApiUserDetails', 'address'), + addressScope: BuiltValueNullFieldError.checkNotNull( + addressScope, r'NextcloudProvisioningApiUserDetails', 'addressScope'), + website: + BuiltValueNullFieldError.checkNotNull(website, r'NextcloudProvisioningApiUserDetails', 'website'), + websiteScope: BuiltValueNullFieldError.checkNotNull( + websiteScope, r'NextcloudProvisioningApiUserDetails', 'websiteScope'), + twitter: + BuiltValueNullFieldError.checkNotNull(twitter, r'NextcloudProvisioningApiUserDetails', 'twitter'), + twitterScope: BuiltValueNullFieldError.checkNotNull( + twitterScope, r'NextcloudProvisioningApiUserDetails', 'twitterScope'), + organisation: BuiltValueNullFieldError.checkNotNull( + organisation, r'NextcloudProvisioningApiUserDetails', 'organisation'), + organisationScope: BuiltValueNullFieldError.checkNotNull( + organisationScope, r'NextcloudProvisioningApiUserDetails', 'organisationScope'), + role: BuiltValueNullFieldError.checkNotNull(role, r'NextcloudProvisioningApiUserDetails', 'role'), + roleScope: BuiltValueNullFieldError.checkNotNull(roleScope, r'NextcloudProvisioningApiUserDetails', 'roleScope'), + headline: BuiltValueNullFieldError.checkNotNull(headline, r'NextcloudProvisioningApiUserDetails', 'headline'), + headlineScope: BuiltValueNullFieldError.checkNotNull(headlineScope, r'NextcloudProvisioningApiUserDetails', 'headlineScope'), + biography: BuiltValueNullFieldError.checkNotNull(biography, r'NextcloudProvisioningApiUserDetails', 'biography'), + biographyScope: BuiltValueNullFieldError.checkNotNull(biographyScope, r'NextcloudProvisioningApiUserDetails', 'biographyScope'), + profileEnabled: BuiltValueNullFieldError.checkNotNull(profileEnabled, r'NextcloudProvisioningApiUserDetails', 'profileEnabled'), + profileEnabledScope: BuiltValueNullFieldError.checkNotNull(profileEnabledScope, r'NextcloudProvisioningApiUserDetails', 'profileEnabledScope'), + fediverse: BuiltValueNullFieldError.checkNotNull(fediverse, r'NextcloudProvisioningApiUserDetails', 'fediverse'), + fediverseScope: BuiltValueNullFieldError.checkNotNull(fediverseScope, r'NextcloudProvisioningApiUserDetails', 'fediverseScope'), + groups: groups.build(), + language: BuiltValueNullFieldError.checkNotNull(language, r'NextcloudProvisioningApiUserDetails', 'language'), + locale: BuiltValueNullFieldError.checkNotNull(locale, r'NextcloudProvisioningApiUserDetails', 'locale'), + notifyEmail: notifyEmail, + backendCapabilities: backendCapabilities.build(), + displayName: displayName); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'subadmin'; + subadmin.build(); + _$failedField = 'quota'; + quota.build(); + + _$failedField = 'additionalMail'; + additionalMail.build(); + _$failedField = 'additionalMailScope'; + additionalMailScope.build(); + + _$failedField = 'groups'; + groups.build(); + + _$failedField = 'backendCapabilities'; + backendCapabilities.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudProvisioningApiUserDetails', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudProvisioningApiUser_Ocs extends NextcloudProvisioningApiUser_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudProvisioningApiUserDetails data; + + factory _$NextcloudProvisioningApiUser_Ocs([void Function(NextcloudProvisioningApiUser_OcsBuilder)? updates]) => + (NextcloudProvisioningApiUser_OcsBuilder()..update(updates))._build(); + + _$NextcloudProvisioningApiUser_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudProvisioningApiUser_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudProvisioningApiUser_Ocs', 'data'); + } + + @override + NextcloudProvisioningApiUser_Ocs rebuild(void Function(NextcloudProvisioningApiUser_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudProvisioningApiUser_OcsBuilder toBuilder() => NextcloudProvisioningApiUser_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudProvisioningApiUser_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudProvisioningApiUser_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudProvisioningApiUser_OcsBuilder + implements Builder { + _$NextcloudProvisioningApiUser_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudProvisioningApiUserDetailsBuilder? _data; + NextcloudProvisioningApiUserDetailsBuilder get data => _$this._data ??= NextcloudProvisioningApiUserDetailsBuilder(); + set data(NextcloudProvisioningApiUserDetailsBuilder? data) => _$this._data = data; + + NextcloudProvisioningApiUser_OcsBuilder(); + + NextcloudProvisioningApiUser_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudProvisioningApiUser_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudProvisioningApiUser_Ocs; + } + + @override + void update(void Function(NextcloudProvisioningApiUser_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudProvisioningApiUser_Ocs build() => _build(); + + _$NextcloudProvisioningApiUser_Ocs _build() { + _$NextcloudProvisioningApiUser_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudProvisioningApiUser_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudProvisioningApiUser_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudProvisioningApiUser extends NextcloudProvisioningApiUser { + @override + final NextcloudProvisioningApiUser_Ocs ocs; + + factory _$NextcloudProvisioningApiUser([void Function(NextcloudProvisioningApiUserBuilder)? updates]) => + (NextcloudProvisioningApiUserBuilder()..update(updates))._build(); + + _$NextcloudProvisioningApiUser._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudProvisioningApiUser', 'ocs'); + } + + @override + NextcloudProvisioningApiUser rebuild(void Function(NextcloudProvisioningApiUserBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudProvisioningApiUserBuilder toBuilder() => NextcloudProvisioningApiUserBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudProvisioningApiUser && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudProvisioningApiUser')..add('ocs', ocs)).toString(); + } +} + +class NextcloudProvisioningApiUserBuilder + implements Builder { + _$NextcloudProvisioningApiUser? _$v; + + NextcloudProvisioningApiUser_OcsBuilder? _ocs; + NextcloudProvisioningApiUser_OcsBuilder get ocs => _$this._ocs ??= NextcloudProvisioningApiUser_OcsBuilder(); + set ocs(NextcloudProvisioningApiUser_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudProvisioningApiUserBuilder(); + + NextcloudProvisioningApiUserBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudProvisioningApiUser other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudProvisioningApiUser; + } + + @override + void update(void Function(NextcloudProvisioningApiUserBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudProvisioningApiUser build() => _build(); + + _$NextcloudProvisioningApiUser _build() { + _$NextcloudProvisioningApiUser _$result; + try { + _$result = _$v ?? _$NextcloudProvisioningApiUser._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudProvisioningApiUser', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson + extends NextcloudUnifiedPushProviderCheckResponse200ApplicationJson { + @override + final bool success; + + factory _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson._({required this.success}) : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderCheckResponse200ApplicationJson', 'success'); + } + + @override + NextcloudUnifiedPushProviderCheckResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderCheckResponse200ApplicationJson && success == other.success; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderCheckResponse200ApplicationJson') + ..add('success', success)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderCheckResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderCheckResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderCheckResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderCheckResponse200ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderCheckResponse200ApplicationJson', 'success')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson + extends NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson { + @override + final bool success; + + factory _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson._({required this.success}) : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson', 'success'); + } + + @override + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson && success == other.success; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson') + ..add('success', success)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson', 'success')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson + extends NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson { + @override + final bool success; + @override + final String deviceId; + + factory _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson._( + {required this.success, required this.deviceId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson', 'success'); + BuiltValueNullFieldError.checkNotNull( + deviceId, r'NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson', 'deviceId'); + } + + @override + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson && + success == other.success && + deviceId == other.deviceId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jc(_$hash, deviceId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson') + ..add('success', success) + ..add('deviceId', deviceId)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + String? _deviceId; + String? get deviceId => _$this._deviceId; + set deviceId(String? deviceId) => _$this._deviceId = deviceId; + + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _deviceId = $v.deviceId; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson', 'success'), + deviceId: BuiltValueNullFieldError.checkNotNull( + deviceId, r'NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson', 'deviceId')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson + extends NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson { + @override + final bool success; + + factory _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson( + [void Function(NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson._({required this.success}) : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson', 'success'); + } + + @override + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson && success == other.success; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson') + ..add('success', success)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson', 'success')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson + extends NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson { + @override + final bool success; + + factory _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson._({required this.success}) : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson', 'success'); + } + + @override + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson && success == other.success; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson') + ..add('success', success)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson', 'success')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson + extends NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson { + @override + final bool success; + @override + final String token; + + factory _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson._({required this.success, required this.token}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson', 'success'); + BuiltValueNullFieldError.checkNotNull( + token, r'NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson', 'token'); + } + + @override + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson && + success == other.success && + token == other.token; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jc(_$hash, token.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson') + ..add('success', success) + ..add('token', token)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + String? _token; + String? get token => _$this._token; + set token(String? token) => _$this._token = token; + + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _token = $v.token; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson', 'success'), + token: BuiltValueNullFieldError.checkNotNull( + token, r'NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson', 'token')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson + extends NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson { + @override + final bool success; + + factory _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson._({required this.success}) : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson', 'success'); + } + + @override + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson && success == other.success; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson') + ..add('success', success)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson', 'success')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush + extends NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush { + @override + final int version; + + factory _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush( + [void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? + updates]) => + (NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder()..update(updates)) + ._build(); + + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush._({required this.version}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + version, r'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush', 'version'); + } + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush rebuild( + void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder toBuilder() => + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush') + ..add('version', version)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush? _$v; + + int? _version; + int? get version => _$this._version; + set version(int? version) => _$this._version = version; + + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder(); + + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder get _$this { + final $v = _$v; + if ($v != null) { + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush; + } + + @override + void update( + void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush build() => _build(); + + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush._( + version: BuiltValueNullFieldError.checkNotNull(version, + r'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush', 'version')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson + extends NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson { + @override + final NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush unifiedpush; + + factory _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder)? + updates]) => + (NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson._({required this.unifiedpush}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + unifiedpush, r'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson', 'unifiedpush'); + } + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson && + unifiedpush == other.unifiedpush; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, unifiedpush.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson') + ..add('unifiedpush', unifiedpush)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson? _$v; + + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder? _unifiedpush; + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder get unifiedpush => + _$this._unifiedpush ??= + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder(); + set unifiedpush( + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder? unifiedpush) => + _$this._unifiedpush = unifiedpush; + + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _unifiedpush = $v.unifiedpush.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson; + } + + @override + void update( + void Function(NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson _build() { + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson _$result; + try { + _$result = _$v ?? + _$NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson._( + unifiedpush: unifiedpush.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'unifiedpush'; + unifiedpush.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudUnifiedPushProviderUnifiedpushDiscoveryResponse200ApplicationJson', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson + extends NextcloudUnifiedPushProviderPushResponse201ApplicationJson { + @override + final bool success; + + factory _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson( + [void Function(NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson._({required this.success}) : super._() { + BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderPushResponse201ApplicationJson', 'success'); + } + + @override + NextcloudUnifiedPushProviderPushResponse201ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderPushResponse201ApplicationJson && success == other.success; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderPushResponse201ApplicationJson') + ..add('success', success)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson? _$v; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _success = $v.success; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderPushResponse201ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderPushResponse201ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderPushResponse201ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderPushResponse201ApplicationJson._( + success: BuiltValueNullFieldError.checkNotNull( + success, r'NextcloudUnifiedPushProviderPushResponse201ApplicationJson', 'success')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush + extends NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush { + @override + final String gateway; + + factory _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush( + [void Function( + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? + updates]) => + (NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder() + ..update(updates)) + ._build(); + + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush._({required this.gateway}) + : super._() { + BuiltValueNullFieldError.checkNotNull(gateway, + r'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush', 'gateway'); + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush rebuild( + void Function(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder toBuilder() => + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush && + gateway == other.gateway; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, gateway.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush') + ..add('gateway', gateway)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush? _$v; + + String? _gateway; + String? get gateway => _$this._gateway; + set gateway(String? gateway) => _$this._gateway = gateway; + + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder(); + + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder get _$this { + final $v = _$v; + if ($v != null) { + _gateway = $v.gateway; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush; + } + + @override + void update( + void Function(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush build() => _build(); + + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush _build() { + final _$result = _$v ?? + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush._( + gateway: BuiltValueNullFieldError.checkNotNull( + gateway, + r'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush', + 'gateway')); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson + extends NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson { + @override + final NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush unifiedpush; + + factory _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder)? + updates]) => + (NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson._({required this.unifiedpush}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + unifiedpush, r'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson', 'unifiedpush'); + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson && + unifiedpush == other.unifiedpush; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, unifiedpush.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson') + ..add('unifiedpush', unifiedpush)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson? _$v; + + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder? _unifiedpush; + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder get unifiedpush => + _$this._unifiedpush ??= + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder(); + set unifiedpush( + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder? + unifiedpush) => + _$this._unifiedpush = unifiedpush; + + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _unifiedpush = $v.unifiedpush.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson; + } + + @override + void update( + void Function(NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson _build() { + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson _$result; + try { + _$result = _$v ?? + _$NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson._( + unifiedpush: unifiedpush.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'unifiedpush'; + unifiedpush.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudUnifiedPushProviderGatewayMatrixDiscoveryResponse200ApplicationJson', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson + extends NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson { + @override + final BuiltList rejected; + + factory _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson( + [void Function(NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder)? updates]) => + (NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder()..update(updates))._build(); + + _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson._({required this.rejected}) : super._() { + BuiltValueNullFieldError.checkNotNull( + rejected, r'NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson', 'rejected'); + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson rebuild( + void Function(NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder toBuilder() => + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson && rejected == other.rejected; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, rejected.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson') + ..add('rejected', rejected)) + .toString(); + } +} + +class NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder + implements + Builder { + _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson? _$v; + + ListBuilder? _rejected; + ListBuilder get rejected => _$this._rejected ??= ListBuilder(); + set rejected(ListBuilder? rejected) => _$this._rejected = rejected; + + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder(); + + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _rejected = $v.rejected.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson; + } + + @override + void update(void Function(NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJsonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson build() => _build(); + + _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson _build() { + _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson _$result; + try { + _$result = + _$v ?? _$NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson._(rejected: rejected.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'rejected'; + rejected.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'NextcloudUnifiedPushProviderGatewayMatrixResponse200ApplicationJson', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusClearAt_Time extends NextcloudUserStatusClearAt_Time { + @override + final JsonObject data; + @override + final NextcloudUserStatusClearAt_Time0? userStatusClearAtTime0; + @override + final int? $int; + + factory _$NextcloudUserStatusClearAt_Time([void Function(NextcloudUserStatusClearAt_TimeBuilder)? updates]) => + (NextcloudUserStatusClearAt_TimeBuilder()..update(updates))._build(); + + _$NextcloudUserStatusClearAt_Time._({required this.data, this.userStatusClearAtTime0, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusClearAt_Time', 'data'); + } + + @override + NextcloudUserStatusClearAt_Time rebuild(void Function(NextcloudUserStatusClearAt_TimeBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusClearAt_TimeBuilder toBuilder() => NextcloudUserStatusClearAt_TimeBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusClearAt_Time && + data == other.data && + userStatusClearAtTime0 == other.userStatusClearAtTime0 && + $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, userStatusClearAtTime0.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusClearAt_Time') + ..add('data', data) + ..add('userStatusClearAtTime0', userStatusClearAtTime0) + ..add('\$int', $int)) + .toString(); + } +} + +class NextcloudUserStatusClearAt_TimeBuilder + implements Builder { + _$NextcloudUserStatusClearAt_Time? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + NextcloudUserStatusClearAt_Time0? _userStatusClearAtTime0; + NextcloudUserStatusClearAt_Time0? get userStatusClearAtTime0 => _$this._userStatusClearAtTime0; + set userStatusClearAtTime0(NextcloudUserStatusClearAt_Time0? userStatusClearAtTime0) => + _$this._userStatusClearAtTime0 = userStatusClearAtTime0; + + int? _$int; + int? get $int => _$this._$int; + set $int(int? $int) => _$this._$int = $int; + + NextcloudUserStatusClearAt_TimeBuilder(); + + NextcloudUserStatusClearAt_TimeBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _userStatusClearAtTime0 = $v.userStatusClearAtTime0; + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusClearAt_Time other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusClearAt_Time; + } + + @override + void update(void Function(NextcloudUserStatusClearAt_TimeBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusClearAt_Time build() => _build(); + + _$NextcloudUserStatusClearAt_Time _build() { + final _$result = _$v ?? + _$NextcloudUserStatusClearAt_Time._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusClearAt_Time', 'data'), + userStatusClearAtTime0: userStatusClearAtTime0, + $int: $int); + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusClearAt extends NextcloudUserStatusClearAt { + @override + final NextcloudUserStatusClearAt_Type type; + @override + final NextcloudUserStatusClearAt_Time time; + + factory _$NextcloudUserStatusClearAt([void Function(NextcloudUserStatusClearAtBuilder)? updates]) => + (NextcloudUserStatusClearAtBuilder()..update(updates))._build(); + + _$NextcloudUserStatusClearAt._({required this.type, required this.time}) : super._() { + BuiltValueNullFieldError.checkNotNull(type, r'NextcloudUserStatusClearAt', 'type'); + BuiltValueNullFieldError.checkNotNull(time, r'NextcloudUserStatusClearAt', 'time'); + } + + @override + NextcloudUserStatusClearAt rebuild(void Function(NextcloudUserStatusClearAtBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusClearAtBuilder toBuilder() => NextcloudUserStatusClearAtBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusClearAt && type == other.type && time == other.time; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, time.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusClearAt') + ..add('type', type) + ..add('time', time)) + .toString(); + } +} + +class NextcloudUserStatusClearAtBuilder + implements Builder { + _$NextcloudUserStatusClearAt? _$v; + + NextcloudUserStatusClearAt_Type? _type; + NextcloudUserStatusClearAt_Type? get type => _$this._type; + set type(NextcloudUserStatusClearAt_Type? type) => _$this._type = type; + + NextcloudUserStatusClearAt_TimeBuilder? _time; + NextcloudUserStatusClearAt_TimeBuilder get time => _$this._time ??= NextcloudUserStatusClearAt_TimeBuilder(); + set time(NextcloudUserStatusClearAt_TimeBuilder? time) => _$this._time = time; + + NextcloudUserStatusClearAtBuilder(); + + NextcloudUserStatusClearAtBuilder get _$this { + final $v = _$v; + if ($v != null) { + _type = $v.type; + _time = $v.time.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusClearAt other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusClearAt; + } + + @override + void update(void Function(NextcloudUserStatusClearAtBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusClearAt build() => _build(); + + _$NextcloudUserStatusClearAt _build() { + _$NextcloudUserStatusClearAt _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusClearAt._( + type: BuiltValueNullFieldError.checkNotNull(type, r'NextcloudUserStatusClearAt', 'type'), + time: time.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'time'; + time.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusClearAt', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusPublicStatus_ClearAt extends NextcloudUserStatusPublicStatus_ClearAt { + @override + final JsonObject data; + @override + final NextcloudUserStatusClearAt? userStatusClearAt; + @override + final int? $int; + + factory _$NextcloudUserStatusPublicStatus_ClearAt( + [void Function(NextcloudUserStatusPublicStatus_ClearAtBuilder)? updates]) => + (NextcloudUserStatusPublicStatus_ClearAtBuilder()..update(updates))._build(); + + _$NextcloudUserStatusPublicStatus_ClearAt._({required this.data, this.userStatusClearAt, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusPublicStatus_ClearAt', 'data'); + } + + @override + NextcloudUserStatusPublicStatus_ClearAt rebuild( + void Function(NextcloudUserStatusPublicStatus_ClearAtBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusPublicStatus_ClearAtBuilder toBuilder() => + NextcloudUserStatusPublicStatus_ClearAtBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusPublicStatus_ClearAt && + data == other.data && + userStatusClearAt == other.userStatusClearAt && + $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, userStatusClearAt.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusPublicStatus_ClearAt') + ..add('data', data) + ..add('userStatusClearAt', userStatusClearAt) + ..add('\$int', $int)) + .toString(); + } +} + +class NextcloudUserStatusPublicStatus_ClearAtBuilder + implements Builder { + _$NextcloudUserStatusPublicStatus_ClearAt? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + NextcloudUserStatusClearAtBuilder? _userStatusClearAt; + NextcloudUserStatusClearAtBuilder get userStatusClearAt => + _$this._userStatusClearAt ??= NextcloudUserStatusClearAtBuilder(); + set userStatusClearAt(NextcloudUserStatusClearAtBuilder? userStatusClearAt) => + _$this._userStatusClearAt = userStatusClearAt; + + int? _$int; + int? get $int => _$this._$int; + set $int(int? $int) => _$this._$int = $int; + + NextcloudUserStatusPublicStatus_ClearAtBuilder(); + + NextcloudUserStatusPublicStatus_ClearAtBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _userStatusClearAt = $v.userStatusClearAt?.toBuilder(); + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusPublicStatus_ClearAt other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusPublicStatus_ClearAt; + } + + @override + void update(void Function(NextcloudUserStatusPublicStatus_ClearAtBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusPublicStatus_ClearAt build() => _build(); + + _$NextcloudUserStatusPublicStatus_ClearAt _build() { + _$NextcloudUserStatusPublicStatus_ClearAt _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusPublicStatus_ClearAt._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusPublicStatus_ClearAt', 'data'), + userStatusClearAt: _userStatusClearAt?.build(), + $int: $int); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'userStatusClearAt'; + _userStatusClearAt?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusPublicStatus_ClearAt', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusPublicStatus extends NextcloudUserStatusPublicStatus { + @override + final String userId; + @override + final String? message; + @override + final String? icon; + @override + final NextcloudUserStatusPublicStatus_ClearAt? clearAt; + @override + final NextcloudUserStatusType status; + + factory _$NextcloudUserStatusPublicStatus([void Function(NextcloudUserStatusPublicStatusBuilder)? updates]) => + (NextcloudUserStatusPublicStatusBuilder()..update(updates))._build(); + + _$NextcloudUserStatusPublicStatus._( + {required this.userId, this.message, this.icon, this.clearAt, required this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull(userId, r'NextcloudUserStatusPublicStatus', 'userId'); + BuiltValueNullFieldError.checkNotNull(status, r'NextcloudUserStatusPublicStatus', 'status'); + } + + @override + NextcloudUserStatusPublicStatus rebuild(void Function(NextcloudUserStatusPublicStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusPublicStatusBuilder toBuilder() => NextcloudUserStatusPublicStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusPublicStatus && + userId == other.userId && + message == other.message && + icon == other.icon && + clearAt == other.clearAt && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, userId.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, clearAt.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusPublicStatus') + ..add('userId', userId) + ..add('message', message) + ..add('icon', icon) + ..add('clearAt', clearAt) + ..add('status', status)) + .toString(); + } +} + +class NextcloudUserStatusPublicStatusBuilder + implements Builder { + _$NextcloudUserStatusPublicStatus? _$v; + + String? _userId; + String? get userId => _$this._userId; + set userId(String? userId) => _$this._userId = userId; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + NextcloudUserStatusPublicStatus_ClearAtBuilder? _clearAt; + NextcloudUserStatusPublicStatus_ClearAtBuilder get clearAt => + _$this._clearAt ??= NextcloudUserStatusPublicStatus_ClearAtBuilder(); + set clearAt(NextcloudUserStatusPublicStatus_ClearAtBuilder? clearAt) => _$this._clearAt = clearAt; + + NextcloudUserStatusType? _status; + NextcloudUserStatusType? get status => _$this._status; + set status(NextcloudUserStatusType? status) => _$this._status = status; + + NextcloudUserStatusPublicStatusBuilder(); + + NextcloudUserStatusPublicStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _userId = $v.userId; + _message = $v.message; + _icon = $v.icon; + _clearAt = $v.clearAt?.toBuilder(); + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusPublicStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusPublicStatus; + } + + @override + void update(void Function(NextcloudUserStatusPublicStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusPublicStatus build() => _build(); + + _$NextcloudUserStatusPublicStatus _build() { + _$NextcloudUserStatusPublicStatus _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusPublicStatus._( + userId: BuiltValueNullFieldError.checkNotNull(userId, r'NextcloudUserStatusPublicStatus', 'userId'), + message: message, + icon: icon, + clearAt: _clearAt?.build(), + status: BuiltValueNullFieldError.checkNotNull(status, r'NextcloudUserStatusPublicStatus', 'status')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'clearAt'; + _clearAt?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusPublicStatus', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetPublicStatuses_Ocs extends NextcloudUserStatusGetPublicStatuses_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final BuiltList data; + + factory _$NextcloudUserStatusGetPublicStatuses_Ocs( + [void Function(NextcloudUserStatusGetPublicStatuses_OcsBuilder)? updates]) => + (NextcloudUserStatusGetPublicStatuses_OcsBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetPublicStatuses_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudUserStatusGetPublicStatuses_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetPublicStatuses_Ocs', 'data'); + } + + @override + NextcloudUserStatusGetPublicStatuses_Ocs rebuild( + void Function(NextcloudUserStatusGetPublicStatuses_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetPublicStatuses_OcsBuilder toBuilder() => + NextcloudUserStatusGetPublicStatuses_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetPublicStatuses_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetPublicStatuses_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudUserStatusGetPublicStatuses_OcsBuilder + implements Builder { + _$NextcloudUserStatusGetPublicStatuses_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + NextcloudUserStatusGetPublicStatuses_OcsBuilder(); + + NextcloudUserStatusGetPublicStatuses_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetPublicStatuses_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetPublicStatuses_Ocs; + } + + @override + void update(void Function(NextcloudUserStatusGetPublicStatuses_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetPublicStatuses_Ocs build() => _build(); + + _$NextcloudUserStatusGetPublicStatuses_Ocs _build() { + _$NextcloudUserStatusGetPublicStatuses_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusGetPublicStatuses_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetPublicStatuses_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetPublicStatuses extends NextcloudUserStatusGetPublicStatuses { + @override + final NextcloudUserStatusGetPublicStatuses_Ocs ocs; + + factory _$NextcloudUserStatusGetPublicStatuses( + [void Function(NextcloudUserStatusGetPublicStatusesBuilder)? updates]) => + (NextcloudUserStatusGetPublicStatusesBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetPublicStatuses._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudUserStatusGetPublicStatuses', 'ocs'); + } + + @override + NextcloudUserStatusGetPublicStatuses rebuild(void Function(NextcloudUserStatusGetPublicStatusesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetPublicStatusesBuilder toBuilder() => + NextcloudUserStatusGetPublicStatusesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetPublicStatuses && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetPublicStatuses')..add('ocs', ocs)).toString(); + } +} + +class NextcloudUserStatusGetPublicStatusesBuilder + implements Builder { + _$NextcloudUserStatusGetPublicStatuses? _$v; + + NextcloudUserStatusGetPublicStatuses_OcsBuilder? _ocs; + NextcloudUserStatusGetPublicStatuses_OcsBuilder get ocs => + _$this._ocs ??= NextcloudUserStatusGetPublicStatuses_OcsBuilder(); + set ocs(NextcloudUserStatusGetPublicStatuses_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudUserStatusGetPublicStatusesBuilder(); + + NextcloudUserStatusGetPublicStatusesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetPublicStatuses other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetPublicStatuses; + } + + @override + void update(void Function(NextcloudUserStatusGetPublicStatusesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetPublicStatuses build() => _build(); + + _$NextcloudUserStatusGetPublicStatuses _build() { + _$NextcloudUserStatusGetPublicStatuses _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusGetPublicStatuses._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetPublicStatuses', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetPublicStatus_Ocs_Data extends NextcloudUserStatusGetPublicStatus_Ocs_Data { + @override + final JsonObject data; + @override + final BuiltList? builtListJsonObject; + @override + final NextcloudUserStatusPublicStatus? userStatusPublicStatus; + + factory _$NextcloudUserStatusGetPublicStatus_Ocs_Data( + [void Function(NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder)? updates]) => + (NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetPublicStatus_Ocs_Data._( + {required this.data, this.builtListJsonObject, this.userStatusPublicStatus}) + : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetPublicStatus_Ocs_Data', 'data'); + } + + @override + NextcloudUserStatusGetPublicStatus_Ocs_Data rebuild( + void Function(NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder toBuilder() => + NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetPublicStatus_Ocs_Data && + data == other.data && + builtListJsonObject == other.builtListJsonObject && + userStatusPublicStatus == other.userStatusPublicStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, builtListJsonObject.hashCode); + _$hash = $jc(_$hash, userStatusPublicStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetPublicStatus_Ocs_Data') + ..add('data', data) + ..add('builtListJsonObject', builtListJsonObject) + ..add('userStatusPublicStatus', userStatusPublicStatus)) + .toString(); + } +} + +class NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder + implements + Builder { + _$NextcloudUserStatusGetPublicStatus_Ocs_Data? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + ListBuilder? _builtListJsonObject; + ListBuilder get builtListJsonObject => _$this._builtListJsonObject ??= ListBuilder(); + set builtListJsonObject(ListBuilder? builtListJsonObject) => + _$this._builtListJsonObject = builtListJsonObject; + + NextcloudUserStatusPublicStatusBuilder? _userStatusPublicStatus; + NextcloudUserStatusPublicStatusBuilder get userStatusPublicStatus => + _$this._userStatusPublicStatus ??= NextcloudUserStatusPublicStatusBuilder(); + set userStatusPublicStatus(NextcloudUserStatusPublicStatusBuilder? userStatusPublicStatus) => + _$this._userStatusPublicStatus = userStatusPublicStatus; + + NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder(); + + NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _builtListJsonObject = $v.builtListJsonObject?.toBuilder(); + _userStatusPublicStatus = $v.userStatusPublicStatus?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetPublicStatus_Ocs_Data other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetPublicStatus_Ocs_Data; + } + + @override + void update(void Function(NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetPublicStatus_Ocs_Data build() => _build(); + + _$NextcloudUserStatusGetPublicStatus_Ocs_Data _build() { + _$NextcloudUserStatusGetPublicStatus_Ocs_Data _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusGetPublicStatus_Ocs_Data._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetPublicStatus_Ocs_Data', 'data'), + builtListJsonObject: _builtListJsonObject?.build(), + userStatusPublicStatus: _userStatusPublicStatus?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'builtListJsonObject'; + _builtListJsonObject?.build(); + _$failedField = 'userStatusPublicStatus'; + _userStatusPublicStatus?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetPublicStatus_Ocs_Data', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetPublicStatus_Ocs extends NextcloudUserStatusGetPublicStatus_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudUserStatusGetPublicStatus_Ocs_Data data; + + factory _$NextcloudUserStatusGetPublicStatus_Ocs( + [void Function(NextcloudUserStatusGetPublicStatus_OcsBuilder)? updates]) => + (NextcloudUserStatusGetPublicStatus_OcsBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetPublicStatus_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudUserStatusGetPublicStatus_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetPublicStatus_Ocs', 'data'); + } + + @override + NextcloudUserStatusGetPublicStatus_Ocs rebuild( + void Function(NextcloudUserStatusGetPublicStatus_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetPublicStatus_OcsBuilder toBuilder() => + NextcloudUserStatusGetPublicStatus_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetPublicStatus_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetPublicStatus_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudUserStatusGetPublicStatus_OcsBuilder + implements Builder { + _$NextcloudUserStatusGetPublicStatus_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder? _data; + NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder get data => + _$this._data ??= NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder(); + set data(NextcloudUserStatusGetPublicStatus_Ocs_DataBuilder? data) => _$this._data = data; + + NextcloudUserStatusGetPublicStatus_OcsBuilder(); + + NextcloudUserStatusGetPublicStatus_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetPublicStatus_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetPublicStatus_Ocs; + } + + @override + void update(void Function(NextcloudUserStatusGetPublicStatus_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetPublicStatus_Ocs build() => _build(); + + _$NextcloudUserStatusGetPublicStatus_Ocs _build() { + _$NextcloudUserStatusGetPublicStatus_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusGetPublicStatus_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetPublicStatus_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetPublicStatus extends NextcloudUserStatusGetPublicStatus { + @override + final NextcloudUserStatusGetPublicStatus_Ocs ocs; + + factory _$NextcloudUserStatusGetPublicStatus([void Function(NextcloudUserStatusGetPublicStatusBuilder)? updates]) => + (NextcloudUserStatusGetPublicStatusBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetPublicStatus._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudUserStatusGetPublicStatus', 'ocs'); + } + + @override + NextcloudUserStatusGetPublicStatus rebuild(void Function(NextcloudUserStatusGetPublicStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetPublicStatusBuilder toBuilder() => NextcloudUserStatusGetPublicStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetPublicStatus && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetPublicStatus')..add('ocs', ocs)).toString(); + } +} + +class NextcloudUserStatusGetPublicStatusBuilder + implements Builder { + _$NextcloudUserStatusGetPublicStatus? _$v; + + NextcloudUserStatusGetPublicStatus_OcsBuilder? _ocs; + NextcloudUserStatusGetPublicStatus_OcsBuilder get ocs => + _$this._ocs ??= NextcloudUserStatusGetPublicStatus_OcsBuilder(); + set ocs(NextcloudUserStatusGetPublicStatus_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudUserStatusGetPublicStatusBuilder(); + + NextcloudUserStatusGetPublicStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetPublicStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetPublicStatus; + } + + @override + void update(void Function(NextcloudUserStatusGetPublicStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetPublicStatus build() => _build(); + + _$NextcloudUserStatusGetPublicStatus _build() { + _$NextcloudUserStatusGetPublicStatus _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusGetPublicStatus._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetPublicStatus', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusStatus_ClearAt extends NextcloudUserStatusStatus_ClearAt { + @override + final JsonObject data; + @override + final NextcloudUserStatusClearAt? userStatusClearAt; + @override + final int? $int; + + factory _$NextcloudUserStatusStatus_ClearAt([void Function(NextcloudUserStatusStatus_ClearAtBuilder)? updates]) => + (NextcloudUserStatusStatus_ClearAtBuilder()..update(updates))._build(); + + _$NextcloudUserStatusStatus_ClearAt._({required this.data, this.userStatusClearAt, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusStatus_ClearAt', 'data'); + } + + @override + NextcloudUserStatusStatus_ClearAt rebuild(void Function(NextcloudUserStatusStatus_ClearAtBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusStatus_ClearAtBuilder toBuilder() => NextcloudUserStatusStatus_ClearAtBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusStatus_ClearAt && + data == other.data && + userStatusClearAt == other.userStatusClearAt && + $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, userStatusClearAt.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusStatus_ClearAt') + ..add('data', data) + ..add('userStatusClearAt', userStatusClearAt) + ..add('\$int', $int)) + .toString(); + } +} + +class NextcloudUserStatusStatus_ClearAtBuilder + implements Builder { + _$NextcloudUserStatusStatus_ClearAt? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + NextcloudUserStatusClearAtBuilder? _userStatusClearAt; + NextcloudUserStatusClearAtBuilder get userStatusClearAt => + _$this._userStatusClearAt ??= NextcloudUserStatusClearAtBuilder(); + set userStatusClearAt(NextcloudUserStatusClearAtBuilder? userStatusClearAt) => + _$this._userStatusClearAt = userStatusClearAt; + + int? _$int; + int? get $int => _$this._$int; + set $int(int? $int) => _$this._$int = $int; + + NextcloudUserStatusStatus_ClearAtBuilder(); + + NextcloudUserStatusStatus_ClearAtBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _userStatusClearAt = $v.userStatusClearAt?.toBuilder(); + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusStatus_ClearAt other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusStatus_ClearAt; + } + + @override + void update(void Function(NextcloudUserStatusStatus_ClearAtBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusStatus_ClearAt build() => _build(); + + _$NextcloudUserStatusStatus_ClearAt _build() { + _$NextcloudUserStatusStatus_ClearAt _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusStatus_ClearAt._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusStatus_ClearAt', 'data'), + userStatusClearAt: _userStatusClearAt?.build(), + $int: $int); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'userStatusClearAt'; + _userStatusClearAt?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusStatus_ClearAt', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusStatus extends NextcloudUserStatusStatus { + @override + final String userId; + @override + final String? message; + @override + final String? messageId; + @override + final bool messageIsPredefined; + @override + final String? icon; + @override + final NextcloudUserStatusStatus_ClearAt? clearAt; + @override + final NextcloudUserStatusType status; + @override + final bool statusIsUserDefined; + + factory _$NextcloudUserStatusStatus([void Function(NextcloudUserStatusStatusBuilder)? updates]) => + (NextcloudUserStatusStatusBuilder()..update(updates))._build(); + + _$NextcloudUserStatusStatus._( + {required this.userId, + this.message, + this.messageId, + required this.messageIsPredefined, + this.icon, + this.clearAt, + required this.status, + required this.statusIsUserDefined}) + : super._() { + BuiltValueNullFieldError.checkNotNull(userId, r'NextcloudUserStatusStatus', 'userId'); + BuiltValueNullFieldError.checkNotNull(messageIsPredefined, r'NextcloudUserStatusStatus', 'messageIsPredefined'); + BuiltValueNullFieldError.checkNotNull(status, r'NextcloudUserStatusStatus', 'status'); + BuiltValueNullFieldError.checkNotNull(statusIsUserDefined, r'NextcloudUserStatusStatus', 'statusIsUserDefined'); + } + + @override + NextcloudUserStatusStatus rebuild(void Function(NextcloudUserStatusStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusStatusBuilder toBuilder() => NextcloudUserStatusStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusStatus && + userId == other.userId && + message == other.message && + messageId == other.messageId && + messageIsPredefined == other.messageIsPredefined && + icon == other.icon && + clearAt == other.clearAt && + status == other.status && + statusIsUserDefined == other.statusIsUserDefined; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, userId.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, messageId.hashCode); + _$hash = $jc(_$hash, messageIsPredefined.hashCode); + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, clearAt.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, statusIsUserDefined.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusStatus') + ..add('userId', userId) + ..add('message', message) + ..add('messageId', messageId) + ..add('messageIsPredefined', messageIsPredefined) + ..add('icon', icon) + ..add('clearAt', clearAt) + ..add('status', status) + ..add('statusIsUserDefined', statusIsUserDefined)) + .toString(); + } +} + +class NextcloudUserStatusStatusBuilder implements Builder { + _$NextcloudUserStatusStatus? _$v; + + String? _userId; + String? get userId => _$this._userId; + set userId(String? userId) => _$this._userId = userId; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + String? _messageId; + String? get messageId => _$this._messageId; + set messageId(String? messageId) => _$this._messageId = messageId; + + bool? _messageIsPredefined; + bool? get messageIsPredefined => _$this._messageIsPredefined; + set messageIsPredefined(bool? messageIsPredefined) => _$this._messageIsPredefined = messageIsPredefined; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + NextcloudUserStatusStatus_ClearAtBuilder? _clearAt; + NextcloudUserStatusStatus_ClearAtBuilder get clearAt => + _$this._clearAt ??= NextcloudUserStatusStatus_ClearAtBuilder(); + set clearAt(NextcloudUserStatusStatus_ClearAtBuilder? clearAt) => _$this._clearAt = clearAt; + + NextcloudUserStatusType? _status; + NextcloudUserStatusType? get status => _$this._status; + set status(NextcloudUserStatusType? status) => _$this._status = status; + + bool? _statusIsUserDefined; + bool? get statusIsUserDefined => _$this._statusIsUserDefined; + set statusIsUserDefined(bool? statusIsUserDefined) => _$this._statusIsUserDefined = statusIsUserDefined; + + NextcloudUserStatusStatusBuilder(); + + NextcloudUserStatusStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _userId = $v.userId; + _message = $v.message; + _messageId = $v.messageId; + _messageIsPredefined = $v.messageIsPredefined; + _icon = $v.icon; + _clearAt = $v.clearAt?.toBuilder(); + _status = $v.status; + _statusIsUserDefined = $v.statusIsUserDefined; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusStatus; + } + + @override + void update(void Function(NextcloudUserStatusStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusStatus build() => _build(); + + _$NextcloudUserStatusStatus _build() { + _$NextcloudUserStatusStatus _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusStatus._( + userId: BuiltValueNullFieldError.checkNotNull(userId, r'NextcloudUserStatusStatus', 'userId'), + message: message, + messageId: messageId, + messageIsPredefined: BuiltValueNullFieldError.checkNotNull( + messageIsPredefined, r'NextcloudUserStatusStatus', 'messageIsPredefined'), + icon: icon, + clearAt: _clearAt?.build(), + status: BuiltValueNullFieldError.checkNotNull(status, r'NextcloudUserStatusStatus', 'status'), + statusIsUserDefined: BuiltValueNullFieldError.checkNotNull( + statusIsUserDefined, r'NextcloudUserStatusStatus', 'statusIsUserDefined')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'clearAt'; + _clearAt?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusStatus', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetStatus_Ocs_Data extends NextcloudUserStatusGetStatus_Ocs_Data { + @override + final JsonObject data; + @override + final BuiltList? builtListJsonObject; + @override + final NextcloudUserStatusStatus? userStatusStatus; + + factory _$NextcloudUserStatusGetStatus_Ocs_Data( + [void Function(NextcloudUserStatusGetStatus_Ocs_DataBuilder)? updates]) => + (NextcloudUserStatusGetStatus_Ocs_DataBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetStatus_Ocs_Data._({required this.data, this.builtListJsonObject, this.userStatusStatus}) + : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetStatus_Ocs_Data', 'data'); + } + + @override + NextcloudUserStatusGetStatus_Ocs_Data rebuild(void Function(NextcloudUserStatusGetStatus_Ocs_DataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetStatus_Ocs_DataBuilder toBuilder() => + NextcloudUserStatusGetStatus_Ocs_DataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetStatus_Ocs_Data && + data == other.data && + builtListJsonObject == other.builtListJsonObject && + userStatusStatus == other.userStatusStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, builtListJsonObject.hashCode); + _$hash = $jc(_$hash, userStatusStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetStatus_Ocs_Data') + ..add('data', data) + ..add('builtListJsonObject', builtListJsonObject) + ..add('userStatusStatus', userStatusStatus)) + .toString(); + } +} + +class NextcloudUserStatusGetStatus_Ocs_DataBuilder + implements Builder { + _$NextcloudUserStatusGetStatus_Ocs_Data? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + ListBuilder? _builtListJsonObject; + ListBuilder get builtListJsonObject => _$this._builtListJsonObject ??= ListBuilder(); + set builtListJsonObject(ListBuilder? builtListJsonObject) => + _$this._builtListJsonObject = builtListJsonObject; + + NextcloudUserStatusStatusBuilder? _userStatusStatus; + NextcloudUserStatusStatusBuilder get userStatusStatus => + _$this._userStatusStatus ??= NextcloudUserStatusStatusBuilder(); + set userStatusStatus(NextcloudUserStatusStatusBuilder? userStatusStatus) => + _$this._userStatusStatus = userStatusStatus; + + NextcloudUserStatusGetStatus_Ocs_DataBuilder(); + + NextcloudUserStatusGetStatus_Ocs_DataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _builtListJsonObject = $v.builtListJsonObject?.toBuilder(); + _userStatusStatus = $v.userStatusStatus?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetStatus_Ocs_Data other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetStatus_Ocs_Data; + } + + @override + void update(void Function(NextcloudUserStatusGetStatus_Ocs_DataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetStatus_Ocs_Data build() => _build(); + + _$NextcloudUserStatusGetStatus_Ocs_Data _build() { + _$NextcloudUserStatusGetStatus_Ocs_Data _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusGetStatus_Ocs_Data._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetStatus_Ocs_Data', 'data'), + builtListJsonObject: _builtListJsonObject?.build(), + userStatusStatus: _userStatusStatus?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'builtListJsonObject'; + _builtListJsonObject?.build(); + _$failedField = 'userStatusStatus'; + _userStatusStatus?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetStatus_Ocs_Data', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetStatus_Ocs extends NextcloudUserStatusGetStatus_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudUserStatusGetStatus_Ocs_Data data; + + factory _$NextcloudUserStatusGetStatus_Ocs([void Function(NextcloudUserStatusGetStatus_OcsBuilder)? updates]) => + (NextcloudUserStatusGetStatus_OcsBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetStatus_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudUserStatusGetStatus_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusGetStatus_Ocs', 'data'); + } + + @override + NextcloudUserStatusGetStatus_Ocs rebuild(void Function(NextcloudUserStatusGetStatus_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetStatus_OcsBuilder toBuilder() => NextcloudUserStatusGetStatus_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetStatus_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetStatus_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudUserStatusGetStatus_OcsBuilder + implements Builder { + _$NextcloudUserStatusGetStatus_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudUserStatusGetStatus_Ocs_DataBuilder? _data; + NextcloudUserStatusGetStatus_Ocs_DataBuilder get data => + _$this._data ??= NextcloudUserStatusGetStatus_Ocs_DataBuilder(); + set data(NextcloudUserStatusGetStatus_Ocs_DataBuilder? data) => _$this._data = data; + + NextcloudUserStatusGetStatus_OcsBuilder(); + + NextcloudUserStatusGetStatus_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetStatus_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetStatus_Ocs; + } + + @override + void update(void Function(NextcloudUserStatusGetStatus_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetStatus_Ocs build() => _build(); + + _$NextcloudUserStatusGetStatus_Ocs _build() { + _$NextcloudUserStatusGetStatus_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusGetStatus_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetStatus_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusGetStatus extends NextcloudUserStatusGetStatus { + @override + final NextcloudUserStatusGetStatus_Ocs ocs; + + factory _$NextcloudUserStatusGetStatus([void Function(NextcloudUserStatusGetStatusBuilder)? updates]) => + (NextcloudUserStatusGetStatusBuilder()..update(updates))._build(); + + _$NextcloudUserStatusGetStatus._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudUserStatusGetStatus', 'ocs'); + } + + @override + NextcloudUserStatusGetStatus rebuild(void Function(NextcloudUserStatusGetStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusGetStatusBuilder toBuilder() => NextcloudUserStatusGetStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusGetStatus && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusGetStatus')..add('ocs', ocs)).toString(); + } +} + +class NextcloudUserStatusGetStatusBuilder + implements Builder { + _$NextcloudUserStatusGetStatus? _$v; + + NextcloudUserStatusGetStatus_OcsBuilder? _ocs; + NextcloudUserStatusGetStatus_OcsBuilder get ocs => _$this._ocs ??= NextcloudUserStatusGetStatus_OcsBuilder(); + set ocs(NextcloudUserStatusGetStatus_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudUserStatusGetStatusBuilder(); + + NextcloudUserStatusGetStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusGetStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusGetStatus; + } + + @override + void update(void Function(NextcloudUserStatusGetStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusGetStatus build() => _build(); + + _$NextcloudUserStatusGetStatus _build() { + _$NextcloudUserStatusGetStatus _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusGetStatus._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusGetStatus', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusPredefinedStatus_ClearAt extends NextcloudUserStatusPredefinedStatus_ClearAt { + @override + final JsonObject data; + @override + final NextcloudUserStatusClearAt? userStatusClearAt; + @override + final int? $int; + + factory _$NextcloudUserStatusPredefinedStatus_ClearAt( + [void Function(NextcloudUserStatusPredefinedStatus_ClearAtBuilder)? updates]) => + (NextcloudUserStatusPredefinedStatus_ClearAtBuilder()..update(updates))._build(); + + _$NextcloudUserStatusPredefinedStatus_ClearAt._({required this.data, this.userStatusClearAt, this.$int}) : super._() { + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusPredefinedStatus_ClearAt', 'data'); + } + + @override + NextcloudUserStatusPredefinedStatus_ClearAt rebuild( + void Function(NextcloudUserStatusPredefinedStatus_ClearAtBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusPredefinedStatus_ClearAtBuilder toBuilder() => + NextcloudUserStatusPredefinedStatus_ClearAtBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusPredefinedStatus_ClearAt && + data == other.data && + userStatusClearAt == other.userStatusClearAt && + $int == other.$int; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jc(_$hash, userStatusClearAt.hashCode); + _$hash = $jc(_$hash, $int.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusPredefinedStatus_ClearAt') + ..add('data', data) + ..add('userStatusClearAt', userStatusClearAt) + ..add('\$int', $int)) + .toString(); + } +} + +class NextcloudUserStatusPredefinedStatus_ClearAtBuilder + implements + Builder { + _$NextcloudUserStatusPredefinedStatus_ClearAt? _$v; + + JsonObject? _data; + JsonObject? get data => _$this._data; + set data(JsonObject? data) => _$this._data = data; + + NextcloudUserStatusClearAtBuilder? _userStatusClearAt; + NextcloudUserStatusClearAtBuilder get userStatusClearAt => + _$this._userStatusClearAt ??= NextcloudUserStatusClearAtBuilder(); + set userStatusClearAt(NextcloudUserStatusClearAtBuilder? userStatusClearAt) => + _$this._userStatusClearAt = userStatusClearAt; + + int? _$int; + int? get $int => _$this._$int; + set $int(int? $int) => _$this._$int = $int; + + NextcloudUserStatusPredefinedStatus_ClearAtBuilder(); + + NextcloudUserStatusPredefinedStatus_ClearAtBuilder get _$this { + final $v = _$v; + if ($v != null) { + _data = $v.data; + _userStatusClearAt = $v.userStatusClearAt?.toBuilder(); + _$int = $v.$int; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusPredefinedStatus_ClearAt other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusPredefinedStatus_ClearAt; + } + + @override + void update(void Function(NextcloudUserStatusPredefinedStatus_ClearAtBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusPredefinedStatus_ClearAt build() => _build(); + + _$NextcloudUserStatusPredefinedStatus_ClearAt _build() { + _$NextcloudUserStatusPredefinedStatus_ClearAt _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusPredefinedStatus_ClearAt._( + data: BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusPredefinedStatus_ClearAt', 'data'), + userStatusClearAt: _userStatusClearAt?.build(), + $int: $int); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'userStatusClearAt'; + _userStatusClearAt?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusPredefinedStatus_ClearAt', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusPredefinedStatus extends NextcloudUserStatusPredefinedStatus { + @override + final String id; + @override + final String icon; + @override + final String message; + @override + final NextcloudUserStatusPredefinedStatus_ClearAt? clearAt; + + factory _$NextcloudUserStatusPredefinedStatus([void Function(NextcloudUserStatusPredefinedStatusBuilder)? updates]) => + (NextcloudUserStatusPredefinedStatusBuilder()..update(updates))._build(); + + _$NextcloudUserStatusPredefinedStatus._({required this.id, required this.icon, required this.message, this.clearAt}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'NextcloudUserStatusPredefinedStatus', 'id'); + BuiltValueNullFieldError.checkNotNull(icon, r'NextcloudUserStatusPredefinedStatus', 'icon'); + BuiltValueNullFieldError.checkNotNull(message, r'NextcloudUserStatusPredefinedStatus', 'message'); + } + + @override + NextcloudUserStatusPredefinedStatus rebuild(void Function(NextcloudUserStatusPredefinedStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusPredefinedStatusBuilder toBuilder() => NextcloudUserStatusPredefinedStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusPredefinedStatus && + id == other.id && + icon == other.icon && + message == other.message && + clearAt == other.clearAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, message.hashCode); + _$hash = $jc(_$hash, clearAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusPredefinedStatus') + ..add('id', id) + ..add('icon', icon) + ..add('message', message) + ..add('clearAt', clearAt)) + .toString(); + } +} + +class NextcloudUserStatusPredefinedStatusBuilder + implements Builder { + _$NextcloudUserStatusPredefinedStatus? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + String? _message; + String? get message => _$this._message; + set message(String? message) => _$this._message = message; + + NextcloudUserStatusPredefinedStatus_ClearAtBuilder? _clearAt; + NextcloudUserStatusPredefinedStatus_ClearAtBuilder get clearAt => + _$this._clearAt ??= NextcloudUserStatusPredefinedStatus_ClearAtBuilder(); + set clearAt(NextcloudUserStatusPredefinedStatus_ClearAtBuilder? clearAt) => _$this._clearAt = clearAt; + + NextcloudUserStatusPredefinedStatusBuilder(); + + NextcloudUserStatusPredefinedStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _icon = $v.icon; + _message = $v.message; + _clearAt = $v.clearAt?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusPredefinedStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusPredefinedStatus; + } + + @override + void update(void Function(NextcloudUserStatusPredefinedStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusPredefinedStatus build() => _build(); + + _$NextcloudUserStatusPredefinedStatus _build() { + _$NextcloudUserStatusPredefinedStatus _$result; + try { + _$result = _$v ?? + _$NextcloudUserStatusPredefinedStatus._( + id: BuiltValueNullFieldError.checkNotNull(id, r'NextcloudUserStatusPredefinedStatus', 'id'), + icon: BuiltValueNullFieldError.checkNotNull(icon, r'NextcloudUserStatusPredefinedStatus', 'icon'), + message: + BuiltValueNullFieldError.checkNotNull(message, r'NextcloudUserStatusPredefinedStatus', 'message'), + clearAt: _clearAt?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'clearAt'; + _clearAt?.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusPredefinedStatus', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusPredefinedStatuses_Ocs extends NextcloudUserStatusPredefinedStatuses_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final BuiltList data; + + factory _$NextcloudUserStatusPredefinedStatuses_Ocs( + [void Function(NextcloudUserStatusPredefinedStatuses_OcsBuilder)? updates]) => + (NextcloudUserStatusPredefinedStatuses_OcsBuilder()..update(updates))._build(); + + _$NextcloudUserStatusPredefinedStatuses_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudUserStatusPredefinedStatuses_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusPredefinedStatuses_Ocs', 'data'); + } + + @override + NextcloudUserStatusPredefinedStatuses_Ocs rebuild( + void Function(NextcloudUserStatusPredefinedStatuses_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusPredefinedStatuses_OcsBuilder toBuilder() => + NextcloudUserStatusPredefinedStatuses_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusPredefinedStatuses_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusPredefinedStatuses_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudUserStatusPredefinedStatuses_OcsBuilder + implements Builder { + _$NextcloudUserStatusPredefinedStatuses_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + ListBuilder? _data; + ListBuilder get data => + _$this._data ??= ListBuilder(); + set data(ListBuilder? data) => _$this._data = data; + + NextcloudUserStatusPredefinedStatuses_OcsBuilder(); + + NextcloudUserStatusPredefinedStatuses_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusPredefinedStatuses_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusPredefinedStatuses_Ocs; + } + + @override + void update(void Function(NextcloudUserStatusPredefinedStatuses_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusPredefinedStatuses_Ocs build() => _build(); + + _$NextcloudUserStatusPredefinedStatuses_Ocs _build() { + _$NextcloudUserStatusPredefinedStatuses_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusPredefinedStatuses_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusPredefinedStatuses_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusPredefinedStatuses extends NextcloudUserStatusPredefinedStatuses { + @override + final NextcloudUserStatusPredefinedStatuses_Ocs ocs; + + factory _$NextcloudUserStatusPredefinedStatuses( + [void Function(NextcloudUserStatusPredefinedStatusesBuilder)? updates]) => + (NextcloudUserStatusPredefinedStatusesBuilder()..update(updates))._build(); + + _$NextcloudUserStatusPredefinedStatuses._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudUserStatusPredefinedStatuses', 'ocs'); + } + + @override + NextcloudUserStatusPredefinedStatuses rebuild(void Function(NextcloudUserStatusPredefinedStatusesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusPredefinedStatusesBuilder toBuilder() => + NextcloudUserStatusPredefinedStatusesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusPredefinedStatuses && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusPredefinedStatuses')..add('ocs', ocs)).toString(); + } +} + +class NextcloudUserStatusPredefinedStatusesBuilder + implements Builder { + _$NextcloudUserStatusPredefinedStatuses? _$v; + + NextcloudUserStatusPredefinedStatuses_OcsBuilder? _ocs; + NextcloudUserStatusPredefinedStatuses_OcsBuilder get ocs => + _$this._ocs ??= NextcloudUserStatusPredefinedStatuses_OcsBuilder(); + set ocs(NextcloudUserStatusPredefinedStatuses_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudUserStatusPredefinedStatusesBuilder(); + + NextcloudUserStatusPredefinedStatusesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusPredefinedStatuses other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusPredefinedStatuses; + } + + @override + void update(void Function(NextcloudUserStatusPredefinedStatusesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusPredefinedStatuses build() => _build(); + + _$NextcloudUserStatusPredefinedStatuses _build() { + _$NextcloudUserStatusPredefinedStatuses _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusPredefinedStatuses._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusPredefinedStatuses', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusHeartbeat_Ocs extends NextcloudUserStatusHeartbeat_Ocs { + @override + final NextcloudOCSMeta meta; + @override + final NextcloudUserStatusStatus data; + + factory _$NextcloudUserStatusHeartbeat_Ocs([void Function(NextcloudUserStatusHeartbeat_OcsBuilder)? updates]) => + (NextcloudUserStatusHeartbeat_OcsBuilder()..update(updates))._build(); + + _$NextcloudUserStatusHeartbeat_Ocs._({required this.meta, required this.data}) : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'NextcloudUserStatusHeartbeat_Ocs', 'meta'); + BuiltValueNullFieldError.checkNotNull(data, r'NextcloudUserStatusHeartbeat_Ocs', 'data'); + } + + @override + NextcloudUserStatusHeartbeat_Ocs rebuild(void Function(NextcloudUserStatusHeartbeat_OcsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusHeartbeat_OcsBuilder toBuilder() => NextcloudUserStatusHeartbeat_OcsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusHeartbeat_Ocs && meta == other.meta && data == other.data; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, data.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusHeartbeat_Ocs') + ..add('meta', meta) + ..add('data', data)) + .toString(); + } +} + +class NextcloudUserStatusHeartbeat_OcsBuilder + implements Builder { + _$NextcloudUserStatusHeartbeat_Ocs? _$v; + + NextcloudOCSMetaBuilder? _meta; + NextcloudOCSMetaBuilder get meta => _$this._meta ??= NextcloudOCSMetaBuilder(); + set meta(NextcloudOCSMetaBuilder? meta) => _$this._meta = meta; + + NextcloudUserStatusStatusBuilder? _data; + NextcloudUserStatusStatusBuilder get data => _$this._data ??= NextcloudUserStatusStatusBuilder(); + set data(NextcloudUserStatusStatusBuilder? data) => _$this._data = data; + + NextcloudUserStatusHeartbeat_OcsBuilder(); + + NextcloudUserStatusHeartbeat_OcsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _meta = $v.meta.toBuilder(); + _data = $v.data.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusHeartbeat_Ocs other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusHeartbeat_Ocs; + } + + @override + void update(void Function(NextcloudUserStatusHeartbeat_OcsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusHeartbeat_Ocs build() => _build(); + + _$NextcloudUserStatusHeartbeat_Ocs _build() { + _$NextcloudUserStatusHeartbeat_Ocs _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusHeartbeat_Ocs._(meta: meta.build(), data: data.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + _$failedField = 'data'; + data.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusHeartbeat_Ocs', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudUserStatusHeartbeat extends NextcloudUserStatusHeartbeat { + @override + final NextcloudUserStatusHeartbeat_Ocs ocs; + + factory _$NextcloudUserStatusHeartbeat([void Function(NextcloudUserStatusHeartbeatBuilder)? updates]) => + (NextcloudUserStatusHeartbeatBuilder()..update(updates))._build(); + + _$NextcloudUserStatusHeartbeat._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'NextcloudUserStatusHeartbeat', 'ocs'); + } + + @override + NextcloudUserStatusHeartbeat rebuild(void Function(NextcloudUserStatusHeartbeatBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudUserStatusHeartbeatBuilder toBuilder() => NextcloudUserStatusHeartbeatBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudUserStatusHeartbeat && ocs == other.ocs; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ocs.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudUserStatusHeartbeat')..add('ocs', ocs)).toString(); + } +} + +class NextcloudUserStatusHeartbeatBuilder + implements Builder { + _$NextcloudUserStatusHeartbeat? _$v; + + NextcloudUserStatusHeartbeat_OcsBuilder? _ocs; + NextcloudUserStatusHeartbeat_OcsBuilder get ocs => _$this._ocs ??= NextcloudUserStatusHeartbeat_OcsBuilder(); + set ocs(NextcloudUserStatusHeartbeat_OcsBuilder? ocs) => _$this._ocs = ocs; + + NextcloudUserStatusHeartbeatBuilder(); + + NextcloudUserStatusHeartbeatBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ocs = $v.ocs.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(NextcloudUserStatusHeartbeat other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudUserStatusHeartbeat; + } + + @override + void update(void Function(NextcloudUserStatusHeartbeatBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudUserStatusHeartbeat build() => _build(); + + _$NextcloudUserStatusHeartbeat _build() { + _$NextcloudUserStatusHeartbeat _$result; + try { + _$result = _$v ?? _$NextcloudUserStatusHeartbeat._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'NextcloudUserStatusHeartbeat', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$NextcloudNotificationsNotificationDecryptedSubject extends NextcloudNotificationsNotificationDecryptedSubject { + @override + final int? nid; + @override + final String? app; + @override + final String? subject; + @override + final String? type; + @override + final String? id; + @override + final bool? delete; + @override + final bool? deleteAll; + + factory _$NextcloudNotificationsNotificationDecryptedSubject( + [void Function(NextcloudNotificationsNotificationDecryptedSubjectBuilder)? updates]) => + (NextcloudNotificationsNotificationDecryptedSubjectBuilder()..update(updates))._build(); + + _$NextcloudNotificationsNotificationDecryptedSubject._( + {this.nid, this.app, this.subject, this.type, this.id, this.delete, this.deleteAll}) + : super._(); + + @override + NextcloudNotificationsNotificationDecryptedSubject rebuild( + void Function(NextcloudNotificationsNotificationDecryptedSubjectBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + NextcloudNotificationsNotificationDecryptedSubjectBuilder toBuilder() => + NextcloudNotificationsNotificationDecryptedSubjectBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is NextcloudNotificationsNotificationDecryptedSubject && + nid == other.nid && + app == other.app && + subject == other.subject && + type == other.type && + id == other.id && + delete == other.delete && + deleteAll == other.deleteAll; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, nid.hashCode); + _$hash = $jc(_$hash, app.hashCode); + _$hash = $jc(_$hash, subject.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, delete.hashCode); + _$hash = $jc(_$hash, deleteAll.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'NextcloudNotificationsNotificationDecryptedSubject') + ..add('nid', nid) + ..add('app', app) + ..add('subject', subject) + ..add('type', type) + ..add('id', id) + ..add('delete', delete) + ..add('deleteAll', deleteAll)) + .toString(); + } +} + +class NextcloudNotificationsNotificationDecryptedSubjectBuilder + implements + Builder { + _$NextcloudNotificationsNotificationDecryptedSubject? _$v; + + int? _nid; + int? get nid => _$this._nid; + set nid(int? nid) => _$this._nid = nid; + + String? _app; + String? get app => _$this._app; + set app(String? app) => _$this._app = app; + + String? _subject; + String? get subject => _$this._subject; + set subject(String? subject) => _$this._subject = subject; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _delete; + bool? get delete => _$this._delete; + set delete(bool? delete) => _$this._delete = delete; + + bool? _deleteAll; + bool? get deleteAll => _$this._deleteAll; + set deleteAll(bool? deleteAll) => _$this._deleteAll = deleteAll; + + NextcloudNotificationsNotificationDecryptedSubjectBuilder(); + + NextcloudNotificationsNotificationDecryptedSubjectBuilder get _$this { + final $v = _$v; + if ($v != null) { + _nid = $v.nid; + _app = $v.app; + _subject = $v.subject; + _type = $v.type; + _id = $v.id; + _delete = $v.delete; + _deleteAll = $v.deleteAll; + _$v = null; + } + return this; + } + + @override + void replace(NextcloudNotificationsNotificationDecryptedSubject other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$NextcloudNotificationsNotificationDecryptedSubject; + } + + @override + void update(void Function(NextcloudNotificationsNotificationDecryptedSubjectBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + NextcloudNotificationsNotificationDecryptedSubject build() => _build(); + + _$NextcloudNotificationsNotificationDecryptedSubject _build() { + final _$result = _$v ?? + _$NextcloudNotificationsNotificationDecryptedSubject._( + nid: nid, app: app, subject: subject, type: type, id: id, delete: delete, deleteAll: deleteAll); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint