From 350daef63b6a15d65b1f6a562207ace3ce8c6cb7 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Sat, 11 Nov 2023 15:07:40 +0100 Subject: [PATCH 1/4] feat(dynamite): generate custom serializers for every built class Signed-off-by: Nikolas Rimikis --- .../src/builder/built_object_serializer.dart | 221 ++++++++++++++++++ .../lib/src/builder/resolve_object.dart | 5 +- .../src/models/type_result/type_result.dart | 20 +- 3 files changed, 242 insertions(+), 4 deletions(-) create mode 100644 packages/dynamite/dynamite/lib/src/builder/built_object_serializer.dart diff --git a/packages/dynamite/dynamite/lib/src/builder/built_object_serializer.dart b/packages/dynamite/dynamite/lib/src/builder/built_object_serializer.dart new file mode 100644 index 00000000000..af89b64eca5 --- /dev/null +++ b/packages/dynamite/dynamite/lib/src/builder/built_object_serializer.dart @@ -0,0 +1,221 @@ +import 'package:code_builder/code_builder.dart'; +import 'package:dynamite/src/builder/resolve_type.dart'; +import 'package:dynamite/src/builder/state.dart'; +import 'package:dynamite/src/helpers/dart_helpers.dart'; +import 'package:dynamite/src/helpers/dynamite.dart'; +import 'package:dynamite/src/models/openapi.dart' as openapi; +import 'package:dynamite/src/models/type_result.dart'; + +Spec buildBuiltClassSerializer( + final State state, + final String identifier, + final openapi.OpenAPI spec, + final openapi.Schema schema, +) => + Class( + (final b) => b + ..name = '_\$${identifier}Serializer' + ..implements.add(refer('StructuredSerializer<$identifier>')) + ..constructors.add( + Constructor( + (final b) => b..constant = true, + ), + ) + ..methods.addAll([ + Method( + (final b) => b + ..name = 'types' + ..type = MethodType.getter + ..lambda = true + ..returns = refer('Iterable') + ..annotations.add(refer('override')) + ..body = Code('const [$identifier, _\$$identifier]'), + ), + Method( + (final b) => b + ..name = 'wireName' + ..type = MethodType.getter + ..lambda = true + ..returns = refer('String') + ..annotations.add(refer('override')) + ..body = Code("r'$identifier'"), + ), + Method((final b) { + b + ..name = 'serialize' + ..returns = refer('Iterable') + ..annotations.add(refer('override')) + ..requiredParameters.addAll([ + Parameter( + (final b) => b + ..name = 'serializers' + ..type = refer('Serializers'), + ), + Parameter( + (final b) => b + ..name = 'object' + ..type = refer(identifier), + ), + ]) + ..optionalParameters.add( + Parameter( + (final b) => b + ..name = 'specifiedType' + ..type = refer('FullType') + ..named = true + ..defaultTo = const Code('FullType.unspecified'), + ), + ); + + final properties = serializeProperty(state, identifier, spec, schema); + final nullableProperties = serializePropertyNullable(state, identifier, spec, schema); + final buffer = StringBuffer() + ..write('final result = [') + ..writeAll(properties, '\n') + ..write('];') + ..writeln(); + + if (nullableProperties.isNotEmpty) { + buffer + ..write('Object? value;') + ..writeAll(nullableProperties, '\n') + ..writeln(); + } + + buffer.write('return result;'); + + b.body = Code(buffer.toString()); + }), + Method((final b) { + b + ..name = 'deserialize' + ..returns = refer(identifier) + ..annotations.add(refer('override')) + ..requiredParameters.addAll([ + Parameter( + (final b) => b + ..name = 'serializers' + ..type = refer('Serializers'), + ), + Parameter( + (final b) => b + ..name = 'serialized' + ..type = refer('Iterable'), + ), + ]) + ..optionalParameters.add( + Parameter( + (final b) => b + ..name = 'specifiedType' + ..type = refer('FullType') + ..named = true + ..defaultTo = const Code('FullType.unspecified'), + ), + ) + ..body = Code(''' +final result = new ${identifier}Builder(); + +final iterator = serialized.iterator; +while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + ${deserializeProperty(state, identifier, spec, schema).join('\n')} + } +} + +return result.build(); +'''); + }), + ]), + ); + +Iterable deserializeProperty( + final State state, + final String identifier, + final openapi.OpenAPI spec, + final openapi.Schema schema, +) sync* { + for (final property in schema.properties!.entries) { + final propertyName = property.key; + final propertySchema = property.value; + final dartName = toDartName(propertyName); + final result = resolveType( + spec, + state, + '${identifier}_${toDartName(propertyName, uppercaseFirstCharacter: true)}', + propertySchema, + nullable: isDartParameterNullable(schema.required.contains(propertyName), propertySchema), + ); + + yield "case '$propertyName':"; + final deserialize = result.deserialize('value', 'serializers'); + + if (result is TypeResultBase || result is TypeResultEnum) { + yield 'result.$dartName = $deserialize;'; + } else { + yield 'result.$dartName.replace($deserialize,);'; + } + } +} + +Iterable serializePropertyNullable( + final State state, + final String identifier, + final openapi.OpenAPI spec, + final openapi.Schema schema, +) sync* { + for (final property in schema.properties!.entries) { + final propertyName = property.key; + final propertySchema = property.value; + final dartName = toDartName(propertyName); + final result = resolveType( + spec, + state, + '${identifier}_${toDartName(propertyName, uppercaseFirstCharacter: true)}', + propertySchema, + nullable: isDartParameterNullable(schema.required.contains(propertyName), propertySchema), + ); + if (!result.nullable) { + continue; + } + + yield ''' +value = object.$dartName; +if (value != null) { + result + ..add('$propertyName') + ..add(${result.serialize('value', 'serializers')},); +} +'''; + } +} + +Iterable serializeProperty( + final State state, + final String identifier, + final openapi.OpenAPI spec, + final openapi.Schema schema, +) sync* { + for (final property in schema.properties!.entries) { + final propertyName = property.key; + final propertySchema = property.value; + final dartName = toDartName(propertyName); + final result = resolveType( + spec, + state, + '${identifier}_${toDartName(propertyName, uppercaseFirstCharacter: true)}', + propertySchema, + nullable: isDartParameterNullable(schema.required.contains(propertyName), propertySchema), + ); + if (result.nullable) { + continue; + } + + yield ''' +'$propertyName', +${result.serialize('object.$dartName', 'serializers')}, +'''; + } +} diff --git a/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart b/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart index 3467494bb94..5a45134c2f8 100644 --- a/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart +++ b/packages/dynamite/dynamite/lib/src/builder/resolve_object.dart @@ -1,3 +1,4 @@ +import 'package:dynamite/src/builder/built_object_serializer.dart'; import 'package:dynamite/src/builder/header_serializer.dart'; import 'package:dynamite/src/builder/resolve_interface.dart'; import 'package:dynamite/src/builder/resolve_type.dart'; @@ -47,12 +48,14 @@ TypeResultObject resolveObject( buildBuiltClass( identifier, defaults: defaults, - customSerializer: isHeader, + customSerializer: true, ), ); if (isHeader) { state.output.add(buildHeaderSerializer(state, identifier, spec, schema)); + } else { + state.output.add(buildBuiltClassSerializer(state, identifier, spec, schema)); } } return result; diff --git a/packages/dynamite/dynamite/lib/src/models/type_result/type_result.dart b/packages/dynamite/dynamite/lib/src/models/type_result/type_result.dart index 5d7bd916690..8867062085b 100644 --- a/packages/dynamite/dynamite/lib/src/models/type_result/type_result.dart +++ b/packages/dynamite/dynamite/lib/src/models/type_result/type_result.dart @@ -87,13 +87,27 @@ sealed class TypeResult { /// Serializes the variable named [object]. /// /// The serialized result is an [Object]? - String serialize(final String object) => '_jsonSerializers.serialize($object, specifiedType: const $fullType)'; + @nonVirtual + String serialize(final String object, [final String? serializerName]) => + '${serializerName ?? '_jsonSerializers'}.serialize($object, specifiedType: const $fullType)'; /// Deserializes the variable named [object]. /// /// The serialized result will be of [name]. - String deserialize(final String object) => - '(_jsonSerializers.deserialize($object, specifiedType: const $fullType)! as $name)'; + @nonVirtual + String deserialize(final String object, [final String? serializerName]) { + final buffer = StringBuffer() + ..write(serializerName ?? '_jsonSerializers') + ..write('.deserialize(') + ..write(object) + ..write(', specifiedType: const $fullType)'); + + if (!nullable) { + buffer.write('!'); + } + + return '($buffer as $name)'; + } /// Decodes the variable named [object]. String decode(final String object) => 'json.decode($object as String)'; From 23b324b6745899a2662f49395727565e6056c20b Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Thu, 16 Nov 2023 22:22:16 +0100 Subject: [PATCH 2/4] chore(nextcloud): regenerate nextcloud Signed-off-by: Nikolas Rimikis --- .../lib/src/api/comments.openapi.dart | 98 +- .../lib/src/api/comments.openapi.g.dart | 80 - .../nextcloud/lib/src/api/core.openapi.dart | 11148 ++++++++++- .../nextcloud/lib/src/api/core.openapi.g.dart | 9298 --------- .../lib/src/api/dashboard.openapi.dart | 750 +- .../lib/src/api/dashboard.openapi.g.dart | 635 - .../nextcloud/lib/src/api/dav.openapi.dart | 359 +- .../nextcloud/lib/src/api/dav.openapi.g.dart | 298 - .../nextcloud/lib/src/api/files.openapi.dart | 2613 ++- .../lib/src/api/files.openapi.g.dart | 2226 --- .../lib/src/api/files_external.openapi.dart | 449 +- .../lib/src/api/files_external.openapi.g.dart | 380 - .../lib/src/api/files_reminders.openapi.dart | 464 +- .../src/api/files_reminders.openapi.g.dart | 378 - .../lib/src/api/files_sharing.openapi.dart | 4921 ++++- .../lib/src/api/files_sharing.openapi.g.dart | 4641 +---- .../lib/src/api/files_trashbin.openapi.dart | 98 +- .../lib/src/api/files_trashbin.openapi.g.dart | 80 - .../lib/src/api/files_versions.openapi.dart | 106 +- .../lib/src/api/files_versions.openapi.g.dart | 90 - .../nextcloud/lib/src/api/news.openapi.dart | 799 +- .../nextcloud/lib/src/api/news.openapi.g.dart | 673 - .../nextcloud/lib/src/api/notes.openapi.dart | 453 +- .../lib/src/api/notes.openapi.g.dart | 381 - .../lib/src/api/notifications.openapi.dart | 1649 +- .../lib/src/api/notifications.openapi.g.dart | 1380 -- .../lib/src/api/provisioning_api.openapi.dart | 7273 ++++++- .../src/api/provisioning_api.openapi.g.dart | 6073 ------ .../lib/src/api/sharebymail.openapi.dart | 351 +- .../lib/src/api/sharebymail.openapi.g.dart | 297 - .../nextcloud/lib/src/api/spreed.openapi.dart | 16572 +++++++++++++++- .../lib/src/api/spreed.openapi.g.dart | 16069 ++------------- .../lib/src/api/theming.openapi.dart | 670 +- .../lib/src/api/theming.openapi.g.dart | 598 - .../src/api/updatenotification.openapi.dart | 311 +- .../src/api/updatenotification.openapi.g.dart | 259 - .../nextcloud/lib/src/api/uppush.openapi.dart | 670 +- .../lib/src/api/uppush.openapi.g.dart | 562 - .../lib/src/api/user_status.openapi.dart | 1585 +- .../lib/src/api/user_status.openapi.g.dart | 1306 -- .../lib/src/api/weather_status.openapi.dart | 2170 +- .../lib/src/api/weather_status.openapi.g.dart | 1835 -- 42 files changed, 53712 insertions(+), 47336 deletions(-) diff --git a/packages/nextcloud/lib/src/api/comments.openapi.dart b/packages/nextcloud/lib/src/api/comments.openapi.dart index 14a351032aa..55b4243df59 100644 --- a/packages/nextcloud/lib/src/api/comments.openapi.dart +++ b/packages/nextcloud/lib/src/api/comments.openapi.dart @@ -53,7 +53,53 @@ abstract class Capabilities_Files Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesFilesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Capabilities_FilesSerializer(); +} + +class _$Capabilities_FilesSerializer implements StructuredSerializer { + const _$Capabilities_FilesSerializer(); + + @override + Iterable get types => const [Capabilities_Files, _$Capabilities_Files]; + + @override + String get wireName => 'Capabilities_Files'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities_Files object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'comments', + serializers.serialize(object.comments, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + Capabilities_Files deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = Capabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'comments': + result.comments = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -76,7 +122,55 @@ abstract class Capabilities implements CapabilitiesInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CapabilitiesSerializer(); +} + +class _$CapabilitiesSerializer implements StructuredSerializer { + const _$CapabilitiesSerializer(); + + @override + Iterable get types => const [Capabilities, _$Capabilities]; + + @override + String get wireName => 'Capabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files', + serializers.serialize(object.files, specifiedType: const FullType(Capabilities_Files)), + ]; + return result; + } + + @override + Capabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files': + result.files.replace( + serializers.deserialize(value, specifiedType: const FullType(Capabilities_Files))! as Capabilities_Files, + ); + } + } + + return result.build(); + } } // coverage:ignore-start diff --git a/packages/nextcloud/lib/src/api/comments.openapi.g.dart b/packages/nextcloud/lib/src/api/comments.openapi.g.dart index cc9a08032fd..dcfb93dc426 100644 --- a/packages/nextcloud/lib/src/api/comments.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/comments.openapi.g.dart @@ -6,86 +6,6 @@ part of 'comments.openapi.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer _$capabilitiesFilesSerializer = _$Capabilities_FilesSerializer(); -Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); - -class _$Capabilities_FilesSerializer implements StructuredSerializer { - @override - final Iterable types = const [Capabilities_Files, _$Capabilities_Files]; - @override - final String wireName = 'Capabilities_Files'; - - @override - Iterable serialize(Serializers serializers, Capabilities_Files object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'comments', - serializers.serialize(object.comments, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - Capabilities_Files deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = 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 'comments': - result.comments = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$CapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [Capabilities, _$Capabilities]; - @override - final String wireName = 'Capabilities'; - - @override - Iterable serialize(Serializers serializers, Capabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files', - serializers.serialize(object.files, specifiedType: const FullType(Capabilities_Files)), - ]; - - return result; - } - - @override - Capabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files': - result.files.replace( - serializers.deserialize(value, specifiedType: const FullType(Capabilities_Files))! as Capabilities_Files); - break; - } - } - - return result.build(); - } -} - abstract mixin class Capabilities_FilesInterfaceBuilder { void replace(Capabilities_FilesInterface other); void update(void Function(Capabilities_FilesInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/core.openapi.dart b/packages/nextcloud/lib/src/api/core.openapi.dart index 2c999ad70d7..c07600e1a13 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.dart @@ -5037,7 +5037,81 @@ abstract class Status implements StatusInterface, Built { Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$statusSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$StatusSerializer(); +} + +class _$StatusSerializer implements StructuredSerializer { + const _$StatusSerializer(); + + @override + Iterable get types => const [Status, _$Status]; + + @override + String get wireName => 'Status'; + + @override + Iterable serialize( + final Serializers serializers, + final Status object, { + final 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', + serializers.serialize(object.productname, specifiedType: const FullType(String)), + 'extendedSupport', + serializers.serialize(object.extendedSupport, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + Status deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = StatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'installed': + result.installed = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'maintenance': + result.maintenance = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'needsDbUpgrade': + result.needsDbUpgrade = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'versionstring': + result.versionstring = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'edition': + result.edition = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'productname': + result.productname = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'extendedSupport': + result.extendedSupport = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5064,7 +5138,91 @@ abstract class OCSMeta implements OCSMetaInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$oCSMetaSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$OCSMetaSerializer(); +} + +class _$OCSMetaSerializer implements StructuredSerializer { + const _$OCSMetaSerializer(); + + @override + Iterable get types => const [OCSMeta, _$OCSMeta]; + + @override + String get wireName => 'OCSMeta'; + + @override + Iterable serialize( + final Serializers serializers, + final OCSMeta object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'status', + 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 + OCSMeta deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OCSMetaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'statuscode': + result.statuscode = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'totalitems': + result.totalitems = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'itemsperpage': + result.itemsperpage = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5094,8 +5252,58 @@ abstract class AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordGetAppPasswordResponseApplicationJsonOcsDataSerializer; + const _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data, + _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'apppassword', + serializers.serialize(object.apppassword, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordGetAppPasswordResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'apppassword': + result.apppassword = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5126,8 +5334,72 @@ abstract class AppPasswordGetAppPasswordResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordGetAppPasswordResponseApplicationJsonOcsSerializer; + const _$AppPasswordGetAppPasswordResponseApplicationJson_OcsSerializer(); +} + +class _$AppPasswordGetAppPasswordResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$AppPasswordGetAppPasswordResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + AppPasswordGetAppPasswordResponseApplicationJson_Ocs, + _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'AppPasswordGetAppPasswordResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordGetAppPasswordResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + AppPasswordGetAppPasswordResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordGetAppPasswordResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data), + )! as AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5157,8 +5429,64 @@ abstract class AppPasswordGetAppPasswordResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordGetAppPasswordResponseApplicationJsonSerializer; + const _$AppPasswordGetAppPasswordResponseApplicationJsonSerializer(); +} + +class _$AppPasswordGetAppPasswordResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$AppPasswordGetAppPasswordResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [AppPasswordGetAppPasswordResponseApplicationJson, _$AppPasswordGetAppPasswordResponseApplicationJson]; + + @override + String get wireName => 'AppPasswordGetAppPasswordResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordGetAppPasswordResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + AppPasswordGetAppPasswordResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordGetAppPasswordResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs), + )! as AppPasswordGetAppPasswordResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5188,8 +5516,58 @@ abstract class AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordRotateAppPasswordResponseApplicationJsonOcsDataSerializer; + const _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data, + _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'apppassword', + serializers.serialize(object.apppassword, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'apppassword': + result.apppassword = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5220,8 +5598,72 @@ abstract class AppPasswordRotateAppPasswordResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordRotateAppPasswordResponseApplicationJsonOcsSerializer; + const _$AppPasswordRotateAppPasswordResponseApplicationJson_OcsSerializer(); +} + +class _$AppPasswordRotateAppPasswordResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$AppPasswordRotateAppPasswordResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + AppPasswordRotateAppPasswordResponseApplicationJson_Ocs, + _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'AppPasswordRotateAppPasswordResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordRotateAppPasswordResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + AppPasswordRotateAppPasswordResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordRotateAppPasswordResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data), + )! as AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5251,40 +5693,154 @@ abstract class AppPasswordRotateAppPasswordResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordRotateAppPasswordResponseApplicationJsonSerializer; -} - -@BuiltValue(instantiable: false) -abstract interface class AppPasswordDeleteAppPasswordResponseApplicationJson_OcsInterface { - OCSMeta get meta; - JsonObject get data; + const _$AppPasswordRotateAppPasswordResponseApplicationJsonSerializer(); } -abstract class AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs - implements - AppPasswordDeleteAppPasswordResponseApplicationJson_OcsInterface, - Built { - factory AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs([ - final void Function(AppPasswordDeleteAppPasswordResponseApplicationJson_OcsBuilder)? b, - ]) = _$AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs; +class _$AppPasswordRotateAppPasswordResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$AppPasswordRotateAppPasswordResponseApplicationJsonSerializer(); - // coverage:ignore-start - const AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs._(); - // coverage:ignore-end + @override + Iterable get types => const [ + AppPasswordRotateAppPasswordResponseApplicationJson, + _$AppPasswordRotateAppPasswordResponseApplicationJson, + ]; - // coverage:ignore-start - factory AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs.fromJson(final Map json) => - _jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + @override + String get wireName => 'AppPasswordRotateAppPasswordResponseApplicationJson'; - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordRotateAppPasswordResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + AppPasswordRotateAppPasswordResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordRotateAppPasswordResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs), + )! as AppPasswordRotateAppPasswordResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } +} + +@BuiltValue(instantiable: false) +abstract interface class AppPasswordDeleteAppPasswordResponseApplicationJson_OcsInterface { + OCSMeta get meta; + JsonObject get data; +} + +abstract class AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs + implements + AppPasswordDeleteAppPasswordResponseApplicationJson_OcsInterface, + Built { + factory AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs([ + final void Function(AppPasswordDeleteAppPasswordResponseApplicationJson_OcsBuilder)? b, + ]) = _$AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs; + + // coverage:ignore-start + const AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs._(); + // coverage:ignore-end + + // coverage:ignore-start + factory AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordDeleteAppPasswordResponseApplicationJsonOcsSerializer; + const _$AppPasswordDeleteAppPasswordResponseApplicationJson_OcsSerializer(); +} + +class _$AppPasswordDeleteAppPasswordResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$AppPasswordDeleteAppPasswordResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs, + _$AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), + ]; + return result; + } + + @override + AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordDeleteAppPasswordResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5314,8 +5870,66 @@ abstract class AppPasswordDeleteAppPasswordResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$appPasswordDeleteAppPasswordResponseApplicationJsonSerializer; + const _$AppPasswordDeleteAppPasswordResponseApplicationJsonSerializer(); +} + +class _$AppPasswordDeleteAppPasswordResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$AppPasswordDeleteAppPasswordResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + AppPasswordDeleteAppPasswordResponseApplicationJson, + _$AppPasswordDeleteAppPasswordResponseApplicationJson, + ]; + + @override + String get wireName => 'AppPasswordDeleteAppPasswordResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final AppPasswordDeleteAppPasswordResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + AppPasswordDeleteAppPasswordResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AppPasswordDeleteAppPasswordResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs), + )! as AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5346,7 +5960,87 @@ abstract class AutocompleteResult_Status0 Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$autocompleteResultStatus0Serializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AutocompleteResult_Status0Serializer(); +} + +class _$AutocompleteResult_Status0Serializer implements StructuredSerializer { + const _$AutocompleteResult_Status0Serializer(); + + @override + Iterable get types => const [AutocompleteResult_Status0, _$AutocompleteResult_Status0]; + + @override + String get wireName => 'AutocompleteResult_Status0'; + + @override + Iterable serialize( + final Serializers serializers, + final AutocompleteResult_Status0 object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'status', + serializers.serialize(object.status, specifiedType: const FullType(String)), + ]; + 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(int)), + ); + } + + return result; + } + + @override + AutocompleteResult_Status0 deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AutocompleteResult_Status0Builder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'clearAt': + result.clearAt = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5454,7 +6148,81 @@ abstract class AutocompleteResult Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$autocompleteResultSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AutocompleteResultSerializer(); +} + +class _$AutocompleteResultSerializer implements StructuredSerializer { + const _$AutocompleteResultSerializer(); + + @override + Iterable get types => const [AutocompleteResult, _$AutocompleteResult]; + + @override + String get wireName => 'AutocompleteResult'; + + @override + Iterable serialize( + final Serializers serializers, + final AutocompleteResult object, { + final 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(AutocompleteResult_Status)), + 'subline', + serializers.serialize(object.subline, specifiedType: const FullType(String)), + 'shareWithDisplayNameUnique', + serializers.serialize(object.shareWithDisplayNameUnique, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + AutocompleteResult deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AutocompleteResultBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'label': + result.label = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'source': + result.source = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'status': + result.status.replace( + serializers.deserialize(value, specifiedType: const FullType(AutocompleteResult_Status))! + as AutocompleteResult_Status, + ); + case 'subline': + result.subline = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'shareWithDisplayNameUnique': + result.shareWithDisplayNameUnique = + serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5484,8 +6252,65 @@ abstract class AutoCompleteGetResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$autoCompleteGetResponseApplicationJsonOcsSerializer; + const _$AutoCompleteGetResponseApplicationJson_OcsSerializer(); +} + +class _$AutoCompleteGetResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$AutoCompleteGetResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [AutoCompleteGetResponseApplicationJson_Ocs, _$AutoCompleteGetResponseApplicationJson_Ocs]; + + @override + String get wireName => 'AutoCompleteGetResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final AutoCompleteGetResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(AutocompleteResult)])), + ]; + return result; + } + + @override + AutoCompleteGetResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AutoCompleteGetResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(AutocompleteResult)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5514,8 +6339,58 @@ abstract class AutoCompleteGetResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$autoCompleteGetResponseApplicationJsonSerializer; + const _$AutoCompleteGetResponseApplicationJsonSerializer(); +} + +class _$AutoCompleteGetResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$AutoCompleteGetResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [AutoCompleteGetResponseApplicationJson, _$AutoCompleteGetResponseApplicationJson]; + + @override + String get wireName => 'AutoCompleteGetResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final AutoCompleteGetResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(AutoCompleteGetResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + AutoCompleteGetResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = AutoCompleteGetResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(AutoCompleteGetResponseApplicationJson_Ocs))! + as AutoCompleteGetResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5682,16 +6557,70 @@ abstract class LoginFlowV2Credentials Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$loginFlowV2CredentialsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$LoginFlowV2CredentialsSerializer(); } -@BuiltValue(instantiable: false) -abstract interface class LoginFlowV2_PollInterface { - String get token; - String get endpoint; -} +class _$LoginFlowV2CredentialsSerializer implements StructuredSerializer { + const _$LoginFlowV2CredentialsSerializer(); -abstract class LoginFlowV2_Poll implements LoginFlowV2_PollInterface, Built { + @override + Iterable get types => const [LoginFlowV2Credentials, _$LoginFlowV2Credentials]; + + @override + String get wireName => 'LoginFlowV2Credentials'; + + @override + Iterable serialize( + final Serializers serializers, + final LoginFlowV2Credentials object, { + final 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 + LoginFlowV2Credentials deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = LoginFlowV2CredentialsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'server': + result.server = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'loginName': + result.loginName = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'appPassword': + result.appPassword = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } +} + +@BuiltValue(instantiable: false) +abstract interface class LoginFlowV2_PollInterface { + String get token; + String get endpoint; +} + +abstract class LoginFlowV2_Poll implements LoginFlowV2_PollInterface, Built { factory LoginFlowV2_Poll([final void Function(LoginFlowV2_PollBuilder)? b]) = _$LoginFlowV2_Poll; // coverage:ignore-start @@ -5707,7 +6636,57 @@ abstract class LoginFlowV2_Poll implements LoginFlowV2_PollInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$loginFlowV2PollSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$LoginFlowV2_PollSerializer(); +} + +class _$LoginFlowV2_PollSerializer implements StructuredSerializer { + const _$LoginFlowV2_PollSerializer(); + + @override + Iterable get types => const [LoginFlowV2_Poll, _$LoginFlowV2_Poll]; + + @override + String get wireName => 'LoginFlowV2_Poll'; + + @override + Iterable serialize( + final Serializers serializers, + final LoginFlowV2_Poll object, { + final 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 + LoginFlowV2_Poll deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = LoginFlowV2_PollBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'token': + result.token = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'endpoint': + result.endpoint = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5731,7 +6710,59 @@ abstract class LoginFlowV2 implements LoginFlowV2Interface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$loginFlowV2Serializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$LoginFlowV2Serializer(); +} + +class _$LoginFlowV2Serializer implements StructuredSerializer { + const _$LoginFlowV2Serializer(); + + @override + Iterable get types => const [LoginFlowV2, _$LoginFlowV2]; + + @override + String get wireName => 'LoginFlowV2'; + + @override + Iterable serialize( + final Serializers serializers, + final LoginFlowV2 object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'poll', + serializers.serialize(object.poll, specifiedType: const FullType(LoginFlowV2_Poll)), + 'login', + serializers.serialize(object.login, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + LoginFlowV2 deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = LoginFlowV2Builder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'poll': + result.poll.replace( + serializers.deserialize(value, specifiedType: const FullType(LoginFlowV2_Poll))! as LoginFlowV2_Poll, + ); + case 'login': + result.login = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5759,7 +6790,84 @@ abstract class OpenGraphObject implements OpenGraphObjectInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$openGraphObjectSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$OpenGraphObjectSerializer(); +} + +class _$OpenGraphObjectSerializer implements StructuredSerializer { + const _$OpenGraphObjectSerializer(); + + @override + Iterable get types => const [OpenGraphObject, _$OpenGraphObject]; + + @override + String get wireName => 'OpenGraphObject'; + + @override + Iterable serialize( + final Serializers serializers, + final OpenGraphObject object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'link', + serializers.serialize(object.link, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.description; + if (value != null) { + result + ..add('description') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + value = object.thumb; + if (value != null) { + result + ..add('thumb') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + OpenGraphObject deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenGraphObjectBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'description': + result.description = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'thumb': + result.thumb = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'link': + result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5785,7 +6893,75 @@ abstract class Resource implements ResourceInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$resourceSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ResourceSerializer(); +} + +class _$ResourceSerializer implements StructuredSerializer { + const _$ResourceSerializer(); + + @override + Iterable get types => const [Resource, _$Resource]; + + @override + String get wireName => 'Resource'; + + @override + Iterable serialize( + final Serializers serializers, + final Resource object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'richObjectType', + serializers.serialize(object.richObjectType, specifiedType: const FullType(String)), + 'richObject', + serializers.serialize( + object.richObject, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), + ), + 'openGraphObject', + serializers.serialize(object.openGraphObject, specifiedType: const FullType(OpenGraphObject)), + 'accessible', + serializers.serialize(object.accessible, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + Resource deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ResourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'richObjectType': + result.richObjectType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'richObject': + result.richObject.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), + )! as BuiltMap, + ); + case 'openGraphObject': + result.openGraphObject.replace( + serializers.deserialize(value, specifiedType: const FullType(OpenGraphObject))! as OpenGraphObject, + ); + case 'accessible': + result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5810,7 +6986,64 @@ abstract class Collection implements CollectionInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$collectionSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CollectionSerializer(); +} + +class _$CollectionSerializer implements StructuredSerializer { + const _$CollectionSerializer(); + + @override + Iterable get types => const [Collection, _$Collection]; + + @override + String get wireName => 'Collection'; + + @override + Iterable serialize( + final Serializers serializers, + final Collection object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'resources', + serializers.serialize(object.resources, specifiedType: const FullType(BuiltList, [FullType(Resource)])), + ]; + return result; + } + + @override + Collection deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollectionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'resources': + result.resources.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(Resource)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5843,8 +7076,67 @@ abstract class CollaborationResourcesSearchCollectionsResponseApplicationJson_Oc Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesSearchCollectionsResponseApplicationJsonOcsSerializer; + const _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs, + _$CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(Collection)])), + ]; + return result; + } + + @override + CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(Collection)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5874,8 +7166,66 @@ abstract class CollaborationResourcesSearchCollectionsResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesSearchCollectionsResponseApplicationJsonSerializer; + const _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesSearchCollectionsResponseApplicationJson, + _$CollaborationResourcesSearchCollectionsResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesSearchCollectionsResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesSearchCollectionsResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesSearchCollectionsResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesSearchCollectionsResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs), + )! as CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5906,8 +7256,66 @@ abstract class CollaborationResourcesListCollectionResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesListCollectionResponseApplicationJsonOcsSerializer; + const _$CollaborationResourcesListCollectionResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesListCollectionResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesListCollectionResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesListCollectionResponseApplicationJson_Ocs, + _$CollaborationResourcesListCollectionResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesListCollectionResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesListCollectionResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(Collection)), + ]; + return result; + } + + @override + CollaborationResourcesListCollectionResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesListCollectionResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5937,8 +7345,66 @@ abstract class CollaborationResourcesListCollectionResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesListCollectionResponseApplicationJsonSerializer; + const _$CollaborationResourcesListCollectionResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesListCollectionResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesListCollectionResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesListCollectionResponseApplicationJson, + _$CollaborationResourcesListCollectionResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesListCollectionResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesListCollectionResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesListCollectionResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesListCollectionResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesListCollectionResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(CollaborationResourcesListCollectionResponseApplicationJson_Ocs), + )! as CollaborationResourcesListCollectionResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -5969,8 +7435,66 @@ abstract class CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesRenameCollectionResponseApplicationJsonOcsSerializer; + const _$CollaborationResourcesRenameCollectionResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesRenameCollectionResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesRenameCollectionResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs, + _$CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(Collection)), + ]; + return result; + } + + @override + CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesRenameCollectionResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6000,8 +7524,66 @@ abstract class CollaborationResourcesRenameCollectionResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesRenameCollectionResponseApplicationJsonSerializer; + const _$CollaborationResourcesRenameCollectionResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesRenameCollectionResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesRenameCollectionResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesRenameCollectionResponseApplicationJson, + _$CollaborationResourcesRenameCollectionResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesRenameCollectionResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesRenameCollectionResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesRenameCollectionResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesRenameCollectionResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs), + )! as CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6032,8 +7614,66 @@ abstract class CollaborationResourcesAddResourceResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$collaborationResourcesAddResourceResponseApplicationJsonOcsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$CollaborationResourcesAddResourceResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesAddResourceResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesAddResourceResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesAddResourceResponseApplicationJson_Ocs, + _$CollaborationResourcesAddResourceResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesAddResourceResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesAddResourceResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(Collection)), + ]; + return result; + } + + @override + CollaborationResourcesAddResourceResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesAddResourceResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6063,8 +7703,66 @@ abstract class CollaborationResourcesAddResourceResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesAddResourceResponseApplicationJsonSerializer; + const _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesAddResourceResponseApplicationJson, + _$CollaborationResourcesAddResourceResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesAddResourceResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesAddResourceResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesAddResourceResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesAddResourceResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesAddResourceResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(CollaborationResourcesAddResourceResponseApplicationJson_Ocs), + )! as CollaborationResourcesAddResourceResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6095,8 +7793,66 @@ abstract class CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesRemoveResourceResponseApplicationJsonOcsSerializer; + const _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs, + _$CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(Collection)), + ]; + return result; + } + + @override + CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesRemoveResourceResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6126,8 +7882,66 @@ abstract class CollaborationResourcesRemoveResourceResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesRemoveResourceResponseApplicationJsonSerializer; + const _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesRemoveResourceResponseApplicationJson, + _$CollaborationResourcesRemoveResourceResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesRemoveResourceResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesRemoveResourceResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesRemoveResourceResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesRemoveResourceResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs), + )! as CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6160,8 +7974,67 @@ abstract class CollaborationResourcesGetCollectionsByResourceResponseApplication Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesGetCollectionsByResourceResponseApplicationJsonOcsSerializer; + const _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs, + _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(Collection)])), + ]; + return result; + } + + @override + CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(Collection)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6193,8 +8066,66 @@ abstract class CollaborationResourcesGetCollectionsByResourceResponseApplication Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer; + const _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesGetCollectionsByResourceResponseApplicationJson, + _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesGetCollectionsByResourceResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesGetCollectionsByResourceResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesGetCollectionsByResourceResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs), + )! as CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6227,8 +8158,66 @@ abstract class CollaborationResourcesCreateCollectionOnResourceResponseApplicati Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesCreateCollectionOnResourceResponseApplicationJsonOcsSerializer; + const _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsSerializer(); +} + +class _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs, + _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(Collection)), + ]; + return result; + } + + @override + CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6260,8 +8249,67 @@ abstract class CollaborationResourcesCreateCollectionOnResourceResponseApplicati Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$collaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer; + const _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer(); +} + +class _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson, + _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson, + ]; + + @override + String get wireName => 'CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: + const FullType(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs), + )! as CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6284,11 +8332,69 @@ abstract class ContactsAction implements ContactsActionInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ContactsActionSerializer(); +} + +class _$ContactsActionSerializer implements StructuredSerializer { + const _$ContactsActionSerializer(); + + @override + Iterable get types => const [ContactsAction, _$ContactsAction]; + + @override + String get wireName => 'ContactsAction'; + + @override + Iterable serialize( + final Serializers serializers, + final ContactsAction object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'icon', + serializers.serialize(object.icon, specifiedType: const FullType(String)), + 'hyperlink', + serializers.serialize(object.hyperlink, specifiedType: const FullType(String)), + 'appId', + serializers.serialize(object.appId, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + ContactsAction deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ContactsActionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'hyperlink': + result.hyperlink = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'appId': + result.appId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } - static Serializer get serializer => _$contactsActionSerializer; + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6320,8 +8426,67 @@ abstract class HoverCardGetUserResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$hoverCardGetUserResponseApplicationJsonOcsDataSerializer; + const _$HoverCardGetUserResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$HoverCardGetUserResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$HoverCardGetUserResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [HoverCardGetUserResponseApplicationJson_Ocs_Data, _$HoverCardGetUserResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'HoverCardGetUserResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final HoverCardGetUserResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'userId', + serializers.serialize(object.userId, specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, specifiedType: const FullType(String)), + 'actions', + serializers.serialize(object.actions, specifiedType: const FullType(BuiltList, [FullType(ContactsAction)])), + ]; + return result; + } + + @override + HoverCardGetUserResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = HoverCardGetUserResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'displayName': + result.displayName = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'actions': + result.actions.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(ContactsAction)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6351,8 +8516,70 @@ abstract class HoverCardGetUserResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$hoverCardGetUserResponseApplicationJsonOcsSerializer; + const _$HoverCardGetUserResponseApplicationJson_OcsSerializer(); +} + +class _$HoverCardGetUserResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$HoverCardGetUserResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [HoverCardGetUserResponseApplicationJson_Ocs, _$HoverCardGetUserResponseApplicationJson_Ocs]; + + @override + String get wireName => 'HoverCardGetUserResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final HoverCardGetUserResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + HoverCardGetUserResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = HoverCardGetUserResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs_Data), + )! as HoverCardGetUserResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6381,8 +8608,59 @@ abstract class HoverCardGetUserResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$hoverCardGetUserResponseApplicationJsonSerializer; + const _$HoverCardGetUserResponseApplicationJsonSerializer(); +} + +class _$HoverCardGetUserResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$HoverCardGetUserResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [HoverCardGetUserResponseApplicationJson, _$HoverCardGetUserResponseApplicationJson]; + + @override + String get wireName => 'HoverCardGetUserResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final HoverCardGetUserResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + HoverCardGetUserResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = HoverCardGetUserResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs))! + as HoverCardGetUserResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6489,7 +8767,88 @@ abstract class NavigationEntry implements NavigationEntryInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$navigationEntrySerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$NavigationEntrySerializer(); +} + +class _$NavigationEntrySerializer implements StructuredSerializer { + const _$NavigationEntrySerializer(); + + @override + Iterable get types => const [NavigationEntry, _$NavigationEntry]; + + @override + String get wireName => 'NavigationEntry'; + + @override + Iterable serialize( + final Serializers serializers, + final NavigationEntry object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(NavigationEntry_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 + NavigationEntry deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NavigationEntryBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'order': + result.order.replace( + serializers.deserialize(value, specifiedType: const FullType(NavigationEntry_Order))! + as NavigationEntry_Order, + ); + case 'href': + result.href = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'active': + result.active = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'classes': + result.classes = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'unread': + result.unread = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6520,8 +8879,67 @@ abstract class NavigationGetAppsNavigationResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$navigationGetAppsNavigationResponseApplicationJsonOcsSerializer; + const _$NavigationGetAppsNavigationResponseApplicationJson_OcsSerializer(); +} + +class _$NavigationGetAppsNavigationResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$NavigationGetAppsNavigationResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + NavigationGetAppsNavigationResponseApplicationJson_Ocs, + _$NavigationGetAppsNavigationResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'NavigationGetAppsNavigationResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final NavigationGetAppsNavigationResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)])), + ]; + return result; + } + + @override + NavigationGetAppsNavigationResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NavigationGetAppsNavigationResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6551,8 +8969,64 @@ abstract class NavigationGetAppsNavigationResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$navigationGetAppsNavigationResponseApplicationJsonSerializer; + const _$NavigationGetAppsNavigationResponseApplicationJsonSerializer(); +} + +class _$NavigationGetAppsNavigationResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$NavigationGetAppsNavigationResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [NavigationGetAppsNavigationResponseApplicationJson, _$NavigationGetAppsNavigationResponseApplicationJson]; + + @override + String get wireName => 'NavigationGetAppsNavigationResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final NavigationGetAppsNavigationResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(NavigationGetAppsNavigationResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + NavigationGetAppsNavigationResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NavigationGetAppsNavigationResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(NavigationGetAppsNavigationResponseApplicationJson_Ocs), + )! as NavigationGetAppsNavigationResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6583,8 +9057,67 @@ abstract class NavigationGetSettingsNavigationResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$navigationGetSettingsNavigationResponseApplicationJsonOcsSerializer; + const _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer(); +} + +class _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + NavigationGetSettingsNavigationResponseApplicationJson_Ocs, + _$NavigationGetSettingsNavigationResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'NavigationGetSettingsNavigationResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final NavigationGetSettingsNavigationResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)])), + ]; + return result; + } + + @override + NavigationGetSettingsNavigationResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NavigationGetSettingsNavigationResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6610,12 +9143,70 @@ abstract class NavigationGetSettingsNavigationResponseApplicationJson _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$NavigationGetSettingsNavigationResponseApplicationJsonSerializer(); +} + +class _$NavigationGetSettingsNavigationResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$NavigationGetSettingsNavigationResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + NavigationGetSettingsNavigationResponseApplicationJson, + _$NavigationGetSettingsNavigationResponseApplicationJson, + ]; + + @override + String get wireName => 'NavigationGetSettingsNavigationResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final NavigationGetSettingsNavigationResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(NavigationGetSettingsNavigationResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + NavigationGetSettingsNavigationResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NavigationGetSettingsNavigationResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(NavigationGetSettingsNavigationResponseApplicationJson_Ocs), + )! as NavigationGetSettingsNavigationResponseApplicationJson_Ocs, + ); + } + } - static Serializer get serializer => - _$navigationGetSettingsNavigationResponseApplicationJsonSerializer; + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6714,8 +9305,58 @@ abstract class OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocmDiscoveryResponseApplicationJsonResourceTypesProtocolsSerializer; + const _$OcmDiscoveryResponseApplicationJson_ResourceTypes_ProtocolsSerializer(); +} + +class _$OcmDiscoveryResponseApplicationJson_ResourceTypes_ProtocolsSerializer + implements StructuredSerializer { + const _$OcmDiscoveryResponseApplicationJson_ResourceTypes_ProtocolsSerializer(); + + @override + Iterable get types => const [ + OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols, + _$OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols, + ]; + + @override + String get wireName => 'OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols'; + + @override + Iterable serialize( + final Serializers serializers, + final OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'webdav', + serializers.serialize(object.webdav, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcmDiscoveryResponseApplicationJson_ResourceTypes_ProtocolsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'webdav': + result.webdav = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6747,8 +9388,75 @@ abstract class OcmDiscoveryResponseApplicationJson_ResourceTypes Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocmDiscoveryResponseApplicationJsonResourceTypesSerializer; + const _$OcmDiscoveryResponseApplicationJson_ResourceTypesSerializer(); +} + +class _$OcmDiscoveryResponseApplicationJson_ResourceTypesSerializer + implements StructuredSerializer { + const _$OcmDiscoveryResponseApplicationJson_ResourceTypesSerializer(); + + @override + Iterable get types => + const [OcmDiscoveryResponseApplicationJson_ResourceTypes, _$OcmDiscoveryResponseApplicationJson_ResourceTypes]; + + @override + String get wireName => 'OcmDiscoveryResponseApplicationJson_ResourceTypes'; + + @override + Iterable serialize( + final Serializers serializers, + final OcmDiscoveryResponseApplicationJson_ResourceTypes object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'shareTypes', + serializers.serialize(object.shareTypes, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'protocols', + serializers.serialize( + object.protocols, + specifiedType: const FullType(OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols), + ), + ]; + return result; + } + + @override + OcmDiscoveryResponseApplicationJson_ResourceTypes deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcmDiscoveryResponseApplicationJson_ResourceTypesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'shareTypes': + result.shareTypes.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'protocols': + result.protocols.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols), + )! as OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6779,8 +9487,75 @@ abstract class OcmDiscoveryResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocmDiscoveryResponseApplicationJsonSerializer; + const _$OcmDiscoveryResponseApplicationJsonSerializer(); +} + +class _$OcmDiscoveryResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$OcmDiscoveryResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [OcmDiscoveryResponseApplicationJson, _$OcmDiscoveryResponseApplicationJson]; + + @override + String get wireName => 'OcmDiscoveryResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final OcmDiscoveryResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + 'apiVersion', + serializers.serialize(object.apiVersion, specifiedType: const FullType(String)), + 'endPoint', + serializers.serialize(object.endPoint, specifiedType: const FullType(String)), + 'resourceTypes', + serializers.serialize( + object.resourceTypes, + specifiedType: const FullType(BuiltList, [FullType(OcmDiscoveryResponseApplicationJson_ResourceTypes)]), + ), + ]; + return result; + } + + @override + OcmDiscoveryResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcmDiscoveryResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'apiVersion': + result.apiVersion = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'endPoint': + result.endPoint = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'resourceTypes': + result.resourceTypes.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(OcmDiscoveryResponseApplicationJson_ResourceTypes)]), + )! as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6815,8 +9590,78 @@ abstract class OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocsGetCapabilitiesResponseApplicationJsonOcsDataVersionSerializer; + const _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_VersionSerializer(); +} + +class _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_VersionSerializer + implements StructuredSerializer { + const _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_VersionSerializer(); + + @override + Iterable get types => const [ + OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version, + _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version, + ]; + + @override + String get wireName => 'OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version'; + + @override + Iterable serialize( + final Serializers serializers, + final OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'major', + serializers.serialize(object.major, specifiedType: const FullType(int)), + 'minor', + serializers.serialize(object.minor, specifiedType: const FullType(int)), + 'micro', + serializers.serialize(object.micro, specifiedType: const FullType(int)), + 'string', + serializers.serialize(object.string, specifiedType: const FullType(String)), + 'edition', + serializers.serialize(object.edition, specifiedType: const FullType(String)), + 'extendedSupport', + serializers.serialize(object.extendedSupport, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_VersionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'major': + result.major = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'minor': + result.minor = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'micro': + result.micro = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'string': + result.string = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'edition': + result.edition = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'extendedSupport': + result.extendedSupport = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6844,7 +9689,53 @@ abstract class CommentsCapabilities_Files Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$commentsCapabilitiesFilesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CommentsCapabilities_FilesSerializer(); +} + +class _$CommentsCapabilities_FilesSerializer implements StructuredSerializer { + const _$CommentsCapabilities_FilesSerializer(); + + @override + Iterable get types => const [CommentsCapabilities_Files, _$CommentsCapabilities_Files]; + + @override + String get wireName => 'CommentsCapabilities_Files'; + + @override + Iterable serialize( + final Serializers serializers, + final CommentsCapabilities_Files object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'comments', + serializers.serialize(object.comments, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + CommentsCapabilities_Files deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CommentsCapabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'comments': + result.comments = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6869,7 +9760,56 @@ abstract class CommentsCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$commentsCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CommentsCapabilitiesSerializer(); +} + +class _$CommentsCapabilitiesSerializer implements StructuredSerializer { + const _$CommentsCapabilitiesSerializer(); + + @override + Iterable get types => const [CommentsCapabilities, _$CommentsCapabilities]; + + @override + String get wireName => 'CommentsCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final CommentsCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files', + serializers.serialize(object.files, specifiedType: const FullType(CommentsCapabilities_Files)), + ]; + return result; + } + + @override + CommentsCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CommentsCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files': + result.files.replace( + serializers.deserialize(value, specifiedType: const FullType(CommentsCapabilities_Files))! + as CommentsCapabilities_Files, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6895,7 +9835,65 @@ abstract class DavCapabilities_Dav Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$davCapabilitiesDavSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$DavCapabilities_DavSerializer(); +} + +class _$DavCapabilities_DavSerializer implements StructuredSerializer { + const _$DavCapabilities_DavSerializer(); + + @override + Iterable get types => const [DavCapabilities_Dav, _$DavCapabilities_Dav]; + + @override + String get wireName => 'DavCapabilities_Dav'; + + @override + Iterable serialize( + final Serializers serializers, + final DavCapabilities_Dav object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'chunking', + serializers.serialize(object.chunking, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.bulkupload; + if (value != null) { + result + ..add('bulkupload') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + DavCapabilities_Dav deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DavCapabilities_DavBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'chunking': + result.chunking = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'bulkupload': + result.bulkupload = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6910,16 +9908,64 @@ abstract class DavCapabilities implements DavCapabilitiesInterface, Built json) => - _jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + // coverage:ignore-start + factory DavCapabilities.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$DavCapabilitiesSerializer(); +} + +class _$DavCapabilitiesSerializer implements StructuredSerializer { + const _$DavCapabilitiesSerializer(); + + @override + Iterable get types => const [DavCapabilities, _$DavCapabilities]; + + @override + String get wireName => 'DavCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final DavCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'dav', + serializers.serialize(object.dav, specifiedType: const FullType(DavCapabilities_Dav)), + ]; + return result; + } + + @override + DavCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DavCapabilitiesBuilder(); - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'dav': + result.dav.replace( + serializers.deserialize(value, specifiedType: const FullType(DavCapabilities_Dav))! as DavCapabilities_Dav, + ); + } + } - static Serializer get serializer => _$davCapabilitiesSerializer; + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6950,8 +9996,63 @@ abstract class FilesCapabilities_Files_DirectEditing Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesCapabilitiesFilesDirectEditingSerializer; + const _$FilesCapabilities_Files_DirectEditingSerializer(); +} + +class _$FilesCapabilities_Files_DirectEditingSerializer + implements StructuredSerializer { + const _$FilesCapabilities_Files_DirectEditingSerializer(); + + @override + Iterable get types => const [FilesCapabilities_Files_DirectEditing, _$FilesCapabilities_Files_DirectEditing]; + + @override + String get wireName => 'FilesCapabilities_Files_DirectEditing'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesCapabilities_Files_DirectEditing object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'etag', + serializers.serialize(object.etag, specifiedType: const FullType(String)), + 'supportsFileId', + serializers.serialize(object.supportsFileId, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesCapabilities_Files_DirectEditing deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesCapabilities_Files_DirectEditingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'etag': + result.etag = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'supportsFileId': + result.supportsFileId = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -6979,7 +10080,67 @@ abstract class FilesCapabilities_Files Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesCapabilitiesFilesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$FilesCapabilities_FilesSerializer(); +} + +class _$FilesCapabilities_FilesSerializer implements StructuredSerializer { + const _$FilesCapabilities_FilesSerializer(); + + @override + Iterable get types => const [FilesCapabilities_Files, _$FilesCapabilities_Files]; + + @override + String get wireName => 'FilesCapabilities_Files'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesCapabilities_Files object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'bigfilechunking', + serializers.serialize(object.bigfilechunking, specifiedType: const FullType(bool)), + 'blacklisted_files', + serializers.serialize(object.blacklistedFiles, specifiedType: const FullType(BuiltList, [FullType(JsonObject)])), + 'directEditing', + serializers.serialize(object.directEditing, specifiedType: const FullType(FilesCapabilities_Files_DirectEditing)), + ]; + return result; + } + + @override + FilesCapabilities_Files deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesCapabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'bigfilechunking': + result.bigfilechunking = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'blacklisted_files': + result.blacklistedFiles.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(JsonObject)]))! + as BuiltList, + ); + case 'directEditing': + result.directEditing.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesCapabilities_Files_DirectEditing))! + as FilesCapabilities_Files_DirectEditing, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7004,7 +10165,56 @@ abstract class FilesCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$FilesCapabilitiesSerializer(); +} + +class _$FilesCapabilitiesSerializer implements StructuredSerializer { + const _$FilesCapabilitiesSerializer(); + + @override + Iterable get types => const [FilesCapabilities, _$FilesCapabilities]; + + @override + String get wireName => 'FilesCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files', + serializers.serialize(object.files, specifiedType: const FullType(FilesCapabilities_Files)), + ]; + return result; + } + + @override + FilesCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files': + result.files.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesCapabilities_Files))! + as FilesCapabilities_Files, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7035,8 +10245,62 @@ abstract class FilesSharingCapabilities_FilesSharing_Public_Password Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingPublicPasswordSerializer; + const _$FilesSharingCapabilities_FilesSharing_Public_PasswordSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Public_PasswordSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Public_PasswordSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Public_Password, + _$FilesSharingCapabilities_FilesSharing_Public_Password, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Public_Password'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Public_Password object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enforced', + serializers.serialize(object.enforced, specifiedType: const FullType(bool)), + 'askForOptionalPassword', + serializers.serialize(object.askForOptionalPassword, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Public_Password deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Public_PasswordBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'askForOptionalPassword': + result.askForOptionalPassword = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7068,8 +10332,81 @@ abstract class FilesSharingCapabilities_FilesSharing_Public_ExpireDate Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingPublicExpireDateSerializer; + const _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Public_ExpireDate, + _$FilesSharingCapabilities_FilesSharing_Public_ExpireDate, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Public_ExpireDate'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Public_ExpireDate object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.days; + if (value != null) { + result + ..add('days') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + value = object.enforced; + if (value != null) { + result + ..add('enforced') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Public_ExpireDate deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Public_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'days': + result.days = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7101,8 +10438,81 @@ abstract class FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingPublicExpireDateInternalSerializer; + const _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternalSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternalSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternalSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal, + _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.days; + if (value != null) { + result + ..add('days') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + value = object.enforced; + if (value != null) { + result + ..add('enforced') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternalBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'days': + result.days = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7130,12 +10540,85 @@ abstract class FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemoteSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemoteSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemoteSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote, + _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.days; + if (value != null) { + result + ..add('days') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + value = object.enforced; + if (value != null) { + result + ..add('enforced') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemoteBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'days': + result.days = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } - static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingPublicExpireDateRemoteSerializer; + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7178,8 +10661,177 @@ abstract class FilesSharingCapabilities_FilesSharing_Public Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingPublicSerializer; + const _$FilesSharingCapabilities_FilesSharing_PublicSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_PublicSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_PublicSerializer(); + + @override + Iterable get types => + const [FilesSharingCapabilities_FilesSharing_Public, _$FilesSharingCapabilities_FilesSharing_Public]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Public'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Public object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.password; + if (value != null) { + result + ..add('password') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_Password), + ), + ); + } + + value = object.multipleLinks; + if (value != null) { + result + ..add('multiple_links') + ..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(FilesSharingCapabilities_FilesSharing_Public_ExpireDate), + ), + ); + } + + value = object.expireDateInternal; + if (value != null) { + result + ..add('expire_date_internal') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal), + ), + ); + } + + value = object.expireDateRemote; + if (value != null) { + result + ..add('expire_date_remote') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_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 + FilesSharingCapabilities_FilesSharing_Public deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_PublicBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'password': + result.password.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_Password), + )! as FilesSharingCapabilities_FilesSharing_Public_Password, + ); + case 'multiple_links': + result.multipleLinks = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'expire_date': + result.expireDate.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDate), + )! as FilesSharingCapabilities_FilesSharing_Public_ExpireDate, + ); + case 'expire_date_internal': + result.expireDateInternal.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal), + )! as FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal, + ); + case 'expire_date_remote': + result.expireDateRemote.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote), + )! as FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote, + ); + case 'send_mail': + result.sendMail = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'upload': + result.upload = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'upload_files_drop': + result.uploadFilesDrop = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7209,8 +10861,58 @@ abstract class FilesSharingCapabilities_FilesSharing_User_ExpireDate Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingUserExpireDateSerializer; + const _$FilesSharingCapabilities_FilesSharing_User_ExpireDateSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_User_ExpireDateSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_User_ExpireDateSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_User_ExpireDate, + _$FilesSharingCapabilities_FilesSharing_User_ExpireDate, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_User_ExpireDate'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_User_ExpireDate object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_User_ExpireDate deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_User_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7242,8 +10944,76 @@ abstract class FilesSharingCapabilities_FilesSharing_User Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingUserSerializer; + const _$FilesSharingCapabilities_FilesSharing_UserSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_UserSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_UserSerializer(); + + @override + Iterable get types => + const [FilesSharingCapabilities_FilesSharing_User, _$FilesSharingCapabilities_FilesSharing_User]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_User'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_User object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'send_mail', + serializers.serialize(object.sendMail, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User_ExpireDate), + ), + ); + } + + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_User deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_UserBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'send_mail': + result.sendMail = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'expire_date': + result.expireDate.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User_ExpireDate), + )! as FilesSharingCapabilities_FilesSharing_User_ExpireDate, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7273,8 +11043,58 @@ abstract class FilesSharingCapabilities_FilesSharing_Group_ExpireDate Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingGroupExpireDateSerializer; + const _$FilesSharingCapabilities_FilesSharing_Group_ExpireDateSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Group_ExpireDateSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Group_ExpireDateSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Group_ExpireDate, + _$FilesSharingCapabilities_FilesSharing_Group_ExpireDate, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Group_ExpireDate'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Group_ExpireDate object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Group_ExpireDate deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Group_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7305,8 +11125,76 @@ abstract class FilesSharingCapabilities_FilesSharing_Group Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingGroupSerializer; + const _$FilesSharingCapabilities_FilesSharing_GroupSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_GroupSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_GroupSerializer(); + + @override + Iterable get types => + const [FilesSharingCapabilities_FilesSharing_Group, _$FilesSharingCapabilities_FilesSharing_Group]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Group'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Group object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.expireDate; + if (value != null) { + result + ..add('expire_date') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Group_ExpireDate), + ), + ); + } + + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Group deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_GroupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'expire_date': + result.expireDate.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Group_ExpireDate), + )! as FilesSharingCapabilities_FilesSharing_Group_ExpireDate, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7336,8 +11224,58 @@ abstract class FilesSharingCapabilities_FilesSharing_Federation_ExpireDate Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingFederationExpireDateSerializer; + const _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Federation_ExpireDate, + _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDate, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Federation_ExpireDate'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Federation_ExpireDate object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Federation_ExpireDate deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Federation_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7369,8 +11307,58 @@ abstract class FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSuppor Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingFederationExpireDateSupportedSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupportedSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupportedSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupportedSerializer(); + + @override + Iterable get types => const [ + FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported, + _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported, + ]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupportedBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7405,8 +11393,84 @@ abstract class FilesSharingCapabilities_FilesSharing_Federation Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingFederationSerializer; + const _$FilesSharingCapabilities_FilesSharing_FederationSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_FederationSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_FederationSerializer(); + + @override + Iterable get types => + const [FilesSharingCapabilities_FilesSharing_Federation, _$FilesSharingCapabilities_FilesSharing_Federation]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Federation'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Federation object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'outgoing', + serializers.serialize(object.outgoing, specifiedType: const FullType(bool)), + 'incoming', + serializers.serialize(object.incoming, specifiedType: const FullType(bool)), + 'expire_date', + serializers.serialize( + object.expireDate, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDate), + ), + 'expire_date_supported', + serializers.serialize( + object.expireDateSupported, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported), + ), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Federation deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_FederationBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'outgoing': + result.outgoing = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'incoming': + result.incoming = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'expire_date': + result.expireDate.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDate), + )! as FilesSharingCapabilities_FilesSharing_Federation_ExpireDate, + ); + case 'expire_date_supported': + result.expireDateSupported.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported), + )! as FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7438,8 +11502,60 @@ abstract class FilesSharingCapabilities_FilesSharing_Sharee Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingShareeSerializer; + const _$FilesSharingCapabilities_FilesSharing_ShareeSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharing_ShareeSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharing_ShareeSerializer(); + + @override + Iterable get types => + const [FilesSharingCapabilities_FilesSharing_Sharee, _$FilesSharingCapabilities_FilesSharing_Sharee]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing_Sharee'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing_Sharee object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'query_lookup_default', + serializers.serialize(object.queryLookupDefault, specifiedType: const FullType(bool)), + 'always_show_unique', + serializers.serialize(object.alwaysShowUnique, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesSharingCapabilities_FilesSharing_Sharee deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharing_ShareeBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'query_lookup_default': + result.queryLookupDefault = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'always_show_unique': + result.alwaysShowUnique = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7479,8 +11595,133 @@ abstract class FilesSharingCapabilities_FilesSharing Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$filesSharingCapabilitiesFilesSharingSerializer; + const _$FilesSharingCapabilities_FilesSharingSerializer(); +} + +class _$FilesSharingCapabilities_FilesSharingSerializer + implements StructuredSerializer { + const _$FilesSharingCapabilities_FilesSharingSerializer(); + + @override + Iterable get types => const [FilesSharingCapabilities_FilesSharing, _$FilesSharingCapabilities_FilesSharing]; + + @override + String get wireName => 'FilesSharingCapabilities_FilesSharing'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities_FilesSharing object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'api_enabled', + serializers.serialize(object.apiEnabled, specifiedType: const FullType(bool)), + 'public', + serializers.serialize(object.public, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public)), + 'user', + serializers.serialize(object.user, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User)), + 'resharing', + serializers.serialize(object.resharing, specifiedType: const FullType(bool)), + 'federation', + serializers.serialize( + object.federation, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation), + ), + 'sharee', + serializers.serialize(object.sharee, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Sharee)), + ]; + Object? value; + 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(FilesSharingCapabilities_FilesSharing_Group)), + ); + } + + value = object.defaultPermissions; + if (value != null) { + result + ..add('default_permissions') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + return result; + } + + @override + FilesSharingCapabilities_FilesSharing deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilities_FilesSharingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'api_enabled': + result.apiEnabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'public': + result.public.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public), + )! as FilesSharingCapabilities_FilesSharing_Public, + ); + case 'user': + result.user.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User))! + as FilesSharingCapabilities_FilesSharing_User, + ); + case 'resharing': + result.resharing = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'group_sharing': + result.groupSharing = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'group': + result.group.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Group))! + as FilesSharingCapabilities_FilesSharing_Group, + ); + case 'default_permissions': + result.defaultPermissions = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'federation': + result.federation.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation), + )! as FilesSharingCapabilities_FilesSharing_Federation, + ); + case 'sharee': + result.sharee.replace( + serializers.deserialize( + value, + specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Sharee), + )! as FilesSharingCapabilities_FilesSharing_Sharee, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7507,7 +11748,56 @@ abstract class FilesSharingCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesSharingCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$FilesSharingCapabilitiesSerializer(); +} + +class _$FilesSharingCapabilitiesSerializer implements StructuredSerializer { + const _$FilesSharingCapabilitiesSerializer(); + + @override + Iterable get types => const [FilesSharingCapabilities, _$FilesSharingCapabilities]; + + @override + String get wireName => 'FilesSharingCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesSharingCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files_sharing', + serializers.serialize(object.filesSharing, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing)), + ]; + return result; + } + + @override + FilesSharingCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesSharingCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files_sharing': + result.filesSharing.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing))! + as FilesSharingCapabilities_FilesSharing, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7535,7 +11825,54 @@ abstract class FilesTrashbinCapabilities_Files Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesTrashbinCapabilitiesFilesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$FilesTrashbinCapabilities_FilesSerializer(); +} + +class _$FilesTrashbinCapabilities_FilesSerializer implements StructuredSerializer { + const _$FilesTrashbinCapabilities_FilesSerializer(); + + @override + Iterable get types => const [FilesTrashbinCapabilities_Files, _$FilesTrashbinCapabilities_Files]; + + @override + String get wireName => 'FilesTrashbinCapabilities_Files'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesTrashbinCapabilities_Files object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'undelete', + serializers.serialize(object.undelete, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesTrashbinCapabilities_Files deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesTrashbinCapabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'undelete': + result.undelete = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7561,7 +11898,56 @@ abstract class FilesTrashbinCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesTrashbinCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$FilesTrashbinCapabilitiesSerializer(); +} + +class _$FilesTrashbinCapabilitiesSerializer implements StructuredSerializer { + const _$FilesTrashbinCapabilitiesSerializer(); + + @override + Iterable get types => const [FilesTrashbinCapabilities, _$FilesTrashbinCapabilities]; + + @override + String get wireName => 'FilesTrashbinCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesTrashbinCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files', + serializers.serialize(object.files, specifiedType: const FullType(FilesTrashbinCapabilities_Files)), + ]; + return result; + } + + @override + FilesTrashbinCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesTrashbinCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files': + result.files.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesTrashbinCapabilities_Files))! + as FilesTrashbinCapabilities_Files, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7593,7 +11979,62 @@ abstract class FilesVersionsCapabilities_Files Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesVersionsCapabilitiesFilesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$FilesVersionsCapabilities_FilesSerializer(); +} + +class _$FilesVersionsCapabilities_FilesSerializer implements StructuredSerializer { + const _$FilesVersionsCapabilities_FilesSerializer(); + + @override + Iterable get types => const [FilesVersionsCapabilities_Files, _$FilesVersionsCapabilities_Files]; + + @override + String get wireName => 'FilesVersionsCapabilities_Files'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesVersionsCapabilities_Files object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'versioning', + serializers.serialize(object.versioning, specifiedType: const FullType(bool)), + 'version_labeling', + serializers.serialize(object.versionLabeling, specifiedType: const FullType(bool)), + 'version_deletion', + serializers.serialize(object.versionDeletion, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + FilesVersionsCapabilities_Files deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesVersionsCapabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'versioning': + result.versioning = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'version_labeling': + result.versionLabeling = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'version_deletion': + result.versionDeletion = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7619,7 +12060,56 @@ abstract class FilesVersionsCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$filesVersionsCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$FilesVersionsCapabilitiesSerializer(); +} + +class _$FilesVersionsCapabilitiesSerializer implements StructuredSerializer { + const _$FilesVersionsCapabilitiesSerializer(); + + @override + Iterable get types => const [FilesVersionsCapabilities, _$FilesVersionsCapabilities]; + + @override + String get wireName => 'FilesVersionsCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final FilesVersionsCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files', + serializers.serialize(object.files, specifiedType: const FullType(FilesVersionsCapabilities_Files)), + ]; + return result; + } + + @override + FilesVersionsCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = FilesVersionsCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files': + result.files.replace( + serializers.deserialize(value, specifiedType: const FullType(FilesVersionsCapabilities_Files))! + as FilesVersionsCapabilities_Files, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7646,7 +12136,74 @@ abstract class NotesCapabilities_Notes Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$notesCapabilitiesNotesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$NotesCapabilities_NotesSerializer(); +} + +class _$NotesCapabilities_NotesSerializer implements StructuredSerializer { + const _$NotesCapabilities_NotesSerializer(); + + @override + Iterable get types => const [NotesCapabilities_Notes, _$NotesCapabilities_Notes]; + + @override + String get wireName => 'NotesCapabilities_Notes'; + + @override + Iterable serialize( + final Serializers serializers, + final NotesCapabilities_Notes object, { + final 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 + NotesCapabilities_Notes deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NotesCapabilities_NotesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'api_version': + result.apiVersion.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7671,7 +12228,56 @@ abstract class NotesCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$notesCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$NotesCapabilitiesSerializer(); +} + +class _$NotesCapabilitiesSerializer implements StructuredSerializer { + const _$NotesCapabilitiesSerializer(); + + @override + Iterable get types => const [NotesCapabilities, _$NotesCapabilities]; + + @override + String get wireName => 'NotesCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final NotesCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'notes', + serializers.serialize(object.notes, specifiedType: const FullType(NotesCapabilities_Notes)), + ]; + return result; + } + + @override + NotesCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NotesCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'notes': + result.notes.replace( + serializers.deserialize(value, specifiedType: const FullType(NotesCapabilities_Notes))! + as NotesCapabilities_Notes, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7704,8 +12310,73 @@ abstract class NotificationsCapabilities_Notifications Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$notificationsCapabilitiesNotificationsSerializer; + const _$NotificationsCapabilities_NotificationsSerializer(); +} + +class _$NotificationsCapabilities_NotificationsSerializer + implements StructuredSerializer { + const _$NotificationsCapabilities_NotificationsSerializer(); + + @override + Iterable get types => + const [NotificationsCapabilities_Notifications, _$NotificationsCapabilities_Notifications]; + + @override + String get wireName => 'NotificationsCapabilities_Notifications'; + + @override + Iterable serialize( + final Serializers serializers, + final NotificationsCapabilities_Notifications object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs-endpoints', + serializers.serialize(object.ocsEndpoints, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'push', + serializers.serialize(object.push, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'admin-notifications', + serializers.serialize(object.adminNotifications, specifiedType: const FullType(BuiltList, [FullType(String)])), + ]; + return result; + } + + @override + NotificationsCapabilities_Notifications deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NotificationsCapabilities_NotificationsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs-endpoints': + result.ocsEndpoints.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'push': + result.push.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'admin-notifications': + result.adminNotifications.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7731,7 +12402,59 @@ abstract class NotificationsCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$notificationsCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$NotificationsCapabilitiesSerializer(); +} + +class _$NotificationsCapabilitiesSerializer implements StructuredSerializer { + const _$NotificationsCapabilitiesSerializer(); + + @override + Iterable get types => const [NotificationsCapabilities, _$NotificationsCapabilities]; + + @override + String get wireName => 'NotificationsCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final NotificationsCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'notifications', + serializers.serialize( + object.notifications, + specifiedType: const FullType(NotificationsCapabilities_Notifications), + ), + ]; + return result; + } + + @override + NotificationsCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = NotificationsCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'notifications': + result.notifications.replace( + serializers.deserialize(value, specifiedType: const FullType(NotificationsCapabilities_Notifications))! + as NotificationsCapabilities_Notifications, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7766,8 +12489,71 @@ abstract class ProvisioningApiCapabilities_ProvisioningApi Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$provisioningApiCapabilitiesProvisioningApiSerializer; + const _$ProvisioningApiCapabilities_ProvisioningApiSerializer(); +} + +class _$ProvisioningApiCapabilities_ProvisioningApiSerializer + implements StructuredSerializer { + const _$ProvisioningApiCapabilities_ProvisioningApiSerializer(); + + @override + Iterable get types => + const [ProvisioningApiCapabilities_ProvisioningApi, _$ProvisioningApiCapabilities_ProvisioningApi]; + + @override + String get wireName => 'ProvisioningApiCapabilities_ProvisioningApi'; + + @override + Iterable serialize( + final Serializers serializers, + final ProvisioningApiCapabilities_ProvisioningApi object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'version', + serializers.serialize(object.version, specifiedType: const FullType(String)), + 'AccountPropertyScopesVersion', + serializers.serialize(object.accountPropertyScopesVersion, specifiedType: const FullType(int)), + 'AccountPropertyScopesFederatedEnabled', + serializers.serialize(object.accountPropertyScopesFederatedEnabled, specifiedType: const FullType(bool)), + 'AccountPropertyScopesPublishedEnabled', + serializers.serialize(object.accountPropertyScopesPublishedEnabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + ProvisioningApiCapabilities_ProvisioningApi deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ProvisioningApiCapabilities_ProvisioningApiBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'AccountPropertyScopesVersion': + result.accountPropertyScopesVersion = + serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'AccountPropertyScopesFederatedEnabled': + result.accountPropertyScopesFederatedEnabled = + serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'AccountPropertyScopesPublishedEnabled': + result.accountPropertyScopesPublishedEnabled = + serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7796,7 +12582,59 @@ abstract class ProvisioningApiCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$provisioningApiCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ProvisioningApiCapabilitiesSerializer(); +} + +class _$ProvisioningApiCapabilitiesSerializer implements StructuredSerializer { + const _$ProvisioningApiCapabilitiesSerializer(); + + @override + Iterable get types => const [ProvisioningApiCapabilities, _$ProvisioningApiCapabilities]; + + @override + String get wireName => 'ProvisioningApiCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final ProvisioningApiCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'provisioning_api', + serializers.serialize( + object.provisioningApi, + specifiedType: const FullType(ProvisioningApiCapabilities_ProvisioningApi), + ), + ]; + return result; + } + + @override + ProvisioningApiCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ProvisioningApiCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'provisioning_api': + result.provisioningApi.replace( + serializers.deserialize(value, specifiedType: const FullType(ProvisioningApiCapabilities_ProvisioningApi))! + as ProvisioningApiCapabilities_ProvisioningApi, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7826,8 +12664,58 @@ abstract class SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$sharebymailCapabilities0FilesSharingSharebymailUploadFilesDropSerializer; + const _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDropSerializer(); +} + +class _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDropSerializer + implements StructuredSerializer { + const _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDropSerializer(); + + @override + Iterable get types => const [ + SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop, + _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop, + ]; + + @override + String get wireName => 'SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop'; + + @override + Iterable serialize( + final Serializers serializers, + final SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7854,12 +12742,66 @@ abstract class SharebymailCapabilities0_FilesSharing_Sharebymail_Password _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SharebymailCapabilities0_FilesSharing_Sharebymail_PasswordSerializer(); +} + +class _$SharebymailCapabilities0_FilesSharing_Sharebymail_PasswordSerializer + implements StructuredSerializer { + const _$SharebymailCapabilities0_FilesSharing_Sharebymail_PasswordSerializer(); + + @override + Iterable get types => const [ + SharebymailCapabilities0_FilesSharing_Sharebymail_Password, + _$SharebymailCapabilities0_FilesSharing_Sharebymail_Password, + ]; + + @override + String get wireName => 'SharebymailCapabilities0_FilesSharing_Sharebymail_Password'; + + @override + Iterable serialize( + final Serializers serializers, + final SharebymailCapabilities0_FilesSharing_Sharebymail_Password object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + 'enforced', + serializers.serialize(object.enforced, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + SharebymailCapabilities0_FilesSharing_Sharebymail_Password deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SharebymailCapabilities0_FilesSharing_Sharebymail_PasswordBuilder(); - static Serializer get serializer => - _$sharebymailCapabilities0FilesSharingSharebymailPasswordSerializer; + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7890,8 +12832,62 @@ abstract class SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$sharebymailCapabilities0FilesSharingSharebymailExpireDateSerializer; + const _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDateSerializer(); +} + +class _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDateSerializer + implements StructuredSerializer { + const _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDateSerializer(); + + @override + Iterable get types => const [ + SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate, + _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate, + ]; + + @override + String get wireName => 'SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate'; + + @override + Iterable serialize( + final Serializers serializers, + final SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + 'enforced', + serializers.serialize(object.enforced, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'enforced': + result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7928,8 +12924,96 @@ abstract class SharebymailCapabilities0_FilesSharing_Sharebymail Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$sharebymailCapabilities0FilesSharingSharebymailSerializer; + const _$SharebymailCapabilities0_FilesSharing_SharebymailSerializer(); +} + +class _$SharebymailCapabilities0_FilesSharing_SharebymailSerializer + implements StructuredSerializer { + const _$SharebymailCapabilities0_FilesSharing_SharebymailSerializer(); + + @override + Iterable get types => + const [SharebymailCapabilities0_FilesSharing_Sharebymail, _$SharebymailCapabilities0_FilesSharing_Sharebymail]; + + @override + String get wireName => 'SharebymailCapabilities0_FilesSharing_Sharebymail'; + + @override + Iterable serialize( + final Serializers serializers, + final SharebymailCapabilities0_FilesSharing_Sharebymail object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + 'send_password_by_mail', + serializers.serialize(object.sendPasswordByMail, specifiedType: const FullType(bool)), + 'upload_files_drop', + serializers.serialize( + object.uploadFilesDrop, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop), + ), + 'password', + serializers.serialize( + object.password, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_Password), + ), + 'expire_date', + serializers.serialize( + object.expireDate, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate), + ), + ]; + return result; + } + + @override + SharebymailCapabilities0_FilesSharing_Sharebymail deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SharebymailCapabilities0_FilesSharing_SharebymailBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'send_password_by_mail': + result.sendPasswordByMail = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'upload_files_drop': + result.uploadFilesDrop.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop), + )! as SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop, + ); + case 'password': + result.password.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_Password), + )! as SharebymailCapabilities0_FilesSharing_Sharebymail_Password, + ); + case 'expire_date': + result.expireDate.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate), + )! as SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7958,8 +13042,63 @@ abstract class SharebymailCapabilities0_FilesSharing Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$sharebymailCapabilities0FilesSharingSerializer; + const _$SharebymailCapabilities0_FilesSharingSerializer(); +} + +class _$SharebymailCapabilities0_FilesSharingSerializer + implements StructuredSerializer { + const _$SharebymailCapabilities0_FilesSharingSerializer(); + + @override + Iterable get types => const [SharebymailCapabilities0_FilesSharing, _$SharebymailCapabilities0_FilesSharing]; + + @override + String get wireName => 'SharebymailCapabilities0_FilesSharing'; + + @override + Iterable serialize( + final Serializers serializers, + final SharebymailCapabilities0_FilesSharing object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'sharebymail', + serializers.serialize( + object.sharebymail, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail), + ), + ]; + return result; + } + + @override + SharebymailCapabilities0_FilesSharing deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SharebymailCapabilities0_FilesSharingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'sharebymail': + result.sharebymail.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail), + )! as SharebymailCapabilities0_FilesSharing_Sharebymail, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -7986,7 +13125,56 @@ abstract class SharebymailCapabilities0 Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$sharebymailCapabilities0Serializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$SharebymailCapabilities0Serializer(); +} + +class _$SharebymailCapabilities0Serializer implements StructuredSerializer { + const _$SharebymailCapabilities0Serializer(); + + @override + Iterable get types => const [SharebymailCapabilities0, _$SharebymailCapabilities0]; + + @override + String get wireName => 'SharebymailCapabilities0'; + + @override + Iterable serialize( + final Serializers serializers, + final SharebymailCapabilities0 object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files_sharing', + serializers.serialize(object.filesSharing, specifiedType: const FullType(SharebymailCapabilities0_FilesSharing)), + ]; + return result; + } + + @override + SharebymailCapabilities0 deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SharebymailCapabilities0Builder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files_sharing': + result.filesSharing.replace( + serializers.deserialize(value, specifiedType: const FullType(SharebymailCapabilities0_FilesSharing))! + as SharebymailCapabilities0_FilesSharing, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8096,8 +13284,70 @@ abstract class SpreedPublicCapabilities0_Spreed_Config_Attachments Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigAttachmentsSerializer; + const _$SpreedPublicCapabilities0_Spreed_Config_AttachmentsSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_Config_AttachmentsSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_Config_AttachmentsSerializer(); + + @override + Iterable get types => const [ + SpreedPublicCapabilities0_Spreed_Config_Attachments, + _$SpreedPublicCapabilities0_Spreed_Config_Attachments, + ]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config_Attachments'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config_Attachments object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'allowed', + serializers.serialize(object.allowed, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.folder; + if (value != null) { + result + ..add('folder') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config_Attachments deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_Config_AttachmentsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'allowed': + result.allowed = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'folder': + result.folder = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8143,8 +13393,127 @@ abstract class SpreedPublicCapabilities0_Spreed_Config_Call Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigCallSerializer; + const _$SpreedPublicCapabilities0_Spreed_Config_CallSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_Config_CallSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_Config_CallSerializer(); + + @override + Iterable get types => + const [SpreedPublicCapabilities0_Spreed_Config_Call, _$SpreedPublicCapabilities0_Spreed_Config_Call]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config_Call'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config_Call object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + 'breakout-rooms', + serializers.serialize(object.breakoutRooms, specifiedType: const FullType(bool)), + 'recording', + serializers.serialize(object.recording, specifiedType: const FullType(bool)), + 'supported-reactions', + serializers.serialize(object.supportedReactions, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'predefined-backgrounds', + serializers.serialize(object.predefinedBackgrounds, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'can-upload-background', + serializers.serialize(object.canUploadBackground, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.recordingConsent; + if (value != null) { + result + ..add('recording-consent') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + value = object.sipEnabled; + if (value != null) { + result + ..add('sip-enabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + value = object.sipDialoutEnabled; + if (value != null) { + result + ..add('sip-dialout-enabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + value = object.canEnableSip; + if (value != null) { + result + ..add('can-enable-sip') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config_Call deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_Config_CallBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'breakout-rooms': + result.breakoutRooms = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'recording': + result.recording = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'recording-consent': + result.recordingConsent = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'supported-reactions': + result.supportedReactions.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'predefined-backgrounds': + result.predefinedBackgrounds.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'can-upload-background': + result.canUploadBackground = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'sip-enabled': + result.sipEnabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'sip-dialout-enabled': + result.sipDialoutEnabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'can-enable-sip': + result.canEnableSip = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8181,8 +13550,90 @@ abstract class SpreedPublicCapabilities0_Spreed_Config_Chat Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigChatSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SpreedPublicCapabilities0_Spreed_Config_ChatSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_Config_ChatSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_Config_ChatSerializer(); + + @override + Iterable get types => + const [SpreedPublicCapabilities0_Spreed_Config_Chat, _$SpreedPublicCapabilities0_Spreed_Config_Chat]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config_Chat'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config_Chat object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'max-length', + serializers.serialize(object.maxLength, specifiedType: const FullType(int)), + 'read-privacy', + serializers.serialize(object.readPrivacy, specifiedType: const FullType(int)), + 'typing-privacy', + serializers.serialize(object.typingPrivacy, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.hasTranslationProviders; + if (value != null) { + result + ..add('has-translation-providers') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool)), + ); + } + + value = object.translations; + if (value != null) { + result + ..add('translations') + ..add( + serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)])), + ); + } + + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config_Chat deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_Config_ChatBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'max-length': + result.maxLength = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'read-privacy': + result.readPrivacy = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'has-translation-providers': + result.hasTranslationProviders = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'typing-privacy': + result.typingPrivacy = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'translations': + result.translations.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8213,8 +13664,58 @@ abstract class SpreedPublicCapabilities0_Spreed_Config_Conversations Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigConversationsSerializer; + const _$SpreedPublicCapabilities0_Spreed_Config_ConversationsSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_Config_ConversationsSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_Config_ConversationsSerializer(); + + @override + Iterable get types => const [ + SpreedPublicCapabilities0_Spreed_Config_Conversations, + _$SpreedPublicCapabilities0_Spreed_Config_Conversations, + ]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config_Conversations'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config_Conversations object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'can-create', + serializers.serialize(object.canCreate, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config_Conversations deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_Config_ConversationsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'can-create': + result.canCreate = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8245,8 +13746,56 @@ abstract class SpreedPublicCapabilities0_Spreed_Config_Previews Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigPreviewsSerializer; + const _$SpreedPublicCapabilities0_Spreed_Config_PreviewsSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_Config_PreviewsSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_Config_PreviewsSerializer(); + + @override + Iterable get types => + const [SpreedPublicCapabilities0_Spreed_Config_Previews, _$SpreedPublicCapabilities0_Spreed_Config_Previews]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config_Previews'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config_Previews object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'max-gif-size', + serializers.serialize(object.maxGifSize, specifiedType: const FullType(int)), + ]; + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config_Previews deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_Config_PreviewsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'max-gif-size': + result.maxGifSize = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8279,8 +13828,68 @@ abstract class SpreedPublicCapabilities0_Spreed_Config_Signaling Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigSignalingSerializer; + const _$SpreedPublicCapabilities0_Spreed_Config_SignalingSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_Config_SignalingSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_Config_SignalingSerializer(); + + @override + Iterable get types => + const [SpreedPublicCapabilities0_Spreed_Config_Signaling, _$SpreedPublicCapabilities0_Spreed_Config_Signaling]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config_Signaling'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config_Signaling object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'session-ping-limit', + serializers.serialize(object.sessionPingLimit, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.helloV2TokenKey; + if (value != null) { + result + ..add('hello-v2-token-key') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config_Signaling deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_Config_SignalingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'session-ping-limit': + result.sessionPingLimit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'hello-v2-token-key': + result.helloV2TokenKey = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8314,8 +13923,118 @@ abstract class SpreedPublicCapabilities0_Spreed_Config Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$spreedPublicCapabilities0SpreedConfigSerializer; + const _$SpreedPublicCapabilities0_Spreed_ConfigSerializer(); +} + +class _$SpreedPublicCapabilities0_Spreed_ConfigSerializer + implements StructuredSerializer { + const _$SpreedPublicCapabilities0_Spreed_ConfigSerializer(); + + @override + Iterable get types => + const [SpreedPublicCapabilities0_Spreed_Config, _$SpreedPublicCapabilities0_Spreed_Config]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed_Config'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed_Config object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'attachments', + serializers.serialize( + object.attachments, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Attachments), + ), + 'call', + serializers.serialize(object.call, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Call)), + 'chat', + serializers.serialize(object.chat, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Chat)), + 'conversations', + serializers.serialize( + object.conversations, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Conversations), + ), + 'previews', + serializers.serialize( + object.previews, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Previews), + ), + 'signaling', + serializers.serialize( + object.signaling, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Signaling), + ), + ]; + return result; + } + + @override + SpreedPublicCapabilities0_Spreed_Config deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_Spreed_ConfigBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'attachments': + result.attachments.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Attachments), + )! as SpreedPublicCapabilities0_Spreed_Config_Attachments, + ); + case 'call': + result.call.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Call), + )! as SpreedPublicCapabilities0_Spreed_Config_Call, + ); + case 'chat': + result.chat.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Chat), + )! as SpreedPublicCapabilities0_Spreed_Config_Chat, + ); + case 'conversations': + result.conversations.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Conversations), + )! as SpreedPublicCapabilities0_Spreed_Config_Conversations, + ); + case 'previews': + result.previews.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Previews), + )! as SpreedPublicCapabilities0_Spreed_Config_Previews, + ); + case 'signaling': + result.signaling.replace( + serializers.deserialize( + value, + specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Signaling), + )! as SpreedPublicCapabilities0_Spreed_Config_Signaling, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8345,7 +14064,68 @@ abstract class SpreedPublicCapabilities0_Spreed Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$spreedPublicCapabilities0SpreedSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$SpreedPublicCapabilities0_SpreedSerializer(); +} + +class _$SpreedPublicCapabilities0_SpreedSerializer implements StructuredSerializer { + const _$SpreedPublicCapabilities0_SpreedSerializer(); + + @override + Iterable get types => const [SpreedPublicCapabilities0_Spreed, _$SpreedPublicCapabilities0_Spreed]; + + @override + String get wireName => 'SpreedPublicCapabilities0_Spreed'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0_Spreed object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'features', + serializers.serialize(object.features, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'config', + serializers.serialize(object.config, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config)), + 'version', + serializers.serialize(object.version, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + SpreedPublicCapabilities0_Spreed deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0_SpreedBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'features': + result.features.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'config': + result.config.replace( + serializers.deserialize(value, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config))! + as SpreedPublicCapabilities0_Spreed_Config, + ); + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8371,7 +14151,56 @@ abstract class SpreedPublicCapabilities0 Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$spreedPublicCapabilities0Serializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$SpreedPublicCapabilities0Serializer(); +} + +class _$SpreedPublicCapabilities0Serializer implements StructuredSerializer { + const _$SpreedPublicCapabilities0Serializer(); + + @override + Iterable get types => const [SpreedPublicCapabilities0, _$SpreedPublicCapabilities0]; + + @override + String get wireName => 'SpreedPublicCapabilities0'; + + @override + Iterable serialize( + final Serializers serializers, + final SpreedPublicCapabilities0 object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'spreed', + serializers.serialize(object.spreed, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed)), + ]; + return result; + } + + @override + SpreedPublicCapabilities0 deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = SpreedPublicCapabilities0Builder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'spreed': + result.spreed.replace( + serializers.deserialize(value, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed))! + as SpreedPublicCapabilities0_Spreed, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8498,7 +14327,106 @@ abstract class ThemingPublicCapabilities_Theming Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$themingPublicCapabilitiesThemingSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ThemingPublicCapabilities_ThemingSerializer(); +} + +class _$ThemingPublicCapabilities_ThemingSerializer implements StructuredSerializer { + const _$ThemingPublicCapabilities_ThemingSerializer(); + + @override + Iterable get types => const [ThemingPublicCapabilities_Theming, _$ThemingPublicCapabilities_Theming]; + + @override + String get wireName => 'ThemingPublicCapabilities_Theming'; + + @override + Iterable serialize( + final Serializers serializers, + final ThemingPublicCapabilities_Theming object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'slogan', + serializers.serialize(object.slogan, specifiedType: const FullType(String)), + 'color', + serializers.serialize(object.color, specifiedType: const FullType(String)), + 'color-text', + serializers.serialize(object.colorText, specifiedType: const FullType(String)), + 'color-element', + serializers.serialize(object.colorElement, specifiedType: const FullType(String)), + 'color-element-bright', + serializers.serialize(object.colorElementBright, specifiedType: const FullType(String)), + 'color-element-dark', + serializers.serialize(object.colorElementDark, specifiedType: const FullType(String)), + 'logo', + serializers.serialize(object.logo, specifiedType: const FullType(String)), + 'background', + serializers.serialize(object.background, specifiedType: const FullType(String)), + 'background-plain', + serializers.serialize(object.backgroundPlain, specifiedType: const FullType(bool)), + 'background-default', + serializers.serialize(object.backgroundDefault, specifiedType: const FullType(bool)), + 'logoheader', + serializers.serialize(object.logoheader, specifiedType: const FullType(String)), + 'favicon', + serializers.serialize(object.favicon, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + ThemingPublicCapabilities_Theming deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ThemingPublicCapabilities_ThemingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'slogan': + result.slogan = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'color': + result.color = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'color-text': + result.colorText = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'color-element': + result.colorElement = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'color-element-bright': + result.colorElementBright = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'color-element-dark': + result.colorElementDark = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'logo': + result.logo = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'background': + result.background = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'background-plain': + result.backgroundPlain = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'background-default': + result.backgroundDefault = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'logoheader': + result.logoheader = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'favicon': + result.favicon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8524,7 +14452,56 @@ abstract class ThemingPublicCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$themingPublicCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ThemingPublicCapabilitiesSerializer(); +} + +class _$ThemingPublicCapabilitiesSerializer implements StructuredSerializer { + const _$ThemingPublicCapabilitiesSerializer(); + + @override + Iterable get types => const [ThemingPublicCapabilities, _$ThemingPublicCapabilities]; + + @override + String get wireName => 'ThemingPublicCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final ThemingPublicCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'theming', + serializers.serialize(object.theming, specifiedType: const FullType(ThemingPublicCapabilities_Theming)), + ]; + return result; + } + + @override + ThemingPublicCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ThemingPublicCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'theming': + result.theming.replace( + serializers.deserialize(value, specifiedType: const FullType(ThemingPublicCapabilities_Theming))! + as ThemingPublicCapabilities_Theming, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8555,7 +14532,62 @@ abstract class UserStatusCapabilities_UserStatus Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$userStatusCapabilitiesUserStatusSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$UserStatusCapabilities_UserStatusSerializer(); +} + +class _$UserStatusCapabilities_UserStatusSerializer implements StructuredSerializer { + const _$UserStatusCapabilities_UserStatusSerializer(); + + @override + Iterable get types => const [UserStatusCapabilities_UserStatus, _$UserStatusCapabilities_UserStatus]; + + @override + String get wireName => 'UserStatusCapabilities_UserStatus'; + + @override + Iterable serialize( + final Serializers serializers, + final UserStatusCapabilities_UserStatus object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + 'restore', + serializers.serialize(object.restore, specifiedType: const FullType(bool)), + 'supports_emoji', + serializers.serialize(object.supportsEmoji, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + UserStatusCapabilities_UserStatus deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UserStatusCapabilities_UserStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'restore': + result.restore = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'supports_emoji': + result.supportsEmoji = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8581,7 +14613,56 @@ abstract class UserStatusCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$userStatusCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$UserStatusCapabilitiesSerializer(); +} + +class _$UserStatusCapabilitiesSerializer implements StructuredSerializer { + const _$UserStatusCapabilitiesSerializer(); + + @override + Iterable get types => const [UserStatusCapabilities, _$UserStatusCapabilities]; + + @override + String get wireName => 'UserStatusCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final UserStatusCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'user_status', + serializers.serialize(object.userStatus, specifiedType: const FullType(UserStatusCapabilities_UserStatus)), + ]; + return result; + } + + @override + UserStatusCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UserStatusCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'user_status': + result.userStatus.replace( + serializers.deserialize(value, specifiedType: const FullType(UserStatusCapabilities_UserStatus))! + as UserStatusCapabilities_UserStatus, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8610,8 +14691,56 @@ abstract class WeatherStatusCapabilities_WeatherStatus Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$weatherStatusCapabilitiesWeatherStatusSerializer; + const _$WeatherStatusCapabilities_WeatherStatusSerializer(); +} + +class _$WeatherStatusCapabilities_WeatherStatusSerializer + implements StructuredSerializer { + const _$WeatherStatusCapabilities_WeatherStatusSerializer(); + + @override + Iterable get types => + const [WeatherStatusCapabilities_WeatherStatus, _$WeatherStatusCapabilities_WeatherStatus]; + + @override + String get wireName => 'WeatherStatusCapabilities_WeatherStatus'; + + @override + Iterable serialize( + final Serializers serializers, + final WeatherStatusCapabilities_WeatherStatus object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'enabled', + serializers.serialize(object.enabled, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + WeatherStatusCapabilities_WeatherStatus deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WeatherStatusCapabilities_WeatherStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'enabled': + result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8638,7 +14767,59 @@ abstract class WeatherStatusCapabilities Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$weatherStatusCapabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$WeatherStatusCapabilitiesSerializer(); +} + +class _$WeatherStatusCapabilitiesSerializer implements StructuredSerializer { + const _$WeatherStatusCapabilitiesSerializer(); + + @override + Iterable get types => const [WeatherStatusCapabilities, _$WeatherStatusCapabilities]; + + @override + String get wireName => 'WeatherStatusCapabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final WeatherStatusCapabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'weather_status', + serializers.serialize( + object.weatherStatus, + specifiedType: const FullType(WeatherStatusCapabilities_WeatherStatus), + ), + ]; + return result; + } + + @override + WeatherStatusCapabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WeatherStatusCapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'weather_status': + result.weatherStatus.replace( + serializers.deserialize(value, specifiedType: const FullType(WeatherStatusCapabilities_WeatherStatus))! + as WeatherStatusCapabilities_WeatherStatus, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8845,8 +15026,76 @@ abstract class OcsGetCapabilitiesResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocsGetCapabilitiesResponseApplicationJsonOcsDataSerializer; + const _$OcsGetCapabilitiesResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$OcsGetCapabilitiesResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$OcsGetCapabilitiesResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [OcsGetCapabilitiesResponseApplicationJson_Ocs_Data, _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'OcsGetCapabilitiesResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final OcsGetCapabilitiesResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'version', + serializers.serialize( + object.version, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version), + ), + 'capabilities', + serializers.serialize( + object.capabilities, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Capabilities), + ), + ]; + return result; + } + + @override + OcsGetCapabilitiesResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcsGetCapabilitiesResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'version': + result.version.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version), + )! as OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version, + ); + case 'capabilities': + result.capabilities.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Capabilities), + )! as OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Capabilities, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8876,8 +15125,70 @@ abstract class OcsGetCapabilitiesResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocsGetCapabilitiesResponseApplicationJsonOcsSerializer; + const _$OcsGetCapabilitiesResponseApplicationJson_OcsSerializer(); +} + +class _$OcsGetCapabilitiesResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$OcsGetCapabilitiesResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [OcsGetCapabilitiesResponseApplicationJson_Ocs, _$OcsGetCapabilitiesResponseApplicationJson_Ocs]; + + @override + String get wireName => 'OcsGetCapabilitiesResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final OcsGetCapabilitiesResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + OcsGetCapabilitiesResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcsGetCapabilitiesResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data), + )! as OcsGetCapabilitiesResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8906,8 +15217,61 @@ abstract class OcsGetCapabilitiesResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$ocsGetCapabilitiesResponseApplicationJsonSerializer; + const _$OcsGetCapabilitiesResponseApplicationJsonSerializer(); +} + +class _$OcsGetCapabilitiesResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$OcsGetCapabilitiesResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [OcsGetCapabilitiesResponseApplicationJson, _$OcsGetCapabilitiesResponseApplicationJson]; + + @override + String get wireName => 'OcsGetCapabilitiesResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final OcsGetCapabilitiesResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + OcsGetCapabilitiesResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OcsGetCapabilitiesResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs), + )! as OcsGetCapabilitiesResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8938,8 +15302,62 @@ abstract class ProfileApiSetVisibilityResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$profileApiSetVisibilityResponseApplicationJsonOcsSerializer; + const _$ProfileApiSetVisibilityResponseApplicationJson_OcsSerializer(); +} + +class _$ProfileApiSetVisibilityResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$ProfileApiSetVisibilityResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [ProfileApiSetVisibilityResponseApplicationJson_Ocs, _$ProfileApiSetVisibilityResponseApplicationJson_Ocs]; + + @override + String get wireName => 'ProfileApiSetVisibilityResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final ProfileApiSetVisibilityResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), + ]; + return result; + } + + @override + ProfileApiSetVisibilityResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ProfileApiSetVisibilityResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8968,8 +15386,64 @@ abstract class ProfileApiSetVisibilityResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$profileApiSetVisibilityResponseApplicationJsonSerializer; + const _$ProfileApiSetVisibilityResponseApplicationJsonSerializer(); +} + +class _$ProfileApiSetVisibilityResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$ProfileApiSetVisibilityResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [ProfileApiSetVisibilityResponseApplicationJson, _$ProfileApiSetVisibilityResponseApplicationJson]; + + @override + String get wireName => 'ProfileApiSetVisibilityResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final ProfileApiSetVisibilityResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(ProfileApiSetVisibilityResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + ProfileApiSetVisibilityResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ProfileApiSetVisibilityResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ProfileApiSetVisibilityResponseApplicationJson_Ocs), + )! as ProfileApiSetVisibilityResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -8995,7 +15469,75 @@ abstract class Reference implements ReferenceInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$referenceSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ReferenceSerializer(); +} + +class _$ReferenceSerializer implements StructuredSerializer { + const _$ReferenceSerializer(); + + @override + Iterable get types => const [Reference, _$Reference]; + + @override + String get wireName => 'Reference'; + + @override + Iterable serialize( + final Serializers serializers, + final Reference object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'richObjectType', + serializers.serialize(object.richObjectType, specifiedType: const FullType(String)), + 'richObject', + serializers.serialize( + object.richObject, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), + ), + 'openGraphObject', + serializers.serialize(object.openGraphObject, specifiedType: const FullType(OpenGraphObject)), + 'accessible', + serializers.serialize(object.accessible, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + Reference deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'richObjectType': + result.richObjectType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'richObject': + result.richObject.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), + )! as BuiltMap, + ); + case 'openGraphObject': + result.openGraphObject.replace( + serializers.deserialize(value, specifiedType: const FullType(OpenGraphObject))! as OpenGraphObject, + ); + case 'accessible': + result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9025,8 +15567,66 @@ abstract class ReferenceApiResolveOneResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiResolveOneResponseApplicationJsonOcsDataSerializer; + const _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + ReferenceApiResolveOneResponseApplicationJson_Ocs_Data, + _$ReferenceApiResolveOneResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'ReferenceApiResolveOneResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiResolveOneResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'references', + serializers.serialize( + object.references, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]), + ), + ]; + return result; + } + + @override + ReferenceApiResolveOneResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiResolveOneResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'references': + result.references.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9057,8 +15657,70 @@ abstract class ReferenceApiResolveOneResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiResolveOneResponseApplicationJsonOcsSerializer; + const _$ReferenceApiResolveOneResponseApplicationJson_OcsSerializer(); +} + +class _$ReferenceApiResolveOneResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$ReferenceApiResolveOneResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [ReferenceApiResolveOneResponseApplicationJson_Ocs, _$ReferenceApiResolveOneResponseApplicationJson_Ocs]; + + @override + String get wireName => 'ReferenceApiResolveOneResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiResolveOneResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + ReferenceApiResolveOneResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiResolveOneResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs_Data), + )! as ReferenceApiResolveOneResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9087,8 +15749,64 @@ abstract class ReferenceApiResolveOneResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiResolveOneResponseApplicationJsonSerializer; + const _$ReferenceApiResolveOneResponseApplicationJsonSerializer(); +} + +class _$ReferenceApiResolveOneResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$ReferenceApiResolveOneResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [ReferenceApiResolveOneResponseApplicationJson, _$ReferenceApiResolveOneResponseApplicationJson]; + + @override + String get wireName => 'ReferenceApiResolveOneResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiResolveOneResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + ReferenceApiResolveOneResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiResolveOneResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs), + )! as ReferenceApiResolveOneResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9118,8 +15836,66 @@ abstract class ReferenceApiResolveResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiResolveResponseApplicationJsonOcsDataSerializer; + const _$ReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$ReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$ReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + ReferenceApiResolveResponseApplicationJson_Ocs_Data, + _$ReferenceApiResolveResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'ReferenceApiResolveResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiResolveResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'references', + serializers.serialize( + object.references, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]), + ), + ]; + return result; + } + + @override + ReferenceApiResolveResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'references': + result.references.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9149,8 +15925,70 @@ abstract class ReferenceApiResolveResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiResolveResponseApplicationJsonOcsSerializer; + const _$ReferenceApiResolveResponseApplicationJson_OcsSerializer(); +} + +class _$ReferenceApiResolveResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$ReferenceApiResolveResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [ReferenceApiResolveResponseApplicationJson_Ocs, _$ReferenceApiResolveResponseApplicationJson_Ocs]; + + @override + String get wireName => 'ReferenceApiResolveResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiResolveResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + ReferenceApiResolveResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiResolveResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs_Data), + )! as ReferenceApiResolveResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9179,8 +16017,61 @@ abstract class ReferenceApiResolveResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$referenceApiResolveResponseApplicationJsonSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ReferenceApiResolveResponseApplicationJsonSerializer(); +} + +class _$ReferenceApiResolveResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$ReferenceApiResolveResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [ReferenceApiResolveResponseApplicationJson, _$ReferenceApiResolveResponseApplicationJson]; + + @override + String get wireName => 'ReferenceApiResolveResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiResolveResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + ReferenceApiResolveResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiResolveResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs), + )! as ReferenceApiResolveResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9210,8 +16101,66 @@ abstract class ReferenceApiExtractResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiExtractResponseApplicationJsonOcsDataSerializer; + const _$ReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$ReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$ReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + ReferenceApiExtractResponseApplicationJson_Ocs_Data, + _$ReferenceApiExtractResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'ReferenceApiExtractResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiExtractResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'references', + serializers.serialize( + object.references, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]), + ), + ]; + return result; + } + + @override + ReferenceApiExtractResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'references': + result.references.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9241,8 +16190,70 @@ abstract class ReferenceApiExtractResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiExtractResponseApplicationJsonOcsSerializer; + const _$ReferenceApiExtractResponseApplicationJson_OcsSerializer(); +} + +class _$ReferenceApiExtractResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$ReferenceApiExtractResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [ReferenceApiExtractResponseApplicationJson_Ocs, _$ReferenceApiExtractResponseApplicationJson_Ocs]; + + @override + String get wireName => 'ReferenceApiExtractResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiExtractResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + ReferenceApiExtractResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiExtractResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs_Data), + )! as ReferenceApiExtractResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9271,8 +16282,61 @@ abstract class ReferenceApiExtractResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiExtractResponseApplicationJsonSerializer; + const _$ReferenceApiExtractResponseApplicationJsonSerializer(); +} + +class _$ReferenceApiExtractResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$ReferenceApiExtractResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [ReferenceApiExtractResponseApplicationJson, _$ReferenceApiExtractResponseApplicationJson]; + + @override + String get wireName => 'ReferenceApiExtractResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiExtractResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + ReferenceApiExtractResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiExtractResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs), + )! as ReferenceApiExtractResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9303,7 +16367,80 @@ abstract class ReferenceProvider Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$referenceProviderSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ReferenceProviderSerializer(); +} + +class _$ReferenceProviderSerializer implements StructuredSerializer { + const _$ReferenceProviderSerializer(); + + @override + Iterable get types => const [ReferenceProvider, _$ReferenceProvider]; + + @override + String get wireName => 'ReferenceProvider'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceProvider object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'icon_url', + serializers.serialize(object.iconUrl, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.searchProvidersIds; + if (value != null) { + result + ..add('search_providers_ids') + ..add( + serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)])), + ); + } + + return result; + } + + @override + ReferenceProvider deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceProviderBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon_url': + result.iconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'order': + result.order = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'search_providers_ids': + result.searchProvidersIds.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9334,8 +16471,67 @@ abstract class ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiGetProvidersInfoResponseApplicationJsonOcsSerializer; + const _$ReferenceApiGetProvidersInfoResponseApplicationJson_OcsSerializer(); +} + +class _$ReferenceApiGetProvidersInfoResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$ReferenceApiGetProvidersInfoResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs, + _$ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(ReferenceProvider)])), + ]; + return result; + } + + @override + ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiGetProvidersInfoResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(ReferenceProvider)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9365,8 +16561,66 @@ abstract class ReferenceApiGetProvidersInfoResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiGetProvidersInfoResponseApplicationJsonSerializer; + const _$ReferenceApiGetProvidersInfoResponseApplicationJsonSerializer(); +} + +class _$ReferenceApiGetProvidersInfoResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$ReferenceApiGetProvidersInfoResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + ReferenceApiGetProvidersInfoResponseApplicationJson, + _$ReferenceApiGetProvidersInfoResponseApplicationJson, + ]; + + @override + String get wireName => 'ReferenceApiGetProvidersInfoResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiGetProvidersInfoResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + ReferenceApiGetProvidersInfoResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiGetProvidersInfoResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs), + )! as ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9396,8 +16650,58 @@ abstract class ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiTouchProviderResponseApplicationJsonOcsDataSerializer; + const _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data, + _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'success', + serializers.serialize(object.success, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiTouchProviderResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'success': + result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9428,8 +16732,72 @@ abstract class ReferenceApiTouchProviderResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$referenceApiTouchProviderResponseApplicationJsonOcsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ReferenceApiTouchProviderResponseApplicationJson_OcsSerializer(); +} + +class _$ReferenceApiTouchProviderResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$ReferenceApiTouchProviderResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + ReferenceApiTouchProviderResponseApplicationJson_Ocs, + _$ReferenceApiTouchProviderResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'ReferenceApiTouchProviderResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiTouchProviderResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + ReferenceApiTouchProviderResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiTouchProviderResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data), + )! as ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9459,8 +16827,64 @@ abstract class ReferenceApiTouchProviderResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$referenceApiTouchProviderResponseApplicationJsonSerializer; + const _$ReferenceApiTouchProviderResponseApplicationJsonSerializer(); +} + +class _$ReferenceApiTouchProviderResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$ReferenceApiTouchProviderResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [ReferenceApiTouchProviderResponseApplicationJson, _$ReferenceApiTouchProviderResponseApplicationJson]; + + @override + String get wireName => 'ReferenceApiTouchProviderResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final ReferenceApiTouchProviderResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + ReferenceApiTouchProviderResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = ReferenceApiTouchProviderResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs), + )! as ReferenceApiTouchProviderResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9492,8 +16916,66 @@ abstract class TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiTaskTypesResponseApplicationJsonOcsDataTypesSerializer; + const _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesSerializer(); +} + +class _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesSerializer + implements StructuredSerializer { + const _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types, + _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types, + ]; + + @override + String get wireName => 'TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'description', + serializers.serialize(object.description, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'description': + result.description = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9523,8 +17005,70 @@ abstract class TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiTaskTypesResponseApplicationJsonOcsDataSerializer; + const _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data, + _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'types', + serializers.serialize( + object.types, + specifiedType: + const FullType(BuiltList, [FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types)]), + ), + ]; + return result; + } + + @override + TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiTaskTypesResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'types': + result.types.replace( + serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, + [FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types)], + ), + )! as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9555,8 +17099,72 @@ abstract class TextProcessingApiTaskTypesResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiTaskTypesResponseApplicationJsonOcsSerializer; + const _$TextProcessingApiTaskTypesResponseApplicationJson_OcsSerializer(); +} + +class _$TextProcessingApiTaskTypesResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextProcessingApiTaskTypesResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiTaskTypesResponseApplicationJson_Ocs, + _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextProcessingApiTaskTypesResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiTaskTypesResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextProcessingApiTaskTypesResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiTaskTypesResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data), + )! as TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9586,8 +17194,64 @@ abstract class TextProcessingApiTaskTypesResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiTaskTypesResponseApplicationJsonSerializer; + const _$TextProcessingApiTaskTypesResponseApplicationJsonSerializer(); +} + +class _$TextProcessingApiTaskTypesResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextProcessingApiTaskTypesResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextProcessingApiTaskTypesResponseApplicationJson, _$TextProcessingApiTaskTypesResponseApplicationJson]; + + @override + String get wireName => 'TextProcessingApiTaskTypesResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiTaskTypesResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextProcessingApiTaskTypesResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiTaskTypesResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs), + )! as TextProcessingApiTaskTypesResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9619,7 +17283,103 @@ abstract class TextProcessingTask Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$textProcessingTaskSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$TextProcessingTaskSerializer(); +} + +class _$TextProcessingTaskSerializer implements StructuredSerializer { + const _$TextProcessingTaskSerializer(); + + @override + Iterable get types => const [TextProcessingTask, _$TextProcessingTask]; + + @override + String get wireName => 'TextProcessingTask'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingTask object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'status', + serializers.serialize(object.status, specifiedType: const FullType(int)), + 'appId', + serializers.serialize(object.appId, specifiedType: const FullType(String)), + 'input', + serializers.serialize(object.input, specifiedType: const FullType(String)), + 'identifier', + serializers.serialize(object.identifier, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.id; + if (value != null) { + result + ..add('id') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + value = object.userId; + if (value != null) { + result + ..add('userId') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + value = object.output; + if (value != null) { + result + ..add('output') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + TextProcessingTask deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingTaskBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'appId': + result.appId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'input': + result.input = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'output': + result.output = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'identifier': + result.identifier = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9649,8 +17409,60 @@ abstract class TextProcessingApiScheduleResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiScheduleResponseApplicationJsonOcsDataSerializer; + const _$TextProcessingApiScheduleResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextProcessingApiScheduleResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextProcessingApiScheduleResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiScheduleResponseApplicationJson_Ocs_Data, + _$TextProcessingApiScheduleResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextProcessingApiScheduleResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiScheduleResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'task', + serializers.serialize(object.task, specifiedType: const FullType(TextProcessingTask)), + ]; + return result; + } + + @override + TextProcessingApiScheduleResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiScheduleResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'task': + result.task.replace( + serializers.deserialize(value, specifiedType: const FullType(TextProcessingTask))! as TextProcessingTask, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9681,8 +17493,72 @@ abstract class TextProcessingApiScheduleResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$textProcessingApiScheduleResponseApplicationJsonOcsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$TextProcessingApiScheduleResponseApplicationJson_OcsSerializer(); +} + +class _$TextProcessingApiScheduleResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextProcessingApiScheduleResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiScheduleResponseApplicationJson_Ocs, + _$TextProcessingApiScheduleResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextProcessingApiScheduleResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiScheduleResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextProcessingApiScheduleResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiScheduleResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs_Data), + )! as TextProcessingApiScheduleResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9712,8 +17588,64 @@ abstract class TextProcessingApiScheduleResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiScheduleResponseApplicationJsonSerializer; + const _$TextProcessingApiScheduleResponseApplicationJsonSerializer(); +} + +class _$TextProcessingApiScheduleResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextProcessingApiScheduleResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextProcessingApiScheduleResponseApplicationJson, _$TextProcessingApiScheduleResponseApplicationJson]; + + @override + String get wireName => 'TextProcessingApiScheduleResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiScheduleResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextProcessingApiScheduleResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiScheduleResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs), + )! as TextProcessingApiScheduleResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9743,8 +17675,60 @@ abstract class TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiGetTaskResponseApplicationJsonOcsDataSerializer; + const _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data, + _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'task', + serializers.serialize(object.task, specifiedType: const FullType(TextProcessingTask)), + ]; + return result; + } + + @override + TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiGetTaskResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'task': + result.task.replace( + serializers.deserialize(value, specifiedType: const FullType(TextProcessingTask))! as TextProcessingTask, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9775,8 +17759,72 @@ abstract class TextProcessingApiGetTaskResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiGetTaskResponseApplicationJsonOcsSerializer; + const _$TextProcessingApiGetTaskResponseApplicationJson_OcsSerializer(); +} + +class _$TextProcessingApiGetTaskResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextProcessingApiGetTaskResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiGetTaskResponseApplicationJson_Ocs, + _$TextProcessingApiGetTaskResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextProcessingApiGetTaskResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiGetTaskResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextProcessingApiGetTaskResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiGetTaskResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data), + )! as TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9805,8 +17853,64 @@ abstract class TextProcessingApiGetTaskResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiGetTaskResponseApplicationJsonSerializer; + const _$TextProcessingApiGetTaskResponseApplicationJsonSerializer(); +} + +class _$TextProcessingApiGetTaskResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextProcessingApiGetTaskResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextProcessingApiGetTaskResponseApplicationJson, _$TextProcessingApiGetTaskResponseApplicationJson]; + + @override + String get wireName => 'TextProcessingApiGetTaskResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiGetTaskResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextProcessingApiGetTaskResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiGetTaskResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs), + )! as TextProcessingApiGetTaskResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9836,8 +17940,60 @@ abstract class TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiDeleteTaskResponseApplicationJsonOcsDataSerializer; + const _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data, + _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'task', + serializers.serialize(object.task, specifiedType: const FullType(TextProcessingTask)), + ]; + return result; + } + + @override + TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'task': + result.task.replace( + serializers.deserialize(value, specifiedType: const FullType(TextProcessingTask))! as TextProcessingTask, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9868,8 +18024,72 @@ abstract class TextProcessingApiDeleteTaskResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiDeleteTaskResponseApplicationJsonOcsSerializer; + const _$TextProcessingApiDeleteTaskResponseApplicationJson_OcsSerializer(); +} + +class _$TextProcessingApiDeleteTaskResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextProcessingApiDeleteTaskResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiDeleteTaskResponseApplicationJson_Ocs, + _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextProcessingApiDeleteTaskResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiDeleteTaskResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextProcessingApiDeleteTaskResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiDeleteTaskResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data), + )! as TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9899,8 +18119,64 @@ abstract class TextProcessingApiDeleteTaskResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiDeleteTaskResponseApplicationJsonSerializer; + const _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer(); +} + +class _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextProcessingApiDeleteTaskResponseApplicationJson, _$TextProcessingApiDeleteTaskResponseApplicationJson]; + + @override + String get wireName => 'TextProcessingApiDeleteTaskResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiDeleteTaskResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextProcessingApiDeleteTaskResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiDeleteTaskResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs), + )! as TextProcessingApiDeleteTaskResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9921,17 +18197,70 @@ abstract class TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data const TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end - // coverage:ignore-start - factory TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data.fromJson(final Map json) => - _jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + // coverage:ignore-start + factory TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data.fromJson(final Map json) => + _jsonSerializers.deserializeWith(serializer, json)!; + // coverage:ignore-end + + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data, + _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'tasks', + serializers.serialize(object.tasks, specifiedType: const FullType(BuiltList, [FullType(TextProcessingTask)])), + ]; + return result; + } + + @override + TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataBuilder(); - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'tasks': + result.tasks.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(TextProcessingTask)]))! + as BuiltList, + ); + } + } - static Serializer get serializer => - _$textProcessingApiListTasksByAppResponseApplicationJsonOcsDataSerializer; + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9962,8 +18291,72 @@ abstract class TextProcessingApiListTasksByAppResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiListTasksByAppResponseApplicationJsonOcsSerializer; + const _$TextProcessingApiListTasksByAppResponseApplicationJson_OcsSerializer(); +} + +class _$TextProcessingApiListTasksByAppResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextProcessingApiListTasksByAppResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiListTasksByAppResponseApplicationJson_Ocs, + _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextProcessingApiListTasksByAppResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiListTasksByAppResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextProcessingApiListTasksByAppResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiListTasksByAppResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data), + )! as TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -9993,8 +18386,66 @@ abstract class TextProcessingApiListTasksByAppResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textProcessingApiListTasksByAppResponseApplicationJsonSerializer; + const _$TextProcessingApiListTasksByAppResponseApplicationJsonSerializer(); +} + +class _$TextProcessingApiListTasksByAppResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextProcessingApiListTasksByAppResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + TextProcessingApiListTasksByAppResponseApplicationJson, + _$TextProcessingApiListTasksByAppResponseApplicationJson, + ]; + + @override + String get wireName => 'TextProcessingApiListTasksByAppResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextProcessingApiListTasksByAppResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextProcessingApiListTasksByAppResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextProcessingApiListTasksByAppResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs), + )! as TextProcessingApiListTasksByAppResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10024,8 +18475,58 @@ abstract class TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiIsAvailableResponseApplicationJsonOcsDataSerializer; + const _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data, + _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'isAvailable', + serializers.serialize(object.isAvailable, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiIsAvailableResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'isAvailable': + result.isAvailable = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10056,8 +18557,72 @@ abstract class TextToImageApiIsAvailableResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiIsAvailableResponseApplicationJsonOcsSerializer; + const _$TextToImageApiIsAvailableResponseApplicationJson_OcsSerializer(); +} + +class _$TextToImageApiIsAvailableResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextToImageApiIsAvailableResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextToImageApiIsAvailableResponseApplicationJson_Ocs, + _$TextToImageApiIsAvailableResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextToImageApiIsAvailableResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiIsAvailableResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextToImageApiIsAvailableResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiIsAvailableResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data), + )! as TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10087,8 +18652,64 @@ abstract class TextToImageApiIsAvailableResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiIsAvailableResponseApplicationJsonSerializer; + const _$TextToImageApiIsAvailableResponseApplicationJsonSerializer(); +} + +class _$TextToImageApiIsAvailableResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextToImageApiIsAvailableResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextToImageApiIsAvailableResponseApplicationJson, _$TextToImageApiIsAvailableResponseApplicationJson]; + + @override + String get wireName => 'TextToImageApiIsAvailableResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiIsAvailableResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextToImageApiIsAvailableResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiIsAvailableResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs), + )! as TextToImageApiIsAvailableResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10119,7 +18740,110 @@ abstract class TextToImageTask implements TextToImageTaskInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$textToImageTaskSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$TextToImageTaskSerializer(); +} + +class _$TextToImageTaskSerializer implements StructuredSerializer { + const _$TextToImageTaskSerializer(); + + @override + Iterable get types => const [TextToImageTask, _$TextToImageTask]; + + @override + String get wireName => 'TextToImageTask'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageTask object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'status', + serializers.serialize(object.status, specifiedType: const FullType(int)), + 'appId', + serializers.serialize(object.appId, specifiedType: const FullType(String)), + 'input', + serializers.serialize(object.input, specifiedType: const FullType(String)), + 'numberOfImages', + serializers.serialize(object.numberOfImages, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.id; + if (value != null) { + result + ..add('id') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + value = object.userId; + if (value != null) { + result + ..add('userId') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + value = object.identifier; + if (value != null) { + result + ..add('identifier') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + value = object.completionExpectedAt; + if (value != null) { + result + ..add('completionExpectedAt') + ..add( + serializers.serialize(value, specifiedType: const FullType(int)), + ); + } + + return result; + } + + @override + TextToImageTask deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageTaskBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'appId': + result.appId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'input': + result.input = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'identifier': + result.identifier = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'numberOfImages': + result.numberOfImages = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'completionExpectedAt': + result.completionExpectedAt = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10149,8 +18873,60 @@ abstract class TextToImageApiScheduleResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$textToImageApiScheduleResponseApplicationJsonOcsDataSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$TextToImageApiScheduleResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextToImageApiScheduleResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextToImageApiScheduleResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextToImageApiScheduleResponseApplicationJson_Ocs_Data, + _$TextToImageApiScheduleResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextToImageApiScheduleResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiScheduleResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'task', + serializers.serialize(object.task, specifiedType: const FullType(TextToImageTask)), + ]; + return result; + } + + @override + TextToImageApiScheduleResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiScheduleResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'task': + result.task.replace( + serializers.deserialize(value, specifiedType: const FullType(TextToImageTask))! as TextToImageTask, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10181,8 +18957,70 @@ abstract class TextToImageApiScheduleResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiScheduleResponseApplicationJsonOcsSerializer; + const _$TextToImageApiScheduleResponseApplicationJson_OcsSerializer(); +} + +class _$TextToImageApiScheduleResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextToImageApiScheduleResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TextToImageApiScheduleResponseApplicationJson_Ocs, _$TextToImageApiScheduleResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TextToImageApiScheduleResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiScheduleResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextToImageApiScheduleResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiScheduleResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs_Data), + )! as TextToImageApiScheduleResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10211,8 +19049,64 @@ abstract class TextToImageApiScheduleResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiScheduleResponseApplicationJsonSerializer; + const _$TextToImageApiScheduleResponseApplicationJsonSerializer(); +} + +class _$TextToImageApiScheduleResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextToImageApiScheduleResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextToImageApiScheduleResponseApplicationJson, _$TextToImageApiScheduleResponseApplicationJson]; + + @override + String get wireName => 'TextToImageApiScheduleResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiScheduleResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextToImageApiScheduleResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiScheduleResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs), + )! as TextToImageApiScheduleResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10242,8 +19136,60 @@ abstract class TextToImageApiGetTaskResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiGetTaskResponseApplicationJsonOcsDataSerializer; + const _$TextToImageApiGetTaskResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextToImageApiGetTaskResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextToImageApiGetTaskResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextToImageApiGetTaskResponseApplicationJson_Ocs_Data, + _$TextToImageApiGetTaskResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextToImageApiGetTaskResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiGetTaskResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'task', + serializers.serialize(object.task, specifiedType: const FullType(TextToImageTask)), + ]; + return result; + } + + @override + TextToImageApiGetTaskResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiGetTaskResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'task': + result.task.replace( + serializers.deserialize(value, specifiedType: const FullType(TextToImageTask))! as TextToImageTask, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10274,8 +19220,70 @@ abstract class TextToImageApiGetTaskResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiGetTaskResponseApplicationJsonOcsSerializer; + const _$TextToImageApiGetTaskResponseApplicationJson_OcsSerializer(); +} + +class _$TextToImageApiGetTaskResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextToImageApiGetTaskResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TextToImageApiGetTaskResponseApplicationJson_Ocs, _$TextToImageApiGetTaskResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TextToImageApiGetTaskResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiGetTaskResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextToImageApiGetTaskResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiGetTaskResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs_Data), + )! as TextToImageApiGetTaskResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10304,8 +19312,64 @@ abstract class TextToImageApiGetTaskResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiGetTaskResponseApplicationJsonSerializer; + const _$TextToImageApiGetTaskResponseApplicationJsonSerializer(); +} + +class _$TextToImageApiGetTaskResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextToImageApiGetTaskResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextToImageApiGetTaskResponseApplicationJson, _$TextToImageApiGetTaskResponseApplicationJson]; + + @override + String get wireName => 'TextToImageApiGetTaskResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiGetTaskResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextToImageApiGetTaskResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiGetTaskResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs), + )! as TextToImageApiGetTaskResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10335,8 +19399,60 @@ abstract class TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiDeleteTaskResponseApplicationJsonOcsDataSerializer; + const _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data, + _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'task', + serializers.serialize(object.task, specifiedType: const FullType(TextToImageTask)), + ]; + return result; + } + + @override + TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'task': + result.task.replace( + serializers.deserialize(value, specifiedType: const FullType(TextToImageTask))! as TextToImageTask, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10367,8 +19483,72 @@ abstract class TextToImageApiDeleteTaskResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiDeleteTaskResponseApplicationJsonOcsSerializer; + const _$TextToImageApiDeleteTaskResponseApplicationJson_OcsSerializer(); +} + +class _$TextToImageApiDeleteTaskResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextToImageApiDeleteTaskResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextToImageApiDeleteTaskResponseApplicationJson_Ocs, + _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextToImageApiDeleteTaskResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiDeleteTaskResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextToImageApiDeleteTaskResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiDeleteTaskResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data), + )! as TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10397,8 +19577,64 @@ abstract class TextToImageApiDeleteTaskResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiDeleteTaskResponseApplicationJsonSerializer; + const _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer(); +} + +class _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TextToImageApiDeleteTaskResponseApplicationJson, _$TextToImageApiDeleteTaskResponseApplicationJson]; + + @override + String get wireName => 'TextToImageApiDeleteTaskResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiDeleteTaskResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextToImageApiDeleteTaskResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiDeleteTaskResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs), + )! as TextToImageApiDeleteTaskResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10428,8 +19664,61 @@ abstract class TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiListTasksByAppResponseApplicationJsonOcsDataSerializer; + const _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data, + _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'tasks', + serializers.serialize(object.tasks, specifiedType: const FullType(BuiltList, [FullType(TextToImageTask)])), + ]; + return result; + } + + @override + TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'tasks': + result.tasks.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(TextToImageTask)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10460,8 +19749,72 @@ abstract class TextToImageApiListTasksByAppResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiListTasksByAppResponseApplicationJsonOcsSerializer; + const _$TextToImageApiListTasksByAppResponseApplicationJson_OcsSerializer(); +} + +class _$TextToImageApiListTasksByAppResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TextToImageApiListTasksByAppResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TextToImageApiListTasksByAppResponseApplicationJson_Ocs, + _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TextToImageApiListTasksByAppResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiListTasksByAppResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TextToImageApiListTasksByAppResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiListTasksByAppResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data), + )! as TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10491,8 +19844,66 @@ abstract class TextToImageApiListTasksByAppResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$textToImageApiListTasksByAppResponseApplicationJsonSerializer; + const _$TextToImageApiListTasksByAppResponseApplicationJsonSerializer(); +} + +class _$TextToImageApiListTasksByAppResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TextToImageApiListTasksByAppResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + TextToImageApiListTasksByAppResponseApplicationJson, + _$TextToImageApiListTasksByAppResponseApplicationJson, + ]; + + @override + String get wireName => 'TextToImageApiListTasksByAppResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TextToImageApiListTasksByAppResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TextToImageApiListTasksByAppResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TextToImageApiListTasksByAppResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs), + )! as TextToImageApiListTasksByAppResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10525,8 +19936,70 @@ abstract class TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$translationApiLanguagesResponseApplicationJsonOcsDataLanguagesSerializer; + const _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesSerializer(); +} + +class _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesSerializer + implements StructuredSerializer { + const _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesSerializer(); + + @override + Iterable get types => const [ + TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages, + _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages, + ]; + + @override + String get wireName => 'TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'from', + serializers.serialize(object.from, specifiedType: const FullType(String)), + 'fromLabel', + serializers.serialize(object.fromLabel, specifiedType: const FullType(String)), + 'to', + serializers.serialize(object.to, specifiedType: const FullType(String)), + 'toLabel', + serializers.serialize(object.toLabel, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'from': + result.from = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'fromLabel': + result.fromLabel = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'to': + result.to = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'toLabel': + result.toLabel = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10557,8 +20030,74 @@ abstract class TranslationApiLanguagesResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$translationApiLanguagesResponseApplicationJsonOcsDataSerializer; + const _$TranslationApiLanguagesResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TranslationApiLanguagesResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TranslationApiLanguagesResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TranslationApiLanguagesResponseApplicationJson_Ocs_Data, + _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TranslationApiLanguagesResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiLanguagesResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'languages', + serializers.serialize( + object.languages, + specifiedType: + const FullType(BuiltList, [FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages)]), + ), + 'languageDetection', + serializers.serialize(object.languageDetection, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + TranslationApiLanguagesResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiLanguagesResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'languages': + result.languages.replace( + serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, + [FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages)], + ), + )! as BuiltList, + ); + case 'languageDetection': + result.languageDetection = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10589,8 +20128,70 @@ abstract class TranslationApiLanguagesResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$translationApiLanguagesResponseApplicationJsonOcsSerializer; + const _$TranslationApiLanguagesResponseApplicationJson_OcsSerializer(); +} + +class _$TranslationApiLanguagesResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TranslationApiLanguagesResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TranslationApiLanguagesResponseApplicationJson_Ocs, _$TranslationApiLanguagesResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TranslationApiLanguagesResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiLanguagesResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TranslationApiLanguagesResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiLanguagesResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data), + )! as TranslationApiLanguagesResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10619,8 +20220,64 @@ abstract class TranslationApiLanguagesResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$translationApiLanguagesResponseApplicationJsonSerializer; + const _$TranslationApiLanguagesResponseApplicationJsonSerializer(); +} + +class _$TranslationApiLanguagesResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TranslationApiLanguagesResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TranslationApiLanguagesResponseApplicationJson, _$TranslationApiLanguagesResponseApplicationJson]; + + @override + String get wireName => 'TranslationApiLanguagesResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiLanguagesResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TranslationApiLanguagesResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiLanguagesResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs), + )! as TranslationApiLanguagesResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10651,8 +20308,70 @@ abstract class TranslationApiTranslateResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$translationApiTranslateResponseApplicationJsonOcsDataSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$TranslationApiTranslateResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TranslationApiTranslateResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TranslationApiTranslateResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + TranslationApiTranslateResponseApplicationJson_Ocs_Data, + _$TranslationApiTranslateResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'TranslationApiTranslateResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiTranslateResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'text', + serializers.serialize(object.text, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.from; + if (value != null) { + result + ..add('from') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + TranslationApiTranslateResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiTranslateResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'text': + result.text = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'from': + result.from = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10683,8 +20402,70 @@ abstract class TranslationApiTranslateResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$translationApiTranslateResponseApplicationJsonOcsSerializer; + const _$TranslationApiTranslateResponseApplicationJson_OcsSerializer(); +} + +class _$TranslationApiTranslateResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TranslationApiTranslateResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TranslationApiTranslateResponseApplicationJson_Ocs, _$TranslationApiTranslateResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TranslationApiTranslateResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiTranslateResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + TranslationApiTranslateResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiTranslateResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs_Data), + )! as TranslationApiTranslateResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10713,8 +20494,64 @@ abstract class TranslationApiTranslateResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$translationApiTranslateResponseApplicationJsonSerializer; + const _$TranslationApiTranslateResponseApplicationJsonSerializer(); +} + +class _$TranslationApiTranslateResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TranslationApiTranslateResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TranslationApiTranslateResponseApplicationJson, _$TranslationApiTranslateResponseApplicationJson]; + + @override + String get wireName => 'TranslationApiTranslateResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TranslationApiTranslateResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TranslationApiTranslateResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TranslationApiTranslateResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs), + )! as TranslationApiTranslateResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10741,7 +20578,61 @@ abstract class UnifiedSearchProvider Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$unifiedSearchProviderSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$UnifiedSearchProviderSerializer(); +} + +class _$UnifiedSearchProviderSerializer implements StructuredSerializer { + const _$UnifiedSearchProviderSerializer(); + + @override + Iterable get types => const [UnifiedSearchProvider, _$UnifiedSearchProvider]; + + @override + String get wireName => 'UnifiedSearchProvider'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchProvider object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + ]; + return result; + } + + @override + UnifiedSearchProvider deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchProviderBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'order': + result.order = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10772,8 +20663,69 @@ abstract class UnifiedSearchGetProvidersResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$unifiedSearchGetProvidersResponseApplicationJsonOcsSerializer; + const _$UnifiedSearchGetProvidersResponseApplicationJson_OcsSerializer(); +} + +class _$UnifiedSearchGetProvidersResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$UnifiedSearchGetProvidersResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + UnifiedSearchGetProvidersResponseApplicationJson_Ocs, + _$UnifiedSearchGetProvidersResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'UnifiedSearchGetProvidersResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchGetProvidersResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchProvider)])), + ]; + return result; + } + + @override + UnifiedSearchGetProvidersResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchGetProvidersResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchProvider)]), + )! as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10803,8 +20755,64 @@ abstract class UnifiedSearchGetProvidersResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$unifiedSearchGetProvidersResponseApplicationJsonSerializer; + const _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer(); +} + +class _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [UnifiedSearchGetProvidersResponseApplicationJson, _$UnifiedSearchGetProvidersResponseApplicationJson]; + + @override + String get wireName => 'UnifiedSearchGetProvidersResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchGetProvidersResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(UnifiedSearchGetProvidersResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + UnifiedSearchGetProvidersResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchGetProvidersResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(UnifiedSearchGetProvidersResponseApplicationJson_Ocs), + )! as UnifiedSearchGetProvidersResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -10912,7 +20920,80 @@ abstract class UnifiedSearchResultEntry Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$unifiedSearchResultEntrySerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$UnifiedSearchResultEntrySerializer(); +} + +class _$UnifiedSearchResultEntrySerializer implements StructuredSerializer { + const _$UnifiedSearchResultEntrySerializer(); + + @override + Iterable get types => const [UnifiedSearchResultEntry, _$UnifiedSearchResultEntry]; + + @override + String get wireName => 'UnifiedSearchResultEntry'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchResultEntry object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'thumbnailUrl', + serializers.serialize(object.thumbnailUrl, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'subline', + serializers.serialize(object.subline, specifiedType: const FullType(String)), + 'resourceUrl', + serializers.serialize(object.resourceUrl, specifiedType: const FullType(String)), + 'icon', + serializers.serialize(object.icon, specifiedType: const FullType(String)), + 'rounded', + serializers.serialize(object.rounded, specifiedType: const FullType(bool)), + 'attributes', + serializers.serialize(object.attributes, specifiedType: const FullType(BuiltList, [FullType(String)])), + ]; + return result; + } + + @override + UnifiedSearchResultEntry deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchResultEntryBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'subline': + result.subline = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'resourceUrl': + result.resourceUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon': + result.icon = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'rounded': + result.rounded = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'attributes': + result.attributes.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11018,7 +21099,84 @@ abstract class UnifiedSearchResult Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$unifiedSearchResultSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$UnifiedSearchResultSerializer(); +} + +class _$UnifiedSearchResultSerializer implements StructuredSerializer { + const _$UnifiedSearchResultSerializer(); + + @override + Iterable get types => const [UnifiedSearchResult, _$UnifiedSearchResult]; + + @override + String get wireName => 'UnifiedSearchResult'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchResult object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'isPaginated', + serializers.serialize(object.isPaginated, specifiedType: const FullType(bool)), + 'entries', + serializers.serialize( + object.entries, + specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchResultEntry)]), + ), + ]; + Object? value; + value = object.cursor; + if (value != null) { + result + ..add('cursor') + ..add( + serializers.serialize(value, specifiedType: const FullType(UnifiedSearchResult_Cursor)), + ); + } + + return result; + } + + @override + UnifiedSearchResult deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchResultBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'isPaginated': + result.isPaginated = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'entries': + result.entries.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchResultEntry)]), + )! as BuiltList, + ); + case 'cursor': + result.cursor.replace( + serializers.deserialize(value, specifiedType: const FullType(UnifiedSearchResult_Cursor))! + as UnifiedSearchResult_Cursor, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11048,8 +21206,64 @@ abstract class UnifiedSearchSearchResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$unifiedSearchSearchResponseApplicationJsonOcsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$UnifiedSearchSearchResponseApplicationJson_OcsSerializer(); +} + +class _$UnifiedSearchSearchResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$UnifiedSearchSearchResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [UnifiedSearchSearchResponseApplicationJson_Ocs, _$UnifiedSearchSearchResponseApplicationJson_Ocs]; + + @override + String get wireName => 'UnifiedSearchSearchResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchSearchResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(UnifiedSearchResult)), + ]; + return result; + } + + @override + UnifiedSearchSearchResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchSearchResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(UnifiedSearchResult))! as UnifiedSearchResult, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11078,8 +21292,61 @@ abstract class UnifiedSearchSearchResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$unifiedSearchSearchResponseApplicationJsonSerializer; + const _$UnifiedSearchSearchResponseApplicationJsonSerializer(); +} + +class _$UnifiedSearchSearchResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$UnifiedSearchSearchResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [UnifiedSearchSearchResponseApplicationJson, _$UnifiedSearchSearchResponseApplicationJson]; + + @override + String get wireName => 'UnifiedSearchSearchResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final UnifiedSearchSearchResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(UnifiedSearchSearchResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + UnifiedSearchSearchResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = UnifiedSearchSearchResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(UnifiedSearchSearchResponseApplicationJson_Ocs), + )! as UnifiedSearchSearchResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11110,8 +21377,68 @@ abstract class WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$whatsNewGetResponseApplicationJsonOcsDataWhatsNewSerializer; + const _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewSerializer(); +} + +class _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewSerializer + implements StructuredSerializer { + const _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewSerializer(); + + @override + Iterable get types => const [ + WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew, + _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew, + ]; + + @override + String get wireName => 'WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew'; + + @override + Iterable serialize( + final Serializers serializers, + final WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'regular', + serializers.serialize(object.regular, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'admin', + serializers.serialize(object.admin, specifiedType: const FullType(BuiltList, [FullType(String)])), + ]; + return result; + } + + @override + WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'regular': + result.regular.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'admin': + result.admin.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11143,8 +21470,84 @@ abstract class WhatsNewGetResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$whatsNewGetResponseApplicationJsonOcsDataSerializer; + const _$WhatsNewGetResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$WhatsNewGetResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$WhatsNewGetResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [WhatsNewGetResponseApplicationJson_Ocs_Data, _$WhatsNewGetResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'WhatsNewGetResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final WhatsNewGetResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'changelogURL', + serializers.serialize(object.changelogURL, specifiedType: const FullType(String)), + 'product', + serializers.serialize(object.product, specifiedType: const FullType(String)), + 'version', + serializers.serialize(object.version, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.whatsNew; + if (value != null) { + result + ..add('whatsNew') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew), + ), + ); + } + + return result; + } + + @override + WhatsNewGetResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WhatsNewGetResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'changelogURL': + result.changelogURL = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'product': + result.product = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'version': + result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'whatsNew': + result.whatsNew.replace( + serializers.deserialize( + value, + specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew), + )! as WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11174,8 +21577,64 @@ abstract class WhatsNewGetResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$whatsNewGetResponseApplicationJsonOcsSerializer; + const _$WhatsNewGetResponseApplicationJson_OcsSerializer(); +} + +class _$WhatsNewGetResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$WhatsNewGetResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [WhatsNewGetResponseApplicationJson_Ocs, _$WhatsNewGetResponseApplicationJson_Ocs]; + + @override + String get wireName => 'WhatsNewGetResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final WhatsNewGetResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data)), + ]; + return result; + } + + @override + WhatsNewGetResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WhatsNewGetResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data))! + as WhatsNewGetResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11203,8 +21662,58 @@ abstract class WhatsNewGetResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$whatsNewGetResponseApplicationJsonSerializer; + const _$WhatsNewGetResponseApplicationJsonSerializer(); +} + +class _$WhatsNewGetResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$WhatsNewGetResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [WhatsNewGetResponseApplicationJson, _$WhatsNewGetResponseApplicationJson]; + + @override + String get wireName => 'WhatsNewGetResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final WhatsNewGetResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + WhatsNewGetResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WhatsNewGetResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs))! + as WhatsNewGetResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11234,8 +21743,62 @@ abstract class WhatsNewDismissResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$whatsNewDismissResponseApplicationJsonOcsSerializer; + const _$WhatsNewDismissResponseApplicationJson_OcsSerializer(); +} + +class _$WhatsNewDismissResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$WhatsNewDismissResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [WhatsNewDismissResponseApplicationJson_Ocs, _$WhatsNewDismissResponseApplicationJson_Ocs]; + + @override + String get wireName => 'WhatsNewDismissResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final WhatsNewDismissResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), + ]; + return result; + } + + @override + WhatsNewDismissResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WhatsNewDismissResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11264,8 +21827,58 @@ abstract class WhatsNewDismissResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$whatsNewDismissResponseApplicationJsonSerializer; + const _$WhatsNewDismissResponseApplicationJsonSerializer(); +} + +class _$WhatsNewDismissResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$WhatsNewDismissResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [WhatsNewDismissResponseApplicationJson, _$WhatsNewDismissResponseApplicationJson]; + + @override + String get wireName => 'WhatsNewDismissResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final WhatsNewDismissResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(WhatsNewDismissResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + WhatsNewDismissResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WhatsNewDismissResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(WhatsNewDismissResponseApplicationJson_Ocs))! + as WhatsNewDismissResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -11293,8 +21906,55 @@ abstract class WipeCheckWipeResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$wipeCheckWipeResponseApplicationJsonSerializer; + const _$WipeCheckWipeResponseApplicationJsonSerializer(); +} + +class _$WipeCheckWipeResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$WipeCheckWipeResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [WipeCheckWipeResponseApplicationJson, _$WipeCheckWipeResponseApplicationJson]; + + @override + String get wireName => 'WipeCheckWipeResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final WipeCheckWipeResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'wipe', + serializers.serialize(object.wipe, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + WipeCheckWipeResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WipeCheckWipeResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'wipe': + result.wipe = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } // coverage:ignore-start diff --git a/packages/nextcloud/lib/src/api/core.openapi.g.dart b/packages/nextcloud/lib/src/api/core.openapi.g.dart index 612850521d9..a496d6e4e65 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.g.dart @@ -6,9304 +6,6 @@ part of 'core.openapi.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer _$statusSerializer = _$StatusSerializer(); -Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); -Serializer - _$appPasswordGetAppPasswordResponseApplicationJsonOcsDataSerializer = - _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$appPasswordGetAppPasswordResponseApplicationJsonOcsSerializer = - _$AppPasswordGetAppPasswordResponseApplicationJson_OcsSerializer(); -Serializer - _$appPasswordGetAppPasswordResponseApplicationJsonSerializer = - _$AppPasswordGetAppPasswordResponseApplicationJsonSerializer(); -Serializer - _$appPasswordRotateAppPasswordResponseApplicationJsonOcsDataSerializer = - _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$appPasswordRotateAppPasswordResponseApplicationJsonOcsSerializer = - _$AppPasswordRotateAppPasswordResponseApplicationJson_OcsSerializer(); -Serializer - _$appPasswordRotateAppPasswordResponseApplicationJsonSerializer = - _$AppPasswordRotateAppPasswordResponseApplicationJsonSerializer(); -Serializer - _$appPasswordDeleteAppPasswordResponseApplicationJsonOcsSerializer = - _$AppPasswordDeleteAppPasswordResponseApplicationJson_OcsSerializer(); -Serializer - _$appPasswordDeleteAppPasswordResponseApplicationJsonSerializer = - _$AppPasswordDeleteAppPasswordResponseApplicationJsonSerializer(); -Serializer _$autocompleteResultStatus0Serializer = _$AutocompleteResult_Status0Serializer(); -Serializer _$autocompleteResultSerializer = _$AutocompleteResultSerializer(); -Serializer _$autoCompleteGetResponseApplicationJsonOcsSerializer = - _$AutoCompleteGetResponseApplicationJson_OcsSerializer(); -Serializer _$autoCompleteGetResponseApplicationJsonSerializer = - _$AutoCompleteGetResponseApplicationJsonSerializer(); -Serializer _$loginFlowV2CredentialsSerializer = _$LoginFlowV2CredentialsSerializer(); -Serializer _$loginFlowV2PollSerializer = _$LoginFlowV2_PollSerializer(); -Serializer _$loginFlowV2Serializer = _$LoginFlowV2Serializer(); -Serializer _$openGraphObjectSerializer = _$OpenGraphObjectSerializer(); -Serializer _$resourceSerializer = _$ResourceSerializer(); -Serializer _$collectionSerializer = _$CollectionSerializer(); -Serializer - _$collaborationResourcesSearchCollectionsResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesSearchCollectionsResponseApplicationJsonSerializer = - _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesListCollectionResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesListCollectionResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesListCollectionResponseApplicationJsonSerializer = - _$CollaborationResourcesListCollectionResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesRenameCollectionResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesRenameCollectionResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesRenameCollectionResponseApplicationJsonSerializer = - _$CollaborationResourcesRenameCollectionResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesAddResourceResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesAddResourceResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesAddResourceResponseApplicationJsonSerializer = - _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesRemoveResourceResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesRemoveResourceResponseApplicationJsonSerializer = - _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesGetCollectionsByResourceResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer = - _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesCreateCollectionOnResourceResponseApplicationJsonOcsSerializer = - _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsSerializer(); -Serializer - _$collaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer = - _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer(); -Serializer _$contactsActionSerializer = _$ContactsActionSerializer(); -Serializer - _$hoverCardGetUserResponseApplicationJsonOcsDataSerializer = - _$HoverCardGetUserResponseApplicationJson_Ocs_DataSerializer(); -Serializer _$hoverCardGetUserResponseApplicationJsonOcsSerializer = - _$HoverCardGetUserResponseApplicationJson_OcsSerializer(); -Serializer _$hoverCardGetUserResponseApplicationJsonSerializer = - _$HoverCardGetUserResponseApplicationJsonSerializer(); -Serializer _$navigationEntrySerializer = _$NavigationEntrySerializer(); -Serializer - _$navigationGetAppsNavigationResponseApplicationJsonOcsSerializer = - _$NavigationGetAppsNavigationResponseApplicationJson_OcsSerializer(); -Serializer - _$navigationGetAppsNavigationResponseApplicationJsonSerializer = - _$NavigationGetAppsNavigationResponseApplicationJsonSerializer(); -Serializer - _$navigationGetSettingsNavigationResponseApplicationJsonOcsSerializer = - _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer(); -Serializer - _$navigationGetSettingsNavigationResponseApplicationJsonSerializer = - _$NavigationGetSettingsNavigationResponseApplicationJsonSerializer(); -Serializer - _$ocmDiscoveryResponseApplicationJsonResourceTypesProtocolsSerializer = - _$OcmDiscoveryResponseApplicationJson_ResourceTypes_ProtocolsSerializer(); -Serializer - _$ocmDiscoveryResponseApplicationJsonResourceTypesSerializer = - _$OcmDiscoveryResponseApplicationJson_ResourceTypesSerializer(); -Serializer _$ocmDiscoveryResponseApplicationJsonSerializer = - _$OcmDiscoveryResponseApplicationJsonSerializer(); -Serializer - _$ocsGetCapabilitiesResponseApplicationJsonOcsDataVersionSerializer = - _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_VersionSerializer(); -Serializer _$commentsCapabilitiesFilesSerializer = _$CommentsCapabilities_FilesSerializer(); -Serializer _$commentsCapabilitiesSerializer = _$CommentsCapabilitiesSerializer(); -Serializer _$davCapabilitiesDavSerializer = _$DavCapabilities_DavSerializer(); -Serializer _$davCapabilitiesSerializer = _$DavCapabilitiesSerializer(); -Serializer _$filesCapabilitiesFilesDirectEditingSerializer = - _$FilesCapabilities_Files_DirectEditingSerializer(); -Serializer _$filesCapabilitiesFilesSerializer = _$FilesCapabilities_FilesSerializer(); -Serializer _$filesCapabilitiesSerializer = _$FilesCapabilitiesSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingPublicPasswordSerializer = - _$FilesSharingCapabilities_FilesSharing_Public_PasswordSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingPublicExpireDateSerializer = - _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingPublicExpireDateInternalSerializer = - _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternalSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingPublicExpireDateRemoteSerializer = - _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemoteSerializer(); -Serializer _$filesSharingCapabilitiesFilesSharingPublicSerializer = - _$FilesSharingCapabilities_FilesSharing_PublicSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingUserExpireDateSerializer = - _$FilesSharingCapabilities_FilesSharing_User_ExpireDateSerializer(); -Serializer _$filesSharingCapabilitiesFilesSharingUserSerializer = - _$FilesSharingCapabilities_FilesSharing_UserSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingGroupExpireDateSerializer = - _$FilesSharingCapabilities_FilesSharing_Group_ExpireDateSerializer(); -Serializer _$filesSharingCapabilitiesFilesSharingGroupSerializer = - _$FilesSharingCapabilities_FilesSharing_GroupSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingFederationExpireDateSerializer = - _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingFederationExpireDateSupportedSerializer = - _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupportedSerializer(); -Serializer - _$filesSharingCapabilitiesFilesSharingFederationSerializer = - _$FilesSharingCapabilities_FilesSharing_FederationSerializer(); -Serializer _$filesSharingCapabilitiesFilesSharingShareeSerializer = - _$FilesSharingCapabilities_FilesSharing_ShareeSerializer(); -Serializer _$filesSharingCapabilitiesFilesSharingSerializer = - _$FilesSharingCapabilities_FilesSharingSerializer(); -Serializer _$filesSharingCapabilitiesSerializer = _$FilesSharingCapabilitiesSerializer(); -Serializer _$filesTrashbinCapabilitiesFilesSerializer = - _$FilesTrashbinCapabilities_FilesSerializer(); -Serializer _$filesTrashbinCapabilitiesSerializer = _$FilesTrashbinCapabilitiesSerializer(); -Serializer _$filesVersionsCapabilitiesFilesSerializer = - _$FilesVersionsCapabilities_FilesSerializer(); -Serializer _$filesVersionsCapabilitiesSerializer = _$FilesVersionsCapabilitiesSerializer(); -Serializer _$notesCapabilitiesNotesSerializer = _$NotesCapabilities_NotesSerializer(); -Serializer _$notesCapabilitiesSerializer = _$NotesCapabilitiesSerializer(); -Serializer _$notificationsCapabilitiesNotificationsSerializer = - _$NotificationsCapabilities_NotificationsSerializer(); -Serializer _$notificationsCapabilitiesSerializer = _$NotificationsCapabilitiesSerializer(); -Serializer _$provisioningApiCapabilitiesProvisioningApiSerializer = - _$ProvisioningApiCapabilities_ProvisioningApiSerializer(); -Serializer _$provisioningApiCapabilitiesSerializer = - _$ProvisioningApiCapabilitiesSerializer(); -Serializer - _$sharebymailCapabilities0FilesSharingSharebymailUploadFilesDropSerializer = - _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDropSerializer(); -Serializer - _$sharebymailCapabilities0FilesSharingSharebymailPasswordSerializer = - _$SharebymailCapabilities0_FilesSharing_Sharebymail_PasswordSerializer(); -Serializer - _$sharebymailCapabilities0FilesSharingSharebymailExpireDateSerializer = - _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDateSerializer(); -Serializer - _$sharebymailCapabilities0FilesSharingSharebymailSerializer = - _$SharebymailCapabilities0_FilesSharing_SharebymailSerializer(); -Serializer _$sharebymailCapabilities0FilesSharingSerializer = - _$SharebymailCapabilities0_FilesSharingSerializer(); -Serializer _$sharebymailCapabilities0Serializer = _$SharebymailCapabilities0Serializer(); -Serializer - _$spreedPublicCapabilities0SpreedConfigAttachmentsSerializer = - _$SpreedPublicCapabilities0_Spreed_Config_AttachmentsSerializer(); -Serializer _$spreedPublicCapabilities0SpreedConfigCallSerializer = - _$SpreedPublicCapabilities0_Spreed_Config_CallSerializer(); -Serializer _$spreedPublicCapabilities0SpreedConfigChatSerializer = - _$SpreedPublicCapabilities0_Spreed_Config_ChatSerializer(); -Serializer - _$spreedPublicCapabilities0SpreedConfigConversationsSerializer = - _$SpreedPublicCapabilities0_Spreed_Config_ConversationsSerializer(); -Serializer _$spreedPublicCapabilities0SpreedConfigPreviewsSerializer = - _$SpreedPublicCapabilities0_Spreed_Config_PreviewsSerializer(); -Serializer - _$spreedPublicCapabilities0SpreedConfigSignalingSerializer = - _$SpreedPublicCapabilities0_Spreed_Config_SignalingSerializer(); -Serializer _$spreedPublicCapabilities0SpreedConfigSerializer = - _$SpreedPublicCapabilities0_Spreed_ConfigSerializer(); -Serializer _$spreedPublicCapabilities0SpreedSerializer = - _$SpreedPublicCapabilities0_SpreedSerializer(); -Serializer _$spreedPublicCapabilities0Serializer = _$SpreedPublicCapabilities0Serializer(); -Serializer _$themingPublicCapabilitiesThemingSerializer = - _$ThemingPublicCapabilities_ThemingSerializer(); -Serializer _$themingPublicCapabilitiesSerializer = _$ThemingPublicCapabilitiesSerializer(); -Serializer _$userStatusCapabilitiesUserStatusSerializer = - _$UserStatusCapabilities_UserStatusSerializer(); -Serializer _$userStatusCapabilitiesSerializer = _$UserStatusCapabilitiesSerializer(); -Serializer _$weatherStatusCapabilitiesWeatherStatusSerializer = - _$WeatherStatusCapabilities_WeatherStatusSerializer(); -Serializer _$weatherStatusCapabilitiesSerializer = _$WeatherStatusCapabilitiesSerializer(); -Serializer - _$ocsGetCapabilitiesResponseApplicationJsonOcsDataSerializer = - _$OcsGetCapabilitiesResponseApplicationJson_Ocs_DataSerializer(); -Serializer _$ocsGetCapabilitiesResponseApplicationJsonOcsSerializer = - _$OcsGetCapabilitiesResponseApplicationJson_OcsSerializer(); -Serializer _$ocsGetCapabilitiesResponseApplicationJsonSerializer = - _$OcsGetCapabilitiesResponseApplicationJsonSerializer(); -Serializer - _$profileApiSetVisibilityResponseApplicationJsonOcsSerializer = - _$ProfileApiSetVisibilityResponseApplicationJson_OcsSerializer(); -Serializer _$profileApiSetVisibilityResponseApplicationJsonSerializer = - _$ProfileApiSetVisibilityResponseApplicationJsonSerializer(); -Serializer _$referenceSerializer = _$ReferenceSerializer(); -Serializer - _$referenceApiResolveOneResponseApplicationJsonOcsDataSerializer = - _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$referenceApiResolveOneResponseApplicationJsonOcsSerializer = - _$ReferenceApiResolveOneResponseApplicationJson_OcsSerializer(); -Serializer _$referenceApiResolveOneResponseApplicationJsonSerializer = - _$ReferenceApiResolveOneResponseApplicationJsonSerializer(); -Serializer - _$referenceApiResolveResponseApplicationJsonOcsDataSerializer = - _$ReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer(); -Serializer _$referenceApiResolveResponseApplicationJsonOcsSerializer = - _$ReferenceApiResolveResponseApplicationJson_OcsSerializer(); -Serializer _$referenceApiResolveResponseApplicationJsonSerializer = - _$ReferenceApiResolveResponseApplicationJsonSerializer(); -Serializer - _$referenceApiExtractResponseApplicationJsonOcsDataSerializer = - _$ReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer(); -Serializer _$referenceApiExtractResponseApplicationJsonOcsSerializer = - _$ReferenceApiExtractResponseApplicationJson_OcsSerializer(); -Serializer _$referenceApiExtractResponseApplicationJsonSerializer = - _$ReferenceApiExtractResponseApplicationJsonSerializer(); -Serializer _$referenceProviderSerializer = _$ReferenceProviderSerializer(); -Serializer - _$referenceApiGetProvidersInfoResponseApplicationJsonOcsSerializer = - _$ReferenceApiGetProvidersInfoResponseApplicationJson_OcsSerializer(); -Serializer - _$referenceApiGetProvidersInfoResponseApplicationJsonSerializer = - _$ReferenceApiGetProvidersInfoResponseApplicationJsonSerializer(); -Serializer - _$referenceApiTouchProviderResponseApplicationJsonOcsDataSerializer = - _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$referenceApiTouchProviderResponseApplicationJsonOcsSerializer = - _$ReferenceApiTouchProviderResponseApplicationJson_OcsSerializer(); -Serializer - _$referenceApiTouchProviderResponseApplicationJsonSerializer = - _$ReferenceApiTouchProviderResponseApplicationJsonSerializer(); -Serializer - _$textProcessingApiTaskTypesResponseApplicationJsonOcsDataTypesSerializer = - _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesSerializer(); -Serializer - _$textProcessingApiTaskTypesResponseApplicationJsonOcsDataSerializer = - _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textProcessingApiTaskTypesResponseApplicationJsonOcsSerializer = - _$TextProcessingApiTaskTypesResponseApplicationJson_OcsSerializer(); -Serializer - _$textProcessingApiTaskTypesResponseApplicationJsonSerializer = - _$TextProcessingApiTaskTypesResponseApplicationJsonSerializer(); -Serializer _$textProcessingTaskSerializer = _$TextProcessingTaskSerializer(); -Serializer - _$textProcessingApiScheduleResponseApplicationJsonOcsDataSerializer = - _$TextProcessingApiScheduleResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textProcessingApiScheduleResponseApplicationJsonOcsSerializer = - _$TextProcessingApiScheduleResponseApplicationJson_OcsSerializer(); -Serializer - _$textProcessingApiScheduleResponseApplicationJsonSerializer = - _$TextProcessingApiScheduleResponseApplicationJsonSerializer(); -Serializer - _$textProcessingApiGetTaskResponseApplicationJsonOcsDataSerializer = - _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textProcessingApiGetTaskResponseApplicationJsonOcsSerializer = - _$TextProcessingApiGetTaskResponseApplicationJson_OcsSerializer(); -Serializer - _$textProcessingApiGetTaskResponseApplicationJsonSerializer = - _$TextProcessingApiGetTaskResponseApplicationJsonSerializer(); -Serializer - _$textProcessingApiDeleteTaskResponseApplicationJsonOcsDataSerializer = - _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textProcessingApiDeleteTaskResponseApplicationJsonOcsSerializer = - _$TextProcessingApiDeleteTaskResponseApplicationJson_OcsSerializer(); -Serializer - _$textProcessingApiDeleteTaskResponseApplicationJsonSerializer = - _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer(); -Serializer - _$textProcessingApiListTasksByAppResponseApplicationJsonOcsDataSerializer = - _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textProcessingApiListTasksByAppResponseApplicationJsonOcsSerializer = - _$TextProcessingApiListTasksByAppResponseApplicationJson_OcsSerializer(); -Serializer - _$textProcessingApiListTasksByAppResponseApplicationJsonSerializer = - _$TextProcessingApiListTasksByAppResponseApplicationJsonSerializer(); -Serializer - _$textToImageApiIsAvailableResponseApplicationJsonOcsDataSerializer = - _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textToImageApiIsAvailableResponseApplicationJsonOcsSerializer = - _$TextToImageApiIsAvailableResponseApplicationJson_OcsSerializer(); -Serializer - _$textToImageApiIsAvailableResponseApplicationJsonSerializer = - _$TextToImageApiIsAvailableResponseApplicationJsonSerializer(); -Serializer _$textToImageTaskSerializer = _$TextToImageTaskSerializer(); -Serializer - _$textToImageApiScheduleResponseApplicationJsonOcsDataSerializer = - _$TextToImageApiScheduleResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textToImageApiScheduleResponseApplicationJsonOcsSerializer = - _$TextToImageApiScheduleResponseApplicationJson_OcsSerializer(); -Serializer _$textToImageApiScheduleResponseApplicationJsonSerializer = - _$TextToImageApiScheduleResponseApplicationJsonSerializer(); -Serializer - _$textToImageApiGetTaskResponseApplicationJsonOcsDataSerializer = - _$TextToImageApiGetTaskResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textToImageApiGetTaskResponseApplicationJsonOcsSerializer = - _$TextToImageApiGetTaskResponseApplicationJson_OcsSerializer(); -Serializer _$textToImageApiGetTaskResponseApplicationJsonSerializer = - _$TextToImageApiGetTaskResponseApplicationJsonSerializer(); -Serializer - _$textToImageApiDeleteTaskResponseApplicationJsonOcsDataSerializer = - _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textToImageApiDeleteTaskResponseApplicationJsonOcsSerializer = - _$TextToImageApiDeleteTaskResponseApplicationJson_OcsSerializer(); -Serializer - _$textToImageApiDeleteTaskResponseApplicationJsonSerializer = - _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer(); -Serializer - _$textToImageApiListTasksByAppResponseApplicationJsonOcsDataSerializer = - _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$textToImageApiListTasksByAppResponseApplicationJsonOcsSerializer = - _$TextToImageApiListTasksByAppResponseApplicationJson_OcsSerializer(); -Serializer - _$textToImageApiListTasksByAppResponseApplicationJsonSerializer = - _$TextToImageApiListTasksByAppResponseApplicationJsonSerializer(); -Serializer - _$translationApiLanguagesResponseApplicationJsonOcsDataLanguagesSerializer = - _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesSerializer(); -Serializer - _$translationApiLanguagesResponseApplicationJsonOcsDataSerializer = - _$TranslationApiLanguagesResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$translationApiLanguagesResponseApplicationJsonOcsSerializer = - _$TranslationApiLanguagesResponseApplicationJson_OcsSerializer(); -Serializer _$translationApiLanguagesResponseApplicationJsonSerializer = - _$TranslationApiLanguagesResponseApplicationJsonSerializer(); -Serializer - _$translationApiTranslateResponseApplicationJsonOcsDataSerializer = - _$TranslationApiTranslateResponseApplicationJson_Ocs_DataSerializer(); -Serializer - _$translationApiTranslateResponseApplicationJsonOcsSerializer = - _$TranslationApiTranslateResponseApplicationJson_OcsSerializer(); -Serializer _$translationApiTranslateResponseApplicationJsonSerializer = - _$TranslationApiTranslateResponseApplicationJsonSerializer(); -Serializer _$unifiedSearchProviderSerializer = _$UnifiedSearchProviderSerializer(); -Serializer - _$unifiedSearchGetProvidersResponseApplicationJsonOcsSerializer = - _$UnifiedSearchGetProvidersResponseApplicationJson_OcsSerializer(); -Serializer - _$unifiedSearchGetProvidersResponseApplicationJsonSerializer = - _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer(); -Serializer _$unifiedSearchResultEntrySerializer = _$UnifiedSearchResultEntrySerializer(); -Serializer _$unifiedSearchResultSerializer = _$UnifiedSearchResultSerializer(); -Serializer _$unifiedSearchSearchResponseApplicationJsonOcsSerializer = - _$UnifiedSearchSearchResponseApplicationJson_OcsSerializer(); -Serializer _$unifiedSearchSearchResponseApplicationJsonSerializer = - _$UnifiedSearchSearchResponseApplicationJsonSerializer(); -Serializer - _$whatsNewGetResponseApplicationJsonOcsDataWhatsNewSerializer = - _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewSerializer(); -Serializer _$whatsNewGetResponseApplicationJsonOcsDataSerializer = - _$WhatsNewGetResponseApplicationJson_Ocs_DataSerializer(); -Serializer _$whatsNewGetResponseApplicationJsonOcsSerializer = - _$WhatsNewGetResponseApplicationJson_OcsSerializer(); -Serializer _$whatsNewGetResponseApplicationJsonSerializer = - _$WhatsNewGetResponseApplicationJsonSerializer(); -Serializer _$whatsNewDismissResponseApplicationJsonOcsSerializer = - _$WhatsNewDismissResponseApplicationJson_OcsSerializer(); -Serializer _$whatsNewDismissResponseApplicationJsonSerializer = - _$WhatsNewDismissResponseApplicationJsonSerializer(); -Serializer _$wipeCheckWipeResponseApplicationJsonSerializer = - _$WipeCheckWipeResponseApplicationJsonSerializer(); - -class _$StatusSerializer implements StructuredSerializer { - @override - final Iterable types = const [Status, _$Status]; - @override - final String wireName = 'Status'; - - @override - Iterable serialize(Serializers serializers, Status 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', - serializers.serialize(object.productname, specifiedType: const FullType(String)), - 'extendedSupport', - serializers.serialize(object.extendedSupport, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - Status deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = StatusBuilder(); - - 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 _$OCSMetaSerializer implements StructuredSerializer { - @override - final Iterable types = const [OCSMeta, _$OCSMeta]; - @override - final String wireName = 'OCSMeta'; - - @override - Iterable serialize(Serializers serializers, OCSMeta object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'status', - 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 - OCSMeta deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OCSMetaBuilder(); - - 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 _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data, - _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'apppassword', - serializers.serialize(object.apppassword, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordGetAppPasswordResponseApplicationJson_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 'apppassword': - result.apppassword = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordGetAppPasswordResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordGetAppPasswordResponseApplicationJson_Ocs, - _$AppPasswordGetAppPasswordResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'AppPasswordGetAppPasswordResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, AppPasswordGetAppPasswordResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - AppPasswordGetAppPasswordResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordGetAppPasswordResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data))! - as AppPasswordGetAppPasswordResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordGetAppPasswordResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordGetAppPasswordResponseApplicationJson, - _$AppPasswordGetAppPasswordResponseApplicationJson - ]; - @override - final String wireName = 'AppPasswordGetAppPasswordResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AppPasswordGetAppPasswordResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - AppPasswordGetAppPasswordResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordGetAppPasswordResponseApplicationJsonBuilder(); - - 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(AppPasswordGetAppPasswordResponseApplicationJson_Ocs))! - as AppPasswordGetAppPasswordResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data, - _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize( - Serializers serializers, AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'apppassword', - serializers.serialize(object.apppassword, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordRotateAppPasswordResponseApplicationJson_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 'apppassword': - result.apppassword = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordRotateAppPasswordResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordRotateAppPasswordResponseApplicationJson_Ocs, - _$AppPasswordRotateAppPasswordResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'AppPasswordRotateAppPasswordResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, AppPasswordRotateAppPasswordResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - AppPasswordRotateAppPasswordResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordRotateAppPasswordResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data))! - as AppPasswordRotateAppPasswordResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordRotateAppPasswordResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordRotateAppPasswordResponseApplicationJson, - _$AppPasswordRotateAppPasswordResponseApplicationJson - ]; - @override - final String wireName = 'AppPasswordRotateAppPasswordResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AppPasswordRotateAppPasswordResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - AppPasswordRotateAppPasswordResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordRotateAppPasswordResponseApplicationJsonBuilder(); - - 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(AppPasswordRotateAppPasswordResponseApplicationJson_Ocs))! - as AppPasswordRotateAppPasswordResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordDeleteAppPasswordResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs, - _$AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), - ]; - - return result; - } - - @override - AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordDeleteAppPasswordResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; - break; - } - } - - return result.build(); - } -} - -class _$AppPasswordDeleteAppPasswordResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AppPasswordDeleteAppPasswordResponseApplicationJson, - _$AppPasswordDeleteAppPasswordResponseApplicationJson - ]; - @override - final String wireName = 'AppPasswordDeleteAppPasswordResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AppPasswordDeleteAppPasswordResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - AppPasswordDeleteAppPasswordResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppPasswordDeleteAppPasswordResponseApplicationJsonBuilder(); - - 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(AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs))! - as AppPasswordDeleteAppPasswordResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$AutocompleteResult_Status0Serializer implements StructuredSerializer { - @override - final Iterable types = const [AutocompleteResult_Status0, _$AutocompleteResult_Status0]; - @override - final String wireName = 'AutocompleteResult_Status0'; - - @override - Iterable serialize(Serializers serializers, AutocompleteResult_Status0 object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'status', - serializers.serialize(object.status, specifiedType: const FullType(String)), - ]; - 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(int))); - } - return result; - } - - @override - AutocompleteResult_Status0 deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AutocompleteResult_Status0Builder(); - - 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 '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 = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - -class _$AutocompleteResultSerializer implements StructuredSerializer { - @override - final Iterable types = const [AutocompleteResult, _$AutocompleteResult]; - @override - final String wireName = 'AutocompleteResult'; - - @override - Iterable serialize(Serializers serializers, AutocompleteResult 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(AutocompleteResult_Status)), - 'subline', - serializers.serialize(object.subline, specifiedType: const FullType(String)), - 'shareWithDisplayNameUnique', - serializers.serialize(object.shareWithDisplayNameUnique, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - AutocompleteResult deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AutocompleteResultBuilder(); - - 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(AutocompleteResult_Status))! as AutocompleteResult_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 _$AutoCompleteGetResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AutoCompleteGetResponseApplicationJson_Ocs, - _$AutoCompleteGetResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'AutoCompleteGetResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, AutoCompleteGetResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(AutocompleteResult)])), - ]; - - return result; - } - - @override - AutoCompleteGetResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AutoCompleteGetResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(AutocompleteResult)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$AutoCompleteGetResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [AutoCompleteGetResponseApplicationJson, _$AutoCompleteGetResponseApplicationJson]; - @override - final String wireName = 'AutoCompleteGetResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AutoCompleteGetResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(AutoCompleteGetResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - AutoCompleteGetResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AutoCompleteGetResponseApplicationJsonBuilder(); - - 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(AutoCompleteGetResponseApplicationJson_Ocs))! - as AutoCompleteGetResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$LoginFlowV2CredentialsSerializer implements StructuredSerializer { - @override - final Iterable types = const [LoginFlowV2Credentials, _$LoginFlowV2Credentials]; - @override - final String wireName = 'LoginFlowV2Credentials'; - - @override - Iterable serialize(Serializers serializers, LoginFlowV2Credentials 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 - LoginFlowV2Credentials deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = LoginFlowV2CredentialsBuilder(); - - 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 _$LoginFlowV2_PollSerializer implements StructuredSerializer { - @override - final Iterable types = const [LoginFlowV2_Poll, _$LoginFlowV2_Poll]; - @override - final String wireName = 'LoginFlowV2_Poll'; - - @override - Iterable serialize(Serializers serializers, LoginFlowV2_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 - LoginFlowV2_Poll deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = LoginFlowV2_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 _$LoginFlowV2Serializer implements StructuredSerializer { - @override - final Iterable types = const [LoginFlowV2, _$LoginFlowV2]; - @override - final String wireName = 'LoginFlowV2'; - - @override - Iterable serialize(Serializers serializers, LoginFlowV2 object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'poll', - serializers.serialize(object.poll, specifiedType: const FullType(LoginFlowV2_Poll)), - 'login', - serializers.serialize(object.login, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - LoginFlowV2 deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = LoginFlowV2Builder(); - - 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(LoginFlowV2_Poll))! as LoginFlowV2_Poll); - break; - case 'login': - result.login = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$OpenGraphObjectSerializer implements StructuredSerializer { - @override - final Iterable types = const [OpenGraphObject, _$OpenGraphObject]; - @override - final String wireName = 'OpenGraphObject'; - - @override - Iterable serialize(Serializers serializers, OpenGraphObject object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'link', - serializers.serialize(object.link, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.description; - if (value != null) { - result - ..add('description') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.thumb; - if (value != null) { - result - ..add('thumb') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - OpenGraphObject deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OpenGraphObjectBuilder(); - - 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 'name': - result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'description': - result.description = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'thumb': - result.thumb = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'link': - result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$ResourceSerializer implements StructuredSerializer { - @override - final Iterable types = const [Resource, _$Resource]; - @override - final String wireName = 'Resource'; - - @override - Iterable serialize(Serializers serializers, Resource object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'richObjectType', - serializers.serialize(object.richObjectType, specifiedType: const FullType(String)), - 'richObject', - serializers.serialize(object.richObject, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)])), - 'openGraphObject', - serializers.serialize(object.openGraphObject, specifiedType: const FullType(OpenGraphObject)), - 'accessible', - serializers.serialize(object.accessible, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - Resource deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ResourceBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'richObjectType': - result.richObjectType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'richObject': - result.richObject.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]))!); - break; - case 'openGraphObject': - result.openGraphObject.replace( - serializers.deserialize(value, specifiedType: const FullType(OpenGraphObject))! as OpenGraphObject); - break; - case 'accessible': - result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$CollectionSerializer implements StructuredSerializer { - @override - final Iterable types = const [Collection, _$Collection]; - @override - final String wireName = 'Collection'; - - @override - Iterable serialize(Serializers serializers, Collection 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)), - 'resources', - serializers.serialize(object.resources, specifiedType: const FullType(BuiltList, [FullType(Resource)])), - ]; - - return result; - } - - @override - Collection deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollectionBuilder(); - - 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 'resources': - result.resources.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(Resource)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs, - _$CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(Collection)])), - ]; - - return result; - } - - @override - CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesSearchCollectionsResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(Collection)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesSearchCollectionsResponseApplicationJson, - _$CollaborationResourcesSearchCollectionsResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesSearchCollectionsResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesSearchCollectionsResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesSearchCollectionsResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesSearchCollectionsResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs))! - as CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesListCollectionResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesListCollectionResponseApplicationJson_Ocs, - _$CollaborationResourcesListCollectionResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesListCollectionResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesListCollectionResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(Collection)), - ]; - - return result; - } - - @override - CollaborationResourcesListCollectionResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesListCollectionResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesListCollectionResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesListCollectionResponseApplicationJson, - _$CollaborationResourcesListCollectionResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesListCollectionResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesListCollectionResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesListCollectionResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesListCollectionResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesListCollectionResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesListCollectionResponseApplicationJson_Ocs))! - as CollaborationResourcesListCollectionResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesRenameCollectionResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs, - _$CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(Collection)), - ]; - - return result; - } - - @override - CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRenameCollectionResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesRenameCollectionResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesRenameCollectionResponseApplicationJson, - _$CollaborationResourcesRenameCollectionResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesRenameCollectionResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesRenameCollectionResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesRenameCollectionResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRenameCollectionResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs))! - as CollaborationResourcesRenameCollectionResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesAddResourceResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesAddResourceResponseApplicationJson_Ocs, - _$CollaborationResourcesAddResourceResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesAddResourceResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesAddResourceResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(Collection)), - ]; - - return result; - } - - @override - CollaborationResourcesAddResourceResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesAddResourceResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesAddResourceResponseApplicationJson, - _$CollaborationResourcesAddResourceResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesAddResourceResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, CollaborationResourcesAddResourceResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesAddResourceResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesAddResourceResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesAddResourceResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesAddResourceResponseApplicationJson_Ocs))! - as CollaborationResourcesAddResourceResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs, - _$CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(Collection)), - ]; - - return result; - } - - @override - CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRemoveResourceResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesRemoveResourceResponseApplicationJson, - _$CollaborationResourcesRemoveResourceResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesRemoveResourceResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesRemoveResourceResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesRemoveResourceResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRemoveResourceResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs))! - as CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs, - _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(Collection)])), - ]; - - return result; - } - - @override - CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(Collection)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesGetCollectionsByResourceResponseApplicationJson, - _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesGetCollectionsByResourceResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesGetCollectionsByResourceResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesGetCollectionsByResourceResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesGetCollectionsByResourceResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs))! - as CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs, - _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(Collection)), - ]; - - return result; - } - - @override - CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson, - _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonBuilder(); - - 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(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs))! - as CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ContactsActionSerializer implements StructuredSerializer { - @override - final Iterable types = const [ContactsAction, _$ContactsAction]; - @override - final String wireName = 'ContactsAction'; - - @override - Iterable serialize(Serializers serializers, ContactsAction object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'title', - serializers.serialize(object.title, specifiedType: const FullType(String)), - 'icon', - serializers.serialize(object.icon, specifiedType: const FullType(String)), - 'hyperlink', - serializers.serialize(object.hyperlink, specifiedType: const FullType(String)), - 'appId', - serializers.serialize(object.appId, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - ContactsAction deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ContactsActionBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'title': - result.title = 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 'hyperlink': - result.hyperlink = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'appId': - result.appId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$HoverCardGetUserResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - HoverCardGetUserResponseApplicationJson_Ocs_Data, - _$HoverCardGetUserResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'HoverCardGetUserResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, HoverCardGetUserResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'userId', - serializers.serialize(object.userId, specifiedType: const FullType(String)), - 'displayName', - serializers.serialize(object.displayName, specifiedType: const FullType(String)), - 'actions', - serializers.serialize(object.actions, specifiedType: const FullType(BuiltList, [FullType(ContactsAction)])), - ]; - - return result; - } - - @override - HoverCardGetUserResponseApplicationJson_Ocs_Data deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = HoverCardGetUserResponseApplicationJson_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 'userId': - result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'displayName': - result.displayName = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'actions': - result.actions.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(ContactsAction)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$HoverCardGetUserResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - HoverCardGetUserResponseApplicationJson_Ocs, - _$HoverCardGetUserResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'HoverCardGetUserResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, HoverCardGetUserResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - HoverCardGetUserResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = HoverCardGetUserResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs_Data))! - as HoverCardGetUserResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$HoverCardGetUserResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - HoverCardGetUserResponseApplicationJson, - _$HoverCardGetUserResponseApplicationJson - ]; - @override - final String wireName = 'HoverCardGetUserResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, HoverCardGetUserResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(HoverCardGetUserResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - HoverCardGetUserResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = HoverCardGetUserResponseApplicationJsonBuilder(); - - 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(HoverCardGetUserResponseApplicationJson_Ocs))! - as HoverCardGetUserResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$NavigationEntrySerializer implements StructuredSerializer { - @override - final Iterable types = const [NavigationEntry, _$NavigationEntry]; - @override - final String wireName = 'NavigationEntry'; - - @override - Iterable serialize(Serializers serializers, NavigationEntry object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'order', - serializers.serialize(object.order, specifiedType: const FullType(NavigationEntry_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 - NavigationEntry deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationEntryBuilder(); - - 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(NavigationEntry_Order))! - as NavigationEntry_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 _$NavigationGetAppsNavigationResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NavigationGetAppsNavigationResponseApplicationJson_Ocs, - _$NavigationGetAppsNavigationResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'NavigationGetAppsNavigationResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, NavigationGetAppsNavigationResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)])), - ]; - - return result; - } - - @override - NavigationGetAppsNavigationResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationGetAppsNavigationResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$NavigationGetAppsNavigationResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NavigationGetAppsNavigationResponseApplicationJson, - _$NavigationGetAppsNavigationResponseApplicationJson - ]; - @override - final String wireName = 'NavigationGetAppsNavigationResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, NavigationGetAppsNavigationResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(NavigationGetAppsNavigationResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - NavigationGetAppsNavigationResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationGetAppsNavigationResponseApplicationJsonBuilder(); - - 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(NavigationGetAppsNavigationResponseApplicationJson_Ocs))! - as NavigationGetAppsNavigationResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NavigationGetSettingsNavigationResponseApplicationJson_Ocs, - _$NavigationGetSettingsNavigationResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'NavigationGetSettingsNavigationResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, NavigationGetSettingsNavigationResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)])), - ]; - - return result; - } - - @override - NavigationGetSettingsNavigationResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationGetSettingsNavigationResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(NavigationEntry)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$NavigationGetSettingsNavigationResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NavigationGetSettingsNavigationResponseApplicationJson, - _$NavigationGetSettingsNavigationResponseApplicationJson - ]; - @override - final String wireName = 'NavigationGetSettingsNavigationResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, NavigationGetSettingsNavigationResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(NavigationGetSettingsNavigationResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - NavigationGetSettingsNavigationResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationGetSettingsNavigationResponseApplicationJsonBuilder(); - - 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(NavigationGetSettingsNavigationResponseApplicationJson_Ocs))! - as NavigationGetSettingsNavigationResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$OcmDiscoveryResponseApplicationJson_ResourceTypes_ProtocolsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols, - _$OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols - ]; - @override - final String wireName = 'OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols'; - - @override - Iterable serialize( - Serializers serializers, OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'webdav', - serializers.serialize(object.webdav, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcmDiscoveryResponseApplicationJson_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 _$OcmDiscoveryResponseApplicationJson_ResourceTypesSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - OcmDiscoveryResponseApplicationJson_ResourceTypes, - _$OcmDiscoveryResponseApplicationJson_ResourceTypes - ]; - @override - final String wireName = 'OcmDiscoveryResponseApplicationJson_ResourceTypes'; - - @override - Iterable serialize(Serializers serializers, OcmDiscoveryResponseApplicationJson_ResourceTypes object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'shareTypes', - serializers.serialize(object.shareTypes, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'protocols', - serializers.serialize(object.protocols, - specifiedType: const FullType(OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols)), - ]; - - return result; - } - - @override - OcmDiscoveryResponseApplicationJson_ResourceTypes deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcmDiscoveryResponseApplicationJson_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(OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols))! - as OcmDiscoveryResponseApplicationJson_ResourceTypes_Protocols); - break; - } - } - - return result.build(); - } -} - -class _$OcmDiscoveryResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [OcmDiscoveryResponseApplicationJson, _$OcmDiscoveryResponseApplicationJson]; - @override - final String wireName = 'OcmDiscoveryResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, OcmDiscoveryResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - 'apiVersion', - serializers.serialize(object.apiVersion, specifiedType: const FullType(String)), - 'endPoint', - serializers.serialize(object.endPoint, specifiedType: const FullType(String)), - 'resourceTypes', - serializers.serialize(object.resourceTypes, - specifiedType: const FullType(BuiltList, [FullType(OcmDiscoveryResponseApplicationJson_ResourceTypes)])), - ]; - - return result; - } - - @override - OcmDiscoveryResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcmDiscoveryResponseApplicationJsonBuilder(); - - 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(OcmDiscoveryResponseApplicationJson_ResourceTypes)]))! - as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_VersionSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version, - _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version - ]; - @override - final String wireName = 'OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version'; - - @override - Iterable serialize( - Serializers serializers, OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'major', - serializers.serialize(object.major, specifiedType: const FullType(int)), - 'minor', - serializers.serialize(object.minor, specifiedType: const FullType(int)), - 'micro', - serializers.serialize(object.micro, specifiedType: const FullType(int)), - 'string', - serializers.serialize(object.string, specifiedType: const FullType(String)), - 'edition', - serializers.serialize(object.edition, specifiedType: const FullType(String)), - 'extendedSupport', - serializers.serialize(object.extendedSupport, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcsGetCapabilitiesResponseApplicationJson_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 _$CommentsCapabilities_FilesSerializer implements StructuredSerializer { - @override - final Iterable types = const [CommentsCapabilities_Files, _$CommentsCapabilities_Files]; - @override - final String wireName = 'CommentsCapabilities_Files'; - - @override - Iterable serialize(Serializers serializers, CommentsCapabilities_Files object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'comments', - serializers.serialize(object.comments, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - CommentsCapabilities_Files deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CommentsCapabilities_FilesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'comments': - result.comments = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$CommentsCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [CommentsCapabilities, _$CommentsCapabilities]; - @override - final String wireName = 'CommentsCapabilities'; - - @override - Iterable serialize(Serializers serializers, CommentsCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files', - serializers.serialize(object.files, specifiedType: const FullType(CommentsCapabilities_Files)), - ]; - - return result; - } - - @override - CommentsCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CommentsCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files': - result.files.replace(serializers.deserialize(value, - specifiedType: const FullType(CommentsCapabilities_Files))! as CommentsCapabilities_Files); - break; - } - } - - return result.build(); - } -} - -class _$DavCapabilities_DavSerializer implements StructuredSerializer { - @override - final Iterable types = const [DavCapabilities_Dav, _$DavCapabilities_Dav]; - @override - final String wireName = 'DavCapabilities_Dav'; - - @override - Iterable serialize(Serializers serializers, DavCapabilities_Dav object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'chunking', - serializers.serialize(object.chunking, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.bulkupload; - if (value != null) { - result - ..add('bulkupload') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - DavCapabilities_Dav deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DavCapabilities_DavBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'chunking': - result.chunking = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'bulkupload': - result.bulkupload = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$DavCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [DavCapabilities, _$DavCapabilities]; - @override - final String wireName = 'DavCapabilities'; - - @override - Iterable serialize(Serializers serializers, DavCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'dav', - serializers.serialize(object.dav, specifiedType: const FullType(DavCapabilities_Dav)), - ]; - - return result; - } - - @override - DavCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DavCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'dav': - result.dav.replace(serializers.deserialize(value, specifiedType: const FullType(DavCapabilities_Dav))! - as DavCapabilities_Dav); - break; - } - } - - return result.build(); - } -} - -class _$FilesCapabilities_Files_DirectEditingSerializer - implements StructuredSerializer { - @override - final Iterable types = const [FilesCapabilities_Files_DirectEditing, _$FilesCapabilities_Files_DirectEditing]; - @override - final String wireName = 'FilesCapabilities_Files_DirectEditing'; - - @override - Iterable serialize(Serializers serializers, FilesCapabilities_Files_DirectEditing object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'url', - serializers.serialize(object.url, specifiedType: const FullType(String)), - 'etag', - serializers.serialize(object.etag, specifiedType: const FullType(String)), - 'supportsFileId', - serializers.serialize(object.supportsFileId, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesCapabilities_Files_DirectEditing deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesCapabilities_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; - case 'supportsFileId': - result.supportsFileId = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$FilesCapabilities_FilesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesCapabilities_Files, _$FilesCapabilities_Files]; - @override - final String wireName = 'FilesCapabilities_Files'; - - @override - Iterable serialize(Serializers serializers, FilesCapabilities_Files object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'bigfilechunking', - serializers.serialize(object.bigfilechunking, specifiedType: const FullType(bool)), - 'blacklisted_files', - serializers.serialize(object.blacklistedFiles, specifiedType: const FullType(BuiltList, [FullType(JsonObject)])), - 'directEditing', - serializers.serialize(object.directEditing, specifiedType: const FullType(FilesCapabilities_Files_DirectEditing)), - ]; - - return result; - } - - @override - FilesCapabilities_Files deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesCapabilities_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(JsonObject)]))! as BuiltList); - break; - case 'directEditing': - result.directEditing.replace( - serializers.deserialize(value, specifiedType: const FullType(FilesCapabilities_Files_DirectEditing))! - as FilesCapabilities_Files_DirectEditing); - break; - } - } - - return result.build(); - } -} - -class _$FilesCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesCapabilities, _$FilesCapabilities]; - @override - final String wireName = 'FilesCapabilities'; - - @override - Iterable serialize(Serializers serializers, FilesCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files', - serializers.serialize(object.files, specifiedType: const FullType(FilesCapabilities_Files)), - ]; - - return result; - } - - @override - FilesCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files': - result.files.replace(serializers.deserialize(value, specifiedType: const FullType(FilesCapabilities_Files))! - as FilesCapabilities_Files); - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_Public_PasswordSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Public_Password, - _$FilesSharingCapabilities_FilesSharing_Public_Password - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Public_Password'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Public_Password object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enforced', - serializers.serialize(object.enforced, specifiedType: const FullType(bool)), - 'askForOptionalPassword', - serializers.serialize(object.askForOptionalPassword, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Public_Password deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Public_ExpireDate, - _$FilesSharingCapabilities_FilesSharing_Public_ExpireDate - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Public_ExpireDate'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Public_ExpireDate object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.days; - if (value != null) { - result - ..add('days') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.enforced; - if (value != null) { - result - ..add('enforced') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Public_ExpireDate deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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; - case 'days': - result.days = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'enforced': - result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternalSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal, - _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal'; - - @override - Iterable serialize( - Serializers serializers, FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.days; - if (value != null) { - result - ..add('days') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.enforced; - if (value != null) { - result - ..add('enforced') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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; - case 'days': - result.days = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'enforced': - result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemoteSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote, - _$FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote'; - - @override - Iterable serialize( - Serializers serializers, FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.days; - if (value != null) { - result - ..add('days') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.enforced; - if (value != null) { - result - ..add('enforced') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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; - case 'days': - result.days = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'enforced': - result.enforced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_PublicSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Public, - _$FilesSharingCapabilities_FilesSharing_Public - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Public'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Public object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.password; - if (value != null) { - result - ..add('password') - ..add(serializers.serialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_Password))); - } - value = object.multipleLinks; - if (value != null) { - result - ..add('multiple_links') - ..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(FilesSharingCapabilities_FilesSharing_Public_ExpireDate))); - } - value = object.expireDateInternal; - if (value != null) { - result - ..add('expire_date_internal') - ..add(serializers.serialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal))); - } - value = object.expireDateRemote; - if (value != null) { - result - ..add('expire_date_remote') - ..add(serializers.serialize(value, - specifiedType: const FullType(FilesSharingCapabilities_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 - FilesSharingCapabilities_FilesSharing_Public deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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(FilesSharingCapabilities_FilesSharing_Public_Password))! - as FilesSharingCapabilities_FilesSharing_Public_Password); - break; - case 'multiple_links': - result.multipleLinks = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - case 'expire_date': - result.expireDate.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDate))! - as FilesSharingCapabilities_FilesSharing_Public_ExpireDate); - break; - case 'expire_date_internal': - result.expireDateInternal.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal))! - as FilesSharingCapabilities_FilesSharing_Public_ExpireDateInternal); - break; - case 'expire_date_remote': - result.expireDateRemote.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public_ExpireDateRemote))! - as FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharing_User_ExpireDateSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_User_ExpireDate, - _$FilesSharingCapabilities_FilesSharing_User_ExpireDate - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_User_ExpireDate'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_User_ExpireDate object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_User_ExpireDate deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharing_UserSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_User, - _$FilesSharingCapabilities_FilesSharing_User - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_User'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_User object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'send_mail', - serializers.serialize(object.sendMail, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.expireDate; - if (value != null) { - result - ..add('expire_date') - ..add(serializers.serialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User_ExpireDate))); - } - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_User deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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(FilesSharingCapabilities_FilesSharing_User_ExpireDate))! - as FilesSharingCapabilities_FilesSharing_User_ExpireDate); - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_Group_ExpireDateSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Group_ExpireDate, - _$FilesSharingCapabilities_FilesSharing_Group_ExpireDate - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Group_ExpireDate'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Group_ExpireDate object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Group_ExpireDate deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharing_GroupSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Group, - _$FilesSharingCapabilities_FilesSharing_Group - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Group'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Group object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.expireDate; - if (value != null) { - result - ..add('expire_date') - ..add(serializers.serialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Group_ExpireDate))); - } - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Group deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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(FilesSharingCapabilities_FilesSharing_Group_ExpireDate))! - as FilesSharingCapabilities_FilesSharing_Group_ExpireDate); - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Federation_ExpireDate, - _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDate - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Federation_ExpireDate'; - - @override - Iterable serialize( - Serializers serializers, FilesSharingCapabilities_FilesSharing_Federation_ExpireDate object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Federation_ExpireDate deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupportedSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported, - _$FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported'; - - @override - Iterable serialize( - Serializers serializers, FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharing_FederationSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Federation, - _$FilesSharingCapabilities_FilesSharing_Federation - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Federation'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Federation object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'outgoing', - serializers.serialize(object.outgoing, specifiedType: const FullType(bool)), - 'incoming', - serializers.serialize(object.incoming, specifiedType: const FullType(bool)), - 'expire_date', - serializers.serialize(object.expireDate, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDate)), - 'expire_date_supported', - serializers.serialize(object.expireDateSupported, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Federation deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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(FilesSharingCapabilities_FilesSharing_Federation_ExpireDate))! - as FilesSharingCapabilities_FilesSharing_Federation_ExpireDate); - break; - case 'expire_date_supported': - result.expireDateSupported.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported))! - as FilesSharingCapabilities_FilesSharing_Federation_ExpireDateSupported); - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilities_FilesSharing_ShareeSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - FilesSharingCapabilities_FilesSharing_Sharee, - _$FilesSharingCapabilities_FilesSharing_Sharee - ]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing_Sharee'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing_Sharee object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'query_lookup_default', - serializers.serialize(object.queryLookupDefault, specifiedType: const FullType(bool)), - 'always_show_unique', - serializers.serialize(object.alwaysShowUnique, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesSharingCapabilities_FilesSharing_Sharee deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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 _$FilesSharingCapabilities_FilesSharingSerializer - implements StructuredSerializer { - @override - final Iterable types = const [FilesSharingCapabilities_FilesSharing, _$FilesSharingCapabilities_FilesSharing]; - @override - final String wireName = 'FilesSharingCapabilities_FilesSharing'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities_FilesSharing object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'api_enabled', - serializers.serialize(object.apiEnabled, specifiedType: const FullType(bool)), - 'public', - serializers.serialize(object.public, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Public)), - 'user', - serializers.serialize(object.user, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User)), - 'resharing', - serializers.serialize(object.resharing, specifiedType: const FullType(bool)), - 'federation', - serializers.serialize(object.federation, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Federation)), - 'sharee', - serializers.serialize(object.sharee, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Sharee)), - ]; - Object? value; - 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(FilesSharingCapabilities_FilesSharing_Group))); - } - value = object.defaultPermissions; - if (value != null) { - result - ..add('default_permissions') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - FilesSharingCapabilities_FilesSharing deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilities_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(FilesSharingCapabilities_FilesSharing_Public))! - as FilesSharingCapabilities_FilesSharing_Public); - break; - case 'user': - result.user.replace( - serializers.deserialize(value, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_User))! - as FilesSharingCapabilities_FilesSharing_User); - break; - case 'resharing': - result.resharing = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - 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(FilesSharingCapabilities_FilesSharing_Group))! - as FilesSharingCapabilities_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(FilesSharingCapabilities_FilesSharing_Federation))! - as FilesSharingCapabilities_FilesSharing_Federation); - break; - case 'sharee': - result.sharee.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesSharingCapabilities_FilesSharing_Sharee))! - as FilesSharingCapabilities_FilesSharing_Sharee); - break; - } - } - - return result.build(); - } -} - -class _$FilesSharingCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesSharingCapabilities, _$FilesSharingCapabilities]; - @override - final String wireName = 'FilesSharingCapabilities'; - - @override - Iterable serialize(Serializers serializers, FilesSharingCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files_sharing', - serializers.serialize(object.filesSharing, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing)), - ]; - - return result; - } - - @override - FilesSharingCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesSharingCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files_sharing': - result.filesSharing.replace( - serializers.deserialize(value, specifiedType: const FullType(FilesSharingCapabilities_FilesSharing))! - as FilesSharingCapabilities_FilesSharing); - break; - } - } - - return result.build(); - } -} - -class _$FilesTrashbinCapabilities_FilesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesTrashbinCapabilities_Files, _$FilesTrashbinCapabilities_Files]; - @override - final String wireName = 'FilesTrashbinCapabilities_Files'; - - @override - Iterable serialize(Serializers serializers, FilesTrashbinCapabilities_Files object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'undelete', - serializers.serialize(object.undelete, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesTrashbinCapabilities_Files deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesTrashbinCapabilities_FilesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'undelete': - result.undelete = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$FilesTrashbinCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesTrashbinCapabilities, _$FilesTrashbinCapabilities]; - @override - final String wireName = 'FilesTrashbinCapabilities'; - - @override - Iterable serialize(Serializers serializers, FilesTrashbinCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files', - serializers.serialize(object.files, specifiedType: const FullType(FilesTrashbinCapabilities_Files)), - ]; - - return result; - } - - @override - FilesTrashbinCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesTrashbinCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files': - result.files.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesTrashbinCapabilities_Files))! as FilesTrashbinCapabilities_Files); - break; - } - } - - return result.build(); - } -} - -class _$FilesVersionsCapabilities_FilesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesVersionsCapabilities_Files, _$FilesVersionsCapabilities_Files]; - @override - final String wireName = 'FilesVersionsCapabilities_Files'; - - @override - Iterable serialize(Serializers serializers, FilesVersionsCapabilities_Files object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'versioning', - serializers.serialize(object.versioning, specifiedType: const FullType(bool)), - 'version_labeling', - serializers.serialize(object.versionLabeling, specifiedType: const FullType(bool)), - 'version_deletion', - serializers.serialize(object.versionDeletion, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - FilesVersionsCapabilities_Files deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesVersionsCapabilities_FilesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'versioning': - result.versioning = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'version_labeling': - result.versionLabeling = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'version_deletion': - result.versionDeletion = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$FilesVersionsCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [FilesVersionsCapabilities, _$FilesVersionsCapabilities]; - @override - final String wireName = 'FilesVersionsCapabilities'; - - @override - Iterable serialize(Serializers serializers, FilesVersionsCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files', - serializers.serialize(object.files, specifiedType: const FullType(FilesVersionsCapabilities_Files)), - ]; - - return result; - } - - @override - FilesVersionsCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = FilesVersionsCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files': - result.files.replace(serializers.deserialize(value, - specifiedType: const FullType(FilesVersionsCapabilities_Files))! as FilesVersionsCapabilities_Files); - break; - } - } - - return result.build(); - } -} - -class _$NotesCapabilities_NotesSerializer implements StructuredSerializer { - @override - final Iterable types = const [NotesCapabilities_Notes, _$NotesCapabilities_Notes]; - @override - final String wireName = 'NotesCapabilities_Notes'; - - @override - Iterable serialize(Serializers serializers, NotesCapabilities_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 - NotesCapabilities_Notes deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NotesCapabilities_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 _$NotesCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [NotesCapabilities, _$NotesCapabilities]; - @override - final String wireName = 'NotesCapabilities'; - - @override - Iterable serialize(Serializers serializers, NotesCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'notes', - serializers.serialize(object.notes, specifiedType: const FullType(NotesCapabilities_Notes)), - ]; - - return result; - } - - @override - NotesCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NotesCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'notes': - result.notes.replace(serializers.deserialize(value, specifiedType: const FullType(NotesCapabilities_Notes))! - as NotesCapabilities_Notes); - break; - } - } - - return result.build(); - } -} - -class _$NotificationsCapabilities_NotificationsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NotificationsCapabilities_Notifications, - _$NotificationsCapabilities_Notifications - ]; - @override - final String wireName = 'NotificationsCapabilities_Notifications'; - - @override - Iterable serialize(Serializers serializers, NotificationsCapabilities_Notifications object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs-endpoints', - serializers.serialize(object.ocsEndpoints, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'push', - serializers.serialize(object.push, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'admin-notifications', - serializers.serialize(object.adminNotifications, specifiedType: const FullType(BuiltList, [FullType(String)])), - ]; - - return result; - } - - @override - NotificationsCapabilities_Notifications deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NotificationsCapabilities_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 _$NotificationsCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [NotificationsCapabilities, _$NotificationsCapabilities]; - @override - final String wireName = 'NotificationsCapabilities'; - - @override - Iterable serialize(Serializers serializers, NotificationsCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'notifications', - serializers.serialize(object.notifications, - specifiedType: const FullType(NotificationsCapabilities_Notifications)), - ]; - - return result; - } - - @override - NotificationsCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NotificationsCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'notifications': - result.notifications.replace( - serializers.deserialize(value, specifiedType: const FullType(NotificationsCapabilities_Notifications))! - as NotificationsCapabilities_Notifications); - break; - } - } - - return result.build(); - } -} - -class _$ProvisioningApiCapabilities_ProvisioningApiSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ProvisioningApiCapabilities_ProvisioningApi, - _$ProvisioningApiCapabilities_ProvisioningApi - ]; - @override - final String wireName = 'ProvisioningApiCapabilities_ProvisioningApi'; - - @override - Iterable serialize(Serializers serializers, ProvisioningApiCapabilities_ProvisioningApi object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'version', - serializers.serialize(object.version, specifiedType: const FullType(String)), - 'AccountPropertyScopesVersion', - serializers.serialize(object.accountPropertyScopesVersion, specifiedType: const FullType(int)), - 'AccountPropertyScopesFederatedEnabled', - serializers.serialize(object.accountPropertyScopesFederatedEnabled, specifiedType: const FullType(bool)), - 'AccountPropertyScopesPublishedEnabled', - serializers.serialize(object.accountPropertyScopesPublishedEnabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ProvisioningApiCapabilities_ProvisioningApi deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ProvisioningApiCapabilities_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 _$ProvisioningApiCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [ProvisioningApiCapabilities, _$ProvisioningApiCapabilities]; - @override - final String wireName = 'ProvisioningApiCapabilities'; - - @override - Iterable serialize(Serializers serializers, ProvisioningApiCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'provisioning_api', - serializers.serialize(object.provisioningApi, - specifiedType: const FullType(ProvisioningApiCapabilities_ProvisioningApi)), - ]; - - return result; - } - - @override - ProvisioningApiCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ProvisioningApiCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'provisioning_api': - result.provisioningApi.replace(serializers.deserialize(value, - specifiedType: const FullType(ProvisioningApiCapabilities_ProvisioningApi))! - as ProvisioningApiCapabilities_ProvisioningApi); - break; - } - } - - return result.build(); - } -} - -class _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDropSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop, - _$SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop - ]; - @override - final String wireName = 'SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop'; - - @override - Iterable serialize( - Serializers serializers, SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SharebymailCapabilities0_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 _$SharebymailCapabilities0_FilesSharing_Sharebymail_PasswordSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SharebymailCapabilities0_FilesSharing_Sharebymail_Password, - _$SharebymailCapabilities0_FilesSharing_Sharebymail_Password - ]; - @override - final String wireName = 'SharebymailCapabilities0_FilesSharing_Sharebymail_Password'; - - @override - Iterable serialize( - Serializers serializers, SharebymailCapabilities0_FilesSharing_Sharebymail_Password object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - 'enforced', - serializers.serialize(object.enforced, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - SharebymailCapabilities0_FilesSharing_Sharebymail_Password deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SharebymailCapabilities0_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 _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDateSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate, - _$SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate - ]; - @override - final String wireName = 'SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate'; - - @override - Iterable serialize( - Serializers serializers, SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - 'enforced', - serializers.serialize(object.enforced, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SharebymailCapabilities0_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 _$SharebymailCapabilities0_FilesSharing_SharebymailSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SharebymailCapabilities0_FilesSharing_Sharebymail, - _$SharebymailCapabilities0_FilesSharing_Sharebymail - ]; - @override - final String wireName = 'SharebymailCapabilities0_FilesSharing_Sharebymail'; - - @override - Iterable serialize(Serializers serializers, SharebymailCapabilities0_FilesSharing_Sharebymail object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - 'send_password_by_mail', - serializers.serialize(object.sendPasswordByMail, specifiedType: const FullType(bool)), - 'upload_files_drop', - serializers.serialize(object.uploadFilesDrop, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop)), - 'password', - serializers.serialize(object.password, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_Password)), - 'expire_date', - serializers.serialize(object.expireDate, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate)), - ]; - - return result; - } - - @override - SharebymailCapabilities0_FilesSharing_Sharebymail deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SharebymailCapabilities0_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(SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop))! - as SharebymailCapabilities0_FilesSharing_Sharebymail_UploadFilesDrop); - break; - case 'password': - result.password.replace(serializers.deserialize(value, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_Password))! - as SharebymailCapabilities0_FilesSharing_Sharebymail_Password); - break; - case 'expire_date': - result.expireDate.replace(serializers.deserialize(value, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate))! - as SharebymailCapabilities0_FilesSharing_Sharebymail_ExpireDate); - break; - } - } - - return result.build(); - } -} - -class _$SharebymailCapabilities0_FilesSharingSerializer - implements StructuredSerializer { - @override - final Iterable types = const [SharebymailCapabilities0_FilesSharing, _$SharebymailCapabilities0_FilesSharing]; - @override - final String wireName = 'SharebymailCapabilities0_FilesSharing'; - - @override - Iterable serialize(Serializers serializers, SharebymailCapabilities0_FilesSharing object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'sharebymail', - serializers.serialize(object.sharebymail, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail)), - ]; - - return result; - } - - @override - SharebymailCapabilities0_FilesSharing deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SharebymailCapabilities0_FilesSharingBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'sharebymail': - result.sharebymail.replace(serializers.deserialize(value, - specifiedType: const FullType(SharebymailCapabilities0_FilesSharing_Sharebymail))! - as SharebymailCapabilities0_FilesSharing_Sharebymail); - break; - } - } - - return result.build(); - } -} - -class _$SharebymailCapabilities0Serializer implements StructuredSerializer { - @override - final Iterable types = const [SharebymailCapabilities0, _$SharebymailCapabilities0]; - @override - final String wireName = 'SharebymailCapabilities0'; - - @override - Iterable serialize(Serializers serializers, SharebymailCapabilities0 object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'files_sharing', - serializers.serialize(object.filesSharing, specifiedType: const FullType(SharebymailCapabilities0_FilesSharing)), - ]; - - return result; - } - - @override - SharebymailCapabilities0 deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SharebymailCapabilities0Builder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'files_sharing': - result.filesSharing.replace( - serializers.deserialize(value, specifiedType: const FullType(SharebymailCapabilities0_FilesSharing))! - as SharebymailCapabilities0_FilesSharing); - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_Config_AttachmentsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config_Attachments, - _$SpreedPublicCapabilities0_Spreed_Config_Attachments - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config_Attachments'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config_Attachments object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'allowed', - serializers.serialize(object.allowed, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.folder; - if (value != null) { - result - ..add('folder') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config_Attachments deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_Config_AttachmentsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'allowed': - result.allowed = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'folder': - result.folder = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_Config_CallSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config_Call, - _$SpreedPublicCapabilities0_Spreed_Config_Call - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config_Call'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config_Call object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - 'breakout-rooms', - serializers.serialize(object.breakoutRooms, specifiedType: const FullType(bool)), - 'recording', - serializers.serialize(object.recording, specifiedType: const FullType(bool)), - 'supported-reactions', - serializers.serialize(object.supportedReactions, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'predefined-backgrounds', - serializers.serialize(object.predefinedBackgrounds, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'can-upload-background', - serializers.serialize(object.canUploadBackground, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.recordingConsent; - if (value != null) { - result - ..add('recording-consent') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.sipEnabled; - if (value != null) { - result - ..add('sip-enabled') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - value = object.sipDialoutEnabled; - if (value != null) { - result - ..add('sip-dialout-enabled') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - value = object.canEnableSip; - if (value != null) { - result - ..add('can-enable-sip') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config_Call deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_Config_CallBuilder(); - - 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 'breakout-rooms': - result.breakoutRooms = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'recording': - result.recording = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'recording-consent': - result.recordingConsent = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'supported-reactions': - result.supportedReactions.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - case 'predefined-backgrounds': - result.predefinedBackgrounds.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - case 'can-upload-background': - result.canUploadBackground = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'sip-enabled': - result.sipEnabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - case 'sip-dialout-enabled': - result.sipDialoutEnabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - case 'can-enable-sip': - result.canEnableSip = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_Config_ChatSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config_Chat, - _$SpreedPublicCapabilities0_Spreed_Config_Chat - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config_Chat'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config_Chat object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'max-length', - serializers.serialize(object.maxLength, specifiedType: const FullType(int)), - 'read-privacy', - serializers.serialize(object.readPrivacy, specifiedType: const FullType(int)), - 'typing-privacy', - serializers.serialize(object.typingPrivacy, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.hasTranslationProviders; - if (value != null) { - result - ..add('has-translation-providers') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - value = object.translations; - if (value != null) { - result - ..add('translations') - ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); - } - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config_Chat deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_Config_ChatBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'max-length': - result.maxLength = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'read-privacy': - result.readPrivacy = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'has-translation-providers': - result.hasTranslationProviders = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - case 'typing-privacy': - result.typingPrivacy = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'translations': - result.translations.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_Config_ConversationsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config_Conversations, - _$SpreedPublicCapabilities0_Spreed_Config_Conversations - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config_Conversations'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config_Conversations object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'can-create', - serializers.serialize(object.canCreate, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config_Conversations deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_Config_ConversationsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'can-create': - result.canCreate = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_Config_PreviewsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config_Previews, - _$SpreedPublicCapabilities0_Spreed_Config_Previews - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config_Previews'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config_Previews object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'max-gif-size', - serializers.serialize(object.maxGifSize, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config_Previews deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_Config_PreviewsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'max-gif-size': - result.maxGifSize = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_Config_SignalingSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config_Signaling, - _$SpreedPublicCapabilities0_Spreed_Config_Signaling - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config_Signaling'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config_Signaling object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'session-ping-limit', - serializers.serialize(object.sessionPingLimit, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.helloV2TokenKey; - if (value != null) { - result - ..add('hello-v2-token-key') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config_Signaling deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_Config_SignalingBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'session-ping-limit': - result.sessionPingLimit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'hello-v2-token-key': - result.helloV2TokenKey = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_Spreed_ConfigSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SpreedPublicCapabilities0_Spreed_Config, - _$SpreedPublicCapabilities0_Spreed_Config - ]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed_Config'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed_Config object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'attachments', - serializers.serialize(object.attachments, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Attachments)), - 'call', - serializers.serialize(object.call, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Call)), - 'chat', - serializers.serialize(object.chat, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Chat)), - 'conversations', - serializers.serialize(object.conversations, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Conversations)), - 'previews', - serializers.serialize(object.previews, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Previews)), - 'signaling', - serializers.serialize(object.signaling, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Signaling)), - ]; - - return result; - } - - @override - SpreedPublicCapabilities0_Spreed_Config deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_Spreed_ConfigBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'attachments': - result.attachments.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Attachments))! - as SpreedPublicCapabilities0_Spreed_Config_Attachments); - break; - case 'call': - result.call.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Call))! - as SpreedPublicCapabilities0_Spreed_Config_Call); - break; - case 'chat': - result.chat.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Chat))! - as SpreedPublicCapabilities0_Spreed_Config_Chat); - break; - case 'conversations': - result.conversations.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Conversations))! - as SpreedPublicCapabilities0_Spreed_Config_Conversations); - break; - case 'previews': - result.previews.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Previews))! - as SpreedPublicCapabilities0_Spreed_Config_Previews); - break; - case 'signaling': - result.signaling.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config_Signaling))! - as SpreedPublicCapabilities0_Spreed_Config_Signaling); - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0_SpreedSerializer implements StructuredSerializer { - @override - final Iterable types = const [SpreedPublicCapabilities0_Spreed, _$SpreedPublicCapabilities0_Spreed]; - @override - final String wireName = 'SpreedPublicCapabilities0_Spreed'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0_Spreed object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'features', - serializers.serialize(object.features, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'config', - serializers.serialize(object.config, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config)), - 'version', - serializers.serialize(object.version, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - SpreedPublicCapabilities0_Spreed deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0_SpreedBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'features': - result.features.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - case 'config': - result.config.replace( - serializers.deserialize(value, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed_Config))! - as SpreedPublicCapabilities0_Spreed_Config); - break; - case 'version': - result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$SpreedPublicCapabilities0Serializer implements StructuredSerializer { - @override - final Iterable types = const [SpreedPublicCapabilities0, _$SpreedPublicCapabilities0]; - @override - final String wireName = 'SpreedPublicCapabilities0'; - - @override - Iterable serialize(Serializers serializers, SpreedPublicCapabilities0 object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'spreed', - serializers.serialize(object.spreed, specifiedType: const FullType(SpreedPublicCapabilities0_Spreed)), - ]; - - return result; - } - - @override - SpreedPublicCapabilities0 deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SpreedPublicCapabilities0Builder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'spreed': - result.spreed.replace(serializers.deserialize(value, - specifiedType: const FullType(SpreedPublicCapabilities0_Spreed))! as SpreedPublicCapabilities0_Spreed); - break; - } - } - - return result.build(); - } -} - -class _$ThemingPublicCapabilities_ThemingSerializer implements StructuredSerializer { - @override - final Iterable types = const [ThemingPublicCapabilities_Theming, _$ThemingPublicCapabilities_Theming]; - @override - final String wireName = 'ThemingPublicCapabilities_Theming'; - - @override - Iterable serialize(Serializers serializers, ThemingPublicCapabilities_Theming object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'url', - serializers.serialize(object.url, specifiedType: const FullType(String)), - 'slogan', - serializers.serialize(object.slogan, specifiedType: const FullType(String)), - 'color', - serializers.serialize(object.color, specifiedType: const FullType(String)), - 'color-text', - serializers.serialize(object.colorText, specifiedType: const FullType(String)), - 'color-element', - serializers.serialize(object.colorElement, specifiedType: const FullType(String)), - 'color-element-bright', - serializers.serialize(object.colorElementBright, specifiedType: const FullType(String)), - 'color-element-dark', - serializers.serialize(object.colorElementDark, specifiedType: const FullType(String)), - 'logo', - serializers.serialize(object.logo, specifiedType: const FullType(String)), - 'background', - serializers.serialize(object.background, specifiedType: const FullType(String)), - 'background-plain', - serializers.serialize(object.backgroundPlain, specifiedType: const FullType(bool)), - 'background-default', - serializers.serialize(object.backgroundDefault, specifiedType: const FullType(bool)), - 'logoheader', - serializers.serialize(object.logoheader, specifiedType: const FullType(String)), - 'favicon', - serializers.serialize(object.favicon, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - ThemingPublicCapabilities_Theming deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ThemingPublicCapabilities_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 _$ThemingPublicCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [ThemingPublicCapabilities, _$ThemingPublicCapabilities]; - @override - final String wireName = 'ThemingPublicCapabilities'; - - @override - Iterable serialize(Serializers serializers, ThemingPublicCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'theming', - serializers.serialize(object.theming, specifiedType: const FullType(ThemingPublicCapabilities_Theming)), - ]; - - return result; - } - - @override - ThemingPublicCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ThemingPublicCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'theming': - result.theming.replace(serializers.deserialize(value, - specifiedType: const FullType(ThemingPublicCapabilities_Theming))! as ThemingPublicCapabilities_Theming); - break; - } - } - - return result.build(); - } -} - -class _$UserStatusCapabilities_UserStatusSerializer implements StructuredSerializer { - @override - final Iterable types = const [UserStatusCapabilities_UserStatus, _$UserStatusCapabilities_UserStatus]; - @override - final String wireName = 'UserStatusCapabilities_UserStatus'; - - @override - Iterable serialize(Serializers serializers, UserStatusCapabilities_UserStatus object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - 'restore', - serializers.serialize(object.restore, specifiedType: const FullType(bool)), - 'supports_emoji', - serializers.serialize(object.supportsEmoji, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - UserStatusCapabilities_UserStatus deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UserStatusCapabilities_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 'restore': - result.restore = 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 _$UserStatusCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [UserStatusCapabilities, _$UserStatusCapabilities]; - @override - final String wireName = 'UserStatusCapabilities'; - - @override - Iterable serialize(Serializers serializers, UserStatusCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'user_status', - serializers.serialize(object.userStatus, specifiedType: const FullType(UserStatusCapabilities_UserStatus)), - ]; - - return result; - } - - @override - UserStatusCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UserStatusCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'user_status': - result.userStatus.replace(serializers.deserialize(value, - specifiedType: const FullType(UserStatusCapabilities_UserStatus))! as UserStatusCapabilities_UserStatus); - break; - } - } - - return result.build(); - } -} - -class _$WeatherStatusCapabilities_WeatherStatusSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - WeatherStatusCapabilities_WeatherStatus, - _$WeatherStatusCapabilities_WeatherStatus - ]; - @override - final String wireName = 'WeatherStatusCapabilities_WeatherStatus'; - - @override - Iterable serialize(Serializers serializers, WeatherStatusCapabilities_WeatherStatus object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'enabled', - serializers.serialize(object.enabled, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - WeatherStatusCapabilities_WeatherStatus deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WeatherStatusCapabilities_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 _$WeatherStatusCapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [WeatherStatusCapabilities, _$WeatherStatusCapabilities]; - @override - final String wireName = 'WeatherStatusCapabilities'; - - @override - Iterable serialize(Serializers serializers, WeatherStatusCapabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'weather_status', - serializers.serialize(object.weatherStatus, - specifiedType: const FullType(WeatherStatusCapabilities_WeatherStatus)), - ]; - - return result; - } - - @override - WeatherStatusCapabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WeatherStatusCapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'weather_status': - result.weatherStatus.replace( - serializers.deserialize(value, specifiedType: const FullType(WeatherStatusCapabilities_WeatherStatus))! - as WeatherStatusCapabilities_WeatherStatus); - break; - } - } - - return result.build(); - } -} - -class _$OcsGetCapabilitiesResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - OcsGetCapabilitiesResponseApplicationJson_Ocs_Data, - _$OcsGetCapabilitiesResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'OcsGetCapabilitiesResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, OcsGetCapabilitiesResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'version', - serializers.serialize(object.version, - specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version)), - 'capabilities', - serializers.serialize(object.capabilities, - specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Capabilities)), - ]; - - return result; - } - - @override - OcsGetCapabilitiesResponseApplicationJson_Ocs_Data deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcsGetCapabilitiesResponseApplicationJson_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(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version))! - as OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Version); - break; - case 'capabilities': - result.capabilities.replace(serializers.deserialize(value, - specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Capabilities))! - as OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_Capabilities); - break; - } - } - - return result.build(); - } -} - -class _$OcsGetCapabilitiesResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - OcsGetCapabilitiesResponseApplicationJson_Ocs, - _$OcsGetCapabilitiesResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'OcsGetCapabilitiesResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, OcsGetCapabilitiesResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - OcsGetCapabilitiesResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcsGetCapabilitiesResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs_Data))! - as OcsGetCapabilitiesResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$OcsGetCapabilitiesResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - OcsGetCapabilitiesResponseApplicationJson, - _$OcsGetCapabilitiesResponseApplicationJson - ]; - @override - final String wireName = 'OcsGetCapabilitiesResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, OcsGetCapabilitiesResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(OcsGetCapabilitiesResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - OcsGetCapabilitiesResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OcsGetCapabilitiesResponseApplicationJsonBuilder(); - - 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(OcsGetCapabilitiesResponseApplicationJson_Ocs))! - as OcsGetCapabilitiesResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ProfileApiSetVisibilityResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ProfileApiSetVisibilityResponseApplicationJson_Ocs, - _$ProfileApiSetVisibilityResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'ProfileApiSetVisibilityResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, ProfileApiSetVisibilityResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), - ]; - - return result; - } - - @override - ProfileApiSetVisibilityResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ProfileApiSetVisibilityResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; - break; - } - } - - return result.build(); - } -} - -class _$ProfileApiSetVisibilityResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ProfileApiSetVisibilityResponseApplicationJson, - _$ProfileApiSetVisibilityResponseApplicationJson - ]; - @override - final String wireName = 'ProfileApiSetVisibilityResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ProfileApiSetVisibilityResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(ProfileApiSetVisibilityResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - ProfileApiSetVisibilityResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ProfileApiSetVisibilityResponseApplicationJsonBuilder(); - - 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(ProfileApiSetVisibilityResponseApplicationJson_Ocs))! - as ProfileApiSetVisibilityResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceSerializer implements StructuredSerializer { - @override - final Iterable types = const [Reference, _$Reference]; - @override - final String wireName = 'Reference'; - - @override - Iterable serialize(Serializers serializers, Reference object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'richObjectType', - serializers.serialize(object.richObjectType, specifiedType: const FullType(String)), - 'richObject', - serializers.serialize(object.richObject, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)])), - 'openGraphObject', - serializers.serialize(object.openGraphObject, specifiedType: const FullType(OpenGraphObject)), - 'accessible', - serializers.serialize(object.accessible, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - Reference deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'richObjectType': - result.richObjectType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'richObject': - result.richObject.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]))!); - break; - case 'openGraphObject': - result.openGraphObject.replace( - serializers.deserialize(value, specifiedType: const FullType(OpenGraphObject))! as OpenGraphObject); - break; - case 'accessible': - result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveOneResponseApplicationJson_Ocs_Data, - _$ReferenceApiResolveOneResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'ReferenceApiResolveOneResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveOneResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'references', - serializers.serialize(object.references, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)])), - ]; - - return result; - } - - @override - ReferenceApiResolveOneResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveOneResponseApplicationJson_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 'references': - result.references.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]))!); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiResolveOneResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveOneResponseApplicationJson_Ocs, - _$ReferenceApiResolveOneResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'ReferenceApiResolveOneResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveOneResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - ReferenceApiResolveOneResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveOneResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs_Data))! - as ReferenceApiResolveOneResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiResolveOneResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveOneResponseApplicationJson, - _$ReferenceApiResolveOneResponseApplicationJson - ]; - @override - final String wireName = 'ReferenceApiResolveOneResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveOneResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(ReferenceApiResolveOneResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - ReferenceApiResolveOneResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveOneResponseApplicationJsonBuilder(); - - 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(ReferenceApiResolveOneResponseApplicationJson_Ocs))! - as ReferenceApiResolveOneResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveResponseApplicationJson_Ocs_Data, - _$ReferenceApiResolveResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'ReferenceApiResolveResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'references', - serializers.serialize(object.references, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)])), - ]; - - return result; - } - - @override - ReferenceApiResolveResponseApplicationJson_Ocs_Data deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveResponseApplicationJson_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 'references': - result.references.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]))!); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiResolveResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveResponseApplicationJson_Ocs, - _$ReferenceApiResolveResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'ReferenceApiResolveResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - ReferenceApiResolveResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs_Data))! - as ReferenceApiResolveResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiResolveResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveResponseApplicationJson, - _$ReferenceApiResolveResponseApplicationJson - ]; - @override - final String wireName = 'ReferenceApiResolveResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(ReferenceApiResolveResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - ReferenceApiResolveResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveResponseApplicationJsonBuilder(); - - 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(ReferenceApiResolveResponseApplicationJson_Ocs))! - as ReferenceApiResolveResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiExtractResponseApplicationJson_Ocs_Data, - _$ReferenceApiExtractResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'ReferenceApiExtractResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiExtractResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'references', - serializers.serialize(object.references, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)])), - ]; - - return result; - } - - @override - ReferenceApiExtractResponseApplicationJson_Ocs_Data deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiExtractResponseApplicationJson_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 'references': - result.references.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Reference)]))!); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiExtractResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiExtractResponseApplicationJson_Ocs, - _$ReferenceApiExtractResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'ReferenceApiExtractResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiExtractResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - ReferenceApiExtractResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiExtractResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs_Data))! - as ReferenceApiExtractResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiExtractResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiExtractResponseApplicationJson, - _$ReferenceApiExtractResponseApplicationJson - ]; - @override - final String wireName = 'ReferenceApiExtractResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiExtractResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(ReferenceApiExtractResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - ReferenceApiExtractResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiExtractResponseApplicationJsonBuilder(); - - 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(ReferenceApiExtractResponseApplicationJson_Ocs))! - as ReferenceApiExtractResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceProviderSerializer implements StructuredSerializer { - @override - final Iterable types = const [ReferenceProvider, _$ReferenceProvider]; - @override - final String wireName = 'ReferenceProvider'; - - @override - Iterable serialize(Serializers serializers, ReferenceProvider object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'title', - serializers.serialize(object.title, specifiedType: const FullType(String)), - 'icon_url', - serializers.serialize(object.iconUrl, specifiedType: const FullType(String)), - 'order', - serializers.serialize(object.order, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.searchProvidersIds; - if (value != null) { - result - ..add('search_providers_ids') - ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))); - } - return result; - } - - @override - ReferenceProvider deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceProviderBuilder(); - - 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 'title': - result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'icon_url': - result.iconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'order': - result.order = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'search_providers_ids': - result.searchProvidersIds.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiGetProvidersInfoResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs, - _$ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(ReferenceProvider)])), - ]; - - return result; - } - - @override - ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiGetProvidersInfoResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(ReferenceProvider)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiGetProvidersInfoResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiGetProvidersInfoResponseApplicationJson, - _$ReferenceApiGetProvidersInfoResponseApplicationJson - ]; - @override - final String wireName = 'ReferenceApiGetProvidersInfoResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiGetProvidersInfoResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - ReferenceApiGetProvidersInfoResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiGetProvidersInfoResponseApplicationJsonBuilder(); - - 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(ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs))! - as ReferenceApiGetProvidersInfoResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data, - _$ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'success', - serializers.serialize(object.success, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiTouchProviderResponseApplicationJson_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 'success': - result.success = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiTouchProviderResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiTouchProviderResponseApplicationJson_Ocs, - _$ReferenceApiTouchProviderResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'ReferenceApiTouchProviderResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiTouchProviderResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - ReferenceApiTouchProviderResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiTouchProviderResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data))! - as ReferenceApiTouchProviderResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$ReferenceApiTouchProviderResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiTouchProviderResponseApplicationJson, - _$ReferenceApiTouchProviderResponseApplicationJson - ]; - @override - final String wireName = 'ReferenceApiTouchProviderResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiTouchProviderResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(ReferenceApiTouchProviderResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - ReferenceApiTouchProviderResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiTouchProviderResponseApplicationJsonBuilder(); - - 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(ReferenceApiTouchProviderResponseApplicationJson_Ocs))! - as ReferenceApiTouchProviderResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types, - _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types - ]; - @override - final String wireName = 'TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types'; - - @override - Iterable serialize( - Serializers serializers, TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'description', - serializers.serialize(object.description, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_TypesBuilder(); - - 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 'name': - result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'description': - result.description = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data, - _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize( - Serializers serializers, TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'types', - serializers.serialize(object.types, - specifiedType: - const FullType(BuiltList, [FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types)])), - ]; - - return result; - } - - @override - TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiTaskTypesResponseApplicationJson_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 'types': - result.types.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltList, [FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data_Types)]))! - as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiTaskTypesResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiTaskTypesResponseApplicationJson_Ocs, - _$TextProcessingApiTaskTypesResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextProcessingApiTaskTypesResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiTaskTypesResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextProcessingApiTaskTypesResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiTaskTypesResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data))! - as TextProcessingApiTaskTypesResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiTaskTypesResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiTaskTypesResponseApplicationJson, - _$TextProcessingApiTaskTypesResponseApplicationJson - ]; - @override - final String wireName = 'TextProcessingApiTaskTypesResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiTaskTypesResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextProcessingApiTaskTypesResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiTaskTypesResponseApplicationJsonBuilder(); - - 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(TextProcessingApiTaskTypesResponseApplicationJson_Ocs))! - as TextProcessingApiTaskTypesResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingTaskSerializer implements StructuredSerializer { - @override - final Iterable types = const [TextProcessingTask, _$TextProcessingTask]; - @override - final String wireName = 'TextProcessingTask'; - - @override - Iterable serialize(Serializers serializers, TextProcessingTask object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'type', - serializers.serialize(object.type, specifiedType: const FullType(String)), - 'status', - serializers.serialize(object.status, specifiedType: const FullType(int)), - 'appId', - serializers.serialize(object.appId, specifiedType: const FullType(String)), - 'input', - serializers.serialize(object.input, specifiedType: const FullType(String)), - 'identifier', - serializers.serialize(object.identifier, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.id; - if (value != null) { - result - ..add('id') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.userId; - if (value != null) { - result - ..add('userId') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.output; - if (value != null) { - result - ..add('output') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - TextProcessingTask deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingTaskBuilder(); - - 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 'type': - result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'status': - result.status = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'userId': - result.userId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'appId': - result.appId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'input': - result.input = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'output': - result.output = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'identifier': - result.identifier = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiScheduleResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiScheduleResponseApplicationJson_Ocs_Data, - _$TextProcessingApiScheduleResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextProcessingApiScheduleResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiScheduleResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'task', - serializers.serialize(object.task, specifiedType: const FullType(TextProcessingTask)), - ]; - - return result; - } - - @override - TextProcessingApiScheduleResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiScheduleResponseApplicationJson_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 'task': - result.task.replace( - serializers.deserialize(value, specifiedType: const FullType(TextProcessingTask))! as TextProcessingTask); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiScheduleResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiScheduleResponseApplicationJson_Ocs, - _$TextProcessingApiScheduleResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextProcessingApiScheduleResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiScheduleResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextProcessingApiScheduleResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiScheduleResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs_Data))! - as TextProcessingApiScheduleResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiScheduleResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiScheduleResponseApplicationJson, - _$TextProcessingApiScheduleResponseApplicationJson - ]; - @override - final String wireName = 'TextProcessingApiScheduleResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiScheduleResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextProcessingApiScheduleResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextProcessingApiScheduleResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiScheduleResponseApplicationJsonBuilder(); - - 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(TextProcessingApiScheduleResponseApplicationJson_Ocs))! - as TextProcessingApiScheduleResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data, - _$TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'task', - serializers.serialize(object.task, specifiedType: const FullType(TextProcessingTask)), - ]; - - return result; - } - - @override - TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiGetTaskResponseApplicationJson_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 'task': - result.task.replace( - serializers.deserialize(value, specifiedType: const FullType(TextProcessingTask))! as TextProcessingTask); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiGetTaskResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiGetTaskResponseApplicationJson_Ocs, - _$TextProcessingApiGetTaskResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextProcessingApiGetTaskResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiGetTaskResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextProcessingApiGetTaskResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiGetTaskResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data))! - as TextProcessingApiGetTaskResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiGetTaskResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiGetTaskResponseApplicationJson, - _$TextProcessingApiGetTaskResponseApplicationJson - ]; - @override - final String wireName = 'TextProcessingApiGetTaskResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiGetTaskResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextProcessingApiGetTaskResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextProcessingApiGetTaskResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiGetTaskResponseApplicationJsonBuilder(); - - 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(TextProcessingApiGetTaskResponseApplicationJson_Ocs))! - as TextProcessingApiGetTaskResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data, - _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize( - Serializers serializers, TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'task', - serializers.serialize(object.task, specifiedType: const FullType(TextProcessingTask)), - ]; - - return result; - } - - @override - TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiDeleteTaskResponseApplicationJson_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 'task': - result.task.replace( - serializers.deserialize(value, specifiedType: const FullType(TextProcessingTask))! as TextProcessingTask); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiDeleteTaskResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiDeleteTaskResponseApplicationJson_Ocs, - _$TextProcessingApiDeleteTaskResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextProcessingApiDeleteTaskResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiDeleteTaskResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextProcessingApiDeleteTaskResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiDeleteTaskResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data))! - as TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiDeleteTaskResponseApplicationJson, - _$TextProcessingApiDeleteTaskResponseApplicationJson - ]; - @override - final String wireName = 'TextProcessingApiDeleteTaskResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiDeleteTaskResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextProcessingApiDeleteTaskResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiDeleteTaskResponseApplicationJsonBuilder(); - - 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(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs))! - as TextProcessingApiDeleteTaskResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data, - _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize( - Serializers serializers, TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'tasks', - serializers.serialize(object.tasks, specifiedType: const FullType(BuiltList, [FullType(TextProcessingTask)])), - ]; - - return result; - } - - @override - TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiListTasksByAppResponseApplicationJson_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 'tasks': - result.tasks.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(TextProcessingTask)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiListTasksByAppResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiListTasksByAppResponseApplicationJson_Ocs, - _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextProcessingApiListTasksByAppResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, TextProcessingApiListTasksByAppResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextProcessingApiListTasksByAppResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiListTasksByAppResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data))! - as TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextProcessingApiListTasksByAppResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiListTasksByAppResponseApplicationJson, - _$TextProcessingApiListTasksByAppResponseApplicationJson - ]; - @override - final String wireName = 'TextProcessingApiListTasksByAppResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiListTasksByAppResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextProcessingApiListTasksByAppResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiListTasksByAppResponseApplicationJsonBuilder(); - - 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(TextProcessingApiListTasksByAppResponseApplicationJson_Ocs))! - as TextProcessingApiListTasksByAppResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data, - _$TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'isAvailable', - serializers.serialize(object.isAvailable, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiIsAvailableResponseApplicationJson_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 'isAvailable': - result.isAvailable = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiIsAvailableResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiIsAvailableResponseApplicationJson_Ocs, - _$TextToImageApiIsAvailableResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextToImageApiIsAvailableResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiIsAvailableResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextToImageApiIsAvailableResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiIsAvailableResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data))! - as TextToImageApiIsAvailableResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiIsAvailableResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiIsAvailableResponseApplicationJson, - _$TextToImageApiIsAvailableResponseApplicationJson - ]; - @override - final String wireName = 'TextToImageApiIsAvailableResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiIsAvailableResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextToImageApiIsAvailableResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextToImageApiIsAvailableResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiIsAvailableResponseApplicationJsonBuilder(); - - 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(TextToImageApiIsAvailableResponseApplicationJson_Ocs))! - as TextToImageApiIsAvailableResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageTaskSerializer implements StructuredSerializer { - @override - final Iterable types = const [TextToImageTask, _$TextToImageTask]; - @override - final String wireName = 'TextToImageTask'; - - @override - Iterable serialize(Serializers serializers, TextToImageTask object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'status', - serializers.serialize(object.status, specifiedType: const FullType(int)), - 'appId', - serializers.serialize(object.appId, specifiedType: const FullType(String)), - 'input', - serializers.serialize(object.input, specifiedType: const FullType(String)), - 'numberOfImages', - serializers.serialize(object.numberOfImages, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.id; - if (value != null) { - result - ..add('id') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.userId; - if (value != null) { - result - ..add('userId') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.identifier; - if (value != null) { - result - ..add('identifier') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.completionExpectedAt; - if (value != null) { - result - ..add('completionExpectedAt') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - TextToImageTask deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageTaskBuilder(); - - 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 'status': - result.status = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'userId': - result.userId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'appId': - result.appId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'input': - result.input = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'identifier': - result.identifier = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'numberOfImages': - result.numberOfImages = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'completionExpectedAt': - result.completionExpectedAt = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiScheduleResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiScheduleResponseApplicationJson_Ocs_Data, - _$TextToImageApiScheduleResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextToImageApiScheduleResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiScheduleResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'task', - serializers.serialize(object.task, specifiedType: const FullType(TextToImageTask)), - ]; - - return result; - } - - @override - TextToImageApiScheduleResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiScheduleResponseApplicationJson_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 'task': - result.task.replace( - serializers.deserialize(value, specifiedType: const FullType(TextToImageTask))! as TextToImageTask); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiScheduleResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiScheduleResponseApplicationJson_Ocs, - _$TextToImageApiScheduleResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextToImageApiScheduleResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiScheduleResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextToImageApiScheduleResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiScheduleResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs_Data))! - as TextToImageApiScheduleResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiScheduleResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiScheduleResponseApplicationJson, - _$TextToImageApiScheduleResponseApplicationJson - ]; - @override - final String wireName = 'TextToImageApiScheduleResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiScheduleResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextToImageApiScheduleResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextToImageApiScheduleResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiScheduleResponseApplicationJsonBuilder(); - - 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(TextToImageApiScheduleResponseApplicationJson_Ocs))! - as TextToImageApiScheduleResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiGetTaskResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiGetTaskResponseApplicationJson_Ocs_Data, - _$TextToImageApiGetTaskResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextToImageApiGetTaskResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiGetTaskResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'task', - serializers.serialize(object.task, specifiedType: const FullType(TextToImageTask)), - ]; - - return result; - } - - @override - TextToImageApiGetTaskResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiGetTaskResponseApplicationJson_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 'task': - result.task.replace( - serializers.deserialize(value, specifiedType: const FullType(TextToImageTask))! as TextToImageTask); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiGetTaskResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiGetTaskResponseApplicationJson_Ocs, - _$TextToImageApiGetTaskResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextToImageApiGetTaskResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiGetTaskResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextToImageApiGetTaskResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiGetTaskResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs_Data))! - as TextToImageApiGetTaskResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiGetTaskResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiGetTaskResponseApplicationJson, - _$TextToImageApiGetTaskResponseApplicationJson - ]; - @override - final String wireName = 'TextToImageApiGetTaskResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiGetTaskResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextToImageApiGetTaskResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextToImageApiGetTaskResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiGetTaskResponseApplicationJsonBuilder(); - - 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(TextToImageApiGetTaskResponseApplicationJson_Ocs))! - as TextToImageApiGetTaskResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data, - _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'task', - serializers.serialize(object.task, specifiedType: const FullType(TextToImageTask)), - ]; - - return result; - } - - @override - TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiDeleteTaskResponseApplicationJson_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 'task': - result.task.replace( - serializers.deserialize(value, specifiedType: const FullType(TextToImageTask))! as TextToImageTask); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiDeleteTaskResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiDeleteTaskResponseApplicationJson_Ocs, - _$TextToImageApiDeleteTaskResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextToImageApiDeleteTaskResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiDeleteTaskResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextToImageApiDeleteTaskResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiDeleteTaskResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data))! - as TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiDeleteTaskResponseApplicationJson, - _$TextToImageApiDeleteTaskResponseApplicationJson - ]; - @override - final String wireName = 'TextToImageApiDeleteTaskResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiDeleteTaskResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextToImageApiDeleteTaskResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiDeleteTaskResponseApplicationJsonBuilder(); - - 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(TextToImageApiDeleteTaskResponseApplicationJson_Ocs))! - as TextToImageApiDeleteTaskResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data, - _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize( - Serializers serializers, TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'tasks', - serializers.serialize(object.tasks, specifiedType: const FullType(BuiltList, [FullType(TextToImageTask)])), - ]; - - return result; - } - - @override - TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiListTasksByAppResponseApplicationJson_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 'tasks': - result.tasks.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(TextToImageTask)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiListTasksByAppResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiListTasksByAppResponseApplicationJson_Ocs, - _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TextToImageApiListTasksByAppResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiListTasksByAppResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TextToImageApiListTasksByAppResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiListTasksByAppResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data))! - as TextToImageApiListTasksByAppResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TextToImageApiListTasksByAppResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiListTasksByAppResponseApplicationJson, - _$TextToImageApiListTasksByAppResponseApplicationJson - ]; - @override - final String wireName = 'TextToImageApiListTasksByAppResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiListTasksByAppResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TextToImageApiListTasksByAppResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiListTasksByAppResponseApplicationJsonBuilder(); - - 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(TextToImageApiListTasksByAppResponseApplicationJson_Ocs))! - as TextToImageApiListTasksByAppResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages, - _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages - ]; - @override - final String wireName = 'TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages'; - - @override - Iterable serialize( - Serializers serializers, TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'from', - serializers.serialize(object.from, specifiedType: const FullType(String)), - 'fromLabel', - serializers.serialize(object.fromLabel, specifiedType: const FullType(String)), - 'to', - serializers.serialize(object.to, specifiedType: const FullType(String)), - 'toLabel', - serializers.serialize(object.toLabel, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiLanguagesResponseApplicationJson_Ocs_Data_LanguagesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'from': - result.from = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'fromLabel': - result.fromLabel = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'to': - result.to = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'toLabel': - result.toLabel = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiLanguagesResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiLanguagesResponseApplicationJson_Ocs_Data, - _$TranslationApiLanguagesResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TranslationApiLanguagesResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TranslationApiLanguagesResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'languages', - serializers.serialize(object.languages, - specifiedType: - const FullType(BuiltList, [FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages)])), - 'languageDetection', - serializers.serialize(object.languageDetection, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - TranslationApiLanguagesResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiLanguagesResponseApplicationJson_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 'languages': - result.languages.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltList, [FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data_Languages)]))! - as BuiltList); - break; - case 'languageDetection': - result.languageDetection = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiLanguagesResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiLanguagesResponseApplicationJson_Ocs, - _$TranslationApiLanguagesResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TranslationApiLanguagesResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TranslationApiLanguagesResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TranslationApiLanguagesResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiLanguagesResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs_Data))! - as TranslationApiLanguagesResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiLanguagesResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiLanguagesResponseApplicationJson, - _$TranslationApiLanguagesResponseApplicationJson - ]; - @override - final String wireName = 'TranslationApiLanguagesResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TranslationApiLanguagesResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TranslationApiLanguagesResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TranslationApiLanguagesResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiLanguagesResponseApplicationJsonBuilder(); - - 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(TranslationApiLanguagesResponseApplicationJson_Ocs))! - as TranslationApiLanguagesResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiTranslateResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiTranslateResponseApplicationJson_Ocs_Data, - _$TranslationApiTranslateResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'TranslationApiTranslateResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, TranslationApiTranslateResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'text', - serializers.serialize(object.text, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.from; - if (value != null) { - result - ..add('from') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - TranslationApiTranslateResponseApplicationJson_Ocs_Data deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiTranslateResponseApplicationJson_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 'text': - result.text = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'from': - result.from = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiTranslateResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiTranslateResponseApplicationJson_Ocs, - _$TranslationApiTranslateResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'TranslationApiTranslateResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, TranslationApiTranslateResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - TranslationApiTranslateResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiTranslateResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs_Data))! - as TranslationApiTranslateResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$TranslationApiTranslateResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TranslationApiTranslateResponseApplicationJson, - _$TranslationApiTranslateResponseApplicationJson - ]; - @override - final String wireName = 'TranslationApiTranslateResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TranslationApiTranslateResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(TranslationApiTranslateResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - TranslationApiTranslateResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TranslationApiTranslateResponseApplicationJsonBuilder(); - - 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(TranslationApiTranslateResponseApplicationJson_Ocs))! - as TranslationApiTranslateResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchProviderSerializer implements StructuredSerializer { - @override - final Iterable types = const [UnifiedSearchProvider, _$UnifiedSearchProvider]; - @override - final String wireName = 'UnifiedSearchProvider'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchProvider object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'order', - serializers.serialize(object.order, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - UnifiedSearchProvider deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchProviderBuilder(); - - 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 'name': - result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'order': - result.order = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchGetProvidersResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UnifiedSearchGetProvidersResponseApplicationJson_Ocs, - _$UnifiedSearchGetProvidersResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'UnifiedSearchGetProvidersResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchGetProvidersResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchProvider)])), - ]; - - return result; - } - - @override - UnifiedSearchGetProvidersResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchGetProvidersResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchProvider)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UnifiedSearchGetProvidersResponseApplicationJson, - _$UnifiedSearchGetProvidersResponseApplicationJson - ]; - @override - final String wireName = 'UnifiedSearchGetProvidersResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchGetProvidersResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(UnifiedSearchGetProvidersResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - UnifiedSearchGetProvidersResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchGetProvidersResponseApplicationJsonBuilder(); - - 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(UnifiedSearchGetProvidersResponseApplicationJson_Ocs))! - as UnifiedSearchGetProvidersResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchResultEntrySerializer implements StructuredSerializer { - @override - final Iterable types = const [UnifiedSearchResultEntry, _$UnifiedSearchResultEntry]; - @override - final String wireName = 'UnifiedSearchResultEntry'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchResultEntry object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'thumbnailUrl', - serializers.serialize(object.thumbnailUrl, specifiedType: const FullType(String)), - 'title', - serializers.serialize(object.title, specifiedType: const FullType(String)), - 'subline', - serializers.serialize(object.subline, specifiedType: const FullType(String)), - 'resourceUrl', - serializers.serialize(object.resourceUrl, specifiedType: const FullType(String)), - 'icon', - serializers.serialize(object.icon, specifiedType: const FullType(String)), - 'rounded', - serializers.serialize(object.rounded, specifiedType: const FullType(bool)), - 'attributes', - serializers.serialize(object.attributes, specifiedType: const FullType(BuiltList, [FullType(String)])), - ]; - - return result; - } - - @override - UnifiedSearchResultEntry deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchResultEntryBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'thumbnailUrl': - result.thumbnailUrl = 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 'subline': - result.subline = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'resourceUrl': - result.resourceUrl = 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 'rounded': - result.rounded = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'attributes': - result.attributes.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchResultSerializer implements StructuredSerializer { - @override - final Iterable types = const [UnifiedSearchResult, _$UnifiedSearchResult]; - @override - final String wireName = 'UnifiedSearchResult'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchResult object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'isPaginated', - serializers.serialize(object.isPaginated, specifiedType: const FullType(bool)), - 'entries', - serializers.serialize(object.entries, - specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchResultEntry)])), - ]; - Object? value; - value = object.cursor; - if (value != null) { - result - ..add('cursor') - ..add(serializers.serialize(value, specifiedType: const FullType(UnifiedSearchResult_Cursor))); - } - return result; - } - - @override - UnifiedSearchResult deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchResultBuilder(); - - 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 'isPaginated': - result.isPaginated = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'entries': - result.entries.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(UnifiedSearchResultEntry)]))! as BuiltList); - break; - case 'cursor': - result.cursor.replace(serializers.deserialize(value, - specifiedType: const FullType(UnifiedSearchResult_Cursor))! as UnifiedSearchResult_Cursor); - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchSearchResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UnifiedSearchSearchResponseApplicationJson_Ocs, - _$UnifiedSearchSearchResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'UnifiedSearchSearchResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchSearchResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(UnifiedSearchResult)), - ]; - - return result; - } - - @override - UnifiedSearchSearchResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchSearchResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(UnifiedSearchResult))! - as UnifiedSearchResult); - break; - } - } - - return result.build(); - } -} - -class _$UnifiedSearchSearchResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UnifiedSearchSearchResponseApplicationJson, - _$UnifiedSearchSearchResponseApplicationJson - ]; - @override - final String wireName = 'UnifiedSearchSearchResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchSearchResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(UnifiedSearchSearchResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - UnifiedSearchSearchResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchSearchResponseApplicationJsonBuilder(); - - 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(UnifiedSearchSearchResponseApplicationJson_Ocs))! - as UnifiedSearchSearchResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew, - _$WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew - ]; - @override - final String wireName = 'WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew'; - - @override - Iterable serialize(Serializers serializers, WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'regular', - serializers.serialize(object.regular, specifiedType: const FullType(BuiltList, [FullType(String)])), - 'admin', - serializers.serialize(object.admin, specifiedType: const FullType(BuiltList, [FullType(String)])), - ]; - - return result; - } - - @override - WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNewBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'regular': - result.regular.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - case 'admin': - result.admin.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$WhatsNewGetResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - WhatsNewGetResponseApplicationJson_Ocs_Data, - _$WhatsNewGetResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'WhatsNewGetResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, WhatsNewGetResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'changelogURL', - serializers.serialize(object.changelogURL, specifiedType: const FullType(String)), - 'product', - serializers.serialize(object.product, specifiedType: const FullType(String)), - 'version', - serializers.serialize(object.version, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.whatsNew; - if (value != null) { - result - ..add('whatsNew') - ..add(serializers.serialize(value, - specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew))); - } - return result; - } - - @override - WhatsNewGetResponseApplicationJson_Ocs_Data deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WhatsNewGetResponseApplicationJson_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 'changelogURL': - result.changelogURL = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'product': - result.product = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'version': - result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'whatsNew': - result.whatsNew.replace(serializers.deserialize(value, - specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew))! - as WhatsNewGetResponseApplicationJson_Ocs_Data_WhatsNew); - break; - } - } - - return result.build(); - } -} - -class _$WhatsNewGetResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [WhatsNewGetResponseApplicationJson_Ocs, _$WhatsNewGetResponseApplicationJson_Ocs]; - @override - final String wireName = 'WhatsNewGetResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, WhatsNewGetResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - WhatsNewGetResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WhatsNewGetResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs_Data))! - as WhatsNewGetResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$WhatsNewGetResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [WhatsNewGetResponseApplicationJson, _$WhatsNewGetResponseApplicationJson]; - @override - final String wireName = 'WhatsNewGetResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, WhatsNewGetResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(WhatsNewGetResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - WhatsNewGetResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WhatsNewGetResponseApplicationJsonBuilder(); - - 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(WhatsNewGetResponseApplicationJson_Ocs))! - as WhatsNewGetResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$WhatsNewDismissResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - WhatsNewDismissResponseApplicationJson_Ocs, - _$WhatsNewDismissResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'WhatsNewDismissResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, WhatsNewDismissResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), - ]; - - return result; - } - - @override - WhatsNewDismissResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WhatsNewDismissResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; - break; - } - } - - return result.build(); - } -} - -class _$WhatsNewDismissResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [WhatsNewDismissResponseApplicationJson, _$WhatsNewDismissResponseApplicationJson]; - @override - final String wireName = 'WhatsNewDismissResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, WhatsNewDismissResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(WhatsNewDismissResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - WhatsNewDismissResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WhatsNewDismissResponseApplicationJsonBuilder(); - - 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(WhatsNewDismissResponseApplicationJson_Ocs))! - as WhatsNewDismissResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$WipeCheckWipeResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [WipeCheckWipeResponseApplicationJson, _$WipeCheckWipeResponseApplicationJson]; - @override - final String wireName = 'WipeCheckWipeResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, WipeCheckWipeResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'wipe', - serializers.serialize(object.wipe, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - WipeCheckWipeResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WipeCheckWipeResponseApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'wipe': - result.wipe = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - abstract mixin class StatusInterfaceBuilder { void replace(StatusInterface other); void update(void Function(StatusInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/dashboard.openapi.dart b/packages/nextcloud/lib/src/api/dashboard.openapi.dart index cfda1e1cd3f..05aa898198c 100644 --- a/packages/nextcloud/lib/src/api/dashboard.openapi.dart +++ b/packages/nextcloud/lib/src/api/dashboard.openapi.dart @@ -376,7 +376,91 @@ abstract class OCSMeta implements OCSMetaInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$oCSMetaSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$OCSMetaSerializer(); +} + +class _$OCSMetaSerializer implements StructuredSerializer { + const _$OCSMetaSerializer(); + + @override + Iterable get types => const [OCSMeta, _$OCSMeta]; + + @override + String get wireName => 'OCSMeta'; + + @override + Iterable serialize( + final Serializers serializers, + final OCSMeta object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'status', + 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 + OCSMeta deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OCSMetaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'statuscode': + result.statuscode = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'totalitems': + result.totalitems = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'itemsperpage': + result.itemsperpage = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -402,7 +486,61 @@ abstract class Widget_Buttons implements Widget_ButtonsInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$widgetButtonsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Widget_ButtonsSerializer(); +} + +class _$Widget_ButtonsSerializer implements StructuredSerializer { + const _$Widget_ButtonsSerializer(); + + @override + Iterable get types => const [Widget_Buttons, _$Widget_Buttons]; + + @override + String get wireName => 'Widget_Buttons'; + + @override + Iterable serialize( + final Serializers serializers, + final Widget_Buttons object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'text', + serializers.serialize(object.text, specifiedType: const FullType(String)), + 'link', + serializers.serialize(object.link, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + Widget_Buttons deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = Widget_ButtonsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'text': + result.text = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'link': + result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -440,7 +578,110 @@ abstract class Widget implements WidgetInterface, Built { Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$widgetSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$WidgetSerializer(); +} + +class _$WidgetSerializer implements StructuredSerializer { + const _$WidgetSerializer(); + + @override + Iterable get types => const [Widget, _$Widget]; + + @override + String get wireName => 'Widget'; + + @override + Iterable serialize( + final Serializers serializers, + final Widget object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + 'icon_class', + serializers.serialize(object.iconClass, specifiedType: const FullType(String)), + 'icon_url', + serializers.serialize(object.iconUrl, specifiedType: const FullType(String)), + 'item_icons_round', + serializers.serialize(object.itemIconsRound, specifiedType: const FullType(bool)), + 'item_api_versions', + serializers.serialize(object.itemApiVersions, specifiedType: const FullType(BuiltList, [FullType(int)])), + 'reload_interval', + serializers.serialize(object.reloadInterval, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.widgetUrl; + if (value != null) { + result + ..add('widget_url') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + value = object.buttons; + if (value != null) { + result + ..add('buttons') + ..add( + serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(Widget_Buttons)])), + ); + } + + return result; + } + + @override + Widget deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WidgetBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'order': + result.order = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'icon_class': + result.iconClass = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'icon_url': + result.iconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'widget_url': + result.widgetUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'item_icons_round': + result.itemIconsRound = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'item_api_versions': + result.itemApiVersions.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(int)]))! + as BuiltList, + ); + case 'reload_interval': + result.reloadInterval = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'buttons': + result.buttons.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(Widget_Buttons)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -471,8 +712,67 @@ abstract class DashboardApiGetWidgetsResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$dashboardApiGetWidgetsResponseApplicationJsonOcsSerializer; + const _$DashboardApiGetWidgetsResponseApplicationJson_OcsSerializer(); +} + +class _$DashboardApiGetWidgetsResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DashboardApiGetWidgetsResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [DashboardApiGetWidgetsResponseApplicationJson_Ocs, _$DashboardApiGetWidgetsResponseApplicationJson_Ocs]; + + @override + String get wireName => 'DashboardApiGetWidgetsResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DashboardApiGetWidgetsResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Widget)])), + ]; + return result; + } + + @override + DashboardApiGetWidgetsResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DashboardApiGetWidgetsResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Widget)]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -501,8 +801,64 @@ abstract class DashboardApiGetWidgetsResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$dashboardApiGetWidgetsResponseApplicationJsonSerializer; + const _$DashboardApiGetWidgetsResponseApplicationJsonSerializer(); +} + +class _$DashboardApiGetWidgetsResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DashboardApiGetWidgetsResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [DashboardApiGetWidgetsResponseApplicationJson, _$DashboardApiGetWidgetsResponseApplicationJson]; + + @override + String get wireName => 'DashboardApiGetWidgetsResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DashboardApiGetWidgetsResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(DashboardApiGetWidgetsResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + DashboardApiGetWidgetsResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DashboardApiGetWidgetsResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DashboardApiGetWidgetsResponseApplicationJson_Ocs), + )! as DashboardApiGetWidgetsResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -530,7 +886,73 @@ abstract class WidgetItem implements WidgetItemInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$widgetItemSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$WidgetItemSerializer(); +} + +class _$WidgetItemSerializer implements StructuredSerializer { + const _$WidgetItemSerializer(); + + @override + Iterable get types => const [WidgetItem, _$WidgetItem]; + + @override + String get wireName => 'WidgetItem'; + + @override + Iterable serialize( + final Serializers serializers, + final WidgetItem object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'subtitle', + serializers.serialize(object.subtitle, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'link', + serializers.serialize(object.link, specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, specifiedType: const FullType(String)), + 'overlayIconUrl', + serializers.serialize(object.overlayIconUrl, specifiedType: const FullType(String)), + 'sinceId', + serializers.serialize(object.sinceId, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + WidgetItem deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WidgetItemBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'subtitle': + result.subtitle = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'link': + result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'overlayIconUrl': + result.overlayIconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'sinceId': + result.sinceId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -561,8 +983,78 @@ abstract class DashboardApiGetWidgetItemsResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$dashboardApiGetWidgetItemsResponseApplicationJsonOcsSerializer; + const _$DashboardApiGetWidgetItemsResponseApplicationJson_OcsSerializer(); +} + +class _$DashboardApiGetWidgetItemsResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DashboardApiGetWidgetItemsResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + DashboardApiGetWidgetItemsResponseApplicationJson_Ocs, + _$DashboardApiGetWidgetItemsResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'DashboardApiGetWidgetItemsResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DashboardApiGetWidgetItemsResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(BuiltMap, [ + FullType(String), + FullType(BuiltList, [FullType(WidgetItem)]), + ]), + ), + ]; + return result; + } + + @override + DashboardApiGetWidgetItemsResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DashboardApiGetWidgetItemsResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [ + FullType(String), + FullType(BuiltList, [FullType(WidgetItem)]), + ]), + )! as BuiltMap>, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -592,8 +1084,64 @@ abstract class DashboardApiGetWidgetItemsResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$dashboardApiGetWidgetItemsResponseApplicationJsonSerializer; + const _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer(); +} + +class _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [DashboardApiGetWidgetItemsResponseApplicationJson, _$DashboardApiGetWidgetItemsResponseApplicationJson]; + + @override + String get wireName => 'DashboardApiGetWidgetItemsResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DashboardApiGetWidgetItemsResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(DashboardApiGetWidgetItemsResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + DashboardApiGetWidgetItemsResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DashboardApiGetWidgetItemsResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DashboardApiGetWidgetItemsResponseApplicationJson_Ocs), + )! as DashboardApiGetWidgetItemsResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -618,7 +1166,65 @@ abstract class WidgetItems implements WidgetItemsInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$widgetItemsSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$WidgetItemsSerializer(); +} + +class _$WidgetItemsSerializer implements StructuredSerializer { + const _$WidgetItemsSerializer(); + + @override + Iterable get types => const [WidgetItems, _$WidgetItems]; + + @override + String get wireName => 'WidgetItems'; + + @override + Iterable serialize( + final Serializers serializers, + final WidgetItems object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'items', + serializers.serialize(object.items, specifiedType: const FullType(BuiltList, [FullType(WidgetItem)])), + 'emptyContentMessage', + serializers.serialize(object.emptyContentMessage, specifiedType: const FullType(String)), + 'halfEmptyContentMessage', + serializers.serialize(object.halfEmptyContentMessage, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + WidgetItems deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = WidgetItemsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'items': + result.items.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(WidgetItem)]))! + as BuiltList, + ); + case 'emptyContentMessage': + result.emptyContentMessage = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'halfEmptyContentMessage': + result.halfEmptyContentMessage = + serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -649,8 +1255,72 @@ abstract class DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$dashboardApiGetWidgetItemsV2ResponseApplicationJsonOcsSerializer; + const _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_OcsSerializer(); +} + +class _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs, + _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(WidgetItems)]), + ), + ]; + return result; + } + + @override + DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DashboardApiGetWidgetItemsV2ResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(WidgetItems)]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -680,8 +1350,66 @@ abstract class DashboardApiGetWidgetItemsV2ResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$dashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer; + const _$DashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer(); +} + +class _$DashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [ + DashboardApiGetWidgetItemsV2ResponseApplicationJson, + _$DashboardApiGetWidgetItemsV2ResponseApplicationJson, + ]; + + @override + String get wireName => 'DashboardApiGetWidgetItemsV2ResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DashboardApiGetWidgetItemsV2ResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + DashboardApiGetWidgetItemsV2ResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DashboardApiGetWidgetItemsV2ResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs), + )! as DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } // coverage:ignore-start diff --git a/packages/nextcloud/lib/src/api/dashboard.openapi.g.dart b/packages/nextcloud/lib/src/api/dashboard.openapi.g.dart index 675778f0215..571ed9a002a 100644 --- a/packages/nextcloud/lib/src/api/dashboard.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/dashboard.openapi.g.dart @@ -6,641 +6,6 @@ part of 'dashboard.openapi.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); -Serializer _$widgetButtonsSerializer = _$Widget_ButtonsSerializer(); -Serializer _$widgetSerializer = _$WidgetSerializer(); -Serializer - _$dashboardApiGetWidgetsResponseApplicationJsonOcsSerializer = - _$DashboardApiGetWidgetsResponseApplicationJson_OcsSerializer(); -Serializer _$dashboardApiGetWidgetsResponseApplicationJsonSerializer = - _$DashboardApiGetWidgetsResponseApplicationJsonSerializer(); -Serializer _$widgetItemSerializer = _$WidgetItemSerializer(); -Serializer - _$dashboardApiGetWidgetItemsResponseApplicationJsonOcsSerializer = - _$DashboardApiGetWidgetItemsResponseApplicationJson_OcsSerializer(); -Serializer - _$dashboardApiGetWidgetItemsResponseApplicationJsonSerializer = - _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer(); -Serializer _$widgetItemsSerializer = _$WidgetItemsSerializer(); -Serializer - _$dashboardApiGetWidgetItemsV2ResponseApplicationJsonOcsSerializer = - _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_OcsSerializer(); -Serializer - _$dashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer = - _$DashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer(); - -class _$OCSMetaSerializer implements StructuredSerializer { - @override - final Iterable types = const [OCSMeta, _$OCSMeta]; - @override - final String wireName = 'OCSMeta'; - - @override - Iterable serialize(Serializers serializers, OCSMeta object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'status', - 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 - OCSMeta deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OCSMetaBuilder(); - - 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 _$Widget_ButtonsSerializer implements StructuredSerializer { - @override - final Iterable types = const [Widget_Buttons, _$Widget_Buttons]; - @override - final String wireName = 'Widget_Buttons'; - - @override - Iterable serialize(Serializers serializers, Widget_Buttons object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'type', - serializers.serialize(object.type, specifiedType: const FullType(String)), - 'text', - serializers.serialize(object.text, specifiedType: const FullType(String)), - 'link', - serializers.serialize(object.link, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - Widget_Buttons deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = Widget_ButtonsBuilder(); - - 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(String))! as String; - break; - case 'text': - result.text = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'link': - result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$WidgetSerializer implements StructuredSerializer { - @override - final Iterable types = const [Widget, _$Widget]; - @override - final String wireName = 'Widget'; - - @override - Iterable serialize(Serializers serializers, Widget object, {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - 'title', - serializers.serialize(object.title, specifiedType: const FullType(String)), - 'order', - serializers.serialize(object.order, specifiedType: const FullType(int)), - 'icon_class', - serializers.serialize(object.iconClass, specifiedType: const FullType(String)), - 'icon_url', - serializers.serialize(object.iconUrl, specifiedType: const FullType(String)), - 'item_icons_round', - serializers.serialize(object.itemIconsRound, specifiedType: const FullType(bool)), - 'item_api_versions', - serializers.serialize(object.itemApiVersions, specifiedType: const FullType(BuiltList, [FullType(int)])), - 'reload_interval', - serializers.serialize(object.reloadInterval, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.widgetUrl; - if (value != null) { - result - ..add('widget_url') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.buttons; - if (value != null) { - result - ..add('buttons') - ..add(serializers.serialize(value, specifiedType: const FullType(BuiltList, [FullType(Widget_Buttons)]))); - } - return result; - } - - @override - Widget deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WidgetBuilder(); - - 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 'title': - result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'order': - result.order = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'icon_class': - result.iconClass = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'icon_url': - result.iconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'widget_url': - result.widgetUrl = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'item_icons_round': - result.itemIconsRound = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'item_api_versions': - result.itemApiVersions.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(int)]))! as BuiltList); - break; - case 'reload_interval': - result.reloadInterval = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'buttons': - result.buttons.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(Widget_Buttons)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$DashboardApiGetWidgetsResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetsResponseApplicationJson_Ocs, - _$DashboardApiGetWidgetsResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'DashboardApiGetWidgetsResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetsResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Widget)])), - ]; - - return result; - } - - @override - DashboardApiGetWidgetsResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetsResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(Widget)]))!); - break; - } - } - - return result.build(); - } -} - -class _$DashboardApiGetWidgetsResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetsResponseApplicationJson, - _$DashboardApiGetWidgetsResponseApplicationJson - ]; - @override - final String wireName = 'DashboardApiGetWidgetsResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetsResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(DashboardApiGetWidgetsResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - DashboardApiGetWidgetsResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetsResponseApplicationJsonBuilder(); - - 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(DashboardApiGetWidgetsResponseApplicationJson_Ocs))! - as DashboardApiGetWidgetsResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$WidgetItemSerializer implements StructuredSerializer { - @override - final Iterable types = const [WidgetItem, _$WidgetItem]; - @override - final String wireName = 'WidgetItem'; - - @override - Iterable serialize(Serializers serializers, WidgetItem object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'subtitle', - serializers.serialize(object.subtitle, specifiedType: const FullType(String)), - 'title', - serializers.serialize(object.title, specifiedType: const FullType(String)), - 'link', - serializers.serialize(object.link, specifiedType: const FullType(String)), - 'iconUrl', - serializers.serialize(object.iconUrl, specifiedType: const FullType(String)), - 'overlayIconUrl', - serializers.serialize(object.overlayIconUrl, specifiedType: const FullType(String)), - 'sinceId', - serializers.serialize(object.sinceId, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - WidgetItem deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WidgetItemBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'subtitle': - result.subtitle = 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 'link': - result.link = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'iconUrl': - result.iconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'overlayIconUrl': - result.overlayIconUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'sinceId': - result.sinceId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$DashboardApiGetWidgetItemsResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetItemsResponseApplicationJson_Ocs, - _$DashboardApiGetWidgetItemsResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'DashboardApiGetWidgetItemsResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetItemsResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(BuiltMap, [ - FullType(String), - FullType(BuiltList, [FullType(WidgetItem)]) - ])), - ]; - - return result; - } - - @override - DashboardApiGetWidgetItemsResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetItemsResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [ - FullType(String), - FullType(BuiltList, [FullType(WidgetItem)]) - ]))!); - break; - } - } - - return result.build(); - } -} - -class _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetItemsResponseApplicationJson, - _$DashboardApiGetWidgetItemsResponseApplicationJson - ]; - @override - final String wireName = 'DashboardApiGetWidgetItemsResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetItemsResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(DashboardApiGetWidgetItemsResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - DashboardApiGetWidgetItemsResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetItemsResponseApplicationJsonBuilder(); - - 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(DashboardApiGetWidgetItemsResponseApplicationJson_Ocs))! - as DashboardApiGetWidgetItemsResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$WidgetItemsSerializer implements StructuredSerializer { - @override - final Iterable types = const [WidgetItems, _$WidgetItems]; - @override - final String wireName = 'WidgetItems'; - - @override - Iterable serialize(Serializers serializers, WidgetItems object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'items', - serializers.serialize(object.items, specifiedType: const FullType(BuiltList, [FullType(WidgetItem)])), - 'emptyContentMessage', - serializers.serialize(object.emptyContentMessage, specifiedType: const FullType(String)), - 'halfEmptyContentMessage', - serializers.serialize(object.halfEmptyContentMessage, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - WidgetItems deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = WidgetItemsBuilder(); - - 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(WidgetItem)]))! as BuiltList); - break; - case 'emptyContentMessage': - result.emptyContentMessage = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'halfEmptyContentMessage': - result.halfEmptyContentMessage = - serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs, - _$DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(WidgetItems)])), - ]; - - return result; - } - - @override - DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetItemsV2ResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(WidgetItems)]))!); - break; - } - } - - return result.build(); - } -} - -class _$DashboardApiGetWidgetItemsV2ResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetItemsV2ResponseApplicationJson, - _$DashboardApiGetWidgetItemsV2ResponseApplicationJson - ]; - @override - final String wireName = 'DashboardApiGetWidgetItemsV2ResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetItemsV2ResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - DashboardApiGetWidgetItemsV2ResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetItemsV2ResponseApplicationJsonBuilder(); - - 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(DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs))! - as DashboardApiGetWidgetItemsV2ResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - abstract mixin class OCSMetaInterfaceBuilder { void replace(OCSMetaInterface other); void update(void Function(OCSMetaInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/dav.openapi.dart b/packages/nextcloud/lib/src/api/dav.openapi.dart index 3190a3d1716..cc22a184229 100644 --- a/packages/nextcloud/lib/src/api/dav.openapi.dart +++ b/packages/nextcloud/lib/src/api/dav.openapi.dart @@ -170,7 +170,91 @@ abstract class OCSMeta implements OCSMetaInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$oCSMetaSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$OCSMetaSerializer(); +} + +class _$OCSMetaSerializer implements StructuredSerializer { + const _$OCSMetaSerializer(); + + @override + Iterable get types => const [OCSMeta, _$OCSMeta]; + + @override + String get wireName => 'OCSMeta'; + + @override + Iterable serialize( + final Serializers serializers, + final OCSMeta object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'status', + 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 + OCSMeta deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OCSMetaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'statuscode': + result.statuscode = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'totalitems': + result.totalitems = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'itemsperpage': + result.itemsperpage = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -199,8 +283,56 @@ abstract class DirectGetUrlResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directGetUrlResponseApplicationJsonOcsDataSerializer; + const _$DirectGetUrlResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$DirectGetUrlResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$DirectGetUrlResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [DirectGetUrlResponseApplicationJson_Ocs_Data, _$DirectGetUrlResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'DirectGetUrlResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectGetUrlResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + DirectGetUrlResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectGetUrlResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -230,8 +362,67 @@ abstract class DirectGetUrlResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directGetUrlResponseApplicationJsonOcsSerializer; + const _$DirectGetUrlResponseApplicationJson_OcsSerializer(); +} + +class _$DirectGetUrlResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DirectGetUrlResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [DirectGetUrlResponseApplicationJson_Ocs, _$DirectGetUrlResponseApplicationJson_Ocs]; + + @override + String get wireName => 'DirectGetUrlResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectGetUrlResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs_Data)), + ]; + return result; + } + + @override + DirectGetUrlResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectGetUrlResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs_Data), + )! as DirectGetUrlResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -259,8 +450,58 @@ abstract class DirectGetUrlResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directGetUrlResponseApplicationJsonSerializer; + const _$DirectGetUrlResponseApplicationJsonSerializer(); +} + +class _$DirectGetUrlResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DirectGetUrlResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [DirectGetUrlResponseApplicationJson, _$DirectGetUrlResponseApplicationJson]; + + @override + String get wireName => 'DirectGetUrlResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectGetUrlResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + DirectGetUrlResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectGetUrlResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs))! + as DirectGetUrlResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -285,7 +526,65 @@ abstract class Capabilities_Dav implements Capabilities_DavInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesDavSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Capabilities_DavSerializer(); +} + +class _$Capabilities_DavSerializer implements StructuredSerializer { + const _$Capabilities_DavSerializer(); + + @override + Iterable get types => const [Capabilities_Dav, _$Capabilities_Dav]; + + @override + String get wireName => 'Capabilities_Dav'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities_Dav object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'chunking', + serializers.serialize(object.chunking, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.bulkupload; + if (value != null) { + result + ..add('bulkupload') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + Capabilities_Dav deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = Capabilities_DavBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'chunking': + result.chunking = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'bulkupload': + result.bulkupload = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -308,7 +607,55 @@ abstract class Capabilities implements CapabilitiesInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CapabilitiesSerializer(); +} + +class _$CapabilitiesSerializer implements StructuredSerializer { + const _$CapabilitiesSerializer(); + + @override + Iterable get types => const [Capabilities, _$Capabilities]; + + @override + String get wireName => 'Capabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'dav', + serializers.serialize(object.dav, specifiedType: const FullType(Capabilities_Dav)), + ]; + return result; + } + + @override + Capabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'dav': + result.dav.replace( + serializers.deserialize(value, specifiedType: const FullType(Capabilities_Dav))! as Capabilities_Dav, + ); + } + } + + return result.build(); + } } // coverage:ignore-start diff --git a/packages/nextcloud/lib/src/api/dav.openapi.g.dart b/packages/nextcloud/lib/src/api/dav.openapi.g.dart index 68ab577fd88..b5db3a79cfc 100644 --- a/packages/nextcloud/lib/src/api/dav.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/dav.openapi.g.dart @@ -6,304 +6,6 @@ part of 'dav.openapi.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); -Serializer _$directGetUrlResponseApplicationJsonOcsDataSerializer = - _$DirectGetUrlResponseApplicationJson_Ocs_DataSerializer(); -Serializer _$directGetUrlResponseApplicationJsonOcsSerializer = - _$DirectGetUrlResponseApplicationJson_OcsSerializer(); -Serializer _$directGetUrlResponseApplicationJsonSerializer = - _$DirectGetUrlResponseApplicationJsonSerializer(); -Serializer _$capabilitiesDavSerializer = _$Capabilities_DavSerializer(); -Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); - -class _$OCSMetaSerializer implements StructuredSerializer { - @override - final Iterable types = const [OCSMeta, _$OCSMeta]; - @override - final String wireName = 'OCSMeta'; - - @override - Iterable serialize(Serializers serializers, OCSMeta object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'status', - 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 - OCSMeta deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = OCSMetaBuilder(); - - 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 _$DirectGetUrlResponseApplicationJson_Ocs_DataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DirectGetUrlResponseApplicationJson_Ocs_Data, - _$DirectGetUrlResponseApplicationJson_Ocs_Data - ]; - @override - final String wireName = 'DirectGetUrlResponseApplicationJson_Ocs_Data'; - - @override - Iterable serialize(Serializers serializers, DirectGetUrlResponseApplicationJson_Ocs_Data object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'url', - serializers.serialize(object.url, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - DirectGetUrlResponseApplicationJson_Ocs_Data deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DirectGetUrlResponseApplicationJson_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 'url': - result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$DirectGetUrlResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DirectGetUrlResponseApplicationJson_Ocs, - _$DirectGetUrlResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'DirectGetUrlResponseApplicationJson_Ocs'; - - @override - Iterable serialize(Serializers serializers, DirectGetUrlResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs_Data)), - ]; - - return result; - } - - @override - DirectGetUrlResponseApplicationJson_Ocs deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DirectGetUrlResponseApplicationJson_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(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs_Data))! - as DirectGetUrlResponseApplicationJson_Ocs_Data); - break; - } - } - - return result.build(); - } -} - -class _$DirectGetUrlResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [DirectGetUrlResponseApplicationJson, _$DirectGetUrlResponseApplicationJson]; - @override - final String wireName = 'DirectGetUrlResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, DirectGetUrlResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(DirectGetUrlResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - DirectGetUrlResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DirectGetUrlResponseApplicationJsonBuilder(); - - 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(DirectGetUrlResponseApplicationJson_Ocs))! - as DirectGetUrlResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$Capabilities_DavSerializer implements StructuredSerializer { - @override - final Iterable types = const [Capabilities_Dav, _$Capabilities_Dav]; - @override - final String wireName = 'Capabilities_Dav'; - - @override - Iterable serialize(Serializers serializers, Capabilities_Dav object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'chunking', - serializers.serialize(object.chunking, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.bulkupload; - if (value != null) { - result - ..add('bulkupload') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - Capabilities_Dav deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = 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 'chunking': - result.chunking = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'bulkupload': - result.bulkupload = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$CapabilitiesSerializer implements StructuredSerializer { - @override - final Iterable types = const [Capabilities, _$Capabilities]; - @override - final String wireName = 'Capabilities'; - - @override - Iterable serialize(Serializers serializers, Capabilities object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'dav', - serializers.serialize(object.dav, specifiedType: const FullType(Capabilities_Dav)), - ]; - - return result; - } - - @override - Capabilities deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CapabilitiesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'dav': - result.dav.replace( - serializers.deserialize(value, specifiedType: const FullType(Capabilities_Dav))! as Capabilities_Dav); - break; - } - } - - return result.build(); - } -} - abstract mixin class OCSMetaInterfaceBuilder { void replace(OCSMetaInterface other); void update(void Function(OCSMetaInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/files.openapi.dart b/packages/nextcloud/lib/src/api/files.openapi.dart index 3c9c38014e7..0f6a2a88e86 100644 --- a/packages/nextcloud/lib/src/api/files.openapi.dart +++ b/packages/nextcloud/lib/src/api/files.openapi.dart @@ -1362,7 +1362,91 @@ abstract class OCSMeta implements OCSMetaInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$oCSMetaSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$OCSMetaSerializer(); +} + +class _$OCSMetaSerializer implements StructuredSerializer { + const _$OCSMetaSerializer(); + + @override + Iterable get types => const [OCSMeta, _$OCSMeta]; + + @override + String get wireName => 'OCSMeta'; + + @override + Iterable serialize( + final Serializers serializers, + final OCSMeta object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'status', + 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 + OCSMeta deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OCSMetaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'status': + result.status = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'statuscode': + result.statuscode = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'message': + result.message = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'totalitems': + result.totalitems = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'itemsperpage': + result.itemsperpage = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1396,8 +1480,80 @@ abstract class DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingInfoResponseApplicationJsonOcsDataEditorsSerializer; + const _$DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsSerializer(); +} + +class _$DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsSerializer + implements StructuredSerializer { + const _$DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsSerializer(); + + @override + Iterable get types => const [ + DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors, + _$DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors, + ]; + + @override + String get wireName => 'DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'mimetypes', + serializers.serialize(object.mimetypes, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'optionalMimetypes', + serializers.serialize(object.optionalMimetypes, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'secure', + serializers.serialize(object.secure, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'mimetypes': + result.mimetypes.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'optionalMimetypes': + result.optionalMimetypes.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'secure': + result.secure = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1433,8 +1589,81 @@ abstract class DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingInfoResponseApplicationJsonOcsDataCreatorsSerializer; + const _$DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsSerializer(); +} + +class _$DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsSerializer + implements StructuredSerializer { + const _$DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsSerializer(); + + @override + Iterable get types => const [ + DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators, + _$DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators, + ]; + + @override + String get wireName => 'DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'editor', + serializers.serialize(object.editor, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'extension', + serializers.serialize(object.$extension, specifiedType: const FullType(String)), + 'templates', + serializers.serialize(object.templates, specifiedType: const FullType(bool)), + 'mimetypes', + serializers.serialize(object.mimetypes, specifiedType: const FullType(BuiltList, [FullType(String)])), + ]; + return result; + } + + @override + DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'editor': + result.editor = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'name': + result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'extension': + result.$extension = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'templates': + result.templates = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'mimetypes': + result.mimetypes.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1465,8 +1694,88 @@ abstract class DirectEditingInfoResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingInfoResponseApplicationJsonOcsDataSerializer; + const _$DirectEditingInfoResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$DirectEditingInfoResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$DirectEditingInfoResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [DirectEditingInfoResponseApplicationJson_Ocs_Data, _$DirectEditingInfoResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'DirectEditingInfoResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingInfoResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'editors', + serializers.serialize( + object.editors, + specifiedType: const FullType( + BuiltMap, + [FullType(String), FullType(DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors)], + ), + ), + 'creators', + serializers.serialize( + object.creators, + specifiedType: const FullType( + BuiltMap, + [FullType(String), FullType(DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators)], + ), + ), + ]; + return result; + } + + @override + DirectEditingInfoResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingInfoResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'editors': + result.editors.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [ + FullType(String), + FullType(DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors), + ]), + )! as BuiltMap, + ); + case 'creators': + result.creators.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [ + FullType(String), + FullType(DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators), + ]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1496,8 +1805,70 @@ abstract class DirectEditingInfoResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingInfoResponseApplicationJsonOcsSerializer; + const _$DirectEditingInfoResponseApplicationJson_OcsSerializer(); +} + +class _$DirectEditingInfoResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DirectEditingInfoResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [DirectEditingInfoResponseApplicationJson_Ocs, _$DirectEditingInfoResponseApplicationJson_Ocs]; + + @override + String get wireName => 'DirectEditingInfoResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingInfoResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(DirectEditingInfoResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + DirectEditingInfoResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingInfoResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingInfoResponseApplicationJson_Ocs_Data), + )! as DirectEditingInfoResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1526,8 +1897,61 @@ abstract class DirectEditingInfoResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingInfoResponseApplicationJsonSerializer; + const _$DirectEditingInfoResponseApplicationJsonSerializer(); +} + +class _$DirectEditingInfoResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DirectEditingInfoResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [DirectEditingInfoResponseApplicationJson, _$DirectEditingInfoResponseApplicationJson]; + + @override + String get wireName => 'DirectEditingInfoResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingInfoResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(DirectEditingInfoResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + DirectEditingInfoResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingInfoResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingInfoResponseApplicationJson_Ocs), + )! as DirectEditingInfoResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1562,8 +1986,82 @@ abstract class DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingTemplatesResponseApplicationJsonOcsDataTemplatesSerializer; + const _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesSerializer(); +} + +class _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesSerializer + implements StructuredSerializer { + const _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesSerializer(); + + @override + Iterable get types => const [ + DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates, + _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates, + ]; + + @override + String get wireName => 'DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'title', + serializers.serialize(object.title, specifiedType: const FullType(String)), + 'extension', + serializers.serialize(object.$extension, specifiedType: const FullType(String)), + 'mimetype', + serializers.serialize(object.mimetype, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.preview; + if (value != null) { + result + ..add('preview') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'title': + result.title = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'preview': + result.preview = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'extension': + result.$extension = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'mimetype': + result.mimetype = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1593,8 +2091,72 @@ abstract class DirectEditingTemplatesResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingTemplatesResponseApplicationJsonOcsDataSerializer; + const _$DirectEditingTemplatesResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$DirectEditingTemplatesResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$DirectEditingTemplatesResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + DirectEditingTemplatesResponseApplicationJson_Ocs_Data, + _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'DirectEditingTemplatesResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingTemplatesResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'templates', + serializers.serialize( + object.templates, + specifiedType: const FullType( + BuiltMap, + [FullType(String), FullType(DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates)], + ), + ), + ]; + return result; + } + + @override + DirectEditingTemplatesResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingTemplatesResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'templates': + result.templates.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [ + FullType(String), + FullType(DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates), + ]), + )! as BuiltMap, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1625,8 +2187,70 @@ abstract class DirectEditingTemplatesResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingTemplatesResponseApplicationJsonOcsSerializer; + const _$DirectEditingTemplatesResponseApplicationJson_OcsSerializer(); +} + +class _$DirectEditingTemplatesResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DirectEditingTemplatesResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [DirectEditingTemplatesResponseApplicationJson_Ocs, _$DirectEditingTemplatesResponseApplicationJson_Ocs]; + + @override + String get wireName => 'DirectEditingTemplatesResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingTemplatesResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(DirectEditingTemplatesResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + DirectEditingTemplatesResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingTemplatesResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingTemplatesResponseApplicationJson_Ocs_Data), + )! as DirectEditingTemplatesResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1655,8 +2279,64 @@ abstract class DirectEditingTemplatesResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingTemplatesResponseApplicationJsonSerializer; + const _$DirectEditingTemplatesResponseApplicationJsonSerializer(); +} + +class _$DirectEditingTemplatesResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DirectEditingTemplatesResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [DirectEditingTemplatesResponseApplicationJson, _$DirectEditingTemplatesResponseApplicationJson]; + + @override + String get wireName => 'DirectEditingTemplatesResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingTemplatesResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(DirectEditingTemplatesResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + DirectEditingTemplatesResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingTemplatesResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingTemplatesResponseApplicationJson_Ocs), + )! as DirectEditingTemplatesResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1686,8 +2366,56 @@ abstract class DirectEditingOpenResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingOpenResponseApplicationJsonOcsDataSerializer; + const _$DirectEditingOpenResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$DirectEditingOpenResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$DirectEditingOpenResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [DirectEditingOpenResponseApplicationJson_Ocs_Data, _$DirectEditingOpenResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'DirectEditingOpenResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingOpenResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + DirectEditingOpenResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingOpenResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1717,8 +2445,70 @@ abstract class DirectEditingOpenResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingOpenResponseApplicationJsonOcsSerializer; + const _$DirectEditingOpenResponseApplicationJson_OcsSerializer(); +} + +class _$DirectEditingOpenResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DirectEditingOpenResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [DirectEditingOpenResponseApplicationJson_Ocs, _$DirectEditingOpenResponseApplicationJson_Ocs]; + + @override + String get wireName => 'DirectEditingOpenResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingOpenResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(DirectEditingOpenResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + DirectEditingOpenResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingOpenResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingOpenResponseApplicationJson_Ocs_Data), + )! as DirectEditingOpenResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1747,8 +2537,61 @@ abstract class DirectEditingOpenResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingOpenResponseApplicationJsonSerializer; + const _$DirectEditingOpenResponseApplicationJsonSerializer(); +} + +class _$DirectEditingOpenResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DirectEditingOpenResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [DirectEditingOpenResponseApplicationJson, _$DirectEditingOpenResponseApplicationJson]; + + @override + String get wireName => 'DirectEditingOpenResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingOpenResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(DirectEditingOpenResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + DirectEditingOpenResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingOpenResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingOpenResponseApplicationJson_Ocs), + )! as DirectEditingOpenResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1778,8 +2621,58 @@ abstract class DirectEditingCreateResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingCreateResponseApplicationJsonOcsDataSerializer; + const _$DirectEditingCreateResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$DirectEditingCreateResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$DirectEditingCreateResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + DirectEditingCreateResponseApplicationJson_Ocs_Data, + _$DirectEditingCreateResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'DirectEditingCreateResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingCreateResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + DirectEditingCreateResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingCreateResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1809,8 +2702,70 @@ abstract class DirectEditingCreateResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingCreateResponseApplicationJsonOcsSerializer; + const _$DirectEditingCreateResponseApplicationJson_OcsSerializer(); +} + +class _$DirectEditingCreateResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$DirectEditingCreateResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [DirectEditingCreateResponseApplicationJson_Ocs, _$DirectEditingCreateResponseApplicationJson_Ocs]; + + @override + String get wireName => 'DirectEditingCreateResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingCreateResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(DirectEditingCreateResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + DirectEditingCreateResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingCreateResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingCreateResponseApplicationJson_Ocs_Data), + )! as DirectEditingCreateResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1839,8 +2794,61 @@ abstract class DirectEditingCreateResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$directEditingCreateResponseApplicationJsonSerializer; + const _$DirectEditingCreateResponseApplicationJsonSerializer(); +} + +class _$DirectEditingCreateResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$DirectEditingCreateResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [DirectEditingCreateResponseApplicationJson, _$DirectEditingCreateResponseApplicationJson]; + + @override + String get wireName => 'DirectEditingCreateResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final DirectEditingCreateResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(DirectEditingCreateResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + DirectEditingCreateResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = DirectEditingCreateResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(DirectEditingCreateResponseApplicationJson_Ocs), + )! as DirectEditingCreateResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1873,8 +2881,78 @@ abstract class OpenLocalEditorCreateResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$openLocalEditorCreateResponseApplicationJsonOcsDataSerializer; + const _$OpenLocalEditorCreateResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$OpenLocalEditorCreateResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$OpenLocalEditorCreateResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + OpenLocalEditorCreateResponseApplicationJson_Ocs_Data, + _$OpenLocalEditorCreateResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'OpenLocalEditorCreateResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final OpenLocalEditorCreateResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'pathHash', + serializers.serialize(object.pathHash, specifiedType: const FullType(String)), + 'expirationTime', + serializers.serialize(object.expirationTime, specifiedType: const FullType(int)), + 'token', + serializers.serialize(object.token, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.userId; + if (value != null) { + result + ..add('userId') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + OpenLocalEditorCreateResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenLocalEditorCreateResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'pathHash': + result.pathHash = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'expirationTime': + result.expirationTime = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'token': + result.token = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1905,8 +2983,70 @@ abstract class OpenLocalEditorCreateResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$openLocalEditorCreateResponseApplicationJsonOcsSerializer; + const _$OpenLocalEditorCreateResponseApplicationJson_OcsSerializer(); +} + +class _$OpenLocalEditorCreateResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$OpenLocalEditorCreateResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [OpenLocalEditorCreateResponseApplicationJson_Ocs, _$OpenLocalEditorCreateResponseApplicationJson_Ocs]; + + @override + String get wireName => 'OpenLocalEditorCreateResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final OpenLocalEditorCreateResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(OpenLocalEditorCreateResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + OpenLocalEditorCreateResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenLocalEditorCreateResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OpenLocalEditorCreateResponseApplicationJson_Ocs_Data), + )! as OpenLocalEditorCreateResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1935,8 +3075,64 @@ abstract class OpenLocalEditorCreateResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$openLocalEditorCreateResponseApplicationJsonSerializer; + const _$OpenLocalEditorCreateResponseApplicationJsonSerializer(); +} + +class _$OpenLocalEditorCreateResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$OpenLocalEditorCreateResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [OpenLocalEditorCreateResponseApplicationJson, _$OpenLocalEditorCreateResponseApplicationJson]; + + @override + String get wireName => 'OpenLocalEditorCreateResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final OpenLocalEditorCreateResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(OpenLocalEditorCreateResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + OpenLocalEditorCreateResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenLocalEditorCreateResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OpenLocalEditorCreateResponseApplicationJson_Ocs), + )! as OpenLocalEditorCreateResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -1969,8 +3165,70 @@ abstract class OpenLocalEditorValidateResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$openLocalEditorValidateResponseApplicationJsonOcsDataSerializer; + const _$OpenLocalEditorValidateResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$OpenLocalEditorValidateResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$OpenLocalEditorValidateResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => const [ + OpenLocalEditorValidateResponseApplicationJson_Ocs_Data, + _$OpenLocalEditorValidateResponseApplicationJson_Ocs_Data, + ]; + + @override + String get wireName => 'OpenLocalEditorValidateResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final OpenLocalEditorValidateResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'userId', + serializers.serialize(object.userId, specifiedType: const FullType(String)), + 'pathHash', + serializers.serialize(object.pathHash, specifiedType: const FullType(String)), + 'expirationTime', + serializers.serialize(object.expirationTime, specifiedType: const FullType(int)), + 'token', + serializers.serialize(object.token, specifiedType: const FullType(String)), + ]; + return result; + } + + @override + OpenLocalEditorValidateResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenLocalEditorValidateResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'userId': + result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'pathHash': + result.pathHash = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'expirationTime': + result.expirationTime = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'token': + result.token = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2001,8 +3259,70 @@ abstract class OpenLocalEditorValidateResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$openLocalEditorValidateResponseApplicationJsonOcsSerializer; + const _$OpenLocalEditorValidateResponseApplicationJson_OcsSerializer(); +} + +class _$OpenLocalEditorValidateResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$OpenLocalEditorValidateResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [OpenLocalEditorValidateResponseApplicationJson_Ocs, _$OpenLocalEditorValidateResponseApplicationJson_Ocs]; + + @override + String get wireName => 'OpenLocalEditorValidateResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final OpenLocalEditorValidateResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize( + object.data, + specifiedType: const FullType(OpenLocalEditorValidateResponseApplicationJson_Ocs_Data), + ), + ]; + return result; + } + + @override + OpenLocalEditorValidateResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenLocalEditorValidateResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OpenLocalEditorValidateResponseApplicationJson_Ocs_Data), + )! as OpenLocalEditorValidateResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2027,12 +3347,68 @@ abstract class OpenLocalEditorValidateResponseApplicationJson _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + // coverage:ignore-start + Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; + // coverage:ignore-end + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$OpenLocalEditorValidateResponseApplicationJsonSerializer(); +} + +class _$OpenLocalEditorValidateResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$OpenLocalEditorValidateResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [OpenLocalEditorValidateResponseApplicationJson, _$OpenLocalEditorValidateResponseApplicationJson]; + + @override + String get wireName => 'OpenLocalEditorValidateResponseApplicationJson'; - static Serializer get serializer => - _$openLocalEditorValidateResponseApplicationJsonSerializer; + @override + Iterable serialize( + final Serializers serializers, + final OpenLocalEditorValidateResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(OpenLocalEditorValidateResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + OpenLocalEditorValidateResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = OpenLocalEditorValidateResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(OpenLocalEditorValidateResponseApplicationJson_Ocs), + )! as OpenLocalEditorValidateResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2064,7 +3440,95 @@ abstract class TemplateFileCreator Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$templateFileCreatorSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$TemplateFileCreatorSerializer(); +} + +class _$TemplateFileCreatorSerializer implements StructuredSerializer { + const _$TemplateFileCreatorSerializer(); + + @override + Iterable get types => const [TemplateFileCreator, _$TemplateFileCreator]; + + @override + String get wireName => 'TemplateFileCreator'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplateFileCreator object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'app', + serializers.serialize(object.app, specifiedType: const FullType(String)), + 'label', + serializers.serialize(object.label, specifiedType: const FullType(String)), + 'extension', + serializers.serialize(object.$extension, specifiedType: const FullType(String)), + 'mimetypes', + serializers.serialize(object.mimetypes, specifiedType: const FullType(BuiltList, [FullType(String)])), + 'actionLabel', + serializers.serialize(object.actionLabel, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.iconClass; + if (value != null) { + result + ..add('iconClass') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + value = object.ratio; + if (value != null) { + result + ..add('ratio') + ..add( + serializers.serialize(value, specifiedType: const FullType(double)), + ); + } + + return result; + } + + @override + TemplateFileCreator deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplateFileCreatorBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'app': + result.app = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'label': + result.label = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'extension': + result.$extension = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'iconClass': + result.iconClass = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'mimetypes': + result.mimetypes.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(String)]))! + as BuiltList, + ); + case 'ratio': + result.ratio = serializers.deserialize(value, specifiedType: const FullType(double))! as double; + case 'actionLabel': + result.actionLabel = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2094,8 +3558,65 @@ abstract class TemplateListResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templateListResponseApplicationJsonOcsSerializer; + const _$TemplateListResponseApplicationJson_OcsSerializer(); +} + +class _$TemplateListResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TemplateListResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TemplateListResponseApplicationJson_Ocs, _$TemplateListResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TemplateListResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplateListResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(TemplateFileCreator)])), + ]; + return result; + } + + @override + TemplateListResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplateListResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(TemplateFileCreator)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2123,8 +3644,58 @@ abstract class TemplateListResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templateListResponseApplicationJsonSerializer; + const _$TemplateListResponseApplicationJsonSerializer(); +} + +class _$TemplateListResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TemplateListResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [TemplateListResponseApplicationJson, _$TemplateListResponseApplicationJson]; + + @override + String get wireName => 'TemplateListResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplateListResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(TemplateListResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + TemplateListResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplateListResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(TemplateListResponseApplicationJson_Ocs))! + as TemplateListResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2155,7 +3726,93 @@ abstract class TemplateFile implements TemplateFileInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$templateFileSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$TemplateFileSerializer(); +} + +class _$TemplateFileSerializer implements StructuredSerializer { + const _$TemplateFileSerializer(); + + @override + Iterable get types => const [TemplateFile, _$TemplateFile]; + + @override + String get wireName => 'TemplateFile'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplateFile object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'basename', + serializers.serialize(object.basename, specifiedType: const FullType(String)), + 'etag', + serializers.serialize(object.etag, specifiedType: const FullType(String)), + 'fileid', + serializers.serialize(object.fileid, specifiedType: const FullType(int)), + 'lastmod', + serializers.serialize(object.lastmod, specifiedType: const FullType(int)), + 'mime', + serializers.serialize(object.mime, specifiedType: const FullType(String)), + 'size', + serializers.serialize(object.size, specifiedType: const FullType(int)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'hasPreview', + serializers.serialize(object.hasPreview, specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.filename; + if (value != null) { + result + ..add('filename') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + + return result; + } + + @override + TemplateFile deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplateFileBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'basename': + result.basename = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'etag': + result.etag = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'fileid': + result.fileid = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'filename': + result.filename = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'lastmod': + result.lastmod = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'mime': + result.mime = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'size': + result.size = serializers.deserialize(value, specifiedType: const FullType(int))! as int; + case 'type': + result.type = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'hasPreview': + result.hasPreview = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2185,8 +3842,64 @@ abstract class TemplateCreateResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templateCreateResponseApplicationJsonOcsSerializer; + const _$TemplateCreateResponseApplicationJson_OcsSerializer(); +} + +class _$TemplateCreateResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TemplateCreateResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TemplateCreateResponseApplicationJson_Ocs, _$TemplateCreateResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TemplateCreateResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplateCreateResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(TemplateFile)), + ]; + return result; + } + + @override + TemplateCreateResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplateCreateResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize(value, specifiedType: const FullType(TemplateFile))! as TemplateFile, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2215,8 +3928,58 @@ abstract class TemplateCreateResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templateCreateResponseApplicationJsonSerializer; + const _$TemplateCreateResponseApplicationJsonSerializer(); +} + +class _$TemplateCreateResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TemplateCreateResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [TemplateCreateResponseApplicationJson, _$TemplateCreateResponseApplicationJson]; + + @override + String get wireName => 'TemplateCreateResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplateCreateResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(TemplateCreateResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + TemplateCreateResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplateCreateResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(TemplateCreateResponseApplicationJson_Ocs))! + as TemplateCreateResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2247,8 +4010,66 @@ abstract class TemplatePathResponseApplicationJson_Ocs_Data Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templatePathResponseApplicationJsonOcsDataSerializer; + const _$TemplatePathResponseApplicationJson_Ocs_DataSerializer(); +} + +class _$TemplatePathResponseApplicationJson_Ocs_DataSerializer + implements StructuredSerializer { + const _$TemplatePathResponseApplicationJson_Ocs_DataSerializer(); + + @override + Iterable get types => + const [TemplatePathResponseApplicationJson_Ocs_Data, _$TemplatePathResponseApplicationJson_Ocs_Data]; + + @override + String get wireName => 'TemplatePathResponseApplicationJson_Ocs_Data'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplatePathResponseApplicationJson_Ocs_Data object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'template_path', + serializers.serialize(object.templatePath, specifiedType: const FullType(String)), + 'templates', + serializers.serialize( + object.templates, + specifiedType: const FullType(BuiltList, [FullType(TemplateFileCreator)]), + ), + ]; + return result; + } + + @override + TemplatePathResponseApplicationJson_Ocs_Data deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplatePathResponseApplicationJson_Ocs_DataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'template_path': + result.templatePath = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'templates': + result.templates.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(TemplateFileCreator)]))! + as BuiltList, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2278,8 +4099,67 @@ abstract class TemplatePathResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templatePathResponseApplicationJsonOcsSerializer; + const _$TemplatePathResponseApplicationJson_OcsSerializer(); +} + +class _$TemplatePathResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TemplatePathResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TemplatePathResponseApplicationJson_Ocs, _$TemplatePathResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TemplatePathResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplatePathResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(TemplatePathResponseApplicationJson_Ocs_Data)), + ]; + return result; + } + + @override + TemplatePathResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplatePathResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TemplatePathResponseApplicationJson_Ocs_Data), + )! as TemplatePathResponseApplicationJson_Ocs_Data, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2307,8 +4187,58 @@ abstract class TemplatePathResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$templatePathResponseApplicationJsonSerializer; + const _$TemplatePathResponseApplicationJsonSerializer(); +} + +class _$TemplatePathResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TemplatePathResponseApplicationJsonSerializer(); + + @override + Iterable get types => const [TemplatePathResponseApplicationJson, _$TemplatePathResponseApplicationJson]; + + @override + String get wireName => 'TemplatePathResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TemplatePathResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(TemplatePathResponseApplicationJson_Ocs)), + ]; + return result; + } + + @override + TemplatePathResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TemplatePathResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(TemplatePathResponseApplicationJson_Ocs))! + as TemplatePathResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2339,8 +4269,64 @@ abstract class TransferOwnershipTransferResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$transferOwnershipTransferResponseApplicationJsonOcsSerializer; + const _$TransferOwnershipTransferResponseApplicationJson_OcsSerializer(); +} + +class _$TransferOwnershipTransferResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TransferOwnershipTransferResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => const [ + TransferOwnershipTransferResponseApplicationJson_Ocs, + _$TransferOwnershipTransferResponseApplicationJson_Ocs, + ]; + + @override + String get wireName => 'TransferOwnershipTransferResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TransferOwnershipTransferResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), + ]; + return result; + } + + @override + TransferOwnershipTransferResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TransferOwnershipTransferResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2370,8 +4356,64 @@ abstract class TransferOwnershipTransferResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$transferOwnershipTransferResponseApplicationJsonSerializer; + const _$TransferOwnershipTransferResponseApplicationJsonSerializer(); +} + +class _$TransferOwnershipTransferResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TransferOwnershipTransferResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TransferOwnershipTransferResponseApplicationJson, _$TransferOwnershipTransferResponseApplicationJson]; + + @override + String get wireName => 'TransferOwnershipTransferResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TransferOwnershipTransferResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TransferOwnershipTransferResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TransferOwnershipTransferResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TransferOwnershipTransferResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TransferOwnershipTransferResponseApplicationJson_Ocs), + )! as TransferOwnershipTransferResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2402,8 +4444,62 @@ abstract class TransferOwnershipAcceptResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$transferOwnershipAcceptResponseApplicationJsonOcsSerializer; + const _$TransferOwnershipAcceptResponseApplicationJson_OcsSerializer(); +} + +class _$TransferOwnershipAcceptResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TransferOwnershipAcceptResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TransferOwnershipAcceptResponseApplicationJson_Ocs, _$TransferOwnershipAcceptResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TransferOwnershipAcceptResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TransferOwnershipAcceptResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), + ]; + return result; + } + + @override + TransferOwnershipAcceptResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TransferOwnershipAcceptResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2432,8 +4528,64 @@ abstract class TransferOwnershipAcceptResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$transferOwnershipAcceptResponseApplicationJsonSerializer; + const _$TransferOwnershipAcceptResponseApplicationJsonSerializer(); +} + +class _$TransferOwnershipAcceptResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TransferOwnershipAcceptResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TransferOwnershipAcceptResponseApplicationJson, _$TransferOwnershipAcceptResponseApplicationJson]; + + @override + String get wireName => 'TransferOwnershipAcceptResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TransferOwnershipAcceptResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TransferOwnershipAcceptResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TransferOwnershipAcceptResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TransferOwnershipAcceptResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TransferOwnershipAcceptResponseApplicationJson_Ocs), + )! as TransferOwnershipAcceptResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2464,8 +4616,62 @@ abstract class TransferOwnershipRejectResponseApplicationJson_Ocs Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$transferOwnershipRejectResponseApplicationJsonOcsSerializer; + const _$TransferOwnershipRejectResponseApplicationJson_OcsSerializer(); +} + +class _$TransferOwnershipRejectResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + const _$TransferOwnershipRejectResponseApplicationJson_OcsSerializer(); + + @override + Iterable get types => + const [TransferOwnershipRejectResponseApplicationJson_Ocs, _$TransferOwnershipRejectResponseApplicationJson_Ocs]; + + @override + String get wireName => 'TransferOwnershipRejectResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + final Serializers serializers, + final TransferOwnershipRejectResponseApplicationJson_Ocs object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(JsonObject)), + ]; + return result; + } + + @override + TransferOwnershipRejectResponseApplicationJson_Ocs deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TransferOwnershipRejectResponseApplicationJson_OcsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'meta': + result.meta.replace( + serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta, + ); + case 'data': + result.data = serializers.deserialize(value, specifiedType: const FullType(JsonObject))! as JsonObject; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2494,8 +4700,64 @@ abstract class TransferOwnershipRejectResponseApplicationJson Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end + @BuiltValueSerializer(custom: true) static Serializer get serializer => - _$transferOwnershipRejectResponseApplicationJsonSerializer; + const _$TransferOwnershipRejectResponseApplicationJsonSerializer(); +} + +class _$TransferOwnershipRejectResponseApplicationJsonSerializer + implements StructuredSerializer { + const _$TransferOwnershipRejectResponseApplicationJsonSerializer(); + + @override + Iterable get types => + const [TransferOwnershipRejectResponseApplicationJson, _$TransferOwnershipRejectResponseApplicationJson]; + + @override + String get wireName => 'TransferOwnershipRejectResponseApplicationJson'; + + @override + Iterable serialize( + final Serializers serializers, + final TransferOwnershipRejectResponseApplicationJson object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'ocs', + serializers.serialize( + object.ocs, + specifiedType: const FullType(TransferOwnershipRejectResponseApplicationJson_Ocs), + ), + ]; + return result; + } + + @override + TransferOwnershipRejectResponseApplicationJson deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = TransferOwnershipRejectResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace( + serializers.deserialize( + value, + specifiedType: const FullType(TransferOwnershipRejectResponseApplicationJson_Ocs), + )! as TransferOwnershipRejectResponseApplicationJson_Ocs, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2525,7 +4787,62 @@ abstract class Capabilities_Files_DirectEditing Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesFilesDirectEditingSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$Capabilities_Files_DirectEditingSerializer(); +} + +class _$Capabilities_Files_DirectEditingSerializer implements StructuredSerializer { + const _$Capabilities_Files_DirectEditingSerializer(); + + @override + Iterable get types => const [Capabilities_Files_DirectEditing, _$Capabilities_Files_DirectEditing]; + + @override + String get wireName => 'Capabilities_Files_DirectEditing'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities_Files_DirectEditing object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'etag', + serializers.serialize(object.etag, specifiedType: const FullType(String)), + 'supportsFileId', + serializers.serialize(object.supportsFileId, specifiedType: const FullType(bool)), + ]; + return result; + } + + @override + Capabilities_Files_DirectEditing deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = Capabilities_Files_DirectEditingBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'url': + result.url = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'etag': + result.etag = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'supportsFileId': + result.supportsFileId = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2553,7 +4870,67 @@ abstract class Capabilities_Files Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesFilesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$Capabilities_FilesSerializer(); +} + +class _$Capabilities_FilesSerializer implements StructuredSerializer { + const _$Capabilities_FilesSerializer(); + + @override + Iterable get types => const [Capabilities_Files, _$Capabilities_Files]; + + @override + String get wireName => 'Capabilities_Files'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities_Files object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'bigfilechunking', + serializers.serialize(object.bigfilechunking, specifiedType: const FullType(bool)), + 'blacklisted_files', + serializers.serialize(object.blacklistedFiles, specifiedType: const FullType(BuiltList, [FullType(JsonObject)])), + 'directEditing', + serializers.serialize(object.directEditing, specifiedType: const FullType(Capabilities_Files_DirectEditing)), + ]; + return result; + } + + @override + Capabilities_Files deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = Capabilities_FilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'bigfilechunking': + result.bigfilechunking = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; + case 'blacklisted_files': + result.blacklistedFiles.replace( + serializers.deserialize(value, specifiedType: const FullType(BuiltList, [FullType(JsonObject)]))! + as BuiltList, + ); + case 'directEditing': + result.directEditing.replace( + serializers.deserialize(value, specifiedType: const FullType(Capabilities_Files_DirectEditing))! + as Capabilities_Files_DirectEditing, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2576,7 +4953,55 @@ abstract class Capabilities implements CapabilitiesInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$capabilitiesSerializer; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CapabilitiesSerializer(); +} + +class _$CapabilitiesSerializer implements StructuredSerializer { + const _$CapabilitiesSerializer(); + + @override + Iterable get types => const [Capabilities, _$Capabilities]; + + @override + String get wireName => 'Capabilities'; + + @override + Iterable serialize( + final Serializers serializers, + final Capabilities object, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'files', + serializers.serialize(object.files, specifiedType: const FullType(Capabilities_Files)), + ]; + return result; + } + + @override + Capabilities deserialize( + final Serializers serializers, + final Iterable serialized, { + final FullType specifiedType = FullType.unspecified, + }) { + final result = CapabilitiesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final value = iterator.current; + switch (key) { + case 'files': + result.files.replace( + serializers.deserialize(value, specifiedType: const FullType(Capabilities_Files))! as Capabilities_Files, + ); + } + } + + return result.build(); + } } @BuiltValue(instantiable: false) @@ -2610,7 +5035,105 @@ abstract class Template implements TemplateInterface, Built toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer